Browse Source

【修改】bug

莫绍宝 3 years ago
parent
commit
1fbe25867c
1 changed files with 4 additions and 6 deletions
  1. 4 6
      src/views/supply/deliver/sum_list.vue

+ 4 - 6
src/views/supply/deliver/sum_list.vue

@@ -387,8 +387,6 @@ export default {
         salesMan: '',
         k3ServiceId: '',
         mainOrderId: '',
-        approvalEndTime: '',
-        approvalStartTime: '',
         approvaTime: ''
       },
       categoryList: [],
@@ -463,8 +461,8 @@ export default {
         categoryName: this.screenForm.type,
         serviceId: this.screenForm.salesMan,
         k3ServiceId: this.screenForm.k3ServiceId,
-        approvalEndTime: this.screenForm.approvaTime[0],
-        approvalStartTime: this.screenForm.approvaTime[1]
+        approvalEndTime: this.screenForm.approvaTime ? this.screenForm.approvaTime[0] : '',
+        approvalStartTime: this.screenForm.approvaTime ? this.screenForm.approvaTime[1] : '',
       }
     },
     comRefundableQty() {
@@ -585,8 +583,8 @@ export default {
         serviceId: this.screenForm.salesMan,
         k3ServiceId: this.screenForm.k3ServiceId,
         mainOrderId: this.screenForm.mainOrderId,
-        approvalEndTime: this.screenForm.approvaTime[1],
-        approvalStartTime: this.screenForm.approvaTime[0]
+        approvalEndTime: this.screenForm.approvaTime ? this.screenForm.approvaTime[0] : '',
+        approvalStartTime: this.screenForm.approvaTime ? this.screenForm.approvaTime[1] : '',
       };