queenwuli
2021-01-13 6e54af776db885ad1a22ec582bdc97d7e1273c6c
hive-app/pages/workbench/followRecords/addRecord.vue
@@ -43,7 +43,7 @@
            </radio-group>
         </view>
      </view>
      <button class="blue-btn sticky-footer" @click="submit">提交跟进</button>
      <button class="blue-btn sticky-footer" :disabled="isDisabled" @click="submit">提交跟进</button>
      <date-time-picker ref='date-time' :startDate="startDate" type='datetime' @change='dateTimeChange'></date-time-picker>
   </view>
</template>
@@ -68,7 +68,8 @@
               albums: []
            },
            orderName: '',
            serviceName:''
            serviceName:'',
            isDisabled: false
         }
      },
      computed:{
@@ -158,11 +159,15 @@
            if(this.valid() === false){
               return;
            }
            this.isDisabled = true;
            this.$httpUtils.request('/api/followup/addFollowup', this.formData, 'POST').then((res) => {
               if(res.status == 200){
                  uni.navigateBack()
               }
               this.$toast.info(res.info)
               this.isDisabled = false
            }).catch((err) => {
               this.isDisabled = false
            })
         }
      }