16:53:59.582 | 1.9 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/sales-contract/of-project', '{"page":"1","id":"3751","web_access_token":"sV2F29tsogQonulyxXoXQL59i2Ir83nH"}', '{"code":2000,"result":{"list":[{"id":4055,"client_id":2553,"signed_at":"2025-07-21","amount":"885300","handler":1001,"description":"","created_by":1001,"created_at":"2025-07-21 14:10:34","updated_at":"2025-08-13 10:59:42","contract_scan":"","receipt_scan":"","contract_type":1,"project_id":3751,"valid_date":"","expire_date":"","sla":"","remind_ahead":"","expire_remind_ahead":"","expire_reminded":false,"serial_no":"","payment_collection_remind_ahead":"1 day","from_project":3751,"receipt_date":"","verify_date":"","including_tax":true,"build_by_project":true,"need_analysis":true,"is_settle":false,"is_deliver":false,"is_outbound":false,"is_save_collection":true,"save_collection_at":"2025-08-13 13:38:52","is_verify":false,"is_draft":false,"erp_settle_amount":"0","erp_un_settle_amount":"885300","erp_payment_ticket_is_verify":false,"erp_collect_ticket_is_verify":false,"erp_cash_cost_ticket_is_verify":false,"b_date":"","passed":1,"client":{"id":2553,"key":2553,"name":"\u9752\u5c9b\u9890\u6770\u9e3f\u5229\u79d1\u6280\u6709\u9650\u516c\u53f8","logo":"","sales_rep":1001,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}},"contractScan":{},"receiptScan":{},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"commentCount":{},"project":{"id":3751,"key":3751,"name":"10\u53f0 PA445 \u8bbe\u5907\u91c7\u8d2d\u9879\u76ee\uff08\u6c99\u7279\u9879\u76ee\uff09","erpSalesOrder":{"id":1553,"serial_no":"XSDD-20250725-00001","from_date":"","wrote_date":"2025-07-21","handler":1001,"client_id":2553,"purchase_contract_id":"","project_id":3751,"sales_contract_id":4055,"erp_store_id":"","status":2,"erp_send_type_id":"","abstract":"","description":"","verify_type":1,"next_verify_user":"","next_stop_verify_user":"","next_cancel_verify_user":"","verify_at":"2025-07-21 14:10:34","stop_at":"","cancel_at":"","refuse_description":"","is_resubmitted":false,"is_done":false,"number":"50","amount":"885300","created_by":1001,"stop_description":"","extra":"","outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":false,"is_old":true,"created_at":"2025-07-21 14:10:34","updated_at":"2025-07-21 14:10:34","erpSalesOrderVerifyRels":[],"erpSalesOrderStopVerifyRels":[]}},"fromProject":{"id":3751,"key":3751,"name":"10\u53f0 PA445 \u8bbe\u5907\u91c7\u8d2d\u9879\u76ee\uff08\u6c99\u7279\u9879\u76ee\uff09","description":"","total_contact_point":"342291","paid_contact_point":"","is_sales_order_ready":false,"project_product_version_id":951,"bargain_date":"2025-07-21","collected":"0","profit_pct":"2.74","budget":"885300","erpSalesOrder":{"id":1553,"serial_no":"XSDD-20250725-00001","from_date":"","wrote_date":"2025-07-21","handler":1001,"client_id":2553,"purchase_contract_id":"","project_id":3751,"sales_contract_id":4055,"erp_store_id":"","status":2,"erp_send_type_id":"","abstract":"","description":"","verify_type":1,"next_verify_user":"","next_stop_verify_user":"","next_cancel_verify_user":"","verify_at":"2025-07-21 14:10:34","stop_at":"","cancel_at":"","refuse_description":"","is_resubmitted":false,"is_done":false,"number":"50","amount":"885300","created_by":1001,"stop_description":"","extra":"","outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":false,"is_old":true,"created_at":"2025-07-21 14:10:34","updated_at":"2025-07-21 14:10:34"},"projectProductTypes":[{"id":6860,"product_type_id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907","budget":"885300","pct":"2.74","project_id":3751,"profit":"24257.22"}],"projectProductRels":[{"id":10491,"project_id":3751,"product_id":2055,"amount":"22137.00","number":10,"cost":"13200.00","description":"","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","total_amount":"221370","total_cost":"132000","erp_sales_order_product_id":1803,"supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":2055,"name":"PAN-PA-445","product_type":5,"product_component":26,"product_brand":8,"product_serie":1663,"product_misc":"","product_qa":"","pn":"","description":"Palo Alto Networks PA-445","created_by":1013,"created_at":"2025-07-21 14:49:47","updated_at":"2025-07-21 14:49:47","pinyin_shortcut":"PANPA445","product_unit":1,"is_renew":false,"productType":{"id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907"},"productComponent":{"id":26,"key":26,"name":"\u9632\u706b\u5899\u4e3b\u673a"},"productBrand":{"id":8,"key":8,"name":"Paloalto"},"productSerie":{"id":1663,"key":1663,"name":"PA-445\u9632\u706b\u5899\u4e3b\u673a"},"productUnit":{"id":1,"key":1,"name":"\u53f0"}},"erpSalesOrderProduct":{"id":1803,"erp_sales_order_id":1553,"erp_store_id":"","product_id":2055,"description":"","number":"10","outbound":"0","amount":"22137.00","total_amount":"221370","last_number":"","last_amount":"","last_total_amount":"","cost":"13200.00","total_cost":"132000","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":""}},{"id":10492,"project_id":3751,"product_id":2058,"amount":"15644.80","number":10,"cost":"16764.60","description":"","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","total_amount":"156448","total_cost":"167646","erp_sales_order_product_id":1804,"supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":2058,"name":"PAN-PA-445-BND-CORESEC-3YR","product_type":5,"product_component":36,"product_brand":8,"product_serie":1664,"product_misc":"","product_qa":"","pn":"","description":"PA-445, Precision AI Network Security Subscription Bundle (Advanced Threat Prevention, Advanced URL Filtering, Advanced Wildfire, Advanced DNS Security and Advanced SD-WAN ), 3 years (36 months) term","created_by":1013,"created_at":"2025-07-21 14:53:01","updated_at":"2025-07-21 14:56:05","pinyin_shortcut":"PANPA445BNDCORESEC3YR","product_unit":3,"is_renew":false,"productType":{"id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907"},"productComponent":{"id":36,"key":36,"name":"PA\u8bb8\u53ef\u8bc1"},"productBrand":{"id":8,"key":8,"name":"Paloalto"},"productSerie":{"id":1664,"key":1664,"name":"PA445\u8f6f\u4ef6\u6388\u6743"},"productUnit":{"id":3,"key":3,"name":"\u4e2a"}},"erpSalesOrderProduct":{"id":1804,"erp_sales_order_id":1553,"erp_store_id":"","product_id":2058,"description":"","number":"10","outbound":"0","amount":"15644.80","total_amount":"156448","last_number":"","last_amount":"","last_total_amount":"","cost":"16764.60","total_cost":"167646","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":""}},{"id":10493,"project_id":3751,"product_id":2056,"amount":"5365.33","number":6,"cost":"800.00","description":"","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","total_amount":"32192.00","total_cost":"4800","erp_sales_order_product_id":1805,"supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":2056,"name":"PAN-PA-400-POE-PWR-150W","product_type":5,"product_component":157,"product_brand":8,"product_serie":1012,"product_misc":"","product_qa":"","pn":"","description":"150W Power Adaptor for PoE Enabled PA-415, PA-445, and PA-415-5G","created_by":1013,"created_at":"2025-07-21 14:50:36","updated_at":"2025-07-21 14:50:36","pinyin_shortcut":"PANPA400POEPWR150W","product_unit":3,"is_renew":false,"productType":{"id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907"},"productComponent":{"id":157,"key":157,"name":"\u9632\u706b\u5899\u914d\u4ef6"},"productBrand":{"id":8,"key":8,"name":"Paloalto"},"productSerie":{"id":1012,"key":1012,"name":"PA-440\/450\/460\u7535\u6e90"},"productUnit":{"id":3,"key":3,"name":"\u4e2a"}},"erpSalesOrderProduct":{"id":1805,"erp_sales_order_id":1553,"erp_store_id":"","product_id":2056,"description":"","number":"6","outbound":"0","amount":"5365.33","total_amount":"32192.00","last_number":"","last_amount":"","last_total_amount":"","cost":"800.00","total_cost":"4800","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":""}},{"id":10494,"project_id":3751,"product_id":2059,"amount":"44217.00","number":10,"cost":"6900.00","description":"","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","total_amount":"442170","total_cost":"69000","erp_sales_order_product_id":1806,"supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":2059,"name":"PAN-SVC-PREM-445-3YR","product_type":5,"product_component":214,"product_brand":8,"product_serie":1665,"product_misc":"","product_qa":"","pn":"","description":"PA-445, Premium support, 3 years (36 months) term","created_by":1013,"created_at":"2025-07-21 14:55:55","updated_at":"2025-07-21 14:55:55","pinyin_shortcut":"PANSVCPREM4453YR","product_unit":3,"is_renew":false,"productType":{"id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907"},"productComponent":{"id":214,"key":214,"name":"\u9632\u706b\u5899\u670d\u52a1"},"productBrand":{"id":8,"key":8,"name":"Paloalto"},"productSerie":{"id":1665,"key":1665,"name":"PA445\u4e09\u5e74\u670d\u52a1"},"productUnit":{"id":3,"key":3,"name":"\u4e2a"}},"erpSalesOrderProduct":{"id":1806,"erp_sales_order_id":1553,"erp_store_id":"","product_id":2059,"description":"","number":"10","outbound":"0","amount":"44217.00","total_amount":"442170","last_number":"","last_amount":"","last_total_amount":"","cost":"6900.00","total_cost":"69000","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":""}},{"id":10495,"project_id":3751,"product_id":2057,"amount":"3312.00","number":10,"cost":"800.00","description":"","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","total_amount":"33120","total_cost":"8000","erp_sales_order_product_id":1807,"supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":2057,"name":"PAN-PA-400-POE-RACKTRAY","product_type":5,"product_component":157,"product_brand":8,"product_serie":615,"product_misc":"","product_qa":"","pn":"","description":"Rack-Mountable Tray for PoE enabled PA-415 and PA-445","created_by":1013,"created_at":"2025-07-21 14:51:17","updated_at":"2025-07-21 14:56:19","pinyin_shortcut":"PANPA400POERACKTRAY","product_unit":3,"is_renew":false,"productType":{"id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907"},"productComponent":{"id":157,"key":157,"name":"\u9632\u706b\u5899\u914d\u4ef6"},"productBrand":{"id":8,"key":8,"name":"Paloalto"},"productSerie":{"id":615,"key":615,"name":"PA-440\/450\/460\u5bfc\u8f68"},"productUnit":{"id":3,"key":3,"name":"\u4e2a"}},"erpSalesOrderProduct":{"id":1807,"erp_sales_order_id":1553,"erp_store_id":"","product_id":2057,"description":"","number":"10","outbound":"0","amount":"3312.00","total_amount":"33120","last_number":"","last_amount":"","last_total_amount":"","cost":"800.00","total_cost":"8000","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":""}},{"id":10496,"project_id":3751,"product_id":2056,"amount":"0","number":4,"cost":"800.00","description":"\u8c03\u6574\u6295\u6807\u4ef7\u683c\uff0c4\u4e2a\u7535\u6e90\u7b97\u8d60\u9001","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","total_amount":"0","total_cost":"3200","erp_sales_order_product_id":1808,"supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":2056,"name":"PAN-PA-400-POE-PWR-150W","product_type":5,"product_component":157,"product_brand":8,"product_serie":1012,"product_misc":"","product_qa":"","pn":"","description":"150W Power Adaptor for PoE Enabled PA-415, PA-445, and PA-415-5G","created_by":1013,"created_at":"2025-07-21 14:50:36","updated_at":"2025-07-21 14:50:36","pinyin_shortcut":"PANPA400POEPWR150W","product_unit":3,"is_renew":false,"productType":{"id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907"},"productComponent":{"id":157,"key":157,"name":"\u9632\u706b\u5899\u914d\u4ef6"},"productBrand":{"id":8,"key":8,"name":"Paloalto"},"productSerie":{"id":1012,"key":1012,"name":"PA-440\/450\/460\u7535\u6e90"},"productUnit":{"id":3,"key":3,"name":"\u4e2a"}},"erpSalesOrderProduct":{"id":1808,"erp_sales_order_id":1553,"erp_store_id":"","product_id":2056,"description":"\u8c03\u6574\u6295\u6807\u4ef7\u683c\uff0c4\u4e2a\u7535\u6e90\u7b97\u8d60\u9001","number":"4","outbound":"0","amount":"0","total_amount":"0","last_number":"","last_amount":"","last_total_amount":"","cost":"800.00","total_cost":"3200","supplier_id":90,"hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":""}}],"projectContactPoints":[{"id":1116,"project_id":3751,"contact_id":5957,"point":"342291.00","paid_point":"","contact":{"id":5957,"key":5957,"name":"\u674e\u777f\uff08Rick Li\uff09","client_id":"","supplier_id":100,"client":{},"supplier":{"id":100,"key":100,"name":"\u6d3e\u62d3\u7f51\u7edc(\u4e0a\u6d77)\u6709\u9650\u8d23\u4efb\u516c\u53f8\u5317\u4eac\u5206\u516c\u53f8"}},"projectContactPointRels":[],"status_display":"\u672a\u6838\u9500"}],"buildSalesOrderItems":[],"reimbursementAmountSum":{},"profit":24257.22,"contact_points_status_display":"\u672a\u6838\u9500"},"salesSupplierRels":[{"id":3063,"contract_id":4055,"supplier_id":90,"purchase_id":4056,"supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"purchase":{"id":4056,"key":4056,"serial_no":"X_2025SBQ18249"}}],"contractType":{"id":1,"key":1,"name":"\u4ea7\u54c1\u9500\u552e"},"handleBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"remindDate":{},"serviceContractRemindDates":[],"salesContractRemindReceivers":[],"serviceContractRemindReceivers":[],"salesContractPaymentCollectionRemindReceivers":[{"id":8878,"user_id":1001,"key":1001,"contract_id":4055,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}},{"id":8879,"user_id":5388,"key":5388,"contract_id":4055,"user":{"id":5388,"key":5388,"name":"\u6768\u71d5\u971e","sex":"F","avatar":{"id":156,"user_id":5388,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b8d4f68f-e736-3c38-9e2f-1ab47885b3d8.png"}}},{"id":8880,"user_id":1011,"key":1011,"contract_id":4055,"user":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"}}}],"salesContractPaymentCollectionRemindDates":[{"id":2555,"key":2555,"contract_id":4055,"name":"2025-08-14","value":"885300","overdue_days":"","status":0,"pct":100,"collect_status":"\u903e\u671f1\u5929"}],"salesContractPayments":[],"salesContractInvoices":[],"contractScans":[],"receiptScans":[],"verifyScans":[],"unreadComments":{},"collected_plan":885300,"projectProductTotalAmount":885300,"projectProductAllAmount":true,"projectProductTotalCost":384646,"projectProductAllCost":true,"projectProductTotalCount":50,"invoiced":0,"un_invoiced":885300,"collected":"0","un_collected":885300,"is_collected":false,"handlerPerson":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"remind_date":"","remind_ahead_display":"\u65e0","expire_remind_ahead_display":"\u65e0","payment_collection_remind_ahead_display":"\u63d0\u524d1\u5929","can_update":true,"can_delete":false,"unread":0,"bgcolor":"#89c541","can_view_product":true,"can_progress":true,"is_chargeback":false,"is_done":false}],"can_create":true,"can_progress":true,"pagenation":{"totalcount":1,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-08-15 16:53:59') RETURNING "id" |