|
|
|
@ -72,9 +72,6 @@
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="locStorageCode">
|
|
|
|
|
<!--<el-select v-model="formData.billType" style="width: 100%" placeholder="业务类型" :disabled="true">-->
|
|
|
|
|
<!--<el-option label="送货单" value="deliveryNote"></el-option>-->
|
|
|
|
|
<!--</el-select>-->
|
|
|
|
|
<el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" @change="locCHange">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in storageList"
|
|
|
|
@ -143,6 +140,19 @@
|
|
|
|
|
<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-option
|
|
|
|
|
v-for="item in fromSubStorageOptions"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
: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.action }}</span>-->
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="query-form-item" prop="fromCorp"
|
|
|
|
|
v-if="curAction.corpType ==2">
|
|
|
|
@ -152,6 +162,28 @@
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<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="当前分库信息"
|
|
|
|
|
>
|
|
|
|
|
<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-form>
|
|
|
|
|
|
|
|
|
@ -193,6 +225,7 @@ import {parseTime} from "@/filtres";
|
|
|
|
|
import {getLocalJoinByUser} from "@/api/basic/busLocalType";
|
|
|
|
|
import {submitOrderWeb} from "@/api/warehouse/order";
|
|
|
|
|
import {stockOrderChange, stockOrderDetail} from "@/api/warehouse/stockOrder";
|
|
|
|
|
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "DialogcChangeNewOrder",
|
|
|
|
@ -221,6 +254,7 @@ export default {
|
|
|
|
|
mainAction: null
|
|
|
|
|
},
|
|
|
|
|
fromStorageOptions: [],
|
|
|
|
|
fromSubStorageOptions: [],
|
|
|
|
|
curAction: {
|
|
|
|
|
corpType: 0,
|
|
|
|
|
genUnit: false,
|
|
|
|
@ -228,7 +262,11 @@ export default {
|
|
|
|
|
busTypes: [],
|
|
|
|
|
fromOptions: [],
|
|
|
|
|
loading: false,
|
|
|
|
|
detailList: []
|
|
|
|
|
detailList: [],
|
|
|
|
|
storageList: [],
|
|
|
|
|
detailLoading: false,
|
|
|
|
|
subInvList: [],
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -271,6 +309,9 @@ export default {
|
|
|
|
|
mainAction: this.formData.mainAction,
|
|
|
|
|
fromCorp: this.formData.fromCorp,
|
|
|
|
|
fromCorpId: this.formData.fromCorpId,
|
|
|
|
|
invWarehouseCode: this.formData.invWarehouseCode,
|
|
|
|
|
fromSubInvCode: this.formData.fromSubInvCode,
|
|
|
|
|
|
|
|
|
|
products: products
|
|
|
|
|
};
|
|
|
|
|
stockOrderChange(tQuery)
|
|
|
|
@ -288,6 +329,21 @@ export default {
|
|
|
|
|
|
|
|
|
|
locCHange() {
|
|
|
|
|
this.findStorageMethod();
|
|
|
|
|
this.findSubInvByInv(this.formData.locStorageCode);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
findSubInvByInv(invCode) {
|
|
|
|
|
this.subInvList = [];
|
|
|
|
|
let query = {
|
|
|
|
|
pcode: invCode
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.subInvList = response.data || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
findStorageMethod(query) {
|
|
|
|
@ -304,7 +360,18 @@ export default {
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
findSubStorageMethod() {
|
|
|
|
|
let cQuery = {
|
|
|
|
|
pcode: this.formData.fromCorpId,
|
|
|
|
|
filter: 2,
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(cQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.fromSubStorageOptions = response.data || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
findMethod(query) {
|
|
|
|
|
this.fromOptions = [];
|
|
|
|
|
let cQuery = {
|
|
|
|
@ -345,6 +412,7 @@ export default {
|
|
|
|
|
storageChange(row) {
|
|
|
|
|
this.formData.fromCorpId = row.code;
|
|
|
|
|
this.formData.fromCorp = row.name;
|
|
|
|
|
this.findSubStorageMethod();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
unitChange(row) {
|
|
|
|
|