wjt
2024-06-22 f07b70558d5b84f1070470229037629bc1ace006
policy/components/popup.vue
@@ -7,32 +7,36 @@
         <view class="border"></view>
         <view class="padding">
            <view>
               <u-radio-group  placement="row">
                  <u-radio active-color="#3EB47A" label="通过" name="3"></u-radio>
                  <u-radio active-color="#3EB47A" label="拒绝" name="3"></u-radio>
               <u-radio-group  placement="row" v-model="form.checkStatus">
                  <u-radio active-color="#3EB47A" label="通过" name="1"></u-radio>
                  <u-radio active-color="#3EB47A" label="拒绝" name="-1"></u-radio>
               </u-radio-group>
            </view>
            <view class="margin-top">
               <u-textarea  placeholder="请输入拒绝理由..."></u-textarea>
               <u-textarea  placeholder="请输入拒绝理由..." v-model="form.checkReason"></u-textarea>
            </view>
         </view>
         <view class="down">
            <view class="cancel button" @click="close">取消</view>
            <view class="enter" @entery="entery">确认</view>
            <view class="enter" @click="entery">确认</view>
         </view>
      </view>
   </u-popup>
</template>
<script>
   export default {
      data() {
         return {
            show: false
            show: false,
            id: '',
            form: {}
         }
      },
      methods: {
         open() {
         open(id) {
            this.form = {}
            this.show = true
         },
         close(){
@@ -40,7 +44,14 @@
            this.$emit('cancel')
         },
         entery(){
            this.$emit('entery')
            if(this.form.checkStatus == -1 && !this.form.checkReason) {
               uni.showToast({
                  title: '请输入拒绝理由',
                  icon: 'none'
               })
               return
            }
            this.$emit('entery', this.form)
         }
      }
   }