Browse Source

修改样式

chenrui 2 years ago
parent
commit
ee9ce425cd

+ 11 - 11
src/config/router.config.js

@@ -701,7 +701,7 @@ export const asyncRouterMap = [
           //         // permission: 'M_salesQueryList'
           //       }
           //     }
-           //   ]
+          //   ]
           // }
         ]
       },
@@ -712,10 +712,10 @@ export const asyncRouterMap = [
         component: PageView,
         meta: {
           title: '购物车管理',
-          icon: 'contacts'
-          // permission: 'M_supplierInfoList'
-           },
-         children: [
+          icon: 'contacts',
+          permission: 'M_shoppingCarManagement'
+        },
+        children: [
           {
             path: '/shoppingCarManagement/shoppingCar',
             redirect: '/shoppingCarManagement/shoppingCar/list',
@@ -724,8 +724,8 @@ export const asyncRouterMap = [
             meta: {
               title: '购物车',
               icon: 'contacts'
-              // permission: 'M_supplierInfoList'
-           },
+              // permission: 'M_shoppingCarList'
+            },
             hideChildrenInMenu: true,
             children: [
               {
@@ -736,7 +736,7 @@ export const asyncRouterMap = [
                   title: '购物车列表',
                   icon: 'contacts',
                   hidden: true
-                  // permission: 'M_supplierInfoList'
+                  // permission: 'M_shoppingCarList'
                 }
               }
             ]
@@ -810,7 +810,7 @@ export const asyncRouterMap = [
                   replaceTab: true,
                   permission: 'B_purchaseDetail'
                 }
-              },
+              }
             ]
           },
           {
@@ -850,7 +850,7 @@ export const asyncRouterMap = [
               {
                 path: 'edit/:sn/:dealerSn',
                 name: 'purchaseOrderNewEdit',
-               component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrderNew/edit.vue'),
+                component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrderNew/edit.vue'),
                 meta: {
                   title: '编辑采购单',
                   icon: 'file-done',
@@ -869,7 +869,7 @@ export const asyncRouterMap = [
                   replaceTab: true,
                   permission: 'B_purchaseDetail'
                 }
-              },
+              }
             ]
           },
           {

+ 24 - 21
src/views/inventoryManagement/inventoryQuery/setPurchaseQty.vue

@@ -26,7 +26,7 @@
         <a-form-model-item label="采购数量" prop="warehouseSnList">
           <a-input-number
             id="shelfMonitoringList-maxUnsalableDays"
-            v-model="formItemLayout.wrapperCol"
+            v-model="formItemLayout.warehouseSnList"
             :precision="0"
             :min="0"
             :max="999999"
@@ -89,28 +89,31 @@ export default {
     //  保存
     handleSave () {
       const _this = this
+      _this.$emit('close')
+      _this.$router.push({ name: 'shoppingCarList', params: { type: 'pageBtn' } })
       this.$refs.ruleForm.validate(valid => {
         if (valid) {
-          const form = JSON.parse(JSON.stringify(_this.form))
-          if (form.checkType == 'ALL') {
-            delete form.warehouseFlag
-          }
-          if (form.warehouseSnList) {
-            form.warehouseSnList = form.warehouseSnList.join(',')
-          }
-          _this.spinning = true
-          checkWarehouseSave(form).then(res => {
-            if (res.status == 200) {
-              _this.$message.success(res.message)
-              setTimeout(() => {
-                _this.isShow = false
-                _this.$emit('ok', res.data)
-                _this.spinning = false
-              }, 1000)
-            } else {
-              _this.spinning = false
-            }
-          })
+
+          // const form = JSON.parse(JSON.stringify(_this.form))
+          // if (form.checkType == 'ALL') {
+          //   delete form.warehouseFlag
+          // }
+          // if (form.warehouseSnList) {
+          //   form.warehouseSnList = form.warehouseSnList.join(',')
+          // }
+          // _this.spinning = true
+          // checkWarehouseSave(form).then(res => {
+          //   if (res.status == 200) {
+          //     _this.$message.success(res.message)
+          //     setTimeout(() => {
+          //       _this.isShow = false
+          //       _this.$emit('ok', res.data)
+          //       _this.spinning = false
+          //     }, 1000)
+          //   } else {
+          //     _this.spinning = false
+          //   }
+          // })
         } else {
           console.log('error submit!!')
           return false

+ 1 - 0
src/views/shoppingCarManagement/shoppingCar/list.vue

@@ -267,6 +267,7 @@ export default {
     },
     pageInit () {
       const _this = this
+      _this.type = _this.$route.params.type
       this.$nextTick(() => { // 页面渲染完成后的回调
         _this.setTableH()
       })