代码备份

yanshishuju
yewj 7 months ago
parent bbaa752e2b
commit f2e8f300df

@ -330,7 +330,7 @@ import {
submitOrderWeb, submitOrderWeb,
saveOrderWeb, saveOrderWeb,
enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, submitCodeResult, submitCheckResult, delmitBiz, enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, submitCodeResult, submitCheckResult, delmitBiz,
batchVailCode, batchAddCode,batchAddCodeByOrderFinish batchVailCode, batchAddCode, batchAddCodeByOrderFinish
} from "@/api/inout/order"; } from "@/api/inout/order";
import {filterSubAll, findByFrom, findInvByUser} from "@/api/system/invSubWarehouse"; import {filterSubAll, findByFrom, findInvByUser} from "@/api/system/invSubWarehouse";
import {parseTime} from "@/utils/coTools"; import {parseTime} from "@/utils/coTools";
@ -356,7 +356,7 @@ import {printSplitLabel} from "@/api/collect/splitCreateOrder";
import chooseDraftOrderDialog from "./chooseDraftOrderDialog" import chooseDraftOrderDialog from "./chooseDraftOrderDialog"
import {getUserBindWork} from '@/api/basic/collectPoint/userWorkplace' import {getUserBindWork} from '@/api/basic/collectPoint/userWorkplace'
import {getWorkBindBusTypes} from '@/api/basic/workPlace/sysWorkplaceDocuments' import {getWorkBindBusTypes} from '@/api/basic/workPlace/sysWorkplaceDocuments'
import { filterWorkOptimize } from '@/api/basic/workPlace/sysWorkplaceManage' import {filterWorkOptimize} from '@/api/basic/workPlace/sysWorkplaceManage'
export default { export default {
name: "ioCreateOrder", name: "ioCreateOrder",
@ -599,7 +599,12 @@ export default {
codeDetailPanel, codeDetailPanel,
editCodeDialog, editCodeDialog,
DialogCreateOrderSelect, DialogCreateOrderSelect,
DialogSelectUnit, DialogSelectSpace, selectRlDialog, dialogInvProduct, chooseDraftOrderDialog,SelectCollectOrderEndDialog DialogSelectUnit,
DialogSelectSpace,
selectRlDialog,
dialogInvProduct,
chooseDraftOrderDialog,
SelectCollectOrderEndDialog
}, },
methods: { methods: {
changePlace(val) { changePlace(val) {
@ -1931,11 +1936,20 @@ export default {
} }
}); });
this.printMutiCodeResult(list) this.printMutiCodeResult(list)
this.$refs.inputRef.focus();
this.$refs.inputRef.select();
if (this.valiCodes != null && this.valiCodes.length > 0) { if (this.valiCodes != null && this.valiCodes.length > 0) {
if (this.$isBlank(this.orderFormData.corpOrderId)) {
let date = new Date();
this.orderFormData.corpOrderId =
parseTime(date, "{y}{m}{d}{h}{i}{s}") +
Math.ceil(Math.random() * 89 + 10);
}
this.orderFormData.codeList = this.valiCodes this.orderFormData.codeList = this.valiCodes
batchAddCode(this.orderFormData).then((res) => { batchAddCode(this.orderFormData).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {
this.$refs.inputRef.focus();
this.orderFormData.billNo = res.data.orderId; this.orderFormData.billNo = res.data.orderId;
this.refreshCodesPanel(this); this.refreshCodesPanel(this);
this.printMutiCodeResult(res.data.vailCodeResultResponses) this.printMutiCodeResult(res.data.vailCodeResultResponses)
@ -1948,7 +1962,7 @@ export default {
// this.scanCode = this.valiCodes.join(";"); // this.scanCode = this.valiCodes.join(";");
}); });
}, },
batchAddCodeByOrderFinish(orderFinishBillNo){ batchAddCodeByOrderFinish(orderFinishBillNo) {
this.orderFormData.orderFinishBillNo = orderFinishBillNo this.orderFormData.orderFinishBillNo = orderFinishBillNo
batchAddCodeByOrderFinish(this.orderFormData).then((res) => { batchAddCodeByOrderFinish(this.orderFormData).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {
@ -2035,8 +2049,8 @@ export default {
this.workplaceId = this.$route.query.workplaceId this.workplaceId = this.$route.query.workplaceId
this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId); this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId);
this.orderFormData.splitBusType = "YPCF002" this.orderFormData.splitBusType = "YPCF002"
}else { } else {
if (this.orderQuery != null){ if (this.orderQuery != null) {
this.orderFormData.workPlaceCode = String(this.orderQuery.workPlaceCode); this.orderFormData.workPlaceCode = String(this.orderQuery.workPlaceCode);
// if (this.orderQuery.splitBusType != null){ // if (this.orderQuery.splitBusType != null){
// this.orderFormData.busType = this.orderQuery.splitBusType; // this.orderFormData.busType = this.orderQuery.splitBusType;

Loading…
Cancel
Save