From 4d8ba785800a8c478f55d93ae274fcf7ac76a3aa Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期六, 23 九月 2023 14:24:23 +0800 Subject: [PATCH] feat: 调整各个表格列默认显隐/可配置情况 --- src/views/supplierManage/supplier/index.vue | 8 ++++---- src/views/productManage/product/index.vue | 4 ++-- src/views/purchaseManage/purchase/index.vue | 4 ++-- src/views/purchaseManage/returned/index.vue | 4 ++-- src/views/purchaseManage/quality/index.vue | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/productManage/product/index.vue b/src/views/productManage/product/index.vue index 7ea3200..53eef98 100644 --- a/src/views/productManage/product/index.vue +++ b/src/views/productManage/product/index.vue @@ -84,7 +84,7 @@ }, tableColumn: [ { label: "浜у搧缂栫爜", prop: "number", min: 190, isCommonClick: true }, - { label: "浜у搧鍚嶇О", prop: "name", min: 130 }, + { label: "浜у搧鍚嶇О", prop: "name", min: 130 ,default:true}, { label: "渚涘簲鍟�", prop: "supplierName", min: 130 }, { label: "浜у搧绫诲埆", prop: "productType", min: 130 }, { label: "瑙勬牸", prop: "specifications", min: 130 }, @@ -94,7 +94,7 @@ { label: "鏈�浣庡簱瀛�", prop: "minimumStock", min: 80 }, { label: "鏈�楂樺簱瀛�", prop: "maximumStock", min: 80 } ], - showCol: ['浜у搧缂栫爜', '浜у搧鍚嶇О', '渚涘簲鍟�', '浜у搧绫诲埆', '瑙勬牸', '鍨嬪彿', '鍗曚綅', '浠锋牸', '鏈�浣庡簱瀛�', '鏈�楂樺簱瀛�'] + showCol: ['浜у搧缂栫爜', '浜у搧鍚嶇О', '渚涘簲鍟�', '浜у搧绫诲埆', '瑙勬牸', '浠锋牸', '鏈�浣庡簱瀛�', '鏈�楂樺簱瀛�'] } }, created() { diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue index 93e3d2b..0511bbe 100644 --- a/src/views/purchaseManage/purchase/index.vue +++ b/src/views/purchaseManage/purchase/index.vue @@ -87,7 +87,7 @@ }, purchaseStatusList: getDataByType("purchaseStatus"), tableColumn: [ - { label: "閲囪喘鍗曞彿", prop: "number", min: 150, isCommonClick: true }, + { label: "閲囪喘鍗曞彿", prop: "number", min: 150, isCommonClick: true ,default:true}, { label: "閲囪喘鍗曞悕绉�", prop: "name", min: 130, isCommonClick: true }, { label: "鍗曟嵁绫诲瀷", prop: "orderType", min: 130 }, { label: "渚涘簲鍟嗗悕绉�", prop: "contact", min: 130 }, @@ -96,7 +96,7 @@ { label: "缁忓姙浜�", prop: "handledBy", min: 130 }, { label: "鍒跺崟浜�", prop: "creator", min: 130 } ], - showCol: ['閲囪喘鍗曞彿', '閲囪喘鍗曞悕绉�', '鍗曟嵁绫诲瀷', '渚涘簲鍟嗗悕绉�', '閲囪喘鏁伴噺', '鏀惰揣浠撳簱', '缁忓姙浜�', '鍒跺崟浜�'] + showCol: ['閲囪喘鍗曞彿', '閲囪喘鍗曞悕绉�', '鍗曟嵁绫诲瀷', '渚涘簲鍟嗗悕绉�', '閲囪喘鏁伴噺', '鏀惰揣浠撳簱'] } }, created() { diff --git a/src/views/purchaseManage/quality/index.vue b/src/views/purchaseManage/quality/index.vue index 66c70c9..e38a6d2 100644 --- a/src/views/purchaseManage/quality/index.vue +++ b/src/views/purchaseManage/quality/index.vue @@ -74,8 +74,8 @@ search: {}, qualityStatusList:getDataByType('qualityStatus'), tableColumn: [ - { label: "璐ㄦ鍗曠紪鍙�", prop: "number", min: 190, isCommonClick: true }, - { label: "閲囪喘鍗曠紪鍙�", prop: "name", min: 130, isCommonClick: true}, + { label: "璐ㄦ鍗曠紪鍙�", prop: "number", min: 190, isCommonClick: true,default:true }, + { label: "閲囪喘鍗曠紪鍙�", prop: "name", min: 130, isCommonClick: true }, { label: "鍗曟嵁绫诲瀷", prop: "contact_name", min: 130 }, { label: "渚涘簲鍟嗗悕绉�", prop: "contact_phone", min: 130 }, { label: "鍒拌揣浠撳簱", prop: "sales_resources", min: 130 }, diff --git a/src/views/purchaseManage/returned/index.vue b/src/views/purchaseManage/returned/index.vue index 470e0e3..fc773c5 100644 --- a/src/views/purchaseManage/returned/index.vue +++ b/src/views/purchaseManage/returned/index.vue @@ -76,7 +76,7 @@ search: '', returnedStatusList:getDataByType('returnedStatus'), tableColumn: [ - { label: "閫�璐у崟缂栧彿", prop: "number", min: 190, isCommonClick: true }, + { label: "閫�璐у崟缂栧彿", prop: "number", min: 190, isCommonClick: true ,default:true}, { label: "閲囪喘鍗曠紪鍙�", prop: "name", min: 130, isCommonClick: true}, { label: "鍗曟嵁绫诲瀷", prop: "contact_name", min: 130 }, { label: "渚涘簲鍟嗗悕绉�", prop: "contact_phone", min: 130 }, @@ -87,7 +87,7 @@ { label: "閫�璐ф棩鏈�", prop: "member_name", min: 150 }, // { label: "鐘舵��", prop: "member_name", min: 110 } ], - showCol: ['閫�璐у崟缂栧彿', '閲囪喘鍗曠紪鍙�', '鍗曟嵁绫诲瀷', '渚涘簲鍟嗗悕绉�', '閫�璐т粨搴�', '閫�璐х悊鐢�', '缁忓姙浜�', '鍒跺崟浜�', '閫�璐ф棩鏈�'] + showCol: ['閫�璐у崟缂栧彿', '閲囪喘鍗曠紪鍙�', '鍗曟嵁绫诲瀷', '渚涘簲鍟嗗悕绉�', '閫�璐т粨搴�', '閫�璐х悊鐢�', '閫�璐ф棩鏈�'] } }, created() { diff --git a/src/views/supplierManage/supplier/index.vue b/src/views/supplierManage/supplier/index.vue index 07c775c..985fb9a 100644 --- a/src/views/supplierManage/supplier/index.vue +++ b/src/views/supplierManage/supplier/index.vue @@ -160,10 +160,10 @@ totalCount: 0 }, supplierId: 0, - showCol:['渚涘簲鍟嗙紪鍙�','渚涘簲鍟嗗悕绉�','渚涘簲鍟嗙被鍨�','鎵�灞炶涓�','鑱旂郴浜�','鑱旂郴鐢佃瘽','鐘舵��','鍒涘缓鏃堕棿'], + showCol:['渚涘簲鍟嗙紪鍙�','渚涘簲鍟嗗悕绉�','渚涘簲鍟嗙被鍨�','鎵�灞炶涓�','鑱旂郴浜�','鑱旂郴鐢佃瘽','鐘舵��'], tableColumn: [ { label: "渚涘簲鍟嗙紪鍙�", prop: "number", min: 190, isCommonClick: true }, - { label: "渚涘簲鍟嗗悕绉�", prop: "name", min: 130 }, + { label: "渚涘簲鍟嗗悕绉�", prop: "name", min: 130, default: true }, { label: "渚涘簲鍟嗙被鍨�", prop: "supplierType", min: 130 }, { label: "鎵�灞炶涓�", prop: "industry", min: 130 }, { label: "鑱旂郴浜�", prop: "contact", min: 130 }, @@ -174,7 +174,7 @@ showProductCol:['浜у搧缂栫爜','浜у搧鍚嶇О','浜у搧瑙勬牸','鍗曚綅','閲囪喘浠锋牸','渚涜揣鏃堕暱(澶�)','鐗╂祦鏃堕暱(澶�)'], productColumn:[ { label: "浜у搧缂栫爜", prop: "number", min: 190 }, - { label: "浜у搧鍚嶇О", prop: "name", min: 130 }, + { label: "浜у搧鍚嶇О", prop: "name", min: 130, default: true }, { label: "浜у搧瑙勬牸", prop: "specifications", min: 130 }, { label: "鍗曚綅", prop: "unit", min: 130 }, { label: "閲囪喘浠锋牸", prop: "purchasePrice", min: 130 }, @@ -193,7 +193,7 @@ return this.tableColumn.map(ele=>{ return { ...ele, - isShowColumn:showCol.includes(ele.label) + isShowColumn: showCol.includes(ele.label) } }) }, -- Gitblit v1.8.0