#
whycq
2023-11-22 3913b3c5c8cde03f8c92d1c738d28c4a9bae7e55
pages/business/goBusiness/addgoBusiness.vue
@@ -269,8 +269,15 @@
         const eventChannel = this.getOpenerEventChannel();
         eventChannel.on('goBusinessDel', function(data) {
            if (data.data == 'add') {
               _this.getOrderId('')
            }
         })
         // 项目跟踪传过来的
         eventChannel.on('addType', function(data) {
            if (data.data.comeFrom == 'saleManage') {
               _this.form2[0].info[0].submitVal = data.data.orderId
               _this.form2[0].info[0].unshow = true
               _this.form2[0].info[0].required = false
            }
         })
@@ -280,7 +287,6 @@
      },
      methods: {
         getOrderId(condition) {
            // console.log(condition);
            let _this = this
            uni.request({
               url: `${_this.baseUrl}/orderQueryName/auth`,
@@ -400,6 +406,8 @@
                              this.form[sub.type] = odd.id
                           }
                        }
                     } else {
                        this.form[sub.type] = sub.submitVal
                     }
                  } else {
                     this.form[sub.type] = sub.value
@@ -416,11 +424,6 @@
               }
            }
            // console.log(this.form.orderId);
            // console.log(this.orderIds);
            console.log(this.form);
            console.log(this.type);
            this.formAdd(this.form)
            // console.log(subPass);
            if (subPass) {
@@ -441,7 +444,6 @@
               method: 'POST',
               success(res) {
                  res = res.data
                  console.log(res)
                  if (res.code === 200) {
                     uni.showToast({title: '添加成功', icon: "none", position: 'top'})
                     setTimeout(()=>{