同步管理系统2.0代码

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

@ -1207,6 +1207,10 @@ export default {
this.loading = false; this.loading = false;
this.detailList = response.data || []; this.detailList = response.data || [];
this.detailList.forEach((item, index, array) => { 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) { if (item.zxxsbzbhsydysl > 1) {
this.isUseDyCheck = true; this.isUseDyCheck = true;
} }

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

@ -511,21 +511,7 @@ export default {
}, },
methods: { methods: {
onModifySubmit(type) { onModifySubmit(type) {
this.addOrModifyCompany(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(() => {
});
}, },
addOrModifyCompany (type){ addOrModifyCompany (type){
@ -559,7 +545,7 @@ export default {
this.certLoading = true; this.certLoading = true;
filterCompanyCert(this.certQuery) filterCompanyCert(this.certQuery)
.then((response) => { .then((response) => {
this.certLoading = false; this.certLoading = false;
this.certList = response.data.list || []; this.certList = response.data.list || [];
this.certTotal=response.data.total this.certTotal=response.data.total

@ -806,8 +806,10 @@ export default {
this.formData.corpName = row.name; this.formData.corpName = row.name;
}, },
subStorageChange(code) { subStorageChange(item) {
this.formData.locStorageCode= this.subInvList.find(item => item.code == code).parentId 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.getBusType();
this.findSubStorageMethod(); this.findSubStorageMethod();
}, },

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

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

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

@ -62,7 +62,6 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="corpName"> <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" <el-input v-if="formData.fromSubInvName !=null" v-model="formData.fromSubInvName"
auto-complete="off" :disabled="true"></el-input> auto-complete="off" :disabled="true"></el-input>
</el-form-item> </el-form-item>
@ -89,7 +88,7 @@
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: -10px;"> <el-row :gutter="20" style="margin-top: -10px;">
<el-col :span="3"> <el-col :span="3">
<div class="ao-text"> <div class="ao-text">
<span>当前分库</span> <span>当前分库</span>
@ -576,6 +575,8 @@ export default {
}; };
this.selectInvProductVisible = true; this.selectInvProductVisible = true;
} else { } else {
this.invQueryData.corpId = this.formData.corpId;
this.thisData.noInvOut = this.formData.noInvOut;
this.selectProductVisible = true; this.selectProductVisible = true;
} }

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

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

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

Loading…
Cancel
Save