From b823a11d74b6623fadcfab27150cdbb0ad9766f5 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期五, 15 九月 2023 17:50:07 +0800 Subject: [PATCH] 调拨列表页面、报废列表、新建页面开发 --- src/views/productManage/product/AddProductDialog.vue | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/views/productManage/product/AddProductDialog.vue b/src/views/productManage/product/AddProductDialog.vue index b71c4a6..32cffde 100644 --- a/src/views/productManage/product/AddProductDialog.vue +++ b/src/views/productManage/product/AddProductDialog.vue @@ -38,7 +38,7 @@ </div> <div class="basic-info"> - <FormBtnsView @inOutBoundClick="inOutBoundClick" /> + <FormBtnsView :add-product="addProduct" @inOutBoundClick="inOutBoundClick" :show-procure="showProcure" /> <div class="basic-info-view"> <el-row> <el-col :span="20"> @@ -59,8 +59,12 @@ </el-col> <el-col :span="24"> <div style="margin-left: 20px; margin-top: -30px"> - <el-checkbox v-model="marketable" :disabled="!showFooter">鍙攢鍞�</el-checkbox> - <el-checkbox v-model="procurable" :disabled="!showFooter">鍙噰璐�</el-checkbox> + <el-checkbox v-model="marketable" :disabled="!showFooter" @change="checkboxChange('閿�鍞�', $event)" + >鍙攢鍞�</el-checkbox + > + <el-checkbox v-model="procurable" :disabled="!showFooter" @change="checkboxChange('閲囪喘', $event)" + >鍙噰璐�</el-checkbox + > </div> </el-col> </el-row> @@ -457,7 +461,9 @@ marketable: true, // 鍙攢鍞� procurable: true, // 鍙噰璐� checkedCities: ["涓婃捣", "鍖椾含"], - cities: ["涓婃捣瀵瑰瀵瑰瀵瑰澶氬澶氬澶氬澶氬寳浜瀵瑰瀵瑰瀵�", "鍖椾含瀵瑰瀵瑰瀵瑰澶�", "骞垮窞", "娣卞湷"] + cities: ["涓婃捣瀵瑰瀵瑰瀵瑰澶氬澶氬澶氬澶氬寳浜瀵瑰瀵瑰瀵�", "鍖椾含瀵瑰瀵瑰瀵瑰澶�", "骞垮窞", "娣卞湷"], + addProduct: false, + showProcure: true } }, created() { @@ -471,9 +477,11 @@ this.showButton = false this.showEdit = false this.showFooter = true + this.addProduct = true } else { this.showEdit = true this.showFooter = false + this.addProduct = false } }, // 鍏抽棴 @@ -596,6 +604,12 @@ // 杩涘嚭鐐瑰嚮 inOutBoundClick() { this.$router.push({ path: "/reportForm/inOutboundDetail", query: { name: "浜у搧鍚嶇О/鍑哄叆搴撴槑缁�" } }) + }, + // 鍙攢鍞�/鍙噰璐� + checkboxChange(val, param) { + if (val === "閲囪喘") { + this.showProcure = param + } } } } -- Gitblit v1.8.0