From 72f6f5abb7d6a90c9edfb69db63907ef3e17ef03 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 22 十一月 2023 11:31:27 +0800
Subject: [PATCH] 销售明细单添加确认订单前确认是否选择项目
---
src/views/service/clientServiceOrder/mixin/codeMixin.js | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/service/clientServiceOrder/mixin/codeMixin.js b/src/views/service/clientServiceOrder/mixin/codeMixin.js
index 9c1637b..3271e1f 100644
--- a/src/views/service/clientServiceOrder/mixin/codeMixin.js
+++ b/src/views/service/clientServiceOrder/mixin/codeMixin.js
@@ -18,7 +18,6 @@
objCode: { name: "", page: 0, pageSize: 0, type: "瀹㈡埛鏈嶅姟缂栫爜", codeStandID: "" },
codeRule: {},
codeLength: 0,
- autoCodeObj: {}
}
},
@@ -73,7 +72,6 @@
// ? this.editConfig.infomation.serviceNumber
// : autoRule.PrefixValue
// )
- return true
}
}
}
@@ -81,6 +79,7 @@
} else {
this.$message.error(res.data.msg ? res.data.msg : "鑾峰彇缂栫爜瑙勮寖澶辫触锛岃閲嶈瘯锛�")
}
+ this.getAutoCodeValue()
} else {
this.codeList(this.editConfig.infomation.serviceNumber)
}
@@ -89,10 +88,11 @@
}
},
async getAutoCodeValue() {
- const res = await getAutoCode({ codeType: this.objCode.type, autoIncr: this.autoIncr });
- if (res.code == 200) {
- this.autoCodeObj = res.data;
- this.$set(this.editConfig.infomation, 'number', this.autoCodeObj.id)
+ if(Object.keys(this.codeRule).length>0){
+ const res = await getAutoCode(this.codeRule);
+ if (res.code == 200) {
+ this.$set(this.editConfig.infomation, 'serviceNumber', res.data?res.data:'')
+ }
}
},
codeList(val) {
--
Gitblit v1.8.0