|
|
|
@ -116,30 +116,8 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="query-form-item" prop="fromCorp"
|
|
|
|
|
v-if="curAction.corpType ==1">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="formData.corpName"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
clearable="true" :disabled="codeArray.length>0"
|
|
|
|
|
reserve-keyword
|
|
|
|
|
placeholder="请输入仓库信息"
|
|
|
|
|
:remote-method="findStorageMethod"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
@change="storageChange"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in fromStorageOptions"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:label="item.code"
|
|
|
|
|
:value="item">
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{
|
|
|
|
|
item.code
|
|
|
|
|
}}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
|
|
<el-select v-model="formData.fromSubInvCode" placeholder="请选择分库" clearable="true"
|
|
|
|
|
<el-select v-model="formData.fromSubInvCode" placeholder="请选择仓库" clearable="true"
|
|
|
|
|
:disabled="codeArray.length>0"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
@ -148,7 +126,7 @@
|
|
|
|
|
:label="item.name" :disabled="codeArray.length>0"
|
|
|
|
|
:value="item.code">
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.warehouseName }}</span>
|
|
|
|
|
<!--<span style="float: right; color: #8492a6; font-size: 13px">{{ item.action }}</span>-->
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
@ -171,32 +149,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
<el-form-item prop="locStorageCode">
|
|
|
|
|
<el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" @change="locInChange"
|
|
|
|
|
:disabled="codeArray.length>0"
|
|
|
|
|
clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in storageList"
|
|
|
|
|
:key="item.name"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.code">
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
<span>当前分库:</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
<el-form-item prop="invWarehouseCode">
|
|
|
|
|
<el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息"
|
|
|
|
|
<el-select v-model="formData.invWarehouseCode" placeholder="当前仓库信息"
|
|
|
|
|
:disabled="codeArray.length>0"
|
|
|
|
|
@change="subStorageChange"
|
|
|
|
|
clearable>
|
|
|
|
@ -206,14 +161,12 @@
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.code">
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.warehouseName }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
<span>所属科室:</span>
|
|
|
|
@ -244,8 +197,8 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" style="margin-top: -5px;">
|
|
|
|
|
<el-col :span="3">
|
|
|
|
@ -525,7 +478,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
codeArray: [],
|
|
|
|
|
fromOptions: [],
|
|
|
|
|
fromStorageOptions: [],
|
|
|
|
|
|
|
|
|
|
fromSubStorageOptions: [],
|
|
|
|
|
total: 0,
|
|
|
|
|
loading: false,
|
|
|
|
@ -674,16 +627,7 @@ export default {
|
|
|
|
|
this.findSubStorageMethod();
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
getStorage(event) {
|
|
|
|
|
this.storageList = [];
|
|
|
|
|
filterAllByUser()
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.storageList = response.data || [];
|
|
|
|
|
this.findSubInvs();
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getActionName(action) {
|
|
|
|
|
for (let i = 0; i < this.busTypes.length; i++) {
|
|
|
|
@ -692,30 +636,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
findStorageMethod(query) {
|
|
|
|
|
if (this.formData.locStorageCode == null)
|
|
|
|
|
return;
|
|
|
|
|
this.fromStorageOptions = [];
|
|
|
|
|
let cQuery = {
|
|
|
|
|
locInvCode: this.formData.locStorageCode,
|
|
|
|
|
};
|
|
|
|
|
filterAllByLoc(cQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
let temp = response.data || [];
|
|
|
|
|
for (let i = 0; i < temp.length; i++) {
|
|
|
|
|
if (temp[i].code != this.formData.locStorageCode) {
|
|
|
|
|
this.fromStorageOptions.push(temp[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
findSubStorageMethod() {
|
|
|
|
|
|
|
|
|
|
let cQuery = {
|
|
|
|
|
pcode: this.formData.corpId,
|
|
|
|
|
code: this.formData.invWarehouseCode,
|
|
|
|
|
filter: 2,
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(cQuery)
|
|
|
|
@ -726,22 +651,6 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
findSubInvByInv(invCode) {
|
|
|
|
|
this.subInvList = [];
|
|
|
|
|
let query = {
|
|
|
|
|
pcode: invCode
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.subInvList = response.data || [];
|
|
|
|
|
if (this.subInvList != null && this.subInvList.length == 1) {
|
|
|
|
|
this.formData.invWarehouseCode = this.subInvList[0].code;
|
|
|
|
|
this.getBusType();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
submitFunction(status) {
|
|
|
|
@ -1214,7 +1123,7 @@ export default {
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
getBusType() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( this.formData.id==null){
|
|
|
|
|
this.formData.billType=null;
|
|
|
|
|
}
|
|
|
|
@ -1303,6 +1212,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
subStorageChange() {
|
|
|
|
|
this.findSubStorageMethod();
|
|
|
|
|
this.getBusType();
|
|
|
|
|
},
|
|
|
|
|
invChange() {
|
|
|
|
@ -1314,7 +1224,7 @@ export default {
|
|
|
|
|
findSubInvs() {
|
|
|
|
|
this.subInvList = [];
|
|
|
|
|
let query = {
|
|
|
|
|
pcode: this.formData.locStorageCode
|
|
|
|
|
filter: 3,
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
@ -1383,8 +1293,7 @@ export default {
|
|
|
|
|
if(this.formData.invWarehouseCode!=null){
|
|
|
|
|
this.getBusType();
|
|
|
|
|
}
|
|
|
|
|
this.getStorage();
|
|
|
|
|
this.findSubInvByInv();
|
|
|
|
|
this.findSubInvs();
|
|
|
|
|
this.findSubStorageMethod();
|
|
|
|
|
this.codeArray = [];
|
|
|
|
|
this.closeConfirmFunction(false);
|
|
|
|
|