修改单据产品录入问题

zhairh
郑明梁 3 years ago
parent f4807835cb
commit a74fcb5761

@ -1203,6 +1203,7 @@ export default {
this.detailList.forEach((item, index, array) => { this.detailList.forEach((item, index, array) => {
this.detailList[index].isAdavence=item.adavence this.detailList[index].isAdavence=item.adavence
this.detailList[index].isDisable=item.disable 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;
} }

@ -604,6 +604,9 @@ export default {
this.detailList = []; this.detailList = [];
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
this.list = [];
this.total = 0;
this.detailList = [];
} }
}) })
.catch(() => { .catch(() => {
@ -797,6 +800,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-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>
@ -570,7 +569,6 @@ export default {
}); });
}, },
selectProductFunction(event) { selectProductFunction(event) {
if (event == null) { if (event == null) {
// this.$refs.inputRef.focus(); // this.$refs.inputRef.focus();
} else { } else {
@ -609,10 +607,10 @@ 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;
} }
return; return;
} }
this.code = this.code.trim(); this.code = this.code.trim();

@ -641,6 +641,8 @@ export default {
this.detailList = []; this.detailList = [];
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
this.list = [];
this.total = 0;
} }
}) })
.catch(() => { .catch(() => {
@ -871,6 +873,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,

Loading…
Cancel
Save