Commit 46702bb8 by nanrui

botsel初始化

parent 0f734a29
import Utils from "~/utils"
/**
* Botsel Check规则
*/
let checkObj = {
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Botsel Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
}
\ No newline at end of file
export default {
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Botsel{
constructor () {
this.data = {
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Botsel from "~/model/Botsel"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Botsel/Check"
import Default from "~/model/Botsel/Default"
import Pattern from "~/model/Botsel/Pattern"
export default {
name: "Botsel",
components:{
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "botsel",
model: new Botsel().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入botsel交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
......@@ -72,6 +72,8 @@ import Trtame from "./Trtame"
import Trtsel from "./Trtsel"
import Lttcan from "./Lttcan"
// import Infdet from "./Infdet"
import Botsel from "./Botsel"
import Infbod from "./Infbod"
import Botdav from "./Botdav"
import Botame from "./Botame"
import Botdcr from "./Botdcr"
......@@ -291,6 +293,8 @@ const BusRouter = [
{ path: 'inftxm', component: Inftxm, name: 'Inftxm', meta: { title: '条式语句查询' } },
// { path: 'infdet', component: Infdet, name: 'Infdet', meta: { title: 'Infdet' } },
{ path: 'infbod', component: Infbod, name: 'Infbod', meta: { title: '出口托收入口交易' } },
{ path: 'botsel', component: Botsel, name: 'Botsel', meta: { title: '出口托收入口交易Botsel' } },
{ path: 'botdav', component: Botdav, name: 'Botdav', meta: { title: '出口托收寄单' } },
{ path: 'botame', component: Botame, name: 'Botame', meta: { title: '出口托收修改' } },
{ path: 'botdcr', component: Botdcr, name: 'Botdcr', meta: { title: '出口托收拒付/不符点' } },
......
......@@ -641,11 +641,11 @@ export default {
...Event,
async getButtons(ownref){
this.initdialog = true
// this.ownref = ownref
// console.log("ownref:" +ownref);
// setTimeout(()=>{
// this.$refs.childs.$emit("childmethods")
// },10)
this.ownref = ownref
console.log("ownref:" +ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
},
async onChoose(code){
//跳转交易
......
......@@ -96,6 +96,9 @@ export default {
{ inifrm: "bctcan", ininam: "进口代收注销", pntmiu: "5" },
{ inifrm: "infbcd", ininam: "进口代收查询", pntmiu: "5" },
{ inifrm: "6", ininam: "出口托收", pntmiu: "" },
{ inifrm: "infbod", ininam: "出口托收入口交易", pntmiu: "6" },
{ inifrm: "botsel", ininam: "出口托收入口交易Botsel", pntmiu: "6" },
{ inifrm: "botdav", ininam: "出口托收寄单", pntmiu: "6" },
{ inifrm: "botame", ininam: "出口托收修改", pntmiu: "6" },
{ inifrm: "botdcr", ininam: "出口托收拒付/不符点", pntmiu: "6" },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment