Merge remote-tracking branch 'origin/dev_ksck_z' into dev_ksck_z

20240912_adapter_z
yewj 8 months ago
commit 1926b45bea

@ -4,6 +4,11 @@
<div> <div>
<el-form :inline="true" :model="userQuery" size="mini" v-if="showSearch"> <el-form :inline="true" :model="userQuery" size="mini" v-if="showSearch">
<el-row> <el-row>
<el-col :span="8">
<el-form-item label="所属部门:">
<el-input v-model="userQuery.deptName" placeholder="所属部门" clearable></el-input>
</el-form-item>
</el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="当前仓库:" class="query-form-item"> <el-form-item label="当前仓库:" class="query-form-item">
<invSelect :value.sync="userQuery.invCode" :params.sync="filterBadInv" :changeValue.sync="invChange"/> <invSelect :value.sync="userQuery.invCode" :params.sync="filterBadInv" :changeValue.sync="invChange"/>
@ -15,11 +20,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="所属部门:">
<el-input v-model="userQuery.deptName" placeholder="所属部门" clearable></el-input>
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>

@ -25,12 +25,12 @@
</el-row> </el-row>
<el-alert <!-- <el-alert-->
style="margin-top: 15px" <!-- style="margin-top: 15px"-->
:title="msgTip" <!-- :title="msgTip"-->
:closable="false" <!-- :closable="false"-->
type="warning"> <!-- type="warning">-->
</el-alert> <!--</el-alert>-->
<el-row :gutter="0" style="margin-top: 15px"> <el-row :gutter="0" style="margin-top: 15px">
<el-col :span="24" align="right"> <el-col :span="24" align="right">
@ -260,7 +260,7 @@
<el-dialog <el-dialog
title="选择作业单据类型" title="选择业务类型"
:visible.sync="selectBusTypeDisabled" :visible.sync="selectBusTypeDisabled"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"

@ -260,7 +260,7 @@
<el-dialog <el-dialog
title="选择作业单据类型" title="选择业务类型"
:visible.sync="selectBusTypeDisabled" :visible.sync="selectBusTypeDisabled"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"

@ -29,12 +29,12 @@
</el-col> </el-col>
</el-row> </el-row>
<el-alert <!--<el-alert-->
style="margin-top: 15px;margin-bottom: 10px;font-size: 20px;" <!-- style="margin-top: 15px;margin-bottom: 10px;font-size: 20px;"-->
:title="msgTip" <!-- :title="msgTip"-->
:closable="false" <!-- :closable="false"-->
type="warning"> <!-- type="warning">-->
</el-alert> <!--</el-alert>-->
<el-row> <el-row>
@ -1800,6 +1800,7 @@ export default {
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true
this.isLinkDisabled = true this.isLinkDisabled = true
this.workplaceId = this.$route.query.workplaceId this.workplaceId = this.$route.query.workplaceId
this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId)
} }
}, },

@ -8,7 +8,7 @@
> >
<el-card style="margin: 5px;"> <el-card style="margin: 5px;">
<el-row :gutter="0" v-if="isLinkDisabled"> <el-row :gutter="0" v-if="isLinkDisabled">
<el-col :span="24" align="right"> <el-col :span="24" align="right">
<div class="inv-hos-title"> <div class="inv-hos-title">
<span <span
@ -30,7 +30,7 @@
</el-row> </el-row>
<el-alert <el-alert
style="margin-top: 15px;font-size: 20px" style="margin-top: 15px;margin-bottom: 10px;font-size: 20px;"
:title="msgTip" :title="msgTip"
:closable="false" :closable="false"
type="warning"> type="warning">
@ -41,18 +41,27 @@
<el-button-group <el-button-group
style="display: flex; margin: 0px 0 15px 0; float: right" style="display: flex; margin: 0px 0 15px 0; float: right"
> >
<!-- <el-button size="mini" type="primary" @click.native="saveOrder()" :loading="saveLoading"--> <!--<el-button size="mini" type="primary" @click.native="saveOrder()" :loading="saveLoading"-->
<!-- >草稿保存--> <!--&gt;草稿保存-->
<!-- </el-button>--> <!--</el-button>-->
<el-button size="mini" type="primary" @click.native="chooseDraftOrder()" :loading="submitLoading"
v-if="splitType=='out'"style="margin-right: 8px;border-radius: 5%;"
>选入草稿单据
</el-button>
<el-button size="mini" type="primary" @click.native="draftOrder()" :loading="submitLoading"
v-if="splitType=='out'"style="margin-right: 8px;border-radius: 5%;"
>草稿保存
</el-button>
<el-button size="mini" type="primary" @click.native="submit()" :loading="submitLoading" <el-button size="mini" type="primary" @click.native="submit()" :loading="submitLoading"
v-if="splitType=='out'" 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"
v-if="splitType=='return'" v-if="splitType=='return'" style="margin-right: 8px;border-radius: 5%;"
>退货完成 >退货完成
</el-button> </el-button>
<el-button size="mini" type="primary" @click.native="printLabel()" :loading="submitLoading" <el-button size="mini" type="primary" @click.native="printLabel()" :loading="submitLoading"
style="border-radius: 5%;"
>打印二维码 >打印二维码
</el-button> </el-button>
@ -251,6 +260,23 @@
></codesPanel> ></codesPanel>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-dialog
title="选入草稿单据"
:visible.sync="chooseDraftOrderVisible"
width="80%"
append-to-body
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="chooseDraftOrderVisible"
>
<chooseDraftOrderDialog
:rowData="rowData"
:closeChooseDialog="closeChooseDialog"
:handleChoose="handleChoose"
>
</chooseDraftOrderDialog>
</el-dialog>
</div> </div>
</template> </template>
@ -285,7 +311,8 @@ import {filterNoPage, remoteFilter} from "@/api/basic/sicker/skPersonApi";
import dialogInvProduct from "@/views/inout/DialogSelectInvProduct"; import dialogInvProduct from "@/views/inout/DialogSelectInvProduct";
import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage"; 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"
export default { export default {
name: "ioCreateOrder", name: "ioCreateOrder",
@ -336,7 +363,7 @@ export default {
data() { data() {
return { return {
isLinkDisabled: false, isLinkDisabled: false,
userInfo:{ userInfo: {
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,
@ -479,6 +506,7 @@ export default {
// //
selectInvProductVisible: false, selectInvProductVisible: false,
chooseDraftOrderVisible: false,
invQueryData: { invQueryData: {
invCode: null, invCode: null,
}, },
@ -488,6 +516,8 @@ export default {
result: "", result: "",
scanResultType: "success", scanResultType: "success",
msgTip: "当前工位存量提醒:", msgTip: "当前工位存量提醒:",
splitType: null,
rowData: {}
}; };
}, },
components: { components: {
@ -495,17 +525,17 @@ export default {
codeDetailPanel, codeDetailPanel,
editCodeDialog, editCodeDialog,
DialogCreateOrderSelect, DialogCreateOrderSelect,
DialogSelectUnit, DialogSelectSpace, selectRlDialog, dialogInvProduct DialogSelectUnit, DialogSelectSpace, selectRlDialog, dialogInvProduct,chooseDraftOrderDialog
}, },
methods: { methods: {
changeInvRemind(val){ changeInvRemind(val) {
let post = { let post = {
workPlaceCode: val workPlaceCode: val
} }
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 { } else {
} }
}) })
@ -513,9 +543,9 @@ export default {
}); });
}, },
successCloseData(){ successCloseData() {
let workPlaceCode = this.orderFormData.workPlaceCode let workPlaceCode = this.orderFormData.workPlaceCode
this.orderFormData ={ this.orderFormData = {
billNo: null, billNo: null,
corpOrderId: null, corpOrderId: null,
action: null, action: null,
@ -538,7 +568,7 @@ export default {
fifoSplit: 1, fifoSplit: 1,
} }
this.orderFormData.workPlaceCode = workPlaceCode this.orderFormData.workPlaceCode = workPlaceCode
this.scanCode= ""; this.scanCode = "";
this.corpOrderIdDisabled = false; this.corpOrderIdDisabled = false;
this.refreshCodesPanel() this.refreshCodesPanel()
}, },
@ -662,7 +692,7 @@ export default {
if (response.code === 20000) { if (response.code === 20000) {
// this.$message.success(""); // this.$message.success("");
const codeDetailComponent = this.$refs.IoCreateOrderCodeDetail.getOrderDetails(); const codeDetailComponent = this.$refs.IoCreateOrderCodeDetail.getOrderDetails();
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
this.clearOrder(); this.clearOrder();
@ -944,7 +974,6 @@ export default {
} }
this.originCode = ""; this.originCode = "";
this.sictomText = ""; this.sictomText = "";
this.orderFormData.corpOrderId = this.orderFormData.corpOrderId.trim();
this.codeFormData.batchNo = ""; this.codeFormData.batchNo = "";
this.codeFormData.produceDate = ""; this.codeFormData.produceDate = "";
this.codeFormData.expireDate = ""; this.codeFormData.expireDate = "";
@ -1208,7 +1237,7 @@ export default {
this.retractLoading = false this.retractLoading = false
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("撤回成功!"); this.$message.success("撤回成功!");
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1236,7 +1265,7 @@ export default {
this.codeLoading = false this.codeLoading = false
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1251,7 +1280,7 @@ export default {
this.checkLoading = false this.checkLoading = false
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1314,7 +1343,7 @@ export default {
this.$message.success("提交成功,等待处理,请刷新后查看!"); this.$message.success("提交成功,等待处理,请刷新后查看!");
this.successCloseData() this.successCloseData()
console.log(this.closeDialog()) console.log(this.closeDialog())
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1339,7 +1368,7 @@ export default {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
this.successCloseData() this.successCloseData()
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1361,7 +1390,7 @@ export default {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
this.successCloseData() this.successCloseData()
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1404,7 +1433,7 @@ export default {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
this.successCloseData() this.successCloseData()
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
@ -1414,11 +1443,29 @@ export default {
}); });
} }
}, },
saveOrder() { //稿
chooseDraftOrder(){
if (this.$isBlank(this.orderFormData.workPlaceCode)) {
this.$message.warning("请选择工位!");
return;
}
this.rowData.workPlaceCode = this.orderFormData.workPlaceCode
this.rowData.fifoSplit = this.orderFormData.fifoSplit
this.chooseDraftOrderVisible = true
},
closeChooseDialog(){
this.chooseDraftOrderVisible = false
},
handleChoose(billNo){
this.orderFormData.billNo = billNo
this.refreshCodesPanel();
},
draftOrder() {
let tQuery = Object.assign( let tQuery = Object.assign(
JSON.parse(JSON.stringify(this.orderFormData)) JSON.parse(JSON.stringify(this.orderFormData))
); );
tQuery.billNo = this.orderFormData.billNo; tQuery.billNo = this.orderFormData.billNo;
tQuery.orderType = 2;
console.log("tQuery:"); console.log("tQuery:");
console.log(tQuery); console.log(tQuery);
if (this.orderFormData.billNo == null) { if (this.orderFormData.billNo == null) {
@ -1426,12 +1473,12 @@ export default {
return; return;
} }
this.saveLoading = true this.saveLoading = true
saveOrderWeb(tQuery).then((response) => { saveOrderWeb(tQuery).then((response) => {
this.saveLoading = false this.saveLoading = false
if (response.code === 20000) { if (response.code === 20000) {
if(this.closeDialog != undefined){ this.$message.success("保存成功")
this.closeDialog(); this.successCloseData()
}
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -1439,7 +1486,6 @@ export default {
this.saveLoading = false this.saveLoading = false
}); });
}, },
// //
resetForm() { resetForm() {
if (this.$refs["dataForm"]) { if (this.$refs["dataForm"]) {
@ -1750,10 +1796,11 @@ export default {
}, },
created() { created() {
this.init(); this.init();
if (this.$route.query.workplaceId != null){ if (this.$route.query.workplaceId != null) {
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true
this.isLinkDisabled = true this.isLinkDisabled = true
this.workplaceId = this.$route.query.workplaceId this.workplaceId = this.$route.query.workplaceId
this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId)
} }
}, },
@ -1762,31 +1809,31 @@ export default {
<style scoped> <style scoped>
/*.scroll-alert {*/ .scroll-alert {
/* width: 100%; !* 或者你需要的宽度 *!*/ width: 100%; /* 或者你需要的宽度 */
/* overflow: hidden;*/ overflow: hidden;
/* white-space: nowrap;*/ white-space: nowrap;
/* box-sizing: border-box;*/ box-sizing: border-box;
/* !*border: 1px solid #f56c6c; !* 类似于 Element UI 警告框的边框 *!*!*/ /*border: 1px solid #f56c6c; !* 类似于 Element UI 警告框的边框 *!*/
/* background-color: rgba(255, 235, 59, 0.1); !* 类似于 Element UI 警告框的背景色 *!*/ background-color: rgba(255, 235, 59, 0.1); /* 类似于 Element UI 警告框的背景色 */
/* padding: 10px;*/ padding: 10px;
/* position: relative;*/ position: relative;
/*}*/ }
/*.scroll-text {*/ .scroll-text {
/* display: inline-block;*/ display: inline-block;
/* padding-left: 100%; !* 初始位置在容器右侧 *!*/ padding-left: 100%; /* 初始位置在容器右侧 */
/* animation: scroll 10s linear infinite; !* 滚动动画 *!*/ animation: scroll 10s linear infinite; /* 滚动动画 */
/*}*/ }
/*@keyframes scroll {*/ @keyframes scroll {
/* from {*/ from {
/* transform: translateX(0);*/ transform: translateX(0);
/* }*/ }
/* to {*/ to {
/* transform: translateX(-100%);*/ transform: translateX(-100%);
/* }*/ }
/*}*/ }
.query-form-item { .query-form-item {
margin-right: 5px; margin-right: 5px;

@ -45,12 +45,12 @@
width="80" width="80"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <!--<el-table-column-->
label="实际数量" <!-- label="实际数量"-->
prop="reCount" <!-- prop="reCount"-->
width="80" <!-- width="80"-->
show-overflow-tooltip <!-- show-overflow-tooltip-->
></el-table-column> <!--&gt;</el-table-column>-->
<el-table-column <el-table-column
label="生产日期" label="生产日期"
prop="produceDate" prop="produceDate"

Loading…
Cancel
Save