Forráskód Böngészése

修改输入最大值为8个9;添加易码通权限

chenrui 9 hónapja
szülő
commit
fab5bdbc92

+ 1 - 1
src/views/allocationManagement/transferOut/edit.vue

@@ -285,7 +285,7 @@
               v-model="record.qty"
               :precision="0"
               :min="1"
-              :max="999999"
+              :max="99999999"
               placeholder="请输入"
               @blur="e => qtyBlur(e.target.value, record)"
               style="width: 100%;" />

+ 1 - 1
src/views/bnSetting/menu/adminMenus.vue

@@ -111,7 +111,7 @@
               v-decorator="['formData.sort', {
                 initialValue: formData.sort,
                 rules: [] }]"
-              :max="999999"
+              :max="99999999"
               :min="0"
             />
           </a-form-item>

+ 1 - 1
src/views/bnSetting/menu/childModal.vue

@@ -128,7 +128,7 @@
             v-decorator="['formData.sort', {
               initialValue: formData.sort,
               rules: [] }]"
-            :max="999999"
+            :max="99999999"
             :min="0"
           />
         </a-form-item>

+ 1 - 1
src/views/bnSetting/menu/storeMenus.vue

@@ -149,7 +149,7 @@
               v-decorator="['formData.sort', {
                 initialValue: formData.sort,
                 rules: [] }]"
-              :max="999999"
+              :max="99999999"
               :min="0"
             />
           </a-form-item>

+ 0 - 1
src/views/easyPassManagement/shoppingManagement/chooseProduct.vue

@@ -40,7 +40,6 @@ export default {
     //  返回列表并刷新
     handleBack () {
       this.$router.push({ name: 'shoppingManagementList', query: { closeLastOldTab: true } })
-      this.$refs.mainCon.closeProductModal()
     },
     // 获取目录详情
     getCategoryDetail () {

+ 1 - 0
src/views/easyPassManagement/shoppingManagement/chooseProductsModal.vue

@@ -237,6 +237,7 @@ export default {
       this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
       this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
     }
+
   },
   watch: {
     //  父页面传过来的弹框状态

+ 1 - 1
src/views/easyPassManagement/shoppingManagement/list.vue

@@ -102,7 +102,7 @@ export default {
       columns: [
         { title: '类目名称', dataIndex: 'categoryName', width: '20%', align: 'left', customRender: function (text) { return text || '--' } },
         { title: '图片', scopedSlots: { customRender: 'imgs' }, width: '15%', align: 'center' },
-        { title: '优先级', dataIndex: 'sort', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '易码通优先级', dataIndex: 'sort', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '创建时间', dataIndex: 'createDate', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '状态', scopedSlots: { customRender: 'enabledFlag' }, width: '15%', align: 'center' },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '20%', align: 'center' }

+ 3 - 3
src/views/easyPassManagement/shoppingProducts/editProductModal.vue

@@ -36,7 +36,7 @@
             style="width:100%;"
             id="edit-product-price"
             :min="0"
-            :max="999999999"
+            :max="99999999"
             :precision="2"
             :step="0.1"
             v-model="form.price"
@@ -58,7 +58,7 @@
             style="width:100%;"
             id="edit-product-money"
             :min="0"
-            :max="999999999"
+            :max="99999999"
             :precision="0"
             :step="1"
             v-model="form.hotSort"
@@ -127,6 +127,7 @@ export default {
       shopProductDetail({ shopProductSn: this.itemSn }).then(res => {
         if (res.status == 200 && res.data) {
           res.data.oldPrice = res.data.price
+          res.data.hotSort = res.data.hotFlag == '0' ? '' : res.data.hotSort
           this.form = res.data
           this.spinning = false
         } else {
@@ -146,7 +147,6 @@ export default {
       this.$refs.ruleForm.validate(valid => {
         if (valid) {
           _this.spinning = true
-          console.log('1111111111111:', _this.form, _this.form.price)
           _this.form.shopProductSn = _this.itemSn
           shopProductSaveProduct(_this.form).then(res => {
             if (res.status == 200) {

+ 3 - 2
src/views/easyPassManagement/shoppingProducts/list.vue

@@ -258,8 +258,8 @@ export default {
         { title: '售价类型', dataIndex: 'priceType', scopedSlots: { customRender: 'priceType' }, align: 'center', width: '10%' },
         // { title: '终端价', dataIndex: 'terminalPrice', width: '7%', align: 'right', customRender: function (text) { return text || text == 0 ? _this.toThousands(text, 2) : '--' } },
         // { title: '车主价', dataIndex: 'carOwnersPrice', width: '7%', align: 'right', customRender: function (text) { return text || text == 0 ? _this.toThousands(text, 2) : '--' } },
-        { title: '热销产品', dataIndex: 'hotFlag', scopedSlots: { customRender: 'hotFlag' }, align: 'center', width: '6%' },
-        { title: '优先级', dataIndex: 'hotSort', align: 'center', width: '7%', customRender: function (text) { return (text || text == 0) ? text : '--' } },
+        { title: '热销产品', dataIndex: 'hotFlag', scopedSlots: { customRender: 'hotFlag' }, align: 'center', width: '8%' },
+        { title: '易码通优先级', dataIndex: 'hotSort', align: 'center', width: '7%', customRender: function (text) { return (text || text == 0) ? text : '--' } },
         { title: '添加时间', dataIndex: 'createDate', align: 'center', width: '10%', customRender: function (text) { return text || '--' } },
         { title: '产品商城状态', dataIndex: 'statusDictValue', align: 'center', width: '6%', customRender: function (text) { return text || '--' } },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '14%', align: 'center' }
@@ -457,6 +457,7 @@ export default {
       if (!_this.itemCategorySn) {
         _this.getCategoryList()
       }
+      _this.closeProductModal()
       _this.$nextTick(() => { // 页面渲染完成后的回调
         _this.setTableH()
       })

+ 1 - 1
src/views/power/dataDictionary/codeItemModal.vue

@@ -72,7 +72,7 @@
                 v-decorator="['formData.sort', {
                   initialValue: formData.sort,
                   rules: [{ required: true, message: '请输入排序值!' }] }]"
-                :max="999999"
+                :max="99999999"
                 :min="0"
               />
             </a-form-item>

+ 1 - 1
src/views/power/dataDictionary/codeModal.vue

@@ -35,7 +35,7 @@
             v-decorator="['formData.sort', {
               initialValue: formData.sort,
               rules: [{ required: true, message: '请输入排序值!' }] }]"
-            :max="999999"
+            :max="99999999"
             :min="0"
           />
         </a-form-item>

+ 1 - 1
src/views/power/menu/childModal.vue

@@ -126,7 +126,7 @@
             v-decorator="['formData.sort', {
               initialValue: formData.sort,
               rules: [] }]"
-            :max="999999"
+            :max="99999999"
             :min="0"
           />
         </a-form-item>

+ 1 - 1
src/views/power/menu/menu.vue

@@ -150,7 +150,7 @@
               v-decorator="['formData.sort', {
                 initialValue: formData.sort,
                 rules: [] }]"
-              :max="999999"
+              :max="99999999"
               :min="0"
             />
           </a-form-item>

+ 1 - 1
src/views/power/register/register.vue

@@ -89,7 +89,7 @@
               v-decorator="['formData.index', {
                 initialValue: formData.index,
                 rules: [{ required: true, message: '请输入排序值!' }] }]"
-              :max="999999"
+              :max="99999999"
               :min="0"
             />
           </a-form-item>

+ 4 - 4
src/views/promotionRulesManagement/dealerPromotions/sendAmountModal.vue

@@ -51,7 +51,7 @@
                 id="promotionList-gateValue"
                 v-model="form.gateValue"
                 :min="0"
-                :max="999999"
+                :max="99999999"
                 :precision="2"
                 size="small"/> %作为配额
               <a-tooltip title="如:填写100%,则购买10000元门槛产品,可享受10000配额购买正价产品,根据门槛金额动态调整配额">
@@ -62,7 +62,7 @@
               购买门槛产品满最低金额 <a-input-number
                 id="promotionList-gateValue"
                 v-model="form.gateValue"
-                :max="999999"
+                :max="99999999"
                 :min="0"
                 :precision="2"
                 size="small"/>元,不限制配额。
@@ -73,7 +73,7 @@
                 id="promotionList-gateValue"
                 v-model="form.gateValue"
                 :min="0"
-                :max="999999"
+                :max="99999999"
                 :precision="2"
                 size="small"/>
               元门槛产品,可使用
@@ -81,7 +81,7 @@
                 v-model="form.quotaAmount"
                 id="promotionList-quotaAmount"
                 :min="0"
-                :max="999999"
+                :max="99999999"
                 :precision="2"
                 size="small"/>
               元配额,采购规则中的正价商品(配额算销售额)

+ 1 - 1
src/views/promotionRulesManagement/promotionManagement/edit.vue

@@ -40,7 +40,7 @@
                   placeholder="请输入排序数字(数字越大越靠后)"
                   v-model="form.sort"
                   :min="0"
-                  :max="999999"/>
+                  :max="99999999"/>
               </a-form-model-item>
             </a-col>
             <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">

+ 3 - 3
src/views/promotionRulesManagement/promotionRules/choosePriceProductsModal.vue

@@ -35,7 +35,7 @@
                   id="choosePosPriceProducts-orderGoodsQty"
                   v-model="orderGoodsQty"
                   :min="1"
-                  :max="999999"
+                  :max="99999999"
                   :precision="0"
                   style="width: 85%;margin-right: 5px;"
                   placeholder="请输入限制数量(1~999999)"
@@ -76,7 +76,7 @@
             v-model="record.orderGoodsQty"
             :precision="0"
             :min="1"
-            :max="999999"
+            :max="99999999"
             placeholder="请输入限制数量(1~999999)"
             style="width: 50%;margin-left: 5px;" />
         </template>
@@ -88,7 +88,7 @@
             v-model="record.goodsPrice"
             :precision="2"
             :min="0.1"
-            :max="999999"
+            :max="99999999"
             placeholder="请输入限制数量(0.1~999999)"
             style="width: 100%;" />
         </template>