From 5b796da18f7f8948640a3bcdc10478f342293fc0 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 22 十二月 2023 15:04:48 +0800
Subject: [PATCH] 销售明细单,报价单获取配置的方式修改增加接口,对应接口联调
---
src/components/makepager/mixin/codeMixin.js | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/components/makepager/mixin/codeMixin.js b/src/components/makepager/mixin/codeMixin.js
index 7ec1914..fd1876c 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,7 +18,6 @@
objCode: { name: "", page: 0, pageSize: 0, type: "璺熻繘璁板綍缂栫爜", codeStandID: "" },
codeRule: {},
codeLength: 0,
- // header澶寸殑鍙傛暟
autoCodeHeadersObj:{
xsjh:'',
bjd:'',
@@ -97,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