All Latest
6a3e27040ae4d: POST https://beta.jinchangxiao.com/vue/sales-contract/save-new-return at 2026-06-26 03:15:16 pm by 221.216.117.25

Log Messages

总计74条数据
TimeLevelCategoryMessage
 
15:15:16.043traceyii\base\Application::bootstrapBootstrap with yii\log\Dispatcher
15:15:16.043traceyii\base\Module::getModuleLoading module: debug
15:15:16.044traceyii\base\Application::bootstrapBootstrap with yii\debug\Module::bootstrap()
15:15:16.044traceyii\redis\Connection::openOpening redis DB connection: redis.server.local:6379, database=1
15:15:16.045traceyii\redis\Connection::executeCommandExecuting Redis Command: SELECT
15:15:16.045traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.045infotime tracing start1782458116045932032
15:15:16.046traceyii\web\UrlManager::parseRequestNo matching URL rules. Using default URL parsing logic.
15:15:16.046traceyii\web\Application::handleRequestRoute requested: 'vue/sales-contract/save-new-return'
15:15:16.046traceyii\base\Module::getModuleLoading module: vue
15:15:16.047infoyii\web\Session::openSession started
15:15:16.048infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
15:15:16.048infoyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
15:15:16.050traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.050traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
15:15:16.051infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
15:15:16.052traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.053traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
15:15:16.053infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
15:15:16.054traceyii\base\Controller::runActionRoute to run: vue/sales-contract/save-new-return
15:15:16.054traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.056traceuranus\rbac\DbManager::checkAccessFromCacheChecking role: Admin
15:15:16.056traceyii\base\InlineAction::runWithParamsRunning action: app\modules\vue\controllers\SalesContractController::actionSaveNewReturn()
15:15:16.056infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"='4453'
15:15:16.057traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.057traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
15:15:16.058traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.059traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.061traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'id' in 'app\models\SalesContracts'.
15:15:16.061traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'client_name' in 'app\models\SalesContracts'.
15:15:16.061traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'project_name' in 'app\models\SalesContracts'.
15:15:16.061traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'budget' in 'app\models\SalesContracts'.
15:15:16.061traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'erpSalesReturnVerifyRels' in 'app\models\SalesContracts'.
15:15:16.061traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'returns_amount' in 'app\models\SalesContracts'.
15:15:16.061traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'returns_number' in 'app\models\SalesContracts'.
15:15:16.061traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'erpSalesReturnProducts' in 'app\models\SalesContracts'.
15:15:16.061traceyii\base\Model::onUnsafeAttributeFailed to set unsafe attribute 'salesSupplierRels' in 'app\models\SalesContracts'.
15:15:16.061infoyii\db\Command::querySELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "serial_no"='2026-04-01-001' LIMIT 2
15:15:16.063infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3457')
15:15:16.063infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1')
15:15:16.064infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='4157')
15:15:16.064infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)
15:15:16.065infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)
15:15:16.065infoyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4157)
15:15:16.066traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.066infoyii\db\Command::querySELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_erp_sales_outbound_spent_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
15:15:16.070infoyii\db\Command::queryselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_erp_sales_outbound_spent_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
15:15:16.075traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
15:15:16.076traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
15:15:16.076infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "id"=534
15:15:16.080infoyii\db\Command::execute
15:15:16.080infoyii\db\Command::executeUPDATE "a57be577deb434"."tbl_sales_contracts" SET "client_id"=3457, "description"='', "updated_at"='now()', "contract_type"=1, "project_id"=4157, "expire_date"=NULL, "sla"='', "remind_ahead"='0 day', "expire_remind_ahead"='0 day', "including_tax"=TRUE, "is_settle"=FALSE, "is_deliver"=FALSE, "is_outbound"=TRUE WHERE "id"=4453
15:15:16.087traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.088traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
15:15:16.088infoyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContracts', 4453, 'a:4:{s:12:"remind_ahead";s:5:"0 day";s:19:"expire_remind_ahead";s:5:"0 day";s:9:"is_settle";s:1:"0";s:10:"is_deliver";s:1:"0";}', '', 1001, '221.216.117.25')
15:15:16.098infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3457'
15:15:16.098traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.099infoyii\db\Command::querySELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_clients' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
15:15:16.104infoyii\db\Command::queryselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_clients' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
15:15:16.111traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
15:15:16.111traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
15:15:16.112infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='4157'
15:15:16.113traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.113traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
15:15:16.114infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_supplier_rels" WHERE "contract_id"=4453
15:15:16.114infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_sales_supplier_rels" WHERE "contract_id"=4453
15:15:16.117infoyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "project_id"=4157
15:15:16.119infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=4453
15:15:16.120erroryii\base\ErrorException:8yii\base\ErrorException: Undefined index: salesContractPaymentCollectionRemindDates in /var/www/beta/models/SalesContracts.php:3767 Stack trace: #0 /var/www/beta/models/SalesContracts.php(3767): yii\base\ErrorHandler->handleError(8, 'Undefined index...', '/var/www/beta/m...', 3767, Array) #1 /var/www/beta/modules/vue/controllers/SalesContractController.php(5165): app\models\SalesContracts->saveEditModelReturn() #2 [internal function]: app\modules\vue\controllers\SalesContractController->actionSaveNewReturn() #3 /var/www/beta/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #4 /var/www/beta/vendor/yiisoft/yii2/base/Controller.php(156): yii\base\InlineAction->runWithParams(Array) #5 /var/www/beta/vendor/yiisoft/yii2/base/Module.php(522): yii\base\Controller->runAction('save-new-return', Array) #6 /var/www/beta/vendor/yiisoft/yii2/web/Application.php(102): yii\base\Module->runAction('vue/sales-contr...', Array) #7 /var/www/beta/vendor/yiisoft/yii2/base/Application.php(379): yii\web\Application->handleRequest(Object(yii\web\Request)) #8 /var/www/beta/web/index.php(32): yii\base\Application->run() #9 {main}
15:15:16.120traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.121traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
15:15:16.121infoyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (500, 'a57be577deb434', 1001, 5, 'vue/sales-contract/save-new-return', '{"ErpSalesReturns":{"id":"4453","client_id":"3457","client_name":"\u65b0\u5bb6\u9500\u552e\u7ebf\u7d22\u6d4b\u8bd5-\u5206\u914d","project_id":"4157","project_name":"\u9500\u552e\u7ebf\u7d22\u751f\u621020260401002","serial_no":"2026-04-01-001","contract_type":"1","signed_at":"2026-04-01","expire_date":"","expire_remind_ahead":"","description":"","budget":"0","sla":"","is_outbound":"1","is_settle":"0","is_deliver":"0","remind_ahead":"","including_tax":"1","erpSalesReturnVerifyRels":["1001"],"returns_amount":"33333","returns_number":"0","erpSalesReturnProducts":{"new":[{"product_id":"2177","number":"1","amount":"33333","total_amount":"33333","description":"","erp_sales_outbound_spent_product_id":"534","sns":""}]},"salesSupplierRels":""},"web_access_token":"r0J-lCBFZ2oBNvygnaGJSmtE8O_U85dp"}', '{"code":500,"data":null,"status":0,"msg":[{"name":"error","success":"","error":"Undefined index: salesContractPaymentCollectionRemindDates","trace":{"name":"PHP Notice","message":"Undefined index: salesContractPaymentCollectionRemindDates","code":8,"type":"yii\\base\\ErrorException","file":"\/var\/www\/beta\/models\/SalesContracts.php","line":3767,"stack-trace":["#0 \/var\/www\/beta\/models\/SalesContracts.php(3767): yii\\base\\ErrorHandler->handleError(8, ''Undefined index...'', ''\/var\/www\/beta\/m...'', 3767, Array)","#1 \/var\/www\/beta\/modules\/vue\/controllers\/SalesContractController.php(5165): app\\models\\SalesContracts->saveEditModelReturn()","#2 [internal function]: app\\modules\\vue\\controllers\\SalesContractController->actionSaveNewReturn()","#3 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/InlineAction.php(57): call_user_func_array(Array, Array)","#4 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Controller.php(156): yii\\base\\InlineAction->runWithParams(Array)","#5 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Module.php(522): yii\\base\\Controller->runAction(''save-new-return'', Array)","#6 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/web\/Application.php(102): yii\\base\\Module->runAction(''vue\/sales-contr...'', Array)","#7 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Application.php(379): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))","#8 \/var\/www\/beta\/web\/index.php(32): yii\\base\\Application->run()","#9 {main}"]}}]}', TRUE, '2026-06-26 15:15:16', 75362048) RETURNING "id"
15:15:16.124traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
15:15:16.124traceyii\redis\Connection::executeCommandExecuting Redis Command: SET