<template>
<div style="background:#fff;overflow-x: hidden;overflow-y:auto,">
    <BillQueryGrid ref="billqureygrid"  v-show="!showHead" :config="myConfig.billQueryConfig" :dictData="dictData" :moduleMethod="moduleMethod"  @doAction="doAction" />
    <BillDetailForm ref="form" v-show="showHead" :config="myConfig.detailConfig" :dictData="dictData" :moduleMethod="moduleMethod"  @doAction="doAction">
      <template  #toolbar>
        <Card  v-show="showToolbar" :padding="0" style="padding:14px 16px;border-radius:0px;" dis-hover :bordered="false">
            <DetailBtnToolbar ref="menutoolbar" :config="menuToolbar"  :moduleMethod="moduleMethod"   @doAction="doAction"/>
            <Divider style="margin-top:16px;margin-bottom:0px;" />
        </Card>
      </template>
    </BillDetailForm>
    <ApprovalBox ref="approval" :config="billApprovalConfig" @approvalOk="approvalOk" />
    <Modal class-name="efuture-billapprovalmainframe" v-model="showApproval" fullscreen title="报批单" footer-hide>
        <iframe  frameborder="0" ref="billapprovalmainframe" style="width:100%;height:100%;" border="0"></iframe>
    </Modal>
    <Modal  title="单据日志" v-model="showBilloperlog" :width="logcurrentWidth" :footer-hide="true">
        <BillOperLog ref="billoperlog" :config="billOperLogConfig"/>
    </Modal>
</div>
</template>

<script>
import BillQueryGrid from './billquerygrid.vue';
import BillDetailForm from './billdetailform.vue';
import ApprovalBox from './approval.vue';
import BillOperLog from './operlog.vue';
import load from '@/components/base/load';
export default {
    name:'mlistdetails',
    mixins: [load],
    components: {BillQueryGrid,BillDetailForm,ApprovalBox,BillOperLog},
    data () {
        return {
            showHead:false,
            myConfig:{
            },
            billKey:'ph_key',
            ph_key:'',
            billApprovalConfig: {
                resources: '',
                classPrefix: '',
            },
            billOperLogConfig:{
                showOperLog:false,
                operLogKey:'billno'
            },
            menuToolbar:{
                statusKey:'billstatus'
            },
            billapproveurl:'',
            showApproval:false,
            showBilloperlog:false,
            logName:[],
            logData:null,
            showToolbar:true,
            customPrintData:null
        };
    },
    props:{
        config: {
            type:Object,
            default:null
        },
        dictData: {
            type: Object,
            default:null
        },
        moduleMethod:{
            type:Array,
            default: () => {
                return [];      
            }
        }
    },
    computed:{
          logcurrentWidth () {
            return this.$Store.state.app.clientWidth * 0.8;
        },
    },
    created () {
        this.myConfig =  Object.assign({},this.myConfig, this.config);
        // 处理列表
        this.myConfig.billQueryConfig.response = this.myConfig.response;
        this.myConfig.billQueryConfig.resources = this.myConfig.resources;
        this.myConfig.billQueryConfig.classPrefix = this.myConfig.classPrefix;
        this.myConfig.billQueryConfig.gridConfig.height = 1;
        this.myConfig.billQueryConfig.gridConfig.adjustHeight = 0;
        this.myConfig.billQueryConfig.btnData = [];
        this.myConfig.billQueryConfig.rowBtnData = [];
        if(this.myConfig.menuToolbar.enablePermissions !== undefined) {
            this.myConfig.billQueryConfig.enablePermissions = this.myConfig.menuToolbar.enablePermissions;
        }
        if (this.myConfig.detailConfig.billapproveurl) {
            this.myConfig.menuToolbar.billapproval = true;
        }
        if (this.myConfig.detailConfig.showToolbar !== undefined) {
            this.showToolbar = this.myConfig.detailConfig.showToolbar;
        }
        if (this.myConfig.billKey) {
            this.billKey = this.myConfig.billKey;
        }
        this.myConfig.billQueryConfig.gridConfig.bindSearchParam = this.billKey;
        this.myConfig.menuToolbar.items.forEach(el => {
            if (el.btntype === 'batch') {
                this.myConfig.billQueryConfig.btnData.push(this.$Method.copy(el));
            }
            if (el.btntype === 'row') {
                this.myConfig.billQueryConfig.rowBtnData.push(this.$Method.copy(el));
            }
            if (el.name === 'addData') {
                this.myConfig.billQueryConfig.addDataflag = 'Y';
            }
        });

       

        // 处理详情
        if (this.myConfig.detailConfig.showAnchorLink === undefined) {
            this.myConfig.detailConfig.showAnchorLink = false;
        }
        if (this.myConfig.detailConfig.showAnchorLink) {
            if (this.myConfig.detailConfig.anchorCol === undefined) {
                this.myConfig.detailConfig.anchorCol = 3;
            }
        }
        this.myConfig.detailConfig.billKey = this.billKey;
        this.myConfig.detailConfig.adjustHeight = 0;
        this.myConfig.detailConfig.modulecode = this.myConfig.modulecode;
        this.myConfig.detailConfig.resources = this.myConfig.resources; 
        this.myConfig.detailConfig.response = this.myConfig.response; 
        this.menuToolbar = Object.assign({},this.menutoolbar,this.myConfig.menuToolbar);
        this.menuToolbar.billisworkflow = this.myConfig.billisworkflow;
        if (this.myConfig.detailConfig.billapproveurl) {
            this.menuToolbar.billapprove = true;
        }
        this.menuToolbar.items = [];
        this.myConfig.menuToolbar.items.forEach(el => {
            if (!el.btntype || (el.btntype !== 'batch' && el.btntype !== 'row')) {
                this.menuToolbar.items.push(this.$Method.copy(el));
            }
        });

        if (this.myConfig.billAppendixConfig) {
            this.myConfig.detailConfig.billAppendixConfig = this.myConfig.billAppendixConfig;
        }
        if (this.myConfig.billOperLogConfig) {
            this.billOperLogConfig = Object.assign({},this.billOperLogConfig, this.myConfig.billOperLogConfig);
            if (this.billOperLogConfig.showOperLog) {
                this.menuToolbar.billoperlog = true;
                this.setLogName();
            }
        }
        if (this.myConfig.billPrintConfig) {
            if (this.myConfig.billPrintConfig.showPrint) {
                this.menuToolbar.printmodel = this.myConfig.billPrintConfig.showPrint; 
            }
            if (this.myConfig.billPrintConfig.showContPrint) {
                this.menuToolbar.contprintmodel = this.myConfig.billPrintConfig.showContPrint; 
            }
        }

        if (this.myConfig.detailConfig.billisworkflow) {
           this.menuToolbar.billisworkflow = this.myConfig.detailConfig.billisworkflow;
        }

        this.billApprovalConfig.resources = this.myConfig.resources;
        this.billApprovalConfig.classPrefix = this.myConfig.classPrefix;
    },
    methods:{
        setLogName() {
            this.logName.push({code:this.myConfig.detailConfig.response,name:'主表'});
            this.myConfig.detailConfig.formsConfig.items.forEach(el => {
                this.initLogName(el.items,this.myConfig.detailConfig.response,el.title)
            });
            if (this.myConfig.detailConfig.billDetailConfig !== undefined && this.myConfig.detailConfig.billDetailConfig.items) {
                this.myConfig.detailConfig.billDetailConfig.items.forEach(el => {
                    if (el.type === 'EditGridCard') {
                        this.logName.push({code:el.name,name:el.title,isdetail:'1'});
                        this.initLogName(el.items,el.name,el.title,{isdetail:'1'});
                    } else if (el.type === 'DetailsBox') {
                        this.logName.push({code:el.name,name:el.title,isdetail:'1'});
                        this.initLogName(el.formConfig.items,el.name,el.title,{isdetail:'1'});
                        this.logName.push({code:el.gridName, name:el.gridConfig.title,isdetail:'2',headtitle:el.title,uniqueKeys:el.uniqueKeys});
                        this.initLogName(el.gridConfig.items,el.gridName,el.gridConfig.title,{headtitle:el.title,uniqueKeys:el.uniqueKeys,isdetail:'2'});
                    }
                });
            }
            this.billOperLogConfig.logName = this.$Method.copy(this.logName);
        },
        initLogName(list,headname,headtitle,pro) {
            if (!pro) {
                pro = {};
            }
            list.forEach(el => {
                if (el.name) {
                        let obj = {};
                        obj.title = headtitle;
                        obj.code = headname+'.' + el.name;
                        obj.name = el.label;
                        Object.assign(obj,pro);
                        this.logName.push(obj);
                    }
                    if (el.textName) {
                        let obj = {};
                        obj.title = headtitle;
                        obj.code = headname +'.' + el.textName;
                        obj.name = el.label;
                         Object.assign(obj,pro);
                        this.logName.push(obj);
                    }
                    if (el.sname) {
                        let obj = {};
                        obj.title = el.headtitle;
                        obj.code = headname +'.' + el.sname;
                        obj.name = el.label;
                        Object.assign(obj,pro);
                        this.logName.push(obj);
                    }
                    if (el.ename) {
                        let obj = {};
                        obj.title = el.headtitle;
                        obj.code = headname + '.' + el.ename;
                        obj.name = el.label;
                         Object.assign(obj,pro);
                        this.logName.push(obj);
                    }
            });
        },
        doAction (obj) {
            if (obj.name === 'gridSelectionChange' ) {
                if (this.$parent[obj.name]) {
                    this.$parent[obj.name](obj);
                }
                return true;
            }
            const method = obj.name;
            const methodBefore = method + 'Before';
            const methodAfter = method + 'After';
            if (obj.name === 'skipData' || obj.name === 'gridDbClick' || obj.name === 'backData' || obj.name === 'searchData'
                || obj.name === 'editData' || obj.name === 'addData' || obj.name === 'preBill'  || obj.name === 'nextBill' || obj.name === 'resetData' || obj.name === 'openWorkFlow' ||  obj.name === 'openBillapproval' ||  obj.name === 'openBilloperlog') {
                let flag =  true;
                if (this.$parent[methodBefore]) {
                    flag = this.$parent[methodBefore](obj);
                }
                if (flag) {
                    // '跳转'
                    if (obj.name === 'skipData' || obj.name === 'gridDbClick') {
                        this.initForm(obj.para, obj.name);
                    }
                     // '跳转'
                    if (obj.name === 'openWorkFlow') {
                        this.openWorkFlow();
                    }
                      // '跳转'
                    if (obj.name === 'openBillapproval') {
                        this.openBillapproval();
                    }
                        // '打开日志'
                    if (obj.name === 'openBilloperlog') {
                        if (this.$parent.openBilloperlog) {
                            this.$parent.openBilloperlog();
                        } else {
                            this.openBilloperlog();
                        }
                    }

                       // '打印初期化'
                    if (obj.name === 'initPrintConfig') {
                        this.initPrintConfig();
                    }
                    // 返回
                    if (obj.name === 'backData') {
                        let temp = {};
                        let self = this;
                        temp.onOk = () => {
                            self.$refs.billqureygrid.refurbish();
                            self.$nextTick(() => {
                                self.showHead = false;
                            });
                        };
                        this.checkData(temp);
                    }
                    // 查询
                    if (obj.name === 'searchData') {
                        this.$refs.billqureygrid.getQuick().filterSearch();
                        /*this.setPhkey('');
                        this.ph_key = '';
                        this.$refs.billqureygrid.refurbish();
                        */
                    } 
                    // 重置
                    if (obj.name === 'resetData') {
                        this.$refs.billqureygrid.getQuick().clearData();
                    }  

                    // 编辑
                    if (obj.name === 'editData') {
                        this.$refs.form.setReadOnly(false);
                        this.getMenuToolbar().setAllReadOnly(true);
                        this.getMenuToolbar().setReadOnly(['delData','saveData'])
                        this.showHead = true;
                    }
                    // 新增
                    if (obj.name === 'addData') {
                         if (this.showHead) {
                            let temp = {};
                            let self = this;
                            temp.onOk = () => {
                                self.$refs.form.setReadOnly(false);
                                self.$refs.form.clearData();
                                self.customPrintData = null;
                                self.getMenuToolbar().setAllReadOnly(true);
                                self.getMenuToolbar().setReadOnly('saveData', false);
                                self.showHead = true;
                                self.logData = null;
                                if (self.$parent[methodAfter]) {
                                    self.$parent[methodAfter]();
                                }
                             };
                             this.checkData(temp);
                             return true;
                        } else {
                            this.$refs.form.setReadOnly(false);
                            this.$refs.form.clearData();
                            this.getMenuToolbar().setAllReadOnly(true);
                            this.getMenuToolbar().setReadOnly('saveData', false);
                            this.showHead = true;
                            this.logData = null;
                        }
                    }
                    // 上一单 
                    if (obj.name === 'preBill') {
                        this.preBill();
                    }
                    // 下一单 
                    if (obj.name === 'nextBill') {
                        this.nextBill();
                    }
    
                    if (this.$parent[methodAfter]) {
                        this.$parent[methodAfter]();
                    }
                }
            } else {
                let data = this.$refs.form.getData();
                if (obj.name === 'saveData') {
                    let flag = this.$refs.form.checkValidate();
                    if (flag) {
                        this.alert('必填项不允许为空');
                        return false;
                    }
                    flag = this.$refs.form.isEdit();
                    if (flag) {
                        this.alert('存在数据未确认');
                        return false; 
                    }
                    obj.para = this.$refs.form.getChangeData();
                } 
                if (obj.name === 'saveDetails') {
                    obj.para = this.$refs.form.getChangeData(obj.detailsname);
                    obj.name = 'saveData';
                } 
                if (obj.name === 'delData') {
                    if (this.showHead) {
                        obj.para = data;
                        obj.para.flag = 'D';
                    } else {
                        if (obj.para instanceof Array) {
                            obj.para.forEach(el => {
                                el.flag = 'D';
                            });
                        } else {
                            obj.para.flag = 'D';
                            let temp = [obj.para];
                            obj.para = temp;
                        }
                    }
                }  
                if (obj.name === 'copyData') {
                    if (!obj.para) {
                        obj.para = {};
                    }
                    obj.para[this.billKey] = data[this.billKey];
                }
                obj.onOk = this.onOk;
                let flag =  true;
                if (this.$parent[methodBefore]) {
                    flag = this.$parent[methodBefore](obj);
                }
                if (!flag) {
                    return;
                }
                if (obj.name === 'delData' || obj.name === 'auditData' || obj.name === 'cancelData' || obj.name === 'revokeData') {
                    let text = '删除';
                    if (obj.name === 'auditData') {
                        text = '审核';
                        obj.para ={billno:data.billno};
                    }
                    if (obj.name === 'cancelData') {
                        text = '作废';
                        obj.para ={billno:data.billno};
                    }
                   
                    if (obj.name === 'revokeData') {
                        text = '撤回';
                        obj.para ={billno:data.billno};
                    }
                    if (this.$parent.getActionName) {
                        let name = this.$parent.getActionName(obj);
                        if (name) {
                            text = name;
                        }
                    }   
                    let info = '确定是否' + text + '数据？';
                    let self = this;
                    self.$Modal.confirm({
                        title:'确认',
                        content: info,
                        onOk:() => {
                            self.$emit('doAction', obj);
                        }
                    });
                }  else {
                    this.$emit('doAction', obj);
                }
            }
        },
        setShowHead (value) {
            this.showHead = value;
            if (!this.showHead) {
                this.$refs.billqureygrid.refurbish();
            } else {
                if (this.$refs.form) {
                    this.$resfs.form.doAnchorClick();
                }   
            }
        },
        setRowBtnVisible(value) {
            this.$refs.form.setRowBtnVisible(value);
        },
        setPhkey(value) {
            this.ph_key = value;
            this.$refs.billqureygrid.setPhkey(value);
        },
        onOk (action, data) {
            if (action.name === 'saveData') {
                this.$refs.form.updateAllfile();
                let key = '';
                if (data instanceof Array) {
                    key = data[0][this.billKey];
                } else {
                    key = data[this.billKey];
                }
                let tmp = {};
                tmp[this.billKey] = key;
                this.$refs.billqureygrid.setPhkey(key);
                this.initForm(tmp, action.name);
            }
            if (action.name === 'delData') {
                this.$refs.form.delAppenndix();
                this.ph_key = '';
                this.$refs.billqureygrid.setPhkey('');
                this.$refs.billqureygrid.refurbish();
                this.$refs.form.clearData();
                this.$refs.form.setReadOnly(true);
                this.getMenuToolbar().setAllReadOnly(true);
                this.getMenuToolbar().setReadOnly('addData', false);
            }
            if (action.name === 'auditData' || action.name === 'cancelData' || action.name === 'copyData') {
                let obj = {};
                obj[this.billKey] = this.ph_key;
                this.initForm(obj,action.name);
            }
        },
        initForm(para,methodName) {
            if (!this.showHead) {
                this.loadingtext ='加载';
                this.showLoading();
            }
            this.$nextTick(() => {
                setTimeout(() => {
                    this.$refs.form.clearData();
                    let data = this.getFormData(para);
                    this.logData = this.$Method.copy(data);
                    if (data[this.billKey]) {
                        this.ph_key = data[this.billKey];
                    } else {
                        this.ph_key = '';
                    }
                    if (this.$parent.setBillData) {
                        data = this.$parent.setBillData(data);
                    }
                    this.$refs.form.setData(data); 
                    this.customPrintData = this.$Method.copy(data);
                    this.$nextTick(() => {
                        this.$refs.form.setReadOnly(true);
                    });
                    let status = data[this.menuToolbar.statusKey];
                    if (status) {
                        this.changedStatus(status);
                    } else {
                        if (methodName === 'skipData' || methodName === 'gridDbClick') {
                            this.getMenuToolbar().setAllReadOnly(true);
                            this.getMenuToolbar().setReadOnly(['addData'], false);
                        }
                        if (methodName === 'saveData' || methodName === 'copyData' ) {
                            this.getMenuToolbar().setReadOnly(['addData','delData','editData','auditData'], false);
                            this.getMenuToolbar().setReadOnly('saveData', true);
                        }
                        if (methodName === 'auditData' || methodName === 'cancelData') {
                            this.getMenuToolbar().setAllReadOnly(true);
                            this.getMenuToolbar().setReadOnly(['addData'], false);
                        }
                    }
                
                    if (this.$parent.initFormAfter) {
                        this.$parent.initFormAfter(data);
                    }
                    if (!this.showHead) {
                        this.hideLoading();
                    }
                    this.$nextTick(() => {
                        this.showHead = true;
                    });
                },20); 
            });
           
        },
        getMenuToolbar() {
            return this.$refs.menutoolbar;
        },
        getFormData (para) {
            let result = {};
            let self = this;
            let tmp = {};
            if (!para[this.billKey] && this.ph_key) {
                tmp[this.billKey] = this.ph_key;
            } else {
                if (para[this.billKey]) {
                    tmp[this.billKey] = para[this.billKey];
                } else {
                    Object.assign(tmp,para);
                }
            }
            if (this.$parent.getFormData) {
                return this.$parent.getFormData(para);
            }
            self.synchroPost(self.myConfig.resources,self.myConfig.classPrefix+'.get', tmp, function (data) {
                result = data[self.config.response];
            });
            return result;
        },
        getInitFormData() {
            let result = {};
            let tmp  = this.$refs.form.getData();
            let self = this;
            let para = {};
            if (this.ph_key) {
                para[this.billKey] = this.ph_key;
            }
            if (tmp[this.billKey]) {
                para[this.billKey] = tmp[this.billKey];
            }
            let formdata = {};
            if (this.myConfig.detailConfig.customPrintDataFlag) {
                formdata = this.$Method.copy(this.customPrintData);
            } else {
                self.synchroPost(self.myConfig.resources,self.myConfig.classPrefix+'.get', para, function (data) {
                    formdata = data[self.config.response];
                });
            }
          
            result.billkey  = para[this.billKey];
            result.formdata = formdata;
            return result;
        },
        getForm() {
            return this.$refs.form;
        },
        getBillQureyGrid() {
            return this.$refs.billqureygrid.getGrid();
        },
        preBill () {
            let data  = this.$refs.billqureygrid.getGrid().getData();
            if (this.ph_key) {
                let index = data.findIndex(el => el[this.billKey] === this.ph_key);
                if (index > -1) {
                    if (index === 0) {
                        this.initForm(data[data.length-1]);
                    } else {
                        this.initForm(data[index-1]);
                    }
                } else {
                    this.initForm(data[data.length-1]);
                }
            } else {
                this.initForm(data[data.length-1]);
            }
        },
        nextBill () {
            let data  = this.$refs.billqureygrid.getGrid().getData();
            if (this.ph_key) {
                let index = data.findIndex(el => el[this.billKey] === this.ph_key);
                if (index > -1) {
                    if (index === data.length-1) {
                        this.initForm(data[0]);
                    } else {
                        this.initForm(data[index+1]);
                    }
                } else {
                    this.initForm(data[0]);
                }
            } else {
                this.initForm(data[0]);
            }
        },
        approvalOk() {
            this.refurbish(this.ph_key);
        },
        refurbish (ph_key, acitonName) {
            if (ph_key) {
                this.ph_key = ph_key;
            }
            if (this.showHead) {
                if (this.ph_key) {
                    let obj = {};
                    obj[this.billKey] = this.ph_key;
                    this.initForm(obj,acitonName);
                }
            } else {
                this.setPhkey(this.ph_key);
                this.$refs.billqureygrid.refurbish();  
            }
           
        },
        checkData (obj) {
            let tempflag = false;
            tempflag = this.$refs.form.isEdit();
            if (tempflag) {
                let self = this;
                self.$Modal.confirm({
                    title:'确认',
                    content:'数据存在数据未确认，是否放弃？',
                    onOk:() => {
                        this.checkChangeData(obj);
                    },
                    onCancel:() => {
                        if (obj.onCancel) {
                            obj.onCancel();
                        }
                    }
                });
            } else {
                this.checkChangeData(obj);
            }
        },
        checkChangeData(obj) {
            let flag = false;
            flag = this.$refs.form.isChange();
            if (flag) {
                let self = this;
                self.$Modal.confirm({
                    title:'确认',
                    content:'数据有修改未保存，是否放弃修改？',
                    onOk:() => {
                        if (obj.onOk) {
                            obj.onOk();
                        }
                    },
                    onCancel:() => {
                        if (obj.onCancel) {
                            obj.onCancel();
                        }
                    }
                });
            } else {
                if (obj.onOk) {
                    obj.onOk();
                }
            }
        },
        changedStatus(value) {
            this.$refs.menutoolbar.changedStatus(value);
        },
        getChangeData() {
            return this.$refs.form.getChangeData();
        },
        getBillImport () {
            return this.$refs.billImport;
        },
        getData() {
            return this.$refs.form.getData();
        },
        setDetailVisible(name,value) {
            this.$refs.form.setVisible(name, value);
        },
        openWorkFlow() {
            let data = this.$refs.form.getApprovalData();
            if (this.$parent.getApprovalData) {
                data = this.$parent.getApprovalData();
            }
            if (!data || !data.billno || !data.billmoduleid || !data.billstatus) {
                this.alert('数据信息不全，无法打开工作流');
                return;
            }
            this.$refs.approval.setData(data);
            this.$refs.approval.open();
        },
        openBillapproval() {
            let data = this.$refs.form.getData();
            let obj = {};
            obj.billno = data.billno;
            obj.billmoduleid = data.billmoduleid;
            if (!obj.billno) {
                return;
            }
            let self = this;
            let tmpUrl = '';
            if (this.myConfig.detailConfig.billapproveurl) {
                if (this.myConfig.detailConfig.billapproveurl.indexOf('?') == '-1') {
                    tmpUrl = this.myConfig.detailConfig.billapproveurl + '?billno=' + obj.billno +'&billmoduleid=' + obj.billmoduleid;
                } else {
                    tmpUrl = this.myConfig.detailConfig.billapproveurl + '&billno=' + obj.billno +'&billmoduleid=' + obj.billmoduleid;
                }
            } else {
                return;
            }
            this.$parent.initBillApprovalData();
            this.$refs.billapprovalmainframe.src = this.setUrlSuffix(tmpUrl,self);
            this.showApproval = true;
        },
        openBilloperlog() {
            if (this.logData != null) {
                this.$refs.billoperlog.setData(this.logData[this.billOperLogConfig.operLogKey],this.logData);
                this.showBilloperlog = true;
            } else {
                this.alert('未产生日志');
            }
        },
        setEffectData(data) {
            this.$nextTick(() => {
                setTimeout(() => {
                     this.$refs.form.setEffectData(data);
                }, 1000);
            });
        },
        initPrintConfig() {
            if (this.$parent.initPrintConfig) {
                this.$parent.initPrintConfig();
            }
        }
    },
    mounted () {
        let billno = this.$Method.getUrlParam('billno');
        if (billno) {
            let para = {};
            para.billno = billno;
            if (this.$parent.initPageJumpPara) {
                para = this.$parent.initPageJumpPara(para);
            }
            this.initForm(para,'gridDbClick');
        }
    }
};
</script>

<style>

</style>