fix: 修改

20240912_adapter_z
chenhc 11 months ago
parent 8cdc58b3ae
commit 9b01797ad7

@ -7,9 +7,7 @@
<span <span
style="margin: 10px;color: #2d8cf0;font-size: 14px;" style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span> >部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{ <span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName this.userInfo.companyName
}}</span> }}</span>

@ -219,10 +219,10 @@
<!-- 分割线 --> <!-- 分割线 -->
<el-form :model="filterQuery" class="query-form" size="mini" label-width="100px" :inline="true" <el-form :model="filterQuery" class="query-form" size="mini" label-width="100px" :inline="true"
style="margin-top: 15px"> style="margin-top: 15px">
<el-form-item prop="key" label="采集工位:"> <el-form-item prop="key" label="作业工位:">
<el-select <el-select
v-model="filterQuery.workPlaceCode" v-model="filterQuery.workPlaceCode"
placeholder="请选择采集工位" placeholder="请选择作业工位"
filterable filterable
remote remote
clearable> clearable>

@ -1,15 +1,19 @@
<template> <template>
<div> <div>
<el-row :gutter="0" v-if="isLinkDisabled"> <el-row :gutter="0" v-if="isLinkDisabled" style="margin-top: 15px">
<el-col :span="24" align="right"> <el-col :span="24" align="right">
<div class="inv-hos-title"> <div class="inv-hos-title">
<span <span
style="margin: 10px;color: #2d8cf0;font-size: 14px;" style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span> >部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName
}}</span>
<span <span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px" style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"
>&nbsp&nbsp&nbsp&nbsp(用户&nbsp:&nbsp{{ >({{
this.userInfo.userName this.userInfo.userName
}})</span> }})</span>
</div> </div>
@ -18,10 +22,20 @@
<prescribePanel <el-tabs type="border-card" style="margin: 15px">
:RowType="type"
<el-tab-pane label="已完成赋码单据">
<prescribePanel
style="margin: -15px"
></prescribePanel> ></prescribePanel>
</el-tab-pane>
<el-tab-pane label="扫码查询">
<codePanel style="margin: -15px"
></codePanel>
</el-tab-pane>
</el-tabs>
</div> </div>

@ -412,17 +412,17 @@ export default {
}, },
methods: { methods: {
getBillNo(billNo, workPlaceCode) { getBillNo(billNo) {
let post = { let post = {
billNo: billNo, billNo: billNo,
workPlaceCode: workPlaceCode, workPlaceCode: this.workplaceId,
page: 1, page: 1,
limit: 10, limit: 10,
} }
findByBill(post).then(res => { findByBill(post).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
if (res.data.list.length > 0) { if (res.data.billNo != null) {
this.formData = res.data.list[0] this.formData = res.data
} }
} }
}) })
@ -440,8 +440,12 @@ export default {
if (res.code == 20000) { if (res.code == 20000) {
this.busTypeList = res.data.list this.busTypeList = res.data.list
this.busTypeTotal = res.data.total this.busTypeTotal = res.data.total
if (this.busTypeList.length == 1) {
if (this.formData.billNo != null) {
this.getBillNo(this.formData.billNo)
this.startDeal();
} else {
if (this.busTypeList.length == 1) {
let busType = this.busTypeList[0] let busType = this.busTypeList[0]
this.formData.busType = this.busTypeList[0].documentTypeCode this.formData.busType = this.busTypeList[0].documentTypeCode
this.selectBusTypeDisabled = false this.selectBusTypeDisabled = false
@ -449,16 +453,12 @@ export default {
if (this.formDataVisible.scanType == 1) { if (this.formDataVisible.scanType == 1) {
this.findFromInvList(""); this.findFromInvList("");
} }
if (this.formData.billNo != null) {
this.getBillNo(this.formData.billNo, this.formData.workplaceCode)
this.startDeal();
} else { } else {
this.formData.busType = null
}
this.findCurOrder(); this.findCurOrder();
} }
} else {
this.formData.busType = null
}
} }
return return
}) })
@ -902,7 +902,9 @@ export default {
} }
if (this.$route.query.workplaceId != null) { if (this.$route.query.workplaceId != null) {
this.isLinkDisabled = true this.isLinkDisabled = true
if (this.$route.query.billNo == null) {
this.selectBusTypeDisabled = true this.selectBusTypeDisabled = true
}
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true
this.workplaceId = Number(this.$route.query.workplaceId); this.workplaceId = Number(this.$route.query.workplaceId);
this.formData.workPlaceCode = Number(this.$route.query.workplaceId); this.formData.workPlaceCode = Number(this.$route.query.workplaceId);

@ -415,17 +415,17 @@ export default {
}, },
methods: { methods: {
getBillNo(billNo, workPlaceCode) { getBillNo(billNo) {
let post = { let post = {
billNo: billNo, billNo: billNo,
workPlaceCode: workPlaceCode, workPlaceCode: this.workplaceId,
page: 1, page: 1,
limit: 10, limit: 10,
} }
findByBill(post).then(res => { findByBill(post).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
if (res.data.list.length > 0) { if (res.data.billNo != null) {
this.formData = res.data.list[0] this.formData = res.data
} }
} }
}) })
@ -443,8 +443,12 @@ export default {
if (res.code == 20000) { if (res.code == 20000) {
this.busTypeList = res.data.list this.busTypeList = res.data.list
this.busTypeTotal = res.data.total this.busTypeTotal = res.data.total
if (this.busTypeList.length == 1) {
if (this.formData.billNo != null) {
this.getBillNo(this.formData.billNo)
this.startDeal();
} else {
if (this.busTypeList.length == 1) {
let busType = this.busTypeList[0] let busType = this.busTypeList[0]
this.formData.busType = this.busTypeList[0].documentTypeCode this.formData.busType = this.busTypeList[0].documentTypeCode
this.selectBusTypeDisabled = false this.selectBusTypeDisabled = false
@ -452,16 +456,12 @@ export default {
if (this.formDataVisible.scanType == 1) { if (this.formDataVisible.scanType == 1) {
this.findFromInvList(""); this.findFromInvList("");
} }
if (this.formData.billNo != null) {
this.getBillNo(this.formData.billNo, this.formData.workplaceCode)
this.startDeal();
} else { } else {
this.formData.busType = null
}
this.findCurOrder(); this.findCurOrder();
} }
} else {
this.formData.busType = null
}
} }
return return
}) })
@ -905,7 +905,9 @@ export default {
} }
if (this.$route.query.workplaceId != null) { if (this.$route.query.workplaceId != null) {
this.isLinkDisabled = true this.isLinkDisabled = true
if (this.$route.query.billNo == null) {
this.selectBusTypeDisabled = true this.selectBusTypeDisabled = true
}
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true
this.workplaceId = Number(this.$route.query.workplaceId); this.workplaceId = Number(this.$route.query.workplaceId);
this.formData.workPlaceCode = Number(this.$route.query.workplaceId); this.formData.workPlaceCode = Number(this.$route.query.workplaceId);

@ -14,9 +14,7 @@
<span <span
style="margin: 10px;color: #2d8cf0;font-size: 14px;" style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span> >部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{ <span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName this.userInfo.companyName
}}</span> }}</span>
@ -313,6 +311,7 @@ import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage";
import {printSplitLabel} from "@/api/collect/splitCreateOrder"; import {printSplitLabel} from "@/api/collect/splitCreateOrder";
import {findInvRemind} from "@/api/inout/splitCode"; import {findInvRemind} from "@/api/inout/splitCode";
import chooseDraftOrderDialog from "./chooseDraftOrderDialog" import chooseDraftOrderDialog from "./chooseDraftOrderDialog"
import {getUserBindWork} from '@/api/basic/collectPoint/userWorkplace'
export default { export default {
name: "ioCreateOrder", name: "ioCreateOrder",
@ -367,6 +366,7 @@ export default {
inv: this.$store.getters.locInvName, inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName, deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name, userName: this.$store.getters.name,
userId: this.$store.getters.userId,
companyName: this.$store.getters.companyName, companyName: this.$store.getters.companyName,
}, },
workplaceId: null, workplaceId: null,
@ -954,13 +954,13 @@ export default {
// //
findCurWorkPlaces(val) { findCurWorkPlaces(val) {
let query = { let query = {
key: val, // key: val,
status: 1, // status: 1,
// invCode: this.orderFormData.invCode, userId: this.userInfo.userId,
page: 1, page: 1,
limit: 100, limit: 100,
} }
listPage(query).then((res) => { getUserBindWork(query).then((res) => {
this.curWorkPlaces = res.data.list || []; this.curWorkPlaces = res.data.list || [];
if (this.curWorkPlaces.length == 1 && this.$isNotBlank(this.orderFormData.workPlaceCode)) { if (this.curWorkPlaces.length == 1 && this.$isNotBlank(this.orderFormData.workPlaceCode)) {
this.orderFormData.workPlaceCode = this.curWorkPlaces[0].workplaceId; this.orderFormData.workPlaceCode = this.curWorkPlaces[0].workplaceId;

@ -14,9 +14,7 @@
<span <span
style="margin: 10px;color: #2d8cf0;font-size: 14px;" style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span> >部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{ <span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName this.userInfo.companyName
}}</span> }}</span>
@ -45,11 +43,11 @@
<!--&gt;草稿保存--> <!--&gt;草稿保存-->
<!--</el-button>--> <!--</el-button>-->
<el-button size="mini" type="primary" @click.native="chooseDraftOrder()" :loading="submitLoading" <el-button size="mini" type="primary" @click.native="chooseDraftOrder()" :loading="submitLoading"
v-if="splitType=='out'"style="margin-right: 8px;border-radius: 5%;" v-if="splitType=='out'" style="margin-right: 8px;border-radius: 5%;"
>选入草稿单据 >选入草稿单据
</el-button> </el-button>
<el-button size="mini" type="primary" @click.native="draftOrder()" :loading="submitLoading" <el-button size="mini" type="primary" @click.native="draftOrder()" :loading="submitLoading"
v-if="splitType=='out'"style="margin-right: 8px;border-radius: 5%;" v-if="splitType=='out'" style="margin-right: 8px;border-radius: 5%;"
>草稿保存 >草稿保存
</el-button> </el-button>
<el-button size="mini" type="primary" @click.native="submit()" :loading="submitLoading" <el-button size="mini" type="primary" @click.native="submit()" :loading="submitLoading"
@ -157,7 +155,7 @@
</el-col> </el-col>
<el-col :span="8" v-if="splitType=='out'"> <el-col :span="8" v-if="splitType=='out'">
<el-form-item prop="fifoSplit" class="query-form-item" label="上货方式:"> <el-form-item prop="fifoSplit" class="query-form-item" label="上货方式:">
<el-radio-group v-model="orderFormData.fifoSplit"> <el-radio-group v-model="orderFormData.fifoSplit" :disabled="fifoSplitEnable">
<el-radio :label="1">拆零上货</el-radio> <el-radio :label="1">拆零上货</el-radio>
<el-radio :label="2">整取上货</el-radio> <el-radio :label="2">整取上货</el-radio>
</el-radio-group> </el-radio-group>
@ -313,6 +311,7 @@ import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage";
import {printSplitLabel} from "@/api/collect/splitCreateOrder"; import {printSplitLabel} from "@/api/collect/splitCreateOrder";
import {findInvRemind} from "@/api/inout/splitCode"; import {findInvRemind} from "@/api/inout/splitCode";
import chooseDraftOrderDialog from "./chooseDraftOrderDialog" import chooseDraftOrderDialog from "./chooseDraftOrderDialog"
import {getUserBindWork} from '@/api/basic/collectPoint/userWorkplace'
export default { export default {
name: "ioCreateOrder", name: "ioCreateOrder",
@ -367,6 +366,7 @@ export default {
inv: this.$store.getters.locInvName, inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName, deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name, userName: this.$store.getters.name,
userId: this.$store.getters.userId,
companyName: this.$store.getters.companyName, companyName: this.$store.getters.companyName,
}, },
workplaceId: null, workplaceId: null,
@ -517,7 +517,9 @@ export default {
scanResultType: "success", scanResultType: "success",
msgTip: "当前工位存量提醒:", msgTip: "当前工位存量提醒:",
splitType: null, splitType: null,
rowData: {} rowData: {},
curWorkPlace: null,
fifoSplitEnable: false,
}; };
}, },
components: { components: {
@ -525,22 +527,19 @@ export default {
codeDetailPanel, codeDetailPanel,
editCodeDialog, editCodeDialog,
DialogCreateOrderSelect, DialogCreateOrderSelect,
DialogSelectUnit, DialogSelectSpace, selectRlDialog, dialogInvProduct,chooseDraftOrderDialog DialogSelectUnit, DialogSelectSpace, selectRlDialog, dialogInvProduct, chooseDraftOrderDialog
}, },
methods: { methods: {
changeInvRemind(val) { changeInvRemind(val) {
let post = { let post = {
workPlaceCode: val workPlaceCode: val
} }
this.defaultSplitType()
findInvRemind(post).then((response) => { findInvRemind(post).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.msgTip = response.data this.msgTip = response.data
} else {
} }
}) }).catch(() => {
.catch(() => {
}); });
}, },
successCloseData() { successCloseData() {
@ -566,10 +565,21 @@ export default {
sickerAdNum: null, sickerAdNum: null,
workPlaceCode: null, workPlaceCode: null,
fifoSplit: 1, fifoSplit: 1,
} }
this.orderFormData.workPlaceCode = workPlaceCode this.orderFormData.workPlaceCode = workPlaceCode
this.scanCode = ""; this.scanCode = "";
this.corpOrderIdDisabled = false; this.corpOrderIdDisabled = false;
this.splitType = this.$route.query.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()
}, },
// //
@ -592,6 +602,16 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
defaultSplitType() {
this.curWorkPlace = this.curWorkPlaces.find(item => item.workplaceId == this.orderFormData.workPlaceCode);
this.orderFormData.fifoSplit = this.curWorkPlace.workplaceType
if (this.curWorkPlace.workplaceType == 1 || this.curWorkPlace.workplaceType == 2) {
this.fifoSplitEnable = true;
} else {
this.orderFormData.fifoSplit = 1;
this.fifoSplitEnable = false;
}
},
// //
changeInv(row) { changeInv(row) {
this.orderFormData.action = null; this.orderFormData.action = null;
@ -934,16 +954,17 @@ export default {
// //
findCurWorkPlaces(val) { findCurWorkPlaces(val) {
let query = { let query = {
key: val, // key: val,
status: 1, // status: 1,
// invCode: this.orderFormData.invCode, userId: this.userInfo.userId,
page: 1, page: 1,
limit: 100, limit: 100,
} }
listPage(query).then((res) => { getUserBindWork(query).then((res) => {
this.curWorkPlaces = res.data.list || []; this.curWorkPlaces = res.data.list || [];
if (this.curWorkPlaces.length == 1) { if (this.curWorkPlaces.length == 1 && this.$isNotBlank(this.orderFormData.workPlaceCode)) {
this.orderFormData.workPlaceCode = this.curWorkPlaces[0].workplaceId; this.orderFormData.workPlaceCode = this.curWorkPlaces[0].workplaceId;
this.defaultSplitType()
} }
}) })
}, },
@ -1220,6 +1241,10 @@ export default {
refreshOrder(orderQuery) { refreshOrder(orderQuery) {
this.orderFormData = orderQuery; this.orderFormData = orderQuery;
this.scanCode = "";
this.result = "";
this.refreshCodesPanel()
this.init();
}, },
// //
@ -1444,7 +1469,7 @@ export default {
} }
}, },
//稿 //稿
chooseDraftOrder(){ chooseDraftOrder() {
if (this.$isBlank(this.orderFormData.workPlaceCode)) { if (this.$isBlank(this.orderFormData.workPlaceCode)) {
this.$message.warning("请选择工位!"); this.$message.warning("请选择工位!");
return; return;
@ -1453,12 +1478,12 @@ export default {
this.rowData.fifoSplit = this.orderFormData.fifoSplit this.rowData.fifoSplit = this.orderFormData.fifoSplit
this.chooseDraftOrderVisible = true this.chooseDraftOrderVisible = true
}, },
closeChooseDialog(){ closeChooseDialog() {
this.chooseDraftOrderVisible = false this.chooseDraftOrderVisible = false
}, },
handleChoose(billNo){ handleChoose(currentRow) {
this.orderFormData.billNo = billNo this.orderQuery = currentRow
this.refreshCodesPanel(); this.refreshOrder(this.orderQuery)
}, },
draftOrder() { draftOrder() {
let tQuery = Object.assign( let tQuery = Object.assign(
@ -1720,8 +1745,6 @@ export default {
init() { init() {
// //
this.codeFormData.code = ""; this.codeFormData.code = "";
this.splitType = this.$route.query.splitType;
if (this.splitType == "search") { if (this.splitType == "search") {
} else if (this.splitType == "out") { } else if (this.splitType == "out") {
this.orderFormData.action = 'SC72197936495755'; this.orderFormData.action = 'SC72197936495755';
@ -1795,6 +1818,7 @@ export default {
inputer.focus(); inputer.focus();
}, },
created() { created() {
this.splitType = this.$route.query.splitType;
this.init(); this.init();
if (this.$route.query.workplaceId != null) { if (this.$route.query.workplaceId != null) {
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true

@ -1,11 +1,17 @@
<template> <template>
<div> <div>
<el-row :gutter="0" v-if="isLinkDisabled">
<el-row :gutter="0" v-if="isLinkDisabled" style="margin-top: 15px">
<el-col :span="24" align="right"> <el-col :span="24" align="right">
<div class="inv-hos-title"> <div class="inv-hos-title">
<span <span
style="margin: 10px;color: #2d8cf0;font-size: 14px;" style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span> >部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName
}}</span>
<span <span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px" style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"
>&nbsp&nbsp&nbsp&nbsp(用户&nbsp:&nbsp{{ >&nbsp&nbsp&nbsp&nbsp(用户&nbsp:&nbsp{{

@ -8,9 +8,7 @@
<span <span
style="margin: 10px;color: #2d8cf0;font-size: 14px;" style="margin: 10px;color: #2d8cf0;font-size: 14px;"
>部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span> >部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>
<span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;"
>仓库&nbsp:&nbsp{{ this.userInfo.inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{ <span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.userInfo.companyName this.userInfo.companyName
}}</span> }}</span>

Loading…
Cancel
Save