From dd7fe1db0b9ca604664b59a906545fc1e13d55e2 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期六, 30 三月 2024 10:37:08 +0800 Subject: [PATCH] 入库出库修改列表状态 --- src/views/productManage/product/AddProductDialog.vue | 39 +++++++++++++++++++++++++++------------ 1 files changed, 27 insertions(+), 12 deletions(-) diff --git a/src/views/productManage/product/AddProductDialog.vue b/src/views/productManage/product/AddProductDialog.vue index a6ded80..6de1c2b 100644 --- a/src/views/productManage/product/AddProductDialog.vue +++ b/src/views/productManage/product/AddProductDialog.vue @@ -130,14 +130,14 @@ </el-option> </el-select> </el-form-item> - <el-form-item label="鍗曚綅old" prop="unit"> + <!-- <el-form-item label="鍗曚綅old" prop="unit"> <el-input v-model="editConfig.infomation.unit" placeholder="璇疯緭鍏�" style="width: 85%" :disabled="!showFooter" ></el-input> - </el-form-item> + </el-form-item> --> <el-form-item label="鍗曚綅" prop="unit"> <el-select @@ -238,12 +238,13 @@ placeholder="璇疯緭鍏�" ></el-input> </el-form-item> - <el-form-item label="閲囪喘绫诲瀷" prop="purchaseType"> - <el-radio-group :disabled="!showFooter" v-model="editConfig.infomation.purchaseType"> - <el-radio v-for="item in purchaseTypeList" :key="item.id" :label="item.id">{{ - item.name - }}</el-radio> - </el-radio-group> + <el-form-item label="閲囪喘绫诲瀷" prop="purchaseTypeList"> + <el-checkbox-group + v-model="editConfig.infomation.purchaseTypeList" + :disabled="!showFooter" + > + <el-checkbox v-for="item in bomPurchaseTypeList" :key="item.id" :label="item.id">{{ item.name }}</el-checkbox> + </el-checkbox-group> </el-form-item> <el-form-item label="鍐呴儴缂栫爜" prop="internalReference"> <el-input @@ -535,6 +536,7 @@ </el-dialog> <BomDialog ref="editDialog" + :editRow="editRow" @sucessSet="handleGetBomKindDictList" @handleConfirmSave="handleConfirmSave" :workList="unitList" @@ -551,6 +553,7 @@ import codeMixin from "@/components/mixin/codeMixin" import { getDataByType } from "@/api/data" import BomDialog from "./components/bomDialog"; +import {getUnitInfo, } from "@/api/basic/standard"; // import { postGetSaveSUnitDict } from "@/api/basic/standard"; @@ -596,7 +599,7 @@ // salePrice: [{ required: true, message: "璇疯緭鍏ラ攢鍞环鏍�", trigger: "blur" }], unit: [{ required: true, message: "璇疯緭鍏ュ崟浣�", trigger: ["change", "blur"] }], // 閲囪喘绫诲瀷 - purchaseType: [{ required: true, message: "璇烽�夋嫨", trigger: "blur" }] + purchaseTypeList: [{ required: true, message: "璇烽�夋嫨", trigger: "blur" }] }, memberOptions: [], productCategoryOptions: [], // 浜у搧绫诲埆 @@ -653,8 +656,12 @@ }, isView: false, fileFormdata: null, // 涓婁紶鍥剧墖鍏ュ弬 - purchaseTypeList: getDataByType("purchaseType"), + bomPurchaseTypeList: getDataByType("purchaseType"), unitList: [], + editRow:{ + editDialogVisible:false, + BomTableData:[] + } } }, created() { @@ -675,12 +682,13 @@ this.setOptionalFieldsToEmpty() this.formInfo() this.getUserInfo() + this.getUnitInfo() }, methods: { // 鍗曚綅 handleUnitShow() { this.handleGetBomKindDictList(); - this.$refs.editDialog.editDialogVisible = true; + this.editRow.editDialogVisible = true; }, // 鍗曚綅 handleGetBomKindDictList(val) { @@ -712,7 +720,7 @@ // this.handleGetBomKindDictList(); // } // }); - this.$refs.editDialog.editDialogVisible = false; + this.editRow.editDialogVisible = false; }, // 鑾峰彇鐧诲綍鐢ㄦ埛淇℃伅 @@ -991,6 +999,13 @@ } else if (val === "閿�鍞�") { this.showSale = param } + }, + // 鑾峰彇鍗曚綅鍒楄〃鏁版嵁 + async getUnitInfo(){ + await getUnitInfo().then((res)=>{ + this.editRow.BomTableData = res.data; + console.log( this.editRow.BomTableData,"鐪嬩笅",res.data) + }) } } } -- Gitblit v1.8.0