fix(crm/contract): 修复合同状态更新调用错误的接口

移除了多余的created钩子中调用字典列表的代码,将更新合同状态的接口从updateContract改为updateOrder
This commit is contained in:
2026-06-06 15:12:42 +08:00
parent 050dd1a965
commit 696f6d9ee0

View File

@@ -316,9 +316,6 @@ export default {
};
},
created() {
this.getDictList();
},
watch: {
'form.productContent': function (newVal) {
if (!this.autoFillOrderAmount || !newVal) return;
@@ -365,7 +362,7 @@ export default {
/** 处理合同状态更新 */
handleStatusChange(status) {
this.form.status = status;
updateContract({
updateOrder({
...this.form,
status: status
}).then(res => {