Răsfoiți Sursa

feat(冲差): 调整冲差信息表格配置并添加选择列功能10%

liujt 7 luni în urmă
părinte
comite
b584229483

+ 11 - 0
src/BIZComponents/inventoryTableDetails.vue

@@ -269,6 +269,10 @@
       isProductionRequirements: {
         type: Boolean,
         default: false
+      },
+      isSelected: {
+        type: Boolean,
+        default: false
       }
     },
     data() {
@@ -311,6 +315,12 @@
             align: 'center'
           };
         }
+        let selectedColumn = [{
+          width: 45,
+          type: 'selection',
+          align: 'center'
+        }];
+
         return [
           {
             width: 45,
@@ -318,6 +328,7 @@
             columnKey: 'index',
             align: 'center'
           },
+          this.isSelected ? selectedColumn : [],
           orderColumn,
           {
             width: 280,

+ 3 - 7
src/views/saleManage/saleOrder/adjustmentNote‌/components/addAdjustDialog.vue

@@ -129,6 +129,8 @@
       <headerTitle title="物品清单" style="margin-top: 30px"></headerTitle>
       <inventoryTableDetails
         ref="inventoryTableDetailsRef"
+        :isDiscountTotalPrice="true"
+        :isSelected="true"
       ></inventoryTableDetails>
       <headerTitle
         title="冲差信息"
@@ -295,12 +297,6 @@
         type: Boolean,
         default: false
       },
-      contactData: {
-        type: Object,
-        default: () => {
-          return {};
-        }
-      },
       saleOrderData: {
         type: Object,
         default: () => {
@@ -775,7 +771,7 @@
         if (data) {
           this.$nextTick(() => {
             this.$refs.inventoryTableDetailsRef &&
-              this.$refs.inventoryTableDetailsRef.putTableValue(data.productList);
+              this.$refs.inventoryTableDetailsRef.putTableValue(data);
           });
         }
       },

+ 165 - 158
src/views/saleManage/saleOrder/adjustmentNote‌/components/inventoryTable.vue

@@ -18,7 +18,7 @@
             justifyContent: type != '10' ? 'space-between' : 'flex-end'
           }"
         >
-          <el-button
+          <!-- <el-button
             size="small"
             type="primary"
             icon="el-icon-plus"
@@ -26,7 +26,7 @@
             @click="handlAdd"
             v-if="type != '10'"
             >新增
-          </el-button>
+          </el-button> -->
           <div class="pricebox">
             <span class="amount">总金额{{ totalAmount }}元</span>
           </div>
@@ -353,13 +353,13 @@
             showOverflowTooltip: true,
             align: 'center'
           },
-          {
-            minWidth: 160,
-            prop: 'productCode',
-            label: '编码',
-            showOverflowTooltip: true,
-            align: 'center'
-          },
+          // {
+          //   minWidth: 160,
+          //   prop: 'productCode',
+          //   label: '编码',
+          //   showOverflowTooltip: true,
+          //   align: 'center'
+          // },
           {
             minWidth: 120,
             prop: 'productName',
@@ -368,76 +368,76 @@
             align: 'center'
           },
 
-          {
-            minWidth: 160,
-            prop: 'batchNo',
-            label: '批次号',
-            showOverflowTooltip: true,
-            slot: 'batchNo',
-            align: 'center'
-          },
-          {
-            minWidth: 160,
-            prop: 'barcodes',
-            label: '发货条码',
-            showOverflowTooltip: true,
-            slot: 'barcodes',
-            align: 'center'
-          },
-          {
-            minWidth: 120,
-            prop: 'materielDesignation',
-            label: '物料代号',
-            showOverflowTooltip: true,
-            align: 'center'
-          },
-          {
-            minWidth: 120,
-            prop: 'clientCode',
-            label: '客户代号',
-            showOverflowTooltip: true,
-            align: 'center'
-          },
-          {
-            minWidth: 120,
-            prop: 'engrave',
-            label: '刻码',
-            showOverflowTooltip: true,
-            align: 'center'
-          },
-          {
-            minWidth: 160,
-            prop: 'packageNo',
-            align: 'center',
-            label: '包装编码',
-            showOverflowTooltip: true
-          },
-          {
-            minWidth: 100,
-            prop: 'packingQuantity',
-            align: 'center',
-            label: '包装数量',
-            showOverflowTooltip: true
-          },
-          {
-            minWidth: 120,
-            prop: 'packingUnit',
-            align: 'center',
-            label: '包装单位',
-            showOverflowTooltip: true
-          },
-          {
-            minWidth: 150,
-            prop: 'totalCount',
-            slot: 'totalCount',
-            label: '退货数量',
-            showOverflowTooltip: true,
-            align: 'center'
-          },
+          // {
+          //   minWidth: 160,
+          //   prop: 'batchNo',
+          //   label: '批次号',
+          //   showOverflowTooltip: true,
+          //   slot: 'batchNo',
+          //   align: 'center'
+          // },
+          // {
+          //   minWidth: 160,
+          //   prop: 'barcodes',
+          //   label: '发货条码',
+          //   showOverflowTooltip: true,
+          //   slot: 'barcodes',
+          //   align: 'center'
+          // },
+          // {
+          //   minWidth: 120,
+          //   prop: 'materielDesignation',
+          //   label: '物料代号',
+          //   showOverflowTooltip: true,
+          //   align: 'center'
+          // },
+          // {
+          //   minWidth: 120,
+          //   prop: 'clientCode',
+          //   label: '客户代号',
+          //   showOverflowTooltip: true,
+          //   align: 'center'
+          // },
+          // {
+          //   minWidth: 120,
+          //   prop: 'engrave',
+          //   label: '刻码',
+          //   showOverflowTooltip: true,
+          //   align: 'center'
+          // },
+          // {
+          //   minWidth: 160,
+          //   prop: 'packageNo',
+          //   align: 'center',
+          //   label: '包装编码',
+          //   showOverflowTooltip: true
+          // },
+          // {
+          //   minWidth: 100,
+          //   prop: 'packingQuantity',
+          //   align: 'center',
+          //   label: '包装数量',
+          //   showOverflowTooltip: true
+          // },
+          // {
+          //   minWidth: 120,
+          //   prop: 'packingUnit',
+          //   align: 'center',
+          //   label: '包装单位',
+          //   showOverflowTooltip: true
+          // },
+          // {
+          //   minWidth: 150,
+          //   prop: 'totalCount',
+          //   slot: 'totalCount',
+          //   label: '退货数量',
+          //   showOverflowTooltip: true,
+          //   align: 'center'
+          // },
           {
             minWidth: 150,
             prop: 'measuringUnit',
-            label: '计量单位',
+            label: '数量',
             showOverflowTooltip: true,
             align: 'center'
           },
@@ -455,15 +455,15 @@
           //       : '';
           //   }
           // },
-          {
-            width: 160,
-            prop: 'goodsPriceType',
-            label: '价格类型',
-            formatter: (row, column) => {
-              return this.getDictValue('商品价格类型', row.goodsPriceType);
-            },
-            align: 'center'
-          },
+          // {
+          //   width: 160,
+          //   prop: 'goodsPriceType',
+          //   label: '价格类型',
+          //   formatter: (row, column) => {
+          //     return this.getDictValue('商品价格类型', row.goodsPriceType);
+          //   },
+          //   align: 'center'
+          // },
           {
             width: 100,
             prop: 'singlePrice',
@@ -471,6 +471,13 @@
             slot: 'singlePrice',
             align: 'center'
           },
+          {
+            width: 100,
+            prop: 'notaxSinglePrice',
+            label: '单价差异',
+            slot: 'notaxSinglePrice',
+            align: 'center'
+          },
           {
             width: 160,
             prop: 'taxRate',
@@ -482,9 +489,9 @@
           },
           {
             width: 180,
-            prop: 'notaxSinglePrice',
+            prop: 'notaxSinglePrice1',
             label: '不含税单价',
-            // slot: 'notaxSinglePrice',
+            slot: 'notaxSinglePrice1',
             align: 'center'
           },
           {
@@ -501,79 +508,79 @@
           //   showOverflowTooltip: true,
           //   align: 'center'
           // },
-          {
-            minWidth: 120,
-            prop: 'receiveTotalWeight',
-            label: '重量',
-            // slot: 'singleWeight',
-            showOverflowTooltip: true,
-            align: 'center'
-          },
-          {
-            minWidth: 100,
-            prop: 'weightUnit',
-            label: '重量单位',
-            showOverflowTooltip: true,
-            align: 'center'
-          },
-          {
-            prop: 'provenance',
-            label: '产地',
-            slot: 'provenance',
-            align: 'center',
-            minWidth: 200,
-            showOverflowTooltip: true,
-            formatter: (row, column) => {
-              return row.provenance && row.provenance.length
-                ? row.provenance
-                    .map((item) => this.getDictValue('产地', item))
-                    .join(',')
-                : '';
-            }
-          },
+          // {
+          //   minWidth: 120,
+          //   prop: 'receiveTotalWeight',
+          //   label: '重量',
+          //   // slot: 'singleWeight',
+          //   showOverflowTooltip: true,
+          //   align: 'center'
+          // },
+          // {
+          //   minWidth: 100,
+          //   prop: 'weightUnit',
+          //   label: '重量单位',
+          //   showOverflowTooltip: true,
+          //   align: 'center'
+          // },
+          // {
+          //   prop: 'provenance',
+          //   label: '产地',
+          //   slot: 'provenance',
+          //   align: 'center',
+          //   minWidth: 200,
+          //   showOverflowTooltip: true,
+          //   formatter: (row, column) => {
+          //     return row.provenance && row.provenance.length
+          //       ? row.provenance
+          //           .map((item) => this.getDictValue('产地', item))
+          //           .join(',')
+          //       : '';
+          //   }
+          // },
 
-          {
-            minWidth: 100,
-            prop: 'renturnType',
-            label: '状态',
-            showOverflowTooltip: true,
-            align: 'center'
-          },
-          {
-            minWidth: 120,
-            prop: 'goodsLevel',
-            label: '物品级别',
-            formatter: (_row, _column, cellValue) => {
-              return levelList.find((item) => item.value == _row.goodsLevel)
-                ?.label;
-            },
-            align: 'center'
-          },
-          {
-            minWidth: 200,
-            prop: 'returnReason',
-            label: '退货原因',
-            slot: 'returnReason',
-            align: 'center'
-          },
+          // {
+          //   minWidth: 100,
+          //   prop: 'renturnType',
+          //   label: '状态',
+          //   showOverflowTooltip: true,
+          //   align: 'center'
+          // },
+          // {
+          //   minWidth: 120,
+          //   prop: 'goodsLevel',
+          //   label: '物品级别',
+          //   formatter: (_row, _column, cellValue) => {
+          //     return levelList.find((item) => item.value == _row.goodsLevel)
+          //       ?.label;
+          //   },
+          //   align: 'center'
+          // },
+          // {
+          //   minWidth: 200,
+          //   prop: 'returnReason',
+          //   label: '退货原因',
+          //   slot: 'returnReason',
+          //   align: 'center'
+          // },
 
-          {
-            width: 220,
-            prop: 'remark',
-            label: '备注',
-            slot: 'remark',
-            align: 'center'
-          },
-          {
-            columnKey: 'action',
-            label: '操作',
-            width: 120,
-            align: 'center',
-            resizable: false,
-            slot: 'action',
-            fixed: 'right',
-            showOverflowTooltip: true
-          }
+          // {
+          //   width: 220,
+          //   prop: 'remark',
+          //   label: '备注',
+          //   slot: 'remark',
+          //   align: 'center'
+          // },
+          // {
+          //   columnKey: 'action',
+          //   label: '操作',
+          //   width: 120,
+          //   align: 'center',
+          //   resizable: false,
+          //   slot: 'action',
+          //   fixed: 'right',
+          //   showOverflowTooltip: true
+          // }
         ]
       };
     },