工位上货问题

20240912_adapter_z
yewj 8 months ago
parent 2a39d0724a
commit 2e40ee4406

@ -87,8 +87,6 @@
</el-row> </el-row>
</template> </template>
<script> <script>
@ -102,7 +100,12 @@ import ioSplitFifoCodeBlank from "@/views/collect/ioSplitFifoCodeBlank.vue";
export default { export default {
components: { components: {
DealOrderBlank,IoCreateOrderBlankReturn,IoCreateOrderBlankOut,ioSplitFifoCodeBlank,CollectOrderAllotBlank,CollectOrderEndBlank DealOrderBlank,
IoCreateOrderBlankReturn,
IoCreateOrderBlankOut,
ioSplitFifoCodeBlank,
CollectOrderAllotBlank,
CollectOrderEndBlank
}, },
name: 'CollectOrderTabs', name: 'CollectOrderTabs',
data() { data() {
@ -127,7 +130,7 @@ export default {
component: IoCreateOrderBlankOut, component: IoCreateOrderBlankOut,
// //
componentProps: { componentProps: {
splitType: 'out' fromSplitType: 'out'
} }
}, },
{ {
@ -137,7 +140,7 @@ export default {
component: IoCreateOrderBlankReturn, component: IoCreateOrderBlankReturn,
// //
componentProps: { componentProps: {
splitType: 'return' fromSplitType: 'return'
} }
}, },
{ {
@ -146,9 +149,7 @@ export default {
name: 'ioSplitFifoCodeBlank', name: 'ioSplitFifoCodeBlank',
component: ioSplitFifoCodeBlank, component: ioSplitFifoCodeBlank,
// //
componentProps: { componentProps: {}
}
}, },
{ {
number: 4, number: 4,
@ -156,9 +157,7 @@ export default {
name: 'CollectOrderAllotBlank', name: 'CollectOrderAllotBlank',
component: CollectOrderAllotBlank, component: CollectOrderAllotBlank,
// //
componentProps: { componentProps: {}
}
}, },
{ {
number: 5, number: 5,
@ -166,9 +165,7 @@ export default {
name: 'CollectOrderEndBlank', name: 'CollectOrderEndBlank',
component: CollectOrderEndBlank, component: CollectOrderEndBlank,
// //
componentProps: { componentProps: {}
}
}], }],
editableTabs: [{ editableTabs: [{
number: 0, number: 0,

@ -362,7 +362,7 @@ export default {
type: Object, type: Object,
required: true, required: true,
}, },
splitType: {//splitType fromSplitType: {//splitType
type: Object, type: Object,
required: true, required: true,
}, },
@ -559,7 +559,7 @@ export default {
this.$refs.inputRef.focus(); this.$refs.inputRef.focus();
}, },
successCloseData() { successCloseData() {
let workPlaceCode = this.orderFormData.workPlaceCode let tempData = JSON.parse(JSON.stringify(this.orderFormData));
this.orderFormData = { this.orderFormData = {
billNo: null, billNo: null,
corpOrderId: null, corpOrderId: null,
@ -583,19 +583,18 @@ export default {
fifoSplit: 1, fifoSplit: 1,
} }
this.orderFormData.workPlaceCode = workPlaceCode this.orderFormData.workPlaceCode = tempData.workPlaceCode
this.orderFormData.mainAction = tempData.mainAction
this.orderFormData.action = tempData.action
this.orderFormData.fromCorp = tempData.fromCorp
this.orderFormData.fromDeptCode = tempData.fromDeptCode
this.orderFormData.fromInvCode = tempData.fromInvCode
this.orderFormData.fromInvCode = tempData.fromInvCode
this.orderFormData.deptCode = tempData.deptCode
this.orderFormData.invCode = tempData.invCode
this.scanCode = ""; this.scanCode = "";
this.corpOrderIdDisabled = false; this.corpOrderIdDisabled = false;
this.splitType = this.splitType;
if (this.splitType == "search") {
} else if (this.splitType == "out") {
this.orderFormData.action = 'SC72197936495755';
} else if (this.splitType == "return") {
this.orderFormData.action = 'SC72249388338364';
}
this.orderFormData.fromCorp = "72198012799726";
this.refreshCodesPanel() this.refreshCodesPanel()
}, },
// //
@ -1761,6 +1760,7 @@ export default {
init() { init() {
// //
this.codeFormData.code = ""; this.codeFormData.code = "";
if (this.splitType == "search") { if (this.splitType == "search") {
} else if (this.splitType == "out") { } else if (this.splitType == "out") {
@ -1835,7 +1835,9 @@ export default {
inputer.focus(); inputer.focus();
}, },
created() { created() {
this.splitType = this.splitType; this.splitType = this.$route.query.splitType;
if (this.splitType == null)
this.splitType = this.fromSplitType
this.init(); this.init();
if (this.$route.query.workplaceId != null) { if (this.$route.query.workplaceId != null) {
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true

@ -362,7 +362,7 @@ export default {
type: Object, type: Object,
required: true, required: true,
}, },
splitType: {//splitType fromSplitType: {//splitType
type: Object, type: Object,
required: true, required: true,
}, },
@ -559,7 +559,7 @@ export default {
this.$refs.inputRef.focus(); this.$refs.inputRef.focus();
}, },
successCloseData() { successCloseData() {
let workPlaceCode = this.orderFormData.workPlaceCode let tempData = JSON.parse(JSON.stringify(this.orderFormData));
this.orderFormData = { this.orderFormData = {
billNo: null, billNo: null,
corpOrderId: null, corpOrderId: null,
@ -583,19 +583,18 @@ export default {
fifoSplit: 1, fifoSplit: 1,
} }
this.orderFormData.workPlaceCode = workPlaceCode this.orderFormData.workPlaceCode = tempData.workPlaceCode
this.orderFormData.mainAction = tempData.mainAction
this.orderFormData.action = tempData.action
this.orderFormData.fromCorp = tempData.fromCorp
this.orderFormData.fromDeptCode = tempData.fromDeptCode
this.orderFormData.fromInvCode = tempData.fromInvCode
this.orderFormData.fromInvCode = tempData.fromInvCode
this.orderFormData.deptCode = tempData.deptCode
this.orderFormData.invCode = tempData.invCode
this.scanCode = ""; this.scanCode = "";
this.corpOrderIdDisabled = false; this.corpOrderIdDisabled = false;
this.splitType = this.splitType;
if (this.splitType == "search") {
} else if (this.splitType == "out") {
this.orderFormData.action = 'SC72197936495755';
} else if (this.splitType == "return") {
this.orderFormData.action = 'SC72249388338364';
}
this.orderFormData.fromCorp = "72198012799726";
this.refreshCodesPanel() this.refreshCodesPanel()
}, },
// //
@ -610,7 +609,7 @@ export default {
this.orderFormData.invWarehouseCode == null this.orderFormData.invWarehouseCode == null
) { ) {
//this.orderFormData.invCode = this.curInvOptions[0].code; //this.orderFormData.invCode = this.curInvOptions[0].code;
// this.getBusTypeByInv(); this.getBusTypeByInv();
this.findCurSpaceList(this.orderFormData.invCode); this.findCurSpaceList(this.orderFormData.invCode);
this.findCurWorkPlaces(); this.findCurWorkPlaces();
} }
@ -1761,6 +1760,7 @@ export default {
init() { init() {
// //
this.codeFormData.code = ""; this.codeFormData.code = "";
if (this.splitType == "search") { if (this.splitType == "search") {
} else if (this.splitType == "out") { } else if (this.splitType == "out") {
@ -1835,7 +1835,9 @@ export default {
inputer.focus(); inputer.focus();
}, },
created() { created() {
this.splitType = this.splitType; this.splitType = this.$route.query.splitType;
if (this.splitType == null)
this.splitType = this.fromSplitType
this.init(); this.init();
if (this.$route.query.workplaceId != null) { if (this.$route.query.workplaceId != null) {
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true

Loading…
Cancel
Save