|
|
@ -73,26 +73,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="2">
|
|
|
|
<el-col :span="2">
|
|
|
|
<div class="ao-text">
|
|
|
|
<div class="ao-text">
|
|
|
|
<span>当前仓库:</span>
|
|
|
|
<span>当前分库:</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item prop="locStorageCode">
|
|
|
|
<el-form-item prop="invWarehouseCode">
|
|
|
|
<el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" @change="locCHange"
|
|
|
|
<el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息"
|
|
|
|
:disabled="corpOrderIdDisabled">
|
|
|
|
:disabled="corpOrderIdDisabled" @change="findSubStorageMethod" filterable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in storageList"
|
|
|
|
v-for="item in subInvList"
|
|
|
|
:key="item.name"
|
|
|
|
:key="item.name"
|
|
|
|
:label="item.name"
|
|
|
|
:label="item.name"
|
|
|
|
:value="item.code">
|
|
|
|
:value="item.code">
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.warehouseName }}</span>
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-row :gutter="20">
|
|
|
@ -132,37 +134,17 @@
|
|
|
|
<el-form-item class="query-form-item" prop="fromCorp"
|
|
|
|
<el-form-item class="query-form-item" prop="fromCorp"
|
|
|
|
v-if="curAction.corpType ==1"
|
|
|
|
v-if="curAction.corpType ==1"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="formData.fromCorp"
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
remote
|
|
|
|
|
|
|
|
clearable="true"
|
|
|
|
|
|
|
|
reserve-keyword
|
|
|
|
|
|
|
|
placeholder="请输入仓库信息"
|
|
|
|
|
|
|
|
:remote-method="findStorageMethod"
|
|
|
|
|
|
|
|
:loading="loading" :disabled="corpOrderIdDisabled"
|
|
|
|
|
|
|
|
@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="corpOrderIdDisabled" filterable
|
|
|
|
:disabled="corpOrderIdDisabled">
|
|
|
|
>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in fromSubStorageOptions"
|
|
|
|
v-for="item in fromSubStorageOptions"
|
|
|
|
:key="item.code"
|
|
|
|
:key="item.code"
|
|
|
|
:label="item.name"
|
|
|
|
:label="item.name"
|
|
|
|
:value="item.code">
|
|
|
|
:value="item.code">
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
<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>-->
|
|
|
|
<!--<span style="float: right; color: #8492a6; font-size: 13px">{{ item.action }}</span>-->
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
@ -177,27 +159,6 @@
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="2">
|
|
|
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
|
|
|
<span>当前分库:</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item prop="invWarehouseCode">
|
|
|
|
|
|
|
|
<el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息"
|
|
|
|
|
|
|
|
:disabled="corpOrderIdDisabled" @change="subStorageChange">
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in subInvList"
|
|
|
|
|
|
|
|
: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-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" v-if="enableDept">
|
|
|
|
<el-row :gutter="20" v-if="enableDept">
|
|
|
@ -603,10 +564,7 @@ export default {
|
|
|
|
this.$message.error('未选择扫码单据类型');
|
|
|
|
this.$message.error('未选择扫码单据类型');
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.formData.locStorageCode == null || this.formData.locStorageCode == '') {
|
|
|
|
|
|
|
|
this.$message.error('当前仓库不能为空');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
|
|
|
|
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
|
|
|
|
this.$message.error('当前分库不能为空');
|
|
|
|
this.$message.error('当前分库不能为空');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -717,20 +675,16 @@ export default {
|
|
|
|
this.$message.warning("请选择单据类型!");
|
|
|
|
this.$message.warning("请选择单据类型!");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.$isBlank(this.formData.locStorageCode)) {
|
|
|
|
|
|
|
|
this.$message.error('当前仓库不能为空');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
|
|
|
|
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
|
|
|
|
this.$message.error('当前分库不能为空');
|
|
|
|
this.$message.error('当前分库不能为空');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (this.$isBlank(this.formData.fromCorp)) {
|
|
|
|
// if (this.$isBlank(this.formData.fromCorp)) {
|
|
|
|
this.$message.error('当前往来单位不能为空');
|
|
|
|
// this.$message.error('当前往来单位不能为空');
|
|
|
|
return;
|
|
|
|
// return;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
if (this.curAction.corpType == 1) {
|
|
|
|
if (this.curAction.corpType == 1) {
|
|
|
|
if (this.$isBlank(this.formData.fromSubInvCode)) {
|
|
|
|
if (this.$isBlank(this.formData.fromSubInvCode)) {
|
|
|
@ -1026,8 +980,9 @@ export default {
|
|
|
|
,
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
findSubStorageMethod() {
|
|
|
|
findSubStorageMethod() {
|
|
|
|
|
|
|
|
this.getBusType();
|
|
|
|
let cQuery = {
|
|
|
|
let cQuery = {
|
|
|
|
pcode: this.formData.fromCorpId,
|
|
|
|
code: this.formData.invWarehouseCode,
|
|
|
|
filter: 2,
|
|
|
|
filter: 2,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
filterSubByInv(cQuery)
|
|
|
|
filterSubByInv(cQuery)
|
|
|
@ -1043,7 +998,7 @@ export default {
|
|
|
|
findSubInvByInv(invCode) {
|
|
|
|
findSubInvByInv(invCode) {
|
|
|
|
this.subInvList = [];
|
|
|
|
this.subInvList = [];
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
pcode: invCode
|
|
|
|
filter:3
|
|
|
|
};
|
|
|
|
};
|
|
|
|
filterSubByInv(query)
|
|
|
|
filterSubByInv(query)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
@ -1072,8 +1027,6 @@ export default {
|
|
|
|
this.fromDeptOptions = [];
|
|
|
|
this.fromDeptOptions = [];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getStorage(event) {
|
|
|
|
getStorage(event) {
|
|
|
|
this.storageList = [];
|
|
|
|
this.storageList = [];
|
|
|
|
filterAllByUser()
|
|
|
|
filterAllByUser()
|
|
|
@ -1272,6 +1225,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.findSubInvByInv(this.formData.locStorageCode);
|
|
|
|
this.findSubInvByInv(this.formData.locStorageCode);
|
|
|
|
|
|
|
|
this.findSubStorageMethod();
|
|
|
|
if(this.formData.invWarehouseCode!=null){
|
|
|
|
if(this.formData.invWarehouseCode!=null){
|
|
|
|
this.getBusType();
|
|
|
|
this.getBusType();
|
|
|
|
}
|
|
|
|
}
|
|
|
|