Parcourir la source

提交问题修改

wenmenghao il y a 2 ans
Parent
commit
965ee18a5f

+ 13 - 4
src/views/order/components/bigOrderEdit.vue

@@ -25,8 +25,8 @@
           </FormItem>
           <FormItem label="购买主体" required>
                     <RadioGroup v-model="member.buySubject" @on-change="radiosChange" >
-                      <Radio label="1" style="marginRight:30px" :disabled="radio_dis || finish_dis || interested">个人</Radio>
-                      <Radio label="2" :disabled="radio_dis || finish_dis || interested">企业</Radio>
+                      <Radio label="1" style="marginRight:30px" :disabled="radio_dis || finish_dis ">个人</Radio>
+                      <Radio label="2" :disabled="radio_dis || finish_dis ">企业</Radio>
                     </RadioGroup>
           </FormItem>
           <!-- <FormItem label="订单时间" prop="createTime">
@@ -449,13 +449,17 @@ export default {
               // this.member.products=''
               this.repair='1'
               this.member.createType='1'
-              
+              this.member.subPayMoney=0  
             }
             this.member.level=''
             this.nums=''
             this.datas2=[]
             // this.initialized()
-            this.reged()
+            this.reged() 
+            if(this.member.buySubject==this.show_buy_subject){
+              this.show(this.olddata)
+            }
+            
             console.log(this.repair,this.member.createType,'切换服务状态')
         },
     buyHandler() {
@@ -975,6 +979,7 @@ export default {
             console.log(this.member.supplyMoney)
             this.member.supplyMoney='0'
             this.member.sums='0'
+            this.member.supplyPayMoney=0
             // if (Number(String(countStr)) / v.s_pkcount) {
             //   this.datas2.push({
             //     id: v.id,
@@ -2058,6 +2063,7 @@ export default {
     },
     //回显
     show(data) {
+      this.olddata=data
       this.typeRestriction = true,
           this.colr = ''
       setTimeout(() => {
@@ -2256,13 +2262,16 @@ export default {
           // this.proChange(Number(products))
         }
         this.nums = 0
+        console.log(this.interested,res.buy_subject,this.member.buySubject,'21212121')
       })
       this.bShow = true
+      
 
     }
   },
   data() {
     return {
+      olddata:null,
       show_buy_subject:'',
       max_length: 2,
       doReview: false,

+ 4 - 2
src/views/order/components/otherOrder.vue

@@ -372,7 +372,8 @@ export default {
     },
     reged() {
       this.$request('/order/vipInfo').data({// 验证手机号权限
-        phone: this.others.phone
+        phone: this.others.phone,
+        buySubject:this.others.buySubject
       }).success((res) => {
         this.phoneReg = res.data
       }).post()
@@ -384,7 +385,8 @@ export default {
       if (this.others.phone) {
         if ((/^1[3456789]\d{9}$/.test(this.others.phone))) {
           this.$request('/order/vipInfo').data({// 验证手机号权限
-            phone: this.others.phone
+            phone: this.others.phone,
+            buySubject:this.others.buySubject
           }).success((res) => {
             if (res.data) {
               this.infoData = res.data

+ 4 - 2
src/views/order/components/otherOrderEdit.vue

@@ -454,7 +454,8 @@ export default {
     },
     reged() {
       this.$request('/order/vipInfo').data({// 验证手机号权限
-        phone: this.others.phone
+        phone: this.others.phone,
+        buySubject:this.others.buySubject
       }).success((res) => {
         this.phoneReg = res.data
       }).post()
@@ -464,7 +465,8 @@ export default {
         if ((/^1[3456789]\d{9}$/.test(this.others.phone))) {
           this.$request('/order/vipInfo').data({// 验证手机号权限
             phone: this.others.phone,
-            orderCode: this.others.orderCode
+            orderCode: this.others.orderCode,
+            buySubject:this.others.buySubject
           }).success((res) => {
             if (res.data) {
               this.infoData = res.data