<template>
    <div>
      <Button @click="showDetailBtn()" style='margin-top: -6px;' size='small' type="fcdefault">详情</Button>    
    </div>
  </template>
  <script>
    const R3 = window.R3;
    const { network, urlSearchParams, store } = R3;
    export default {
        data () {
            return {
                showDetail: false,
                value1: false,
                showAudioPower: false,
                type: 'list',
            }
        },
        components: {
        },
        created() {
         
        },
        methods: {
          closeOrderDetail() {
            
          },
          showDetailBtn() {
           console.log(this,'=========1212===')
           const config = new CustomEvent('R3setIFrame', {
              detail: {
                props: {
                  title: '',
                  // components:LinkIcon
                },
                show: true,
                url: `/SYSTEM/TABLE_DETAIL/V/T_V3_OMSONLINEORDER/12194/${this.$parent.params.data.ID.val}`, 
                callback: ($this) => {
                  // 回调函数
                }
              }
            });
             window.dispatchEvent(config)
          },
          
          // 审核按钮
          auditorder() {
            this.$Modal.fcWarning({
                title: '提示',
                mask: true,
                showCancel: true,
                content: '是否确认审核',
                onOk:()=>{
                  let data = {
                    orderids: [this.$parent.params.data.ID.val],
                    ismerge: true
                  };
                  network.post('/p/cs/auditorder', data).then((res)=>{
                    if (res.data.code == 0) {
                      this.$Message.success('操作成功');
                      document.querySelector('#refresh').click(); // 标准列表刷新按钮
                    } else if (res.data.code == 10) {
                      // document.querySelector('#refresh').click(); // 标准列表刷新按钮
                      let msg = res.data.message;
                      let mergeIds = res.data.data.mergeIds;
                      let refresh = this.searchClickData;
                      this.$R3Dialog({
                        dialogComponentName: 'BatchAudit', // 自定义的弹框组件
                        title: '审核', // 弹框标题
                        footerHide: true,
                        externalOptions: {
                          massage: msg,
                          mergeIds,
                          type: 'list',
                          refresh
                        }
                      }, () => {
                      });
                    }
                  })
                }
            })
          },
        },
        mounted() {
          console.log(this.$parent.params.data,'=========1212===')
        }
    }
  </script>
  