Kaynağa Gözat

input 输入问题

zhouhao 2 yıl önce
ebeveyn
işleme
1441c81bd7
1 değiştirilmiş dosya ile 17 ekleme ve 17 silme
  1. 17 17
      src/views/basic_data/stock/stock_fee_list.vue

+ 17 - 17
src/views/basic_data/stock/stock_fee_list.vue

@@ -376,14 +376,14 @@ export default {
         correspondId: this.screenForm.correspondId.join(','),
         customerName: this.screenForm.customerName,
         customerNumber: this.screenForm.customerNumber,
-        endTime: this.screenForm.orderDate[1],
+        endTime: this.screenForm.orderDate?this.screenForm.orderDate[1] :'',
         id: this.screenForm.id,
-        invoiceEndTime: this.screenForm.invoiceDate[1],
-        invoiceStartTime: this.screenForm.invoiceDate[0],
-        approvalStartTime: this.screenForm.approvalDate[0],
-        approvalEndTime: this.screenForm.approvalDate[1],
-        saleStartTime: this.screenForm.saleDate[0],
-        saleEndTime: this.screenForm.saleDate[1],
+        invoiceEndTime: this.screenForm.invoiceDate?this.screenForm.invoiceDate[1]:'',
+        invoiceStartTime:this.screenForm.invoiceDate? this.screenForm.invoiceDate[0]:'',
+        approvalStartTime:this.screenForm.approvalDate? this.screenForm.approvalDate[0]:'',
+        approvalEndTime:this.screenForm.approvalDate? this.screenForm.approvalDate[1]:'',
+        saleStartTime:this.screenForm.saleDate? this.screenForm.saleDate[0]:'',
+        saleEndTime:this.screenForm.saleDate? this.screenForm.saleDate[1]:'',
         saleExamineStatus: this.screenForm.saleExamineStatus,
         mainOrderId: this.screenForm.mainOrderId,
         materialName: this.screenForm.materialName,
@@ -391,7 +391,7 @@ export default {
         orderNo: this.screenForm.orderNo,
         orderType: this.screenForm.orderType,
         specification: this.screenForm.specification,
-        startTime: this.screenForm.orderDate[0]
+        startTime:this.screenForm.orderDate? this.screenForm.orderDate[0]:''
       }
     },
     filterOderType() {
@@ -421,22 +421,22 @@ export default {
         correspondId: this.screenForm.correspondId.join(','),
         customerName: this.screenForm.customerName,
         customerNumber: this.screenForm.customerNumber,
-        endTime: this.screenForm.orderDate[1],
+        endTime: this.screenForm.orderDate?this.screenForm.orderDate[1] :'',
         id: this.screenForm.id,
-        invoiceEndTime: this.screenForm.invoiceDate[1],
-        invoiceStartTime: this.screenForm.invoiceDate[0],
+        invoiceEndTime: this.screenForm.invoiceDate?this.screenForm.invoiceDate[1]:'',
+        invoiceStartTime:this.screenForm.invoiceDate? this.screenForm.invoiceDate[0]:'',
+        approvalStartTime:this.screenForm.approvalDate? this.screenForm.approvalDate[0]:'',
+        approvalEndTime:this.screenForm.approvalDate? this.screenForm.approvalDate[1]:'',
+        saleStartTime:this.screenForm.saleDate? this.screenForm.saleDate[0]:'',
+        saleEndTime:this.screenForm.saleDate? this.screenForm.saleDate[1]:'',
+        saleExamineStatus: this.screenForm.saleExamineStatus,
         mainOrderId: this.screenForm.mainOrderId,
         materialName: this.screenForm.materialName,
         materialNumber: this.screenForm.materialNumber,
         orderNo: this.screenForm.orderNo,
         orderType: this.screenForm.orderType,
         specification: this.screenForm.specification,
-        startTime: this.screenForm.orderDate[0],
-        approvalStartTime: this.screenForm.approvalDate[0],
-        approvalEndTime: this.screenForm.approvalDate[1],
-        saleStartTime: this.screenForm.saleDate[0],
-        saleEndTime: this.screenForm.saleDate[1],
-        saleExamineStatus: this.screenForm.saleExamineStatus
+        startTime:this.screenForm.orderDate? this.screenForm.orderDate[0]:''
       }
       this.listLoading = true
       getListStorageFee(params).then(res => {