Qukatie 2 éve
szülő
commit
9900e35f95

+ 1 - 1
src/api/basicData/product.js

@@ -73,6 +73,6 @@ export function getAllgoods() {
     return request({
         url: '/api/blade-client/goodsDescParts/update',
         method: 'post',
-        params: data
+        data: data
     })
 }

+ 7 - 11
src/views/Inventory/index.vue

@@ -9,13 +9,13 @@
           <!-- <el-button type="primary" size="mini" @click.stop="newAdd()">新建产品
           </el-button> -->
         </template>
-        <template slot-scope="{ row, index }" slot="id">
+        <!-- <template slot-scope="{ row, index }" slot="id">
           <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 2)">{{ row.cname }}
           </span>
-        </template>
+        </template> -->
         <template slot-scope="{ row, index }" slot="menu">
           <el-tooltip class="item" effect="dark" content="盘存" placement="top">
-            <i class="tradingIcon icon-inStock" />
+            <i class="tradingIcon icon-inStock" @click="rowCell(row, index)" />
           </el-tooltip>
           <!-- <el-tooltip class="item" effect="dark" content="删除" placement="top">
             <i class="tradingIcon icon-del" />
@@ -48,7 +48,7 @@
 <script>
 import detailsPage from "./detailsPage";
 import { option } from "./js/optionList";
-import { getList,getAllgoods} from "@/api/basicData/Inventory";
+import { getList, getAllgoods } from "@/api/basicData/Inventory";
 export default {
   name: "index",
   data() {
@@ -113,6 +113,9 @@ export default {
     refreshChange() {
       this.onLoad(this.page, this.search);
     },
+    rowCell(row, index) {
+      this.$refs.crud.rowEdit(row, index)
+    },
     newAdd() {
       this.show = false;
     },
@@ -132,13 +135,6 @@ export default {
           this.loading = false;
         });
     },
-    editOpen(row, status) {
-      this.detailData = {
-        id: row.id,
-        status: status
-      };
-      this.show = false;
-    },
     currentChange(val) {
       this.page.currentPage = val;
     },

+ 17 - 0
src/views/Inventory/js/optionList.js

@@ -27,6 +27,7 @@ export const option = {
         value: "cname"
       },
       search: true,
+      display:false,
       overHidden: true,
       index: 1
     },
@@ -34,31 +35,38 @@ export const option = {
       label: "产品分类",
       prop: "goodsType",
       overHidden: true,
+      display:false,
       index: 2
     },
     {
       label: "仓库",
       prop: "storage",
       overHidden: true,
+      display:false,
       index:3
     },
     {
       label: "期初库存",
       prop: "arrears",
       overHidden: true,
+      display:false,
       index:4
     },
     {
       label: "库存数量",
       prop: "balance",
+      type:'number',
+      controls:false,
       overHidden: true,
       cell:true,
+      span:24,
       index:5
     },
     {
       label: "库存预警值",
       prop: "lowerLimit",
       overHidden: true,
+      display:false,
       width:120,
       index: 6
     },
@@ -66,13 +74,17 @@ export const option = {
       label: "采购价",
       prop: "purchasePrice",
       overHidden: true,
+      display:false,
       index: 7
     },
     {
       label: "成本均价",
       prop: "stockPrice",
+      type:'number',
+      controls:false,
       overHidden: true,
       cell:true,
+      span:24,
       index: 8
     },
     {
@@ -89,6 +101,7 @@ export const option = {
       search: true,
       hide: true,
       showColumn: false,
+      display:false,
       index: 9
     },
     {
@@ -96,12 +109,14 @@ export const option = {
       prop: "remarks",
       overHidden: true,
       search: true,
+      display:false,
       index: 10
     },
     {
       label: "更新日期",
       prop: "updateTime",
       overHidden: true,
+      display:false,
       index: 11
     },
     {
@@ -119,6 +134,7 @@ export const option = {
       search: true,
       hide: true,
       showColumn: false,
+      display:false,
       index: 12
     },
     {
@@ -136,6 +152,7 @@ export const option = {
       overHidden: true,
       hide: true,
       showColumn: false,
+      display:false,
       index: 13
     }
   ]

+ 10 - 0
src/views/product/detailsPage.vue

@@ -116,26 +116,36 @@ export default {
           {
             label: "标准售价",
             prop: "standardPrice",
+            type: 'number',
+            controls: false,
             span: 8,
           },
           {
             label: "批发售价",
             prop: "wholesalePrice",
+            type: 'number',
+            controls: false,
             span: 8,
           },
           {
             label: "汽修厂售价",
             prop: "repairDepotPrice",
+            type: 'number',
+            controls: false,
             span: 8,
           },
           {
             label: "门店售价",
             prop: "storePrice",
+            type: 'number',
+            controls: false,
             span: 8,
           },
           {
             label: "采购价",
             prop: "purchasePrice",
+            type: 'number',
+            controls: false,
             span: 8,
           },
           {

+ 8 - 0
src/views/product/js/optionList.js

@@ -127,6 +127,8 @@ export const optionList = {
     {
       label: "库存数量",
       prop: "balanceQuantity",
+      type: 'number',
+      controls: false,
       cell: true,
       overHidden: true
     },
@@ -139,18 +141,24 @@ export const optionList = {
     {
       label: "结余金额",
       prop: "balanceAmount",
+      type: 'number',
+      controls: false,
       cell: true,
       overHidden: true
     },
     {
       label: "库存下限",
       prop: "lowerLimit",
+      type: 'number',
+      controls: false,
       cell: true,
       overHidden: true
     },
     {
       label: "送货数量",
       prop: "actualQuantity",
+      type: 'number',
+      controls: false,
       cell: true,
       overHidden: true
     }

+ 4 - 0
src/views/salesOrder/js/optionList.js

@@ -199,6 +199,8 @@ export const optionList = {
     {
       label: "送货数量",
       prop: "actualQuantity",
+      type: 'number',
+      controls: false,
       cell: true,
       overHidden: true
     },
@@ -222,6 +224,8 @@ export const optionList = {
     {
       label: "采购数量",
       prop: "purchaseQuantity",
+      type: 'number',
+      controls: false,
       cell: true,
       overHidden: true
     }