瀏覽代碼

no message

linwenxin 6 月之前
父節點
當前提交
56af881bc7
共有 1 個文件被更改,包括 21 次插入3 次删除
  1. 21 3
      src/views/userManagement/qualityGuaranteeFund/index.vue

+ 21 - 3
src/views/userManagement/qualityGuaranteeFund/index.vue

@@ -413,7 +413,7 @@ export default {
           },
           formItemAttributes: {
             label: '师傅编号',
-            prop: 'workerId'
+            prop: 'workerNumber'
           }
         },
         {
@@ -781,7 +781,16 @@ export default {
         details: {
           click: ({ row, index, column }) => {
             workerWarrantyDetail({ warrantyId: row.warrantyId }).then(res => {
-              this.formData = res.data
+              this.formData = {
+                ...res.data,
+                inTime: res.data.inTime ? res.data.inTime?.split(' ')?.[0] : '',
+                workerWarrantyPays: res.data.workerWarrantyPays?.map(item => {
+                  return {
+                    ...item,
+                    payTime: item.payTime ? item.payTime?.split(' ')?.[0] : ''
+                  }
+                })
+              }
               this.formDialog2 = true
             })
           }
@@ -792,7 +801,16 @@ export default {
           },
           click: ({ row, index, column }) => {
             workerWarrantyDetail({ warrantyId: row.warrantyId }).then(res => {
-              this.formData = res.data
+              this.formData = {
+                ...res.data,
+                inTime: res.data.inTime ? res.data.inTime?.split(' ')?.[0] : '',
+                workerWarrantyPays: res.data.workerWarrantyPays?.map(item => {
+                  return {
+                    ...item,
+                    payTime: item.payTime ? item.payTime?.split(' ')?.[0] : ''
+                  }
+                })
+              }
               this.formTK.ktkje = (row.payableAmount || 0) - (row.refundAmount || 0)
               this.formDialog3 = true
             })