瀏覽代碼

修改库存管理

csx 6 年之前
父節點
當前提交
76acaafb9f

+ 4 - 0
src/xt_pages/stock/Dialog/salesReturnDialog.vue 查看文件

@@ -15,6 +15,8 @@
15 15
           border
16 16
           highlight-current-row
17 17
           max-height="250"
18
+          :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
19
+
18 20
           @current-change="goodTypeTableChange"
19 21
           style="width: 100%">
20 22
           <el-table-column
@@ -30,6 +32,8 @@
30 32
           ref="multipleTable"
31 33
           max-height="250"
32 34
           @row-click="clickRow"
35
+          :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
36
+
33 37
           @selection-change="changeGoodInfoTableData"
34 38
           @select-all="changeAllGoodInfoTableData"
35 39
           row-key="row_key"

+ 2 - 0
src/xt_pages/stock/Dialog/stockInDialog.vue 查看文件

@@ -16,6 +16,7 @@
16 16
           highlight-current-row
17 17
           max-height="250"
18 18
           @current-change="goodTypeTableChange"
19
+          :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
19 20
           style="width: 100%">
20 21
           <el-table-column
21 22
             prop="type_name"
@@ -34,6 +35,7 @@
34 35
           @select-all="changeAllGoodInfoTableData"
35 36
           row-key="row_key"
36 37
           style="width: 100%"
38
+          :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
37 39
         >
38 40
           <el-table-column
39 41
             type="selection"

+ 29 - 26
src/xt_pages/stock/stockInOrderAdd.vue 查看文件

@@ -467,34 +467,37 @@
467 467
           this.$message.error('请先选择厂商')
468 468
           return
469 469
         } else {
470
+          this.$refs.dialog.show()
470 471
 
471 472
           // this.isVisibility = true
472
-          const params = {
473
-            id: this.form.manufacturer
474
-          }
475
-          this.propForm.goodType = []
476
-          GetAllGoodInfoByID(params).then(response => {
477
-            if (response.data.state == 0) {
478
-              this.$message.error(response.data.msg)
479
-              return false
480
-            } else {
481
-              if (response.data.data.goodInfo.length == 0) {
482
-                this.$message.error('该厂商没商品,请添加商品')
483
-              } else {
484
-                for (let i = 0; i < response.data.data.goodInfo.length; i++) {
485
-                  this.propForm.goodType.push(response.data.data.goodInfo[i].GoodsType)
486
-                }
487
-
488
-                const obj = {}
489
-                this.propForm.goodType = this.propForm.goodType.reduce((cur, next) => {
490
-                  obj[next.id] ? '' : obj[next.id] = true && cur.push(next)
491
-                  return cur
492
-                }, []) // 设置cur默认类型为数组,并且初始值为空的数组
493
-                this.$refs.dialog.show()
494
-
495
-              }
496
-            }
497
-          })
473
+          // const params = {
474
+          //   id: this.form.manufacturer
475
+          // }
476
+          this.propForm.goodType = this.goodType
477
+          //
478
+
479
+
480
+          // GetAllGoodInfoByID(params).then(response => {
481
+          //   if (response.data.state == 0) {
482
+          //     this.$message.error(response.data.msg)
483
+          //     return false
484
+          //   } else {
485
+          //     if (response.data.data.goodInfo.length == 0) {
486
+          //       this.$message.error('该厂商没商品,请添加商品')
487
+          //     } else {
488
+          //       for (let i = 0; i < response.data.data.goodInfo.length; i++) {
489
+          //         this.propForm.goodType.push(response.data.data.goodInfo[i].GoodsType)
490
+          //       }
491
+          //
492
+          //       const obj = {}
493
+          //       this.propForm.goodType = this.propForm.goodType.reduce((cur, next) => {
494
+          //         obj[next.id] ? '' : obj[next.id] = true && cur.push(next)
495
+          //         return cur
496
+          //       }, []) // 设置cur默认类型为数组,并且初始值为空的数组
497
+          //
498
+          //     }
499
+          //   }
500
+          // })
498 501
         }
499 502
       }, getSummaries(param) {
500 503
         const { columns, data } = param

+ 2 - 15
src/xt_pages/stock/stockInOrderEdit.vue 查看文件

@@ -385,21 +385,8 @@ export default {
385 385
               this.$message.error(response.data.msg)
386 386
               return false
387 387
             } else {
388
-              if (response.data.data.goodInfo.length == 0) {
389
-                this.$message.error('该厂商没商品,请添加商品')
390
-              } else {
391
-                for (let i = 0; i < response.data.data.goodInfo.length; i++) {
392
-                  this.propForm.goodType.push(response.data.data.goodInfo[i].GoodsType)
393
-                }
394
-
395
-                const obj = {}
396
-                this.propForm.goodType = this.propForm.goodType.reduce((cur, next) => {
397
-                  obj[next.id] ? '' : obj[next.id] = true && cur.push(next)
398
-                  return cur
399
-                }, []) // 设置cur默认类型为数组,并且初始值为空的数组
400
-                this.$refs.dialog.show()
401
-
402
-              }
388
+              this.propForm.goodType = this.goodType
389
+              this.$refs.dialog.show()
403 390
             }
404 391
           })
405 392
         }