|
@@ -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
|
|
|
})
|