Browse Source

fix(售后退货): 修复relationId引用错误并恢复质检主管列配置

liujt 7 months ago
parent
commit
d8a12e1847

+ 18 - 18
src/views/bpm/handleTask/components/saleOrder/customerReturnGoods/customerReturnOrder.vue

@@ -603,24 +603,24 @@ export default {
           }
         ],
         //质量部主管指派
-        // QCLeader: [
-        //   {
-        //     minWidth: 140,
-        //     prop: 'ifPackageOk',
-        //     label: '包装完好与否',
-        //     align: 'center',
-        //     slot: 'ifPackageOk',
-        //     headerSlot: 'headerIfPackageOk'
-        //   },
-        //   {
-        //     minWidth: 140,
-        //     prop: 'unpackUserName',
-        //     label: '拆包装责任人',
-        //     align: 'center',
-        //     slot: 'unpackUserName',
-        //     headerSlot: 'headerUnpackUserName'
-        //   }
-        // ],
+        QCLeader: [
+          {
+            minWidth: 140,
+            prop: 'ifPackageOk',
+            label: '包装完好与否',
+            align: 'center',
+            slot: 'ifPackageOk',
+            headerSlot: 'headerIfPackageOk'
+          },
+          {
+            minWidth: 140,
+            prop: 'unpackUserName',
+            label: '拆包装责任人',
+            align: 'center',
+            slot: 'unpackUserName',
+            headerSlot: 'headerUnpackUserName'
+          }
+        ],
         //质检员审核  
         QCApprove: [
           {

+ 3 - 225
src/views/bpm/handleTask/components/saleOrder/customerReturnGoods/purchaseList.vue

@@ -29,230 +29,7 @@
     data() {
       return {
         tableList:[],
-        // columns: [
-        //   {
-        //     columnKey: 'index',
-        //     label: '序号',
-        //     type: 'index',
-        //     width: 55,
-        //     align: 'center',
-        //     showOverflowTooltip: true
-        //   },
-
-        //   {
-        //     slot: 'batchNo',
-        //     prop: 'batchNo',
-        //     label: '批次号',
-        //     align: 'center',
-        //     minWidth: 140,
-        //     sortable: true
-        //   },
-
-        //   {
-        //     slot: 'code',
-        //     prop: 'code',
-        //     action: 'code',
-        //     label: '计划编号',
-        //     align: 'center',
-
-        //     minWidth: 160,
-        //     sortable: true
-        //   },
-
-        //   {
-        //     prop: 'salesCode',
-        //     action: 'salesCode',
-        //     label: '销售订单号',
-        //     align: 'center',
-        //     minWidth: 160
-        //   },
-
-        //   {
-        //     prop: 'productCode',
-        //     label: '编码',
-        //     align: 'center',
-
-        //     minWidth: 140
-        //   },
-        //   {
-        //     prop: 'productName',
-        //     label: '名称',
-        //     align: 'center',
-
-        //     minWidth: 140
-        //   },
-
-        //   {
-        //     prop: 'brandNo',
-        //     label: '牌号',
-        //     align: 'center',
-        //     showOverflowTooltip: true
-        //   },
-
-        //   {
-        //     prop: 'specification',
-        //     label: '规格',
-        //     align: 'center',
-        //     minWidth: 150,
-
-        //     showOverflowTooltip: true
-        //   },
-        //   {
-        //     prop: 'model',
-        //     label: '型号',
-        //     align: 'center',
-        //     showOverflowTooltip: true
-        //   },
-        //   {
-        //     prop: 'produceRoutingName',
-        //     label: '工艺路线',
-        //     align: 'center',
-        //     width: 140,
-        //     showOverflowTooltip: true
-        //   },
-
-        //   {
-        //     prop: 'productNum',
-        //     label: '计划数量',
-        //     align: 'center',
-
-        //     slot: 'productNum'
-        //   },
-        //   {
-        //     prop: 'productWeight',
-        //     label: '计划重量',
-        //     align: 'center',
-
-        //     slot: 'productWeight'
-        //   },
-        //   {
-        //     prop: 'requiredFormingNum',
-        //     label: '要求生产数量',
-        //     align: 'center',
-
-        //     slot: 'requiredFormingNum'
-        //   },
-
-        //   {
-        //     prop: 'newSumOrderWeight',
-        //     label: '要求生产重量',
-        //     align: 'center',
-
-        //     slot: 'newSumOrderWeight'
-        //   },
-
-        //   {
-        //     prop: 'scheduleStatusName',
-        //     label: '进度状态',
-        //     align: 'center',
-        //     minWidth: 100
-        //   },
-
-        //   {
-        //     prop: '',
-        //     label: '已排产数量',
-        //     align: 'center',
-        //     showOverflowTooltip: true
-        //   },
-
-        //   {
-        //     prop: '',
-        //     label: '未排产数量',
-        //     align: 'center',
-        //     showOverflowTooltip: true
-        //   },
-
-        //   {
-        //     prop: '',
-        //     label: '已生产数量',
-        //     align: 'center',
-        //     showOverflowTooltip: true
-        //   },
-
-        //   {
-        //     prop: '',
-        //     label: '未生产数量',
-        //     align: 'center',
-        //     showOverflowTooltip: true
-        //   },
-
-        //   {
-        //     prop: 'factoryName',
-        //     label: '所属工厂',
-        //     align: 'center'
-        //   },
-
-        //   {
-        //     prop: '',
-        //     label: '合格品数',
-        //     align: 'center'
-        //   },
-
-        //   {
-        //     prop: '',
-        //     label: '不合格品数',
-        //     align: 'center'
-        //   },
-
-        //   {
-        //     prop: '',
-        //     label: '合格率',
-        //     align: 'center'
-        //   },
-
-        //   {
-        //     prop: 'reqMoldTime',
-        //     label: '计划完成日期',
-        //     align: 'center',
-        //     width: 110,
-        //     showOverflowTooltip: true
-        //   },
-
-        //   {
-        //     prop: 'startTime',
-        //     label: '计划开始日期',
-        //     align: 'center',
-        //     width: 110,
-        //     showOverflowTooltip: true
-        //   },
-
-        //   {
-        //     prop: 'endTime',
-        //     label: '计划结束日期',
-        //     align: 'center',
-        //     width: 110,
-        //     showOverflowTooltip: true
-        //   },
-
-        //   {
-        //     prop: 'version',
-        //     label: '版本',
-        //     align: 'center',
-
-        //     minWidth: 80
-        //   },
-        //   {
-        //     prop: 'createTime',
-        //     label: '创建时间',
-        //     align: 'center',
-        //     width: 110,
-        //     showOverflowTooltip: true
-        //   },
-        //   {
-        //     columnKey: 'status',
-        //     slot: 'status',
-        //     label: '状态',
-        //     align: 'center'
-        //   }
-        // ]
-
         columns: [
-        // {
-        //   width: 45,
-        //   type: 'selection',
-        //   columnKey: 'selection',
-        //   align: 'center'
-        // },
         {
           columnKey: 'index',
           label: '序号',
@@ -445,13 +222,14 @@
     },
     computed: {},
     created() {
+      console.log('this.relationId~~~', this.relationId);
       this.productionplanByIds()
     },
     methods: {
       productionplanByIds(){
-        
         getTableList({relationId:this.relationId}).then(res=>{
-          this.tableList=res
+          console.log('res~~~', res);
+          this.tableList=res.list
         })
       }
     }

+ 3 - 2
src/views/bpm/handleTask/components/saleOrder/customerReturnGoods/repair-tabs-page.vue

@@ -89,6 +89,7 @@
     },
     watch: {
       activeName(val) {
+        console.log('componentName~~~', val);
         let componentName = val;
         const detailsArr = ['outerStoremanOut', 'outerStoremanIn','outerFillWeight'];
         if (
@@ -180,13 +181,13 @@
               bizType: 6,
               sourceBizNo: this.form.returnHandleNo,
               detailList: this.detailList,
-              relationId: this.form.outerOutReceiptId
+               relationId: this.businessId
             };
           case 'outerStoremanOutDetails':
             return {
               businessId: this.form.outerOutReceiptId,
               isIds: true,
-              relationId: this.form.outerOutReceiptId
+              relationId: this.businessId
             };
 
           case 'outerInQC':