|
|
@ -434,13 +434,20 @@
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="2">
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
@click.native.stop="addCode()"
|
|
|
|
@click.native.stop="addCode()"
|
|
|
|
style="margin-left: 15px"
|
|
|
|
style="margin-left: 15px"
|
|
|
|
>添加
|
|
|
|
>扫码添加
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
v-if="curAction.useDyCount == 2"
|
|
|
|
|
|
|
|
@click.native.stop="addInvProduct()"
|
|
|
|
|
|
|
|
>库存选入
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
@ -449,7 +456,6 @@
|
|
|
|
<el-tabs type="border-card" style="margin: 5px">
|
|
|
|
<el-tabs type="border-card" style="margin: 5px">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-tab-pane label="校验详情" v-if="viewCheckVisible || viewType == 7">
|
|
|
|
<el-tab-pane label="校验详情" v-if="viewCheckVisible || viewType == 7">
|
|
|
|
<checkResultPanel
|
|
|
|
<checkResultPanel
|
|
|
|
:idQuery="orderFormData"
|
|
|
|
:idQuery="orderFormData"
|
|
|
@ -600,7 +606,24 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
title="库存物资录入"
|
|
|
|
|
|
|
|
:visible.sync="selectInvProductVisible"
|
|
|
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
|
|
|
width="85%"
|
|
|
|
|
|
|
|
v-if="selectInvProductVisible"
|
|
|
|
|
|
|
|
:append-to-body='true'
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<dialogInvProduct
|
|
|
|
|
|
|
|
:closeDialog="closeDialogC2"
|
|
|
|
|
|
|
|
:invQueryData="invQueryData"
|
|
|
|
|
|
|
|
:type="3"
|
|
|
|
|
|
|
|
></dialogInvProduct>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
@ -635,6 +658,7 @@ import {isBlank} from "@/utils/strUtil";
|
|
|
|
import {getDetailBizs} from "@/api/inout/orderDetailCode";
|
|
|
|
import {getDetailBizs} from "@/api/inout/orderDetailCode";
|
|
|
|
import {filterNoPage, page, remoteFilter} from "@/api/basic/sicker/skPersonApi";
|
|
|
|
import {filterNoPage, page, remoteFilter} from "@/api/basic/sicker/skPersonApi";
|
|
|
|
import {selectSysParamByKey} from "@/api/param/systemParamConfig";
|
|
|
|
import {selectSysParamByKey} from "@/api/param/systemParamConfig";
|
|
|
|
|
|
|
|
import dialogInvProduct from "@/views/inout/DialogSelectInvProduct";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "ioCreateOrder",
|
|
|
|
name: "ioCreateOrder",
|
|
|
@ -740,9 +764,9 @@ export default {
|
|
|
|
action: [
|
|
|
|
action: [
|
|
|
|
{required: true, message: "请选择单据类型", trigger: "change"},
|
|
|
|
{required: true, message: "请选择单据类型", trigger: "change"},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
acceptance: [
|
|
|
|
// acceptance: [
|
|
|
|
{required: true, message: "请选入预验收单据", trigger: "blur"},
|
|
|
|
// {required: true, message: "请选入预验收单据", trigger: "blur"},
|
|
|
|
],
|
|
|
|
// ],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
isScan: true,
|
|
|
|
isScan: true,
|
|
|
|
scanText: "扫码录入:",
|
|
|
|
scanText: "扫码录入:",
|
|
|
@ -782,8 +806,14 @@ export default {
|
|
|
|
spaceCodeList: [],
|
|
|
|
spaceCodeList: [],
|
|
|
|
checkTipDialogVisible: false,
|
|
|
|
checkTipDialogVisible: false,
|
|
|
|
checkTip: null,
|
|
|
|
checkTip: null,
|
|
|
|
|
|
|
|
enableSick: false,
|
|
|
|
|
|
|
|
|
|
|
|
enableSick: false
|
|
|
|
|
|
|
|
|
|
|
|
//库存选入
|
|
|
|
|
|
|
|
selectInvProductVisible: false,
|
|
|
|
|
|
|
|
invQueryData: {
|
|
|
|
|
|
|
|
invCode: null,
|
|
|
|
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
@ -793,7 +823,7 @@ export default {
|
|
|
|
bizDetailPanel,
|
|
|
|
bizDetailPanel,
|
|
|
|
editCodeDialog,
|
|
|
|
editCodeDialog,
|
|
|
|
DialogCreateOrderSelect,
|
|
|
|
DialogCreateOrderSelect,
|
|
|
|
DialogSelectUnit, DialogSelectSpace, selectRlDialog, diSkPrescribePanel
|
|
|
|
DialogSelectUnit, DialogSelectSpace, selectRlDialog, diSkPrescribePanel, dialogInvProduct
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
|
@ -853,6 +883,10 @@ export default {
|
|
|
|
findByInvUser(query)
|
|
|
|
findByInvUser(query)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.busTypeOptions = response.data || [];
|
|
|
|
this.busTypeOptions = response.data || [];
|
|
|
|
|
|
|
|
if (this.busTypeOptions.length == 1) {
|
|
|
|
|
|
|
|
this.orderFormData.action = this.busTypeOptions[0].action;
|
|
|
|
|
|
|
|
this.actionChange(this.orderFormData.action)
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -870,6 +904,7 @@ export default {
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.busTypeOptions = response.data.list || [];
|
|
|
|
this.busTypeOptions = response.data.list || [];
|
|
|
|
this.curAction = this.getActionItem(this.orderFormData.action);
|
|
|
|
this.curAction = this.getActionItem(this.orderFormData.action);
|
|
|
|
|
|
|
|
|
|
|
|
if (isBlank(this.curAction)) {
|
|
|
|
if (isBlank(this.curAction)) {
|
|
|
|
this.curAction = {
|
|
|
|
this.curAction = {
|
|
|
|
corpType: 0,
|
|
|
|
corpType: 0,
|
|
|
@ -1142,6 +1177,22 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addInvProduct() {
|
|
|
|
|
|
|
|
this.invQueryData.invCode = this.orderFormData.invCode;
|
|
|
|
|
|
|
|
this.selectInvProductVisible = true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
closeDialogC2(rData) {
|
|
|
|
|
|
|
|
this.selectInvProductVisible = false;
|
|
|
|
|
|
|
|
if (this.$isNotBlank(rData)) {
|
|
|
|
|
|
|
|
this.codeFormData.code = rData;
|
|
|
|
|
|
|
|
this.addCode();
|
|
|
|
|
|
|
|
// this.codeFormData.code = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this.refreshCodesPanel()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//添加条码
|
|
|
|
//添加条码
|
|
|
|
addCode(event) {
|
|
|
|
addCode(event) {
|
|
|
|