|
|
|
@ -116,9 +116,7 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="query-form-item" prop="fromCorp"
|
|
|
|
|
v-if="curAction.corpType ==1">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-select v-model="formData.fromSubInvCode" placeholder="请选择分库" filterable clearable="true"
|
|
|
|
|
<el-select v-model="formData.fromSubInvCode" placeholder="请选择分库" @change="setCorpName" filterable clearable="true"
|
|
|
|
|
:disabled="codeArray.length>0"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
@ -619,16 +617,7 @@ export default {
|
|
|
|
|
this.findSubStorageMethod();
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
getStorage(event) {
|
|
|
|
|
this.storageList = [];
|
|
|
|
|
filterAllByUser()
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.storageList = response.data || [];
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getActionName(action) {
|
|
|
|
|
for (let i = 0; i < this.busTypes.length; i++) {
|
|
|
|
@ -687,9 +676,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
findSubInvByInv(invCode) {
|
|
|
|
|
|
|
|
|
|
this.subInvList = [];
|
|
|
|
|
let query = {
|
|
|
|
|
pcode: invCode
|
|
|
|
|
pcode: invCode,
|
|
|
|
|
filter:3
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
@ -769,8 +760,16 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
if (this.$isBlank(event)) {
|
|
|
|
|
|
|
|
|
|
if (this.$isBlank(this.formData.corpName) || this.$isBlank(this.formData.billType)) {
|
|
|
|
|
this.$message.error("往来信息和单据类型不能为空!")
|
|
|
|
|
if ( this.$isBlank(this.formData.billType)) {
|
|
|
|
|
this.$message.error("单据类型不能为空!")
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(this.curAction.corpType==1 && this.$isBlank(this.formData.fromSubInvCode)){
|
|
|
|
|
this.$message.error("往来单位不能不能为空!")
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(this.curAction.corpType!=1 && this.$isBlank(this.formData.corpName)){
|
|
|
|
|
this.$message.error("往来单位不能不能为空!")
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.$isBlank(this.formData.invWarehouseCode)) {
|
|
|
|
@ -1079,6 +1078,10 @@ export default {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
setCorpName(code){
|
|
|
|
|
this.formData.corpId=code
|
|
|
|
|
this.formData.corpName= this.fromSubStorageOptions.find(item => item.code == code).name
|
|
|
|
|
},
|
|
|
|
|
copyDetail(row) {
|
|
|
|
|
this.$confirm("是否复制该记录?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
@ -1265,7 +1268,7 @@ export default {
|
|
|
|
|
findSubInvs() {
|
|
|
|
|
this.subInvList = [];
|
|
|
|
|
let query = {
|
|
|
|
|
pcode: this.formData.locStorageCode
|
|
|
|
|
filter:3
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
@ -1318,7 +1321,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.findMethod();
|
|
|
|
|
this.getBusType();
|
|
|
|
|
this.getStorage();
|
|
|
|
|
this.findSubInvByInv();
|
|
|
|
|
this.findSubStorageMethod();
|
|
|
|
|
this.codeArray = [];
|
|
|
|
|