预验收按单退回

prod
anthonywj 2 years ago
parent da785d4026
commit 04167f9417

@ -24,12 +24,10 @@
<el-button size="mini" type="primary" @click.native="submit()" <el-button size="mini" type="primary" @click.native="submit()"
>立即提交 >立即提交
</el-button> </el-button>
<el-button size="mini" type="primary" @click.native="submit(1)" <el-button size="mini" type="primary" @click.native="submit(1)"
v-if="curAction.checkWebNew == 3" v-if="curAction.checkWebNew == 3"
>未配货提交 >未配货提交
</el-button> </el-button>
</el-button-group> </el-button-group>
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
@ -211,6 +209,58 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="preSpaceShow">
<el-col :span="11">
<el-form-item prop="checkPreInInvCode" label="预验收仓库:">
<el-select
v-model="orderFormData.checkPreInInvCode"
placeholder="预验收仓库"
style="width: 90%"
:disabled="corpOrderIdDisabled"
@change="changePreInInv"
filterable
>
<el-option
v-for="item in curPreInInvOptions"
:key="item.name"
: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>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item prop="checkPreInSpaceCode" label="预验收货位:">
<el-select
v-model="orderFormData.checkPreInSpaceCode"
placeholder="预验收货位"
style="width: 90%"
:disabled="corpOrderIdDisabled"
filterable
>
<el-option
v-for="item in curPreInSpaceOptions"
:key="item.name"
: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>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row v-if="errView == 1"> <el-row v-if="errView == 1">
<el-col :span="20"> <el-col :span="20">
<el-form-item prop="errMsg" label="异常信息:"> <el-form-item prop="errMsg" label="异常信息:">
@ -324,7 +374,7 @@ import {
updateCodeBindSup, updateCodeBindSup,
enterCodeWeb, submitAllocateBiz, enterCodeWeb, submitAllocateBiz,
} from "../../api/inout/order"; } from "../../api/inout/order";
import {findByFrom, findInvByUser} from "../../api/system/invSubWarehouse"; import {filterSubAll, findByFrom, findInvByUser} from "../../api/system/invSubWarehouse";
import {parseTime} from "../../utils/coTools"; import {parseTime} from "../../utils/coTools";
import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain";
import editCodeDialog from "./DialogEditCode"; import editCodeDialog from "./DialogEditCode";
@ -335,6 +385,7 @@ import codeDetailPanel from "./PanelCreateOrderCodeDetail";
import bizDetailPanel from "./PanelCreateOrderBizDetail"; import bizDetailPanel from "./PanelCreateOrderBizDetail";
import A from "../../plugins/KeyScaner"; import A from "../../plugins/KeyScaner";
import {findByInvUser} from "@/api/basic/busType"; import {findByInvUser} from "@/api/basic/busType";
import {getInvSpaceList} from "@/api/inventory/invSpace";
export default { export default {
name: "ioCreateOrder", name: "ioCreateOrder",
@ -371,6 +422,8 @@ export default {
fromType: 2, fromType: 2,
errMsg: null, errMsg: null,
checkPreInOrders: null, checkPreInOrders: null,
checkPreInInvCode: null,
checkPreInSpaceCode: null,
}, },
checkPreInArray: [], checkPreInArray: [],
errView: 0, errView: 0,
@ -388,6 +441,12 @@ export default {
curInvOptions: [], curInvOptions: [],
busTypeOptions: [], busTypeOptions: [],
fromInvOptions: [], fromInvOptions: [],
preSpaceShow: false, //
curPreInInvOptions: [], //
curPreInSpaceOptions: [], //
curAction: { curAction: {
corpType: 0, corpType: 0,
genUnit: false, genUnit: false,
@ -577,6 +636,7 @@ export default {
this.orderFormData.checkPreInOrders = null; this.orderFormData.checkPreInOrders = null;
this.checkPreInArray = []; this.checkPreInArray = [];
this.curAction = this.getActionItem(item); this.curAction = this.getActionItem(item);
debugger
if ((this.curAction.checkEnable && this.curAction.checkWebNew != 0) || this.viewType == 1) { if ((this.curAction.checkEnable && this.curAction.checkWebNew != 0) || this.viewType == 1) {
// 1 // 1
this.bizShow = true; this.bizShow = true;
@ -596,8 +656,12 @@ export default {
} }
if (this.curAction.scanPreIn && this.curAction.backPreinType == 1 && this.curAction.preInBack) { if (this.curAction.scanPreIn && this.curAction.backPreinType == 1 && this.curAction.preInBack) {
this.documentShow = true; this.documentShow = true;
} else if (this.curAction.scanPreIn && this.curAction.backPreinType == 2 && this.curAction.preInBack) {
this.preSpaceShow = true;
this.findPreInInvList();
} else { } else {
this.documentShow = false; this.documentShow = false;
this.preSpaceShow = false;
} }
}, },
@ -626,6 +690,36 @@ export default {
} }
}, },
//
changePreInInv(row) {
this.findPreInSpaceList(row.code);
},
//
findPreInInvList() {
let query = {
advanceType: 2,
}
filterSubAll(query)
.then((response) => {
this.curPreInInvOptions = response.data || [];
})
.catch(() => {
});
},
//
findPreInSpaceList(val) {
let query = {
invStorageCode: val,
status: 1,
}
getInvSpaceList(query).then((res) => {
this.curPreInSpaceOptions = res.data.list || [];
})
},
// //
addCode(event) { addCode(event) {
this.originCode = ""; this.originCode = "";

Loading…
Cancel
Save