Pārlūkot izejas kodu

差价调整将isadd替换为type

qymljy 8 mēneši atpakaļ
vecāks
revīzija
2b7c98b065

+ 4 - 2
src/HDrpManagement/contractManage/components/priceDifference/addPriceDiff.vue

@@ -185,7 +185,7 @@ export default {
         "content": {
           "sa_contractid": "0",
           "orderratio": "",
-          "isadd": true, //新建时请求确认列表传true
+          "type": 0, //新建时请求确认列表传true
           "ascription_contractid": "",// 来源合同id
           "pageNumber": 1,
           "pageSize": 20,
@@ -278,6 +278,7 @@ export default {
       this.adjustParam.content.orderratio = this.title == '编辑居间协议'?(data.orderratio / 100).toFixed(4):data.orderratio
       this.adjustParam.content.ascription_contractid = data.ascription_contractid
       this.sys_enterpriseid = this.form.sys_enterpriseid?this.form.sys_enterpriseid:data.sys_enterpriseid
+      this.adjustParam.content.type = this.isCheck? 2 : this.title == '新建居间协议' ? 0 : 1
       const res = await this.$api.requested(this.adjustParam)
       this.adjustList = res.data
       this.adjustTotal = res.total
@@ -297,9 +298,11 @@ export default {
     },
     onClose(){
       this.drawerFormVisible = false
+      this.adjustLoading = false
       this.form.orderratio = ''
       this.$refs.form.resetFields()
       this.form.remarks = ''
+      this.$emit('adjustSuccess')
     },
     async adjustClick(){
       if (this.isCheck){
@@ -328,7 +331,6 @@ export default {
           this.loading = false
           this.drawerFormVisible = false
           this.dialogTableVisible = false
-          this.$emit('adjustSuccess')
         })
       }