From 95e39ae7aecd6e1016c71cf5ae70a680d8f569bb Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期二, 29 四月 2025 10:48:30 +0800 Subject: [PATCH] 上传最新代码 --- 代码管理/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/proOutboundOrderDetail.vue | 156 +++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 135 insertions(+), 21 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/proOutboundOrderDetail.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/proOutboundOrderDetail.vue" index 5c092bc..436365b 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/proOutboundOrderDetail.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/proOutboundOrderDetail.vue" @@ -1,6 +1,31 @@ <template> <div> <vol-box + v-model="dialogFormVisible" + :lazy="true" + width="20%" + :padding="15" + title="閫夋嫨鍑哄簱绾夸綋" + > + <div> + <VolForm + ref="myform" + :label-width="120" + :loadKey="true" + :formFields="formFields1" + :formRules="formRules1" + > + + </VolForm> + </div> + <template #footer> + <!-- <el-button type="primary" size="small" @click="submit">纭</el-button> --> + <el-button type="danger" size="small" @click="outbound" + >鍑哄簱</el-button + > + </template> + </vol-box> + <vol-box v-model="showDetialBox" :lazy="true" width="85%" @@ -8,6 +33,49 @@ title="鍗曟嵁鏄庣粏淇℃伅" > <div class="box-head"> + <!-- <el-dialog v-model="dialogFormVisible" title="閫夋嫨鍑哄簱绾夸綋" width="500" center> + <span> + It should be noted that the content will not be aligned in center by + default + </span> + <template #footer> + <div class="dialog-footer"> + <el-button @click="outbound">鍑哄簱</el-button> + </div> + </template> + </el-dialog> --> + + <!-- <el-dialog + v-model="dialogFormVisible" + title="Warning" + width="500" + align-center + > + <span>Open the dialog from the center from the screen</span> + <template #footer> + <div class="dialog-footer"> + <el-button @click="outbound">鍑哄簱</el-button> + </div> + </template> + </el-dialog> --> + <!-- <el-dialog v-model="dialogFormVisible" title="閫夋嫨鍑哄簱绾夸綋" width="500"> + <el-form :model="form" width="500"> + <div style="width: 300px;margin: 0px auto;"> + <el-form-item label="璇烽�夋嫨绾夸綋" :label-width="formLabelWidth"> + <el-select v-model="form.region" placeholder="閫夋嫨绾夸綋"> + <el-option label="1鍙风嚎" value="5236" /> + <el-option label="2鍙风嚎" value="5243" /> + <el-option label="3鍙风嚎" value="5250" /> + </el-select> + </el-form-item> + </div> + </el-form> + <template #footer> + <div class="dialog-footer"> + <el-button @click="outbound">鍑哄簱</el-button> + </div> + </template> + </el-dialog> --> <el-alert :closable="false" style="width: 100%"> <el-row> <el-col :span="16"> @@ -25,7 +93,7 @@ type="primary" size="small" style="float: right; height: 20px; margin-right: 10px" - @click="outbound" + @click="outSelect" >鐩存帴鍑哄簱</el-link > <el-link @@ -113,6 +181,37 @@ currentRow: null, selection: [], tableData: [], + dialogFormVisible:false, + formLabelWidth: '160px', + formFields1: { + LineCode: "", + }, + formRules1:[[ + { + dataKey: "line", + title: "閫夋嫨绾夸綋", + required: true, + field: "LineCode", + data: [ + { key: "5236", value: "1鍙风嚎" }, + { key: "5243", value: "2鍙风嚎" }, + { key: "5250", value: "3鍙风嚎" }, + ], + type: "select", + extra: { + + }, + }]], + form: { + name: '', + region: '', + date1: '', + date2: '', + delivery: false, + type: [], + resource: '', + desc: '', + }, tableColumns: [ { prop: "id", @@ -178,6 +277,20 @@ width: 150, }, { + prop: "assignStock", + title: "鎸囧畾搴撳瓨", + type: "icon", + width: 90, + icon: "el-icon-s-grid", + }, + { + prop: "viewDetail", + title: "鍑哄簱璇︾粏", + type: "icon", + width: 90, + icon: "el-icon-s-operation", + }, + { prop: "qtyPcs", title: "鍚堟牸PCS鏁�", type: "string", @@ -213,20 +326,7 @@ type: "string", width: 120, }, - { - prop: "assignStock", - title: "鎸囧畾搴撳瓨", - type: "icon", - width: 90, - icon: "el-icon-s-grid", - }, - { - prop: "viewDetail", - title: "鍑哄簱璇︾粏", - type: "icon", - width: 90, - icon: "el-icon-s-operation", - }, + { prop: "spareQty", title: "澶囧搧鏁�", @@ -269,11 +369,11 @@ Foots: "", total: 0, // 2020.08.29澧炲姞鑷畾涔夊垎椤垫潯澶у皬 - sizes: [30, 60, 100, 120], - size: 30, // 榛樿鍒嗛〉澶у皬 + sizes: [60, 100, 120], + size: 60, // 榛樿鍒嗛〉澶у皬 Wheres: [], page: 1, - rows: 30, + rows: 60, }, searchFormOptions: [ [ @@ -307,6 +407,12 @@ }; }, methods: { + outSelect(){ + if (this.selection.length === 0) { + return this.$message.error("璇烽�夋嫨鍗曟嵁鏄庣粏"); + } + this.dialogFormVisible=true; + }, open(row) { this.row = row; this.showDetialBox = true; @@ -359,10 +465,14 @@ if (this.selection.length === 0) { return this.$message.error("璇烽�夋嫨鍗曟嵁鏄庣粏"); } + //璇烽�夋嫨鍗曟潯鏁版嵁 + if (this.selection.length > 1) { + return this.$message.error("璇烽�夋嫨鍗曟潯鏁版嵁"); + } var keys = this.selection.map((item) => item.id); // 鑾峰彇閫変腑琛岀殑id this.http - .post("api/Task/OutProductTask?stationCode=5236", keys, "鏁版嵁澶勭悊涓�") + .post("api/Task/OutProductTask?stationCode="+this.formFields1.LineCode, keys, "鏁版嵁澶勭悊涓�") .then((x) => { if (!x.status) return this.$message.error(x.message); this.$message.success("鎿嶄綔鎴愬姛"); @@ -370,6 +480,9 @@ this.$emit("parentCall", ($vue) => { $vue.getData(); }); + this.formFields1.LineCode=""; + this.dialogFormVisible=false; + this.$parent.refresh(); }); }, setCurrent(row) { @@ -379,12 +492,13 @@ this.currentRow = val; }, getButtonEnable(propName, row) { + console.log(row) if (propName == "assignStock") { if ( - row.proOrderDetailStatus !== 0 && + (row.proOrderDetailStatus !== 0 && row.proOrderDetailStatus !== 60 && row.proOrderDetailStatus !== 70 && - row.proOrderDetailStatus !== 80 + row.proOrderDetailStatus !== 80) || row.qtyPcs==row.lockQtyPcs ) { return true; } else { -- Gitblit v1.9.3