From 7ebb5e21d2e10d8bb6228de15e2bea00ceef1a62 Mon Sep 17 00:00:00 2001 From: Chopper Date: Fri, 24 Sep 2021 18:19:09 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=90=84=E7=A7=8D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E5=8A=9F=E8=83=BD=E8=A1=A5=E5=85=85=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/utils/regular.js | 3 +- .../views/distribution/distributionGoods.vue | 7 ++- .../views/distribution/distributionOrder.vue | 20 ++++--- .../distribution/distributionSetting.vue | 22 ++++++-- manager/src/views/goods/goods-info/goods.vue | 17 ++---- .../src/views/goods/goods-info/goodsApply.vue | 17 ++---- .../views/goods/goods-manage/parameter.vue | 51 +++++++++++------- manager/src/views/goods/goods-manage/spec.vue | 2 +- seller/src/utils/regular.js | 40 ++++++++++++++ .../src/views/goods/goods-manage/category.vue | 16 +++--- .../views/goods/goods-seller/addGoods.scss | 47 +++++++++++++--- .../views/goods/goods-seller/draftGoods.vue | 54 ++++--------------- seller/src/views/goods/goods-seller/goods.vue | 20 ++----- 13 files changed, 179 insertions(+), 137 deletions(-) diff --git a/manager/src/utils/regular.js b/manager/src/utils/regular.js index f55b197e..1ef4ce13 100644 --- a/manager/src/utils/regular.js +++ b/manager/src/utils/regular.js @@ -61,7 +61,8 @@ export const TEL = /0\d{2,3}-\d{7,8}/ // 正整数 export const INTEGER = { - pattern: /^[0-9]\d*$/, + + pattern: /^[0-9]\d{0,10}|0$/, message:'请输入正整数' } diff --git a/manager/src/views/distribution/distributionGoods.vue b/manager/src/views/distribution/distributionGoods.vue index acd87626..52da0ca1 100644 --- a/manager/src/views/distribution/distributionGoods.vue +++ b/manager/src/views/distribution/distributionGoods.vue @@ -107,20 +107,23 @@ export default { { title: "库存", key: "quantity", + minWidth: 80, }, { title: "添加时间", key: "createTime", - width: 170, + minWidth: 100, }, { title: "店铺名称", key: "storeName", + minWidth: 100, tooltip: true, }, { title: "佣金金额", key: "commission", + minWidth: 100, sortable: false, render: (h, params) => { return h( @@ -134,7 +137,7 @@ export default { key: "action", align: "center", fixed: "right", - width: 150, + minWidth: 100, render: (h, params) => { return h("div", [ h( diff --git a/manager/src/views/distribution/distributionOrder.vue b/manager/src/views/distribution/distributionOrder.vue index 5db18f42..0b8e7819 100644 --- a/manager/src/views/distribution/distributionOrder.vue +++ b/manager/src/views/distribution/distributionOrder.vue @@ -21,7 +21,7 @@ /> - @@ -91,17 +91,19 @@ { title: "订单编号", key: "orderSn", - minWidth: 100, + minWidth: 180, + fixed: "left", tooltip: true }, { title: '商品信息', slot: 'goodsMsg', - minWidth: 120 + minWidth: 150 }, { title: "退款金额", key: "returnMoney", + minWidth:80, sortable: false, render: (h, params) => { if(params.row.sellBackRebate == null){ @@ -114,23 +116,24 @@ { title: "分销商", key: "distributionName", - tooltip: true + tooltip: true, + minWidth:80, }, { title: "店铺名称", key: "storeName", + minWidth:80, tooltip: true }, { title: "状态", slot: "distributionOrderStatus", - width: 120, - + minWidth:80, }, { title: "佣金金额", key: "rebateGrade", - width: 120, + minWidth:80, sortable: false, render: (h, params) => { if(params.row.rebate == null){ @@ -142,9 +145,10 @@ } }, { + fixed: "right", title: "创建时间", key: "createTime", - width: 180, + minWidth:100, sortable: false, } ], diff --git a/manager/src/views/distribution/distributionSetting.vue b/manager/src/views/distribution/distributionSetting.vue index 04dec74d..8714be1d 100644 --- a/manager/src/views/distribution/distributionSetting.vue +++ b/manager/src/views/distribution/distributionSetting.vue @@ -1,20 +1,20 @@