|
|
|
@ -188,11 +188,15 @@
|
|
|
|
|
<el-row v-if="documentShow">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item prop="acceptance" label="预验收单据:">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width:90%"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
v-model="orderFormData.checkPreInOrders"
|
|
|
|
|
></el-input>
|
|
|
|
|
<el-select style="width: 90%" v-model="orderFormData.checkPreInOrders" multiple placeholder="请选入单据">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="(item,index) in orderFormData.checkPreInOrders"
|
|
|
|
|
:key="item.index"
|
|
|
|
|
:label="item"
|
|
|
|
|
:value="item"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -292,6 +296,7 @@
|
|
|
|
|
<dialog-create-order-select
|
|
|
|
|
@giveselectbox="giveselectbox"
|
|
|
|
|
:closeDialogtwo="closeDialogtwo"
|
|
|
|
|
:checkPreInOrders="orderFormData.checkPreInOrders"
|
|
|
|
|
>
|
|
|
|
|
</dialog-create-order-select>
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -399,9 +404,9 @@ export default {
|
|
|
|
|
action: [
|
|
|
|
|
{ required: true, message: "请选择单据类型", trigger: "change" },
|
|
|
|
|
],
|
|
|
|
|
acceptance:[
|
|
|
|
|
{required: true, message: "请选入预验收单据", trigger: "blur"},
|
|
|
|
|
]
|
|
|
|
|
acceptance: [
|
|
|
|
|
{ required: true, message: "请选入预验收单据", trigger: "blur" },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
isScan: true,
|
|
|
|
|
scanText: "扫码录入:",
|
|
|
|
@ -430,8 +435,8 @@ export default {
|
|
|
|
|
viewBizVisible: false,
|
|
|
|
|
viewCodeVisible: false,
|
|
|
|
|
viewCodeDetailVisible: false,
|
|
|
|
|
|
|
|
|
|
documentShow:false,//控制预选单显示隐藏
|
|
|
|
|
|
|
|
|
|
documentShow: false, //控制预选单显示隐藏
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
@ -459,15 +464,16 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
//接收预选单传值
|
|
|
|
|
//接收预验单传值
|
|
|
|
|
giveselectbox(val) {
|
|
|
|
|
this.orderFormData.checkPreInOrders = val;
|
|
|
|
|
},
|
|
|
|
|
this.orderFormData.checkPreInOrders = JSON.parse(JSON.stringify(val))
|
|
|
|
|
},
|
|
|
|
|
//仓库改变
|
|
|
|
|
changeInv() {
|
|
|
|
|
this.orderFormData.action = null;
|
|
|
|
|
if(this.documentShow=true){
|
|
|
|
|
this.documentShow=false
|
|
|
|
|
this.orderFormData.checkPreInOrders=null
|
|
|
|
|
if ((this.documentShow = true)) {
|
|
|
|
|
this.documentShow = false;
|
|
|
|
|
}
|
|
|
|
|
this.getBusTypeByInv();
|
|
|
|
|
},
|
|
|
|
@ -547,6 +553,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
//单据类型改变
|
|
|
|
|
actionChange(item) {
|
|
|
|
|
this.orderFormData.checkPreInOption=null
|
|
|
|
|
this.orderFormData.checkPreInOrders=null
|
|
|
|
|
this.curAction = this.getActionItem(item);
|
|
|
|
|
if (
|
|
|
|
|
(this.curAction.checkEnable && this.curAction.checkWebNew) ||
|
|
|
|
@ -568,14 +576,13 @@ export default {
|
|
|
|
|
this.orderFormData.fromInvCode = null;
|
|
|
|
|
this.findFromInvList();
|
|
|
|
|
}
|
|
|
|
|
if(this.curAction.scanPreIn = true && this.curAction.backPreinType == 1){
|
|
|
|
|
this.documentShow=true
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
this.documentShow=false
|
|
|
|
|
if (
|
|
|
|
|
(this.curAction.scanPreIn = true && this.curAction.backPreinType == 1)
|
|
|
|
|
) {
|
|
|
|
|
this.documentShow = true;
|
|
|
|
|
} else {
|
|
|
|
|
this.documentShow = false;
|
|
|
|
|
}
|
|
|
|
|
this.giveselectbox();
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//获取往来仓库列表
|
|
|
|
|