|
|
@@ -296,6 +296,7 @@
|
|
|
:repair-order-flow-action-type-options="gxt_repair_order_flow_action_type"
|
|
|
:work-area-options="gxt_work_area"
|
|
|
:return-type-options="gxt_return_type"
|
|
|
+ :accept-return-type-options="gxt_accept_return_type"
|
|
|
/>
|
|
|
|
|
|
<!-- 维保工单详情对话框 -->
|
|
|
@@ -1244,7 +1245,7 @@
|
|
|
v-model="returnDialogVisible"
|
|
|
:data="returnForm"
|
|
|
:work-order-status-options="gxt_work_order_status"
|
|
|
- :return-type-options="returnForm.workOrderStatus == 'assigned' ? gxt_accept_return_reason : gxt_return_type "
|
|
|
+ :return-type-options="returnForm.workOrderStatus == 'to_finish' ? gxt_return_type : gxt_accept_return_type"
|
|
|
:on-submit="submitReturnFromParent"
|
|
|
@success="handleReturnSuccess"
|
|
|
/>
|
|
|
@@ -1482,7 +1483,7 @@ const {
|
|
|
gxt_info_entry,
|
|
|
gxt_work_area,
|
|
|
gxt_return_type,
|
|
|
- gxt_accept_return_reason
|
|
|
+ gxt_accept_return_type
|
|
|
} = proxy.useDict(
|
|
|
"gxt_maintenance_type",
|
|
|
"gxt_work_order_status",
|
|
|
@@ -1496,7 +1497,7 @@ const {
|
|
|
"gxt_info_entry",
|
|
|
"gxt_work_area",
|
|
|
"gxt_return_type",
|
|
|
- "gxt_accept_return_reason"
|
|
|
+ "gxt_accept_return_type"
|
|
|
);
|
|
|
|
|
|
// 表单验证规则
|
|
|
@@ -2686,10 +2687,12 @@ async function submitFinalizeFromParent(data) {
|
|
|
function handleReturn(row) {
|
|
|
getRepairOrder(row.id).then(response => {
|
|
|
returnForm.value = response.data
|
|
|
- if (row.workOrderStatus != 'return') {
|
|
|
+ // if (row.workOrderStatus != 'return') {
|
|
|
returnForm.value.returnType = undefined
|
|
|
returnForm.value.returnReason = undefined
|
|
|
- }
|
|
|
+ returnForm.value.acceptReturnType = undefined
|
|
|
+ returnForm.value.acceptReturnReason = undefined
|
|
|
+ // }
|
|
|
returnDialogVisible.value = true
|
|
|
})
|
|
|
}
|