From cebd034737d009868a4d4711b792ade60971f2bc Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 18 十月 2023 11:50:42 +0800 Subject: [PATCH] 概述-调拨列表样式展示修改 --- src/views/warehouseManage/bussinessType/index.vue | 53 +++++++++++++++++++++++++++++++---------------------- 1 files changed, 31 insertions(+), 22 deletions(-) diff --git a/src/views/warehouseManage/bussinessType/index.vue b/src/views/warehouseManage/bussinessType/index.vue index 8c879f7..116087e 100644 --- a/src/views/warehouseManage/bussinessType/index.vue +++ b/src/views/warehouseManage/bussinessType/index.vue @@ -42,7 +42,7 @@ data() { return { tableList: {}, - keyword:'', + keyword: "", editConfig: { visible: false, title: "鏂板缓", @@ -58,7 +58,8 @@ setTable() { this.tableList = { tableInfomation: [], - selectBox: true, + selectBox: false, + selectIndex: true, showcol: this.showcol, allcol: [], tableColumn: this.setTableColumn(this.showcol) @@ -83,8 +84,8 @@ }, { label: "浠撳簱", - propType:'mulitple', - propTwo:'name', + propType: "mulitple", + propTwo: "name", prop: "warehouse", isShowColumn: true, default: true @@ -110,45 +111,53 @@ } }) }, - refresh(){ - this.pagerOptions.currPage=1 + refresh() { + this.pagerOptions.currPage = 1 this.getData() }, // 鎼滅储 getList(val) { - this.keyword=val; - this.pagerOptions.currPage=1 + this.keyword = val + this.pagerOptions.currPage = 1 this.getData() }, // 琛岀偣鍑� tableRowClick(row) { this.editConfig.title = "缂栬緫" - this.editConfig.infomation = { ...row } + let obj = JSON.parse(JSON.stringify(row)) + for (let i in obj) { + if (i == "name" || i == "prefix") { + obj[i] = obj[i] ? obj[i] : "" + } else { + obj[i] = obj[i] ? obj[i] : null + } + } + this.editConfig.infomation = { ...obj } this.editConfig.visible = true }, // 鏂板缓 addBtnClick() { this.editConfig.title = "鏂板缓" - this.editConfig.infomation={ - name:'', - prefix:'', - // 浣滀笟绫诲瀷 - baseOperationType:null, + this.editConfig.infomation = { + name: "", + prefix: "", + // 浣滀笟绫诲瀷 + baseOperationType: null, // 閫�璐х被鍨� - returnOperationTypeID:null, + returnOperationTypeID: null, // 鍒涘缓娆犲崟 - createBackorder:null, + createBackorder: null, // 浠撳簱 - warehouseId:null, + warehouseId: null, // 鏄剧ず浣滀笟璇︽儏 - showOperations:null, - earlyOperations:null, + showOperations: false, + earlyOperations: null, // 淇濈暀鏂瑰紡 - reservationMethod:null, + reservationMethod: 1, // 榛樿鍘熶綅缃� - defaultLocationSrcId:null, + defaultLocationSrcId: null, // 榛樿鐩爣浣嶇疆 - defaultLocationDestId:null, + defaultLocationDestId: null } this.editConfig.visible = true } -- Gitblit v1.8.0