index.vue 2.46 KB
Newer Older
jianglong committed
1 2
<template>
  <div class="eContainer">
3
    <c-page title="订单分配列表">
4
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
jianglong committed
5
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
6 7

              <!--PD000042 -->
nanrui committed
8
               <el-tab-pane label="菜单" name="menu">
9 10 11 12 13
                    <c-content>
                     <m-menu :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>

nanrui committed
14
           <el-tab-pane label="工作流程" name="ordpwfm">
15 16
                <m-ordpwfm :model="model" :codes="codes"/>
           </el-tab-pane>
17
 
jianglong committed
18 19
       </c-tabs>
    </el-form>
20 21 22 23 24 25 26 27 28

            <c-grid-ety-prompt-dialog
              ref="doxpDialog"
              :isPty="false"
              :promptData="promptData"
              @select-ety="selectMsg"
            >
            </c-grid-ety-prompt-dialog>

29
    </c-page>
jianglong committed
30 31 32 33 34 35 36 37 38 39
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Sptneg from "~/model/Sptneg"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Sptneg/Check"
import Default from "~/model/Sptneg/Default"
import Pattern from "~/model/Sptneg/Pattern"
nanrui committed
40

jianglong committed
41
import Menu from "./Menu"
42
import Ordpwfm from "./Ordpwfm"
jianglong committed
43 44 45 46 47 48


export default {
    name: "Sptneg",
    components:{
        "m-menu" : Menu,
49
        "m-ordpwfm" : Ordpwfm,
jianglong committed
50 51 52 53 54 55 56 57 58
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
zhujiazhan committed
59
            tabVal: "menu",
jianglong committed
60 61 62 63 64 65 66
            trnName: "sptneg",
            model: new Sptneg().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
67
                ...CodeTable
jianglong committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入sptneg交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>