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 @@