diff --git a/src/views/system/dept/invWarehouse.vue b/src/views/system/dept/invWarehouse.vue
index 81b2b3b..eeb977d 100644
--- a/src/views/system/dept/invWarehouse.vue
+++ b/src/views/system/dept/invWarehouse.vue
@@ -11,18 +11,18 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
重置
@@ -43,30 +43,39 @@
-
+
+
+ {{ advanceTypeTypeMap[scope.row.advanceType] }}
+
+
-
+
{{
scope.row.spUse | spUerFilterName
@@ -74,7 +83,7 @@
-
+
-
-
-
-
-
+
+
+
+
+
@@ -414,17 +424,22 @@ export default {
// page: 1,
// limit: 10,
},
- isAdvanceTypeShow:false,
- isShow:false,
+ isAdvanceTypeShow: false,
+ isShow: false,
loading: true,
list: [],
isExpandAll: true,
total: 0,
+ advanceTypeTypeMap: {
+ 1: "入账库",
+ 2: "寄售库",
+ 3: "预验收库",
+ },
formMap: {
add: "仓库信息-新增",
edit: "仓库信息-编辑"
},
- invWouse:{},
+ invWouse: {},
formName: null,
configParms: {},
currentCode: null,
@@ -467,7 +482,7 @@ export default {
},
sysList: [],
sysSubList: [],
- advanceTypese:[],
+ advanceTypese: [],
};
},
methods: {
@@ -512,38 +527,38 @@ export default {
});
},
handleSubForm(data, formName) { //新增,编辑
- if(data != null ){
- this.invWouse=data;
+ if (data != null) {
+ this.invWouse = data;
}
this.formName = formName;
if (formName === "edit") {
this.subData = JSON.parse(JSON.stringify(data));
- this.subData.advanceType=this.subData.advanceType.toString();
- if(this.subData.parentCode!=null && this.subData.parentCode!=""){
- this.isAdvanceTypeShow=true;
- this.isShow=false;
- }else{
- this.isAdvanceTypeShow=false;
- this.isShow=true
- this.subData.parentCode=null;
+ this.subData.advanceType = this.subData.advanceType.toString();
+ if (this.subData.parentCode != null && this.subData.parentCode != "") {
+ this.isAdvanceTypeShow = true;
+ this.isShow = false;
+ } else {
+ this.isAdvanceTypeShow = false;
+ this.isShow = true
+ this.subData.parentCode = null;
}
} else if (formName === "add") {
- this.isShow=true
- if(data==null){
- this.isAdvanceTypeShow=false;
- this.subData = {advanceType: '1', spUse: false,parentCode:null};
- }else{
- this.isAdvanceTypeShow=true;
- this.subData = {advanceType: data.advanceType.toString(), spUse: false,parentCode:data.code};
+ this.isShow = true
+ if (data == null) {
+ this.isAdvanceTypeShow = false;
+ this.subData = {advanceType: '1', spUse: false, parentCode: null};
+ } else {
+ this.isAdvanceTypeShow = true;
+ this.subData = {advanceType: data.advanceType.toString(), spUse: false, parentCode: data.code};
}
}
//转换
- let advanceTypese =this.subData.advanceType
+ let advanceTypese = this.subData.advanceType
this.subFormVisible = true;
this.getSubThrsysDetailData();
- if(this.subData.parentCode!=null && this.subData.parentCode!=""){
+ if (this.subData.parentCode != null && this.subData.parentCode != "") {
filterSubAll(this.query)
.then((response) => {
let invList = response.data || [];