346149741
2024-06-22 bf5651cc5fd25fe282d674b2996e3f3aaf98c62f
policy/policyApply/policyApply.vue
@@ -41,7 +41,7 @@
                  执法内容
               </view>
               <view class="back">
                  <u--textarea :height="120" v-model="form.regionReason" placeholder="请输入" count maxlength="500"></u--textarea>
                  <u--textarea :height="120" v-model="form.enforceContent" placeholder="请输入" count maxlength="500"></u--textarea>
               </view>
            </view>
         </view>
@@ -166,9 +166,11 @@
               applyDeptName: '',
               enforceType: 1,
               isNoticeCompany: 0,
               regionReason: '',
               // regionReason: 0,
               planTimeStr: '',
               peers: []
               peers: [],
               orderStatus: 1,
               enforceContent: ""
            },
            show: false,
            columns: [],
@@ -190,6 +192,9 @@
         this.getInfo()
         this.getDicts()
         this.enforceList()
      },
      onShow() {
      },
      methods: {
         enforceList() {
@@ -227,7 +232,39 @@
            }
            return options;
         },
         authFile() {
            if(!this.form.enforceReason){
               return '请填写主题'
            }
            if(!this.form.companyName){
               return '请填写确认执法对象'
            }
            if(!this.form.companyId) {
               return '请点击搜索确认执法对象'
            }
            if(!this.form.planTimeStr) {
               return '请填写执法时间'
            }
            if(!this.form.enforceTypeName){
               return '请选择执法类型'
            }
            if(!this.form.enforceContent) {
               return '请填写执法内容'
            }
            if(!this.form.peers.length){
               return '请添加同行人'
            }
            return ''
         },
         submitApply(){
            const res =   this.authFile()
            if(res){
               uni.showToast({
                  title: res,
                  icon: 'none'
               })
               return
            }
            orderAdd(this.form).then(val => {
               if(val.data.code == 200) {
                  uni.showToast({
@@ -303,7 +340,7 @@
                     peerDeptName: item.dept.deptName,
                     peerId: item.userId,
                     peerPhone: item.phonenumber,
                     peerType: 3,
                     peerType: 2,
                     peerUser: item.nickName
                  })
               }