<template>
  <!-- <Modal
    v-model="model1"
    title="提示"
    :mask="mask"
    @on-ok="toBatchAudit"
  >
    
  </Modal> -->
  <div>
    <div style="min-height:50px;max-height:120px;overflow:scroll">
      <p v-html="externalOptions.massage" />
    </div>
    <div
      class="pop-btn"
      style="display:flex;justify-content: center;"
    >
      <Button
        type="posdefault"
        v-if="externalOptions.secondIds.length > 0"
        style="margin-top:16px;margin-right: 8px"
        @click="secondBatchAudit"
      >
       继续审核
      </Button>
      <Button
        type="fcdefault"
        style="margin-top:16px"
        @click="close"
      >
        确定
      </Button>
    </div>
  </div>
</template>
<script>
  const R3 = window.R3;
  const { network, urlSearchParams, store } = R3;
  export default {
    props: {
      externalOptions: {
        type: Object,
        default: ()=>{}
      },
    },
    data() {
      return {
        model1: true,
        MyStr: ''
      };
    },
    methods: {
      secondBatchAudit() {
        let data = {
            actionName: 'T_OMSREFUNDORDER_批量售后审核',
            ids: this.externalOptions.secondIds,
            tableName: 'T_V_OMSREFUNDORDERALL',
            secondInstance: 1
        };
        network.post('/p/cs/batchAuditRefund', data).then((res)=>{
          this.$Message.success(res.data.message);
          this.close()
        })
      },
      close() {
        // 成功关闭弹框
        this.externalOptions.refresh();// 手动刷新页面
        this.$emit('cancel');
      }
    }
    
  };
</script>
