lxf il y a 1 an
Parent
commit
1c89782c26
1 fichiers modifiés avec 17 ajouts et 18 suppressions
  1. 17 18
      src/views/shengde/group/synchronization/order/index.vue

+ 17 - 18
src/views/shengde/group/synchronization/order/index.vue

@@ -239,24 +239,23 @@ export default {
           } else {
             this.formTwo.trade_status = ''
           }
-          console.log(this.formTwo)
-          // let data = JSON.parse(JSON.stringify(this.formTwo))
-          // let approve_time = new Date(this.formTwo.approve_time)
-          // data.approve_time = Date.parse(approve_time)
-          // let end_time = new Date(this.formTwo.end_time)
-          // data.end_time = Date.parse(end_time)
-          // this.loadingStatus = true
-          // API.importContract(data).then(
-          //   () => {
-          //     this.loadingStatus = false
-          //     this.msgSuccess('同步完成')
-          //     // this.resetForm('ruleFormTwo')
-          //   },
-          //   (err) => {
-          //     console.log('importContract: ' + err)
-          //     this.loadingStatus = false
-          //   }
-          // )
+          let data = JSON.parse(JSON.stringify(this.formTwo))
+          let approve_time = new Date(this.formTwo.approve_time)
+          data.approve_time = Date.parse(approve_time)
+          let end_time = new Date(this.formTwo.end_time)
+          data.end_time = Date.parse(end_time)
+          this.loadingStatus = true
+          API.importContract(data).then(
+            () => {
+              this.loadingStatus = false
+              this.msgSuccess('同步完成')
+              // this.resetForm('ruleFormTwo')
+            },
+            (err) => {
+              console.log('importContract: ' + err)
+              this.loadingStatus = false
+            }
+          )
         }
       })
     },