From 40fc2783a9c4b102ca298fb91aa1e04614405af8 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期一, 18 九月 2023 14:49:27 +0800 Subject: [PATCH] 仓库管理 仓库和位置 新建和编辑的前端开发 --- src/views/warehouseManage/warehouse/AddDialog.vue | 76 ++++++++++++++++++++++--------------- 1 files changed, 45 insertions(+), 31 deletions(-) diff --git a/src/views/warehouseManage/warehouse/AddDialog.vue b/src/views/warehouseManage/warehouse/AddDialog.vue index 9377289..b3dd77e 100644 --- a/src/views/warehouseManage/warehouse/AddDialog.vue +++ b/src/views/warehouseManage/warehouse/AddDialog.vue @@ -33,22 +33,38 @@ > <div> <!-- <div>aaa</div> --> - <!-- <StatusCommonView :list="list" showWarehouse="true" /> --> <FormBtnsView :showWarehouse="true" @productClick="productClick" /> </div> <div class="basic-info"> <div class="basic-info-view"> <el-row> - <el-col :span="24" class="line_height_30px">浠撳簱鍚嶇О-warehouse#</el-col> - <el-col :span="12"> - <el-form-item label="缂╁啓" prop="client_name"> - 瀵瑰瀵� + <el-col :span="24" class="line_height_30px"> + <el-form-item label="浠撳簱" prop="client_name"> + <el-input + :disabled="showEdit" + v-model="editConfig.infomation.inspectionScale" + placeholder="璇疯緭鍏�" + ></el-input> </el-form-item> </el-col> - <el-col :span="12"> + <el-col :span="11"> + <el-form-item label="缂╁啓" prop="client_name"> + <el-input + :disabled="showEdit" + v-model="editConfig.infomation.inspectionScale" + placeholder="璇疯緭鍏�" + ></el-input> + </el-form-item> + </el-col> + <el-col :span="2"> </el-col> + <el-col :span="11"> <el-form-item label="鍦板潃" prop="client_name"> - 瀵瑰瀵� + <el-input + :disabled="showEdit" + v-model="editConfig.infomation.inspectionScale" + placeholder="璇疯緭鍏�" + ></el-input> </el-form-item> </el-col> </el-row> @@ -59,22 +75,29 @@ <div class="second-label">杩愯緭</div> <el-form-item label="鍏ュ悜杩愯緭" prop="desc"> <el-radio-group - + :disabled="showEdit" + v-model="editConfig.value1" > - <el-radio style="width:100%;" class="line_height_30px" v-for="(item,index) in wareList" :key='index' :label="item.id">{{item.name}}</el-radio> + <el-radio style="width:100%;" class="line_height_30px" + v-for="(item,index) in wareList" + :key='index' + :disabled="item.disabled" + :label="item.id" + >{{item.name}}</el-radio> </el-radio-group> </el-form-item> <el-form-item label="鍑哄簱杩愯緭" prop="desc"> <el-radio-group - + :disabled="showEdit" + v-model="editConfig.value2" > - <el-radio style="width:100%;" class="line_height_30px" v-for="(item,index) in wareoutList" :key='index' :label="item.id">{{item.name}}</el-radio> + <el-radio style="width:100%;" class="line_height_30px" + v-for="(item,index) in wareoutList" + :key='index' + :disabled="item.disabled" + :label="item.id" + >{{item.name}}</el-radio> </el-radio-group> - </el-form-item> - </el-tab-pane> - <el-tab-pane label="鎶�鏈俊鎭�" name="third"> - <el-form-item label="澶囨敞" prop="desc"> - </el-form-item> </el-tab-pane> </el-tabs> @@ -121,10 +144,6 @@ }, memberOptions: [], paymentTypeListOptions: [], - list: [ - { label: "鑽夌", status: "todo" }, - { label: "瀹屾垚", status: "todo" } - ], showEdit: false, // 鏄惁鏄剧ず缂栬緫鎸夐挳 showFooter: false, // 鏄惁鏄剧ず鍙栨秷淇濆瓨 currentState: "todo", // 褰撳墠鐘舵�� @@ -132,28 +151,34 @@ { name:'鐩存帴鎺ユ敹浜у搧锛�1姝ユ敹璐э級', id:1, + disabled:false, }, { name:'鎺ュ埌浜у搧鍒版敹鏂欏尯锛屽啀鍏ュ簱锛�2姝ユ敹璐э級', id:2, + disabled:true, }, { name:'鎺ユ敹浜у搧鍒版敹鏂欏尯锛屾楠岋紝鐒跺悗鍏ュ簱锛�3姝ユ敹璐э級', id:3, + disabled:true, } ], wareoutList:[ { name:'鐩存帴鍑哄簱锛�1姝ワ級', id:1, + disabled:false, }, { name:'閫佸埌寰呭嚭搴撳尯锛屽啀閫佽揣锛�2姝ュ彂璐э級', id:2, + disabled:true, }, { name:'鍖呰浜у搧锛屽彂閫佸埌寰呭嚭搴撳尯锛屽啀閫佽揣锛�3姝ュ彂璐э級', id:3, + disabled:true, } ], } @@ -177,17 +202,6 @@ } else { this.showEdit = true this.showFooter = false - } - if (this.editConfig.title === "鏂板缓") { - this.list[0].status = "active" - } else { - this.list.map((item) => { - if (item.label === this.editConfig.infomation.status) { - item.status = "active" - } else { - item.status = "todo" - } - }) } }, // 鍏抽棴 -- Gitblit v1.8.0