From 441f8436a70c22fba6f25154f2f38a072c85b76b Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期二, 27 二月 2024 18:45:02 +0800
Subject: [PATCH] 公共选择产品弹窗相关页面修改
---
src/components/makepager/mixin/codeMixin.js | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/components/makepager/mixin/codeMixin.js b/src/components/makepager/mixin/codeMixin.js
index 15c48a0..5d31dbc 100644
--- a/src/components/makepager/mixin/codeMixin.js
+++ b/src/components/makepager/mixin/codeMixin.js
@@ -1,5 +1,5 @@
import WordInput from "@/components/wordInput"
-import { getCodeStandardList,getAutoCode } from "@/api/common/standard"
+import { getCodeStandardList,getAutoCode,useSystemSet } from "@/api/common/standard"
export default {
components: {
WordInput
@@ -18,9 +18,10 @@
objCode: { name: "", page: 0, pageSize: 0, type: "璺熻繘璁板綍缂栫爜", codeStandID: "" },
codeRule: {},
codeLength: 0,
- // header澶寸殑鍙傛暟
autoCodeHeadersObj:{
- xsjh:'',
+ Xsjh:'',
+ Bjd:'',
+ Ywjh:'',
}
}
},
@@ -95,15 +96,19 @@
async getAutoCodeValue() {
if(Object.keys(this.codeRule).length>0){
const res = await getAutoCode(this.codeRule);
- this.autoCodeHeadersObj=res.headers
- if (res.data.code == 200) {
- this.$set(this.editConfig.infomation, 'number', res.data.data?res.data.data:'')
+ console.log(res,'=====res autocode')
+ if (res.code == 200) {
+ this.$set(this.editConfig.infomation, 'number', res.data?res.data:'')
}else{
this.$set(this.editConfig.infomation, 'number', this.codeRule.AutoRule.PrefixValue?this.codeRule.AutoRule.PrefixValue:'')
}
}
},
+ async getUseSystemSet(data){
+ const res=await useSystemSet(data)
+ this.autoCodeHeadersObj=res.data
+ },
codeList(val) {
this.inputValue = val
this.codenumberList = val.toString()
--
Gitblit v1.8.0