|
@@ -243,10 +243,9 @@
|
|
|
workOrderProjectNo: workOrderProjectNo.value,
|
|
workOrderProjectNo: workOrderProjectNo.value,
|
|
|
workOrderStatus: workOrderStatus.value,
|
|
workOrderStatus: workOrderStatus.value,
|
|
|
returnType: workOrderStatus.value != 'assigned' ? returnType.value : null,
|
|
returnType: workOrderStatus.value != 'assigned' ? returnType.value : null,
|
|
|
- returnReason: workOrderStatus.value != 'assigned' ? returnReason.value : null,
|
|
|
|
|
|
|
+ returnReason: workOrderStatus.value != 'assigned' && returnType.value == '0' ? returnReason.value : null,
|
|
|
acceptReturnType: workOrderStatus.value == 'assigned' ? returnType.value : null,
|
|
acceptReturnType: workOrderStatus.value == 'assigned' ? returnType.value : null,
|
|
|
- acceptReturnReason: workOrderStatus.value == 'assigned' ? returnReason.value : null,
|
|
|
|
|
- // gxtRepairOrder:
|
|
|
|
|
|
|
+ acceptReturnReason: workOrderStatus.value == 'assigned' && returnType.value == '0' ? returnReason.value : null,
|
|
|
} as UTSJSONObject
|
|
} as UTSJSONObject
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -255,7 +254,7 @@
|
|
|
const code = resultObj['code'] as number
|
|
const code = resultObj['code'] as number
|
|
|
if (code == 200) {
|
|
if (code == 200) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
- title: '挂起成功',
|
|
|
|
|
|
|
+ title: '退回成功',
|
|
|
icon: 'success'
|
|
icon: 'success'
|
|
|
})
|
|
})
|
|
|
hasDealed.value = true
|
|
hasDealed.value = true
|