From 03cfba0f636b42417070fc8caef44bcdd792a085 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 07 五月 2024 17:34:37 +0800 Subject: [PATCH] 概述 出库模块 编辑的时候循环处理对应产品调用接口获取在库数量的逻辑处理 --- src/views/warehouseManage/position/AddDialog.vue | 34 ++++++++++++++++++++++++++++------ 1 files changed, 28 insertions(+), 6 deletions(-) diff --git a/src/views/warehouseManage/position/AddDialog.vue b/src/views/warehouseManage/position/AddDialog.vue index 19ece9a..b7f7ca6 100644 --- a/src/views/warehouseManage/position/AddDialog.vue +++ b/src/views/warehouseManage/position/AddDialog.vue @@ -19,7 +19,14 @@ <span>鍔ㄤ綔</span> <!-- <el-button plain size="mini" style="margin-left: 15px" @click="deleteClick">鍒犻櫎</el-button> --> </span> - <el-button v-if="showEdit" plain size="mini" style="margin-left: 15px" @click="editClick">缂栬緫</el-button> + <el-button + v-if="showEdit && editConfig.infomation.type == 3" + plain + size="mini" + style="margin-left: 15px" + @click="editClick" + >缂栬緫</el-button + > </div> </div> <!-- 鍐呭 --> @@ -32,7 +39,7 @@ size="mini" > <div class="content-number-bg"> - <FormBtnsView :showPosition="true" :showWarehouse="false" @productClick="productClick" /> + <FormBtnsView :showPosition="true" :showPositionCursor="this.editConfig.title != '鏂板缓'?true:false" @positionReport="positionReport" :showWarehouse="false" @productClick="productClick" /> </div> <div class="basic-info"> <div class="basic-info-view"> @@ -53,10 +60,10 @@ v-model="editConfig.infomation.parentId" placeholder="璇烽�夋嫨" size="mini" - :disabled="!showFooter" + :disabled="editCommonConfig.title != '鏂板缓'" style="width: 90%" > - <el-option v-for="item in positionList" :key="item.id" :label="item.name" :value="item.id"> + <el-option v-for="item in positionList" :key="item.id" :label="item.jointName" :value="item.id"> </el-option> </el-select> </el-form-item> @@ -68,7 +75,7 @@ <el-select v-model="editConfig.infomation.type" filterable - :disabled="!showFooter" + :disabled="editCommonConfig.title != '鏂板缓'" placeholder="璇烽�夋嫨" style="width: 90%" no-data-text="鏆傛棤鏁版嵁" @@ -202,6 +209,8 @@ editConfig: this.editCommonConfig, rules: { name: [{ required: true, message: "璇疯緭鍏�", trigger: "change" }], + // parentId: [{ required: true, message: "璇烽�夋嫨浣嶇疆绫诲瀷", trigger: "change" }], + type: [{ required: true, message: "璇烽�夋嫨涓婄骇浣嶇疆", trigger: "change" }], countFrequency: [ { required: false, @@ -220,6 +229,7 @@ } }, created() { + console.log(this.editConfig.infomation) this.setBottonView() }, methods: { @@ -239,11 +249,22 @@ callback() } }, + // 褰撳墠搴撳瓨 + positionReport(){ + if(this.editConfig.title != '鏂板缓'){ + this.$router.push({ + name: "locationReport", + params: { + locationId: this.editConfig.infomation.id + } + }) + } + }, // 璺嚎 productClick() {}, // 璁剧疆鍒犻櫎/鎵撳嵃/缂栬緫鏄惁鏄剧ず setBottonView() { - if (this.editConfig.title === "鏂板缓") { + if (this.editConfig.title === "鏂板缓" || this.editConfig.title === "缂栬緫") { this.showEdit = false this.showFooter = true } else if (this.editConfig.infomation.status === "瀹屾垚") { @@ -293,6 +314,7 @@ } if (data.id) { params.id = data.id + params.jointName = data.jointName } return params }, -- Gitblit v1.8.0