同步管理系统2.0代码

zhairh
郑明梁 3 years ago
parent a8fa4c900d
commit 5c3b48db5a

@ -1207,6 +1207,10 @@ export default {
this.loading = false;
this.detailList = response.data || [];
this.detailList.forEach((item, index, array) => {
this.detailList[index].isAdavence=item.adavence
this.detailList[index].isDisable=item.disable
this.detailList[index].useMuti=item.useMuti
if (item.zxxsbzbhsydysl > 1) {
this.isUseDyCheck = true;
}

@ -470,8 +470,8 @@ export default {
onReset2() {
this.registrationQuery = {
customerId: null,
manufacturerIdFk: null,
customerId: this.registrationQuery.customerId,
manufacturerIdFk: this.registrationQuery.manufacturerIdFk,
recordProductName: "",
recordCode: "",
recordPeopleName: "",

@ -511,21 +511,7 @@ export default {
},
methods: {
onModifySubmit(type) {
//
let query = {
customerId: this.$store.getters.customerId
}
getCompany(query)
.then((response) => {
if(response.data.auditStatus!=1){
this.$message.error("本企业信息还未通过审核!");
return;
}else{
this.addOrModifyCompany(type);
}}).catch(() => {
});
this.addOrModifyCompany(type);
},
addOrModifyCompany (type){

@ -806,8 +806,10 @@ export default {
this.formData.corpName = row.name;
},
subStorageChange(code) {
this.formData.locStorageCode= this.subInvList.find(item => item.code == code).parentId
subStorageChange(item) {
this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId
this.formData.corpId=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).code
this.formData.corpName=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).warehouseName
this.getBusType();
this.findSubStorageMethod();
},

@ -297,8 +297,12 @@ export default {
this.loading = false;
});
},
getFormStorageCode(){
// this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId
getFormStorageCode(subInvId){
this.fromSubStorageOptions.forEach(item => {
if (subInvId === item.code) {
this.formData.fromCorp = item.warehouseName;
}
});
},
locCHange() {

@ -431,6 +431,7 @@ export default {
}
},
getBusType() {
this.filterQuery.locStorageCode= this.subInvList.find(item => item.code == this.filterQuery.invWarehouseCode).parentId
let query = {
code: this.filterQuery.invWarehouseCode,
enabled: true,

@ -603,6 +603,9 @@ export default {
this.total = response.data.total || 0;
} else {
this.$message.error(response.message);
this.list = [];
this.total = 0;
this.detailList = [];
}
})
@ -793,6 +796,9 @@ export default {
}
},
getBusType() {
if(this.subInvList.length>0){
this.query.locStorageCode= this.subInvList.find(item => item.code == this.query.invWarehouseCode).parentId
}
let query = {
code: this.query.invWarehouseCode,
enabled: true,

@ -62,7 +62,6 @@
</el-col>
<el-col :span="7">
<el-form-item prop="corpName">
<el-input v-if="formData.fromSubInvName ==null" v-model="formData.corpName" auto-complete="off" :disabled="true"></el-input>
<el-input v-if="formData.fromSubInvName !=null" v-model="formData.fromSubInvName"
auto-complete="off" :disabled="true"></el-input>
</el-form-item>
@ -576,6 +575,8 @@ export default {
};
this.selectInvProductVisible = true;
} else {
this.invQueryData.corpId = this.formData.corpId;
this.thisData.noInvOut = this.formData.noInvOut;
this.selectProductVisible = true;
}

@ -634,6 +634,9 @@ export default {
this.query.page = 1;
this.getList();
//
this.detailQuery.page=1
this.detailTotal=0
if (this.query.status === "202") {
this.haveDistributionVisible = true;
} else {

@ -657,6 +657,8 @@ export default {
this.detailList = [];
} else {
this.$message.error(response.message);
this.list = [];
this.total = 0;
}
})

@ -569,6 +569,7 @@ export default {
if (this.orderEditor) {
this.thisData.orderId = this.formData.id
}
this.invQueryData.corpId = this.formData.corpId;
this.selectProductVisible = true;
return;
}

Loading…
Cancel
Save