From b39bf36c1c380285582b7daffb5dd656aa1e1389 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期一, 06 十一月 2023 17:20:04 +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