Commit d2bcecf1 by Eivi
parents e2b15d3b 07593fa9
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
], ],
"lidgrp.cbs.nom1.amt":[ "lidgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"lidgrp.cbs.opn1.amt":[ "lidgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"brdgrp.cbs.max.amt":[ "brdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
], ],
"brdgrp.blk.relstoadr":[ "brdgrp.blk.relstoadr":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 180,message:"长度不能超过180"}
], ],
"brdgrp.blk.vesnam":[ "brdgrp.blk.vesnam":[
......
...@@ -87,6 +87,10 @@ export default class Brtame{ ...@@ -87,6 +87,10 @@ export default class Brtame{
cur:"", // Amount of Shipment .brdgrp.cbs.max.cur cur:"", // Amount of Shipment .brdgrp.cbs.max.cur
amt:"", // Balance .brdgrp.cbs.max.amt amt:"", // Balance .brdgrp.cbs.max.amt
}, },
opn1:{
cur:"", // Amount of Shipment .brdgrp.cbs.max.cur
amt:"", // Balance .brdgrp.cbs.max.amt
},
}, },
blk:{ blk:{
vesnam:"", // Vessel Name .brdgrp.blk.vesnam vesnam:"", // Vessel Name .brdgrp.blk.vesnam
......
...@@ -72,6 +72,7 @@ import Api from "~/service/Api"; ...@@ -72,6 +72,7 @@ import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Brtame from "~/model/Brtame"; import Brtame from "~/model/Brtame";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Brtame/Check"; import Check from "~/model/Brtame/Check";
import Default from "~/model/Brtame/Default"; import Default from "~/model/Brtame/Default";
import Pattern from "~/model/Brtame/Pattern"; import Pattern from "~/model/Brtame/Pattern";
...@@ -102,7 +103,7 @@ export default { ...@@ -102,7 +103,7 @@ export default {
root: this, root: this,
}; };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "rog", tabVal: "rog",
...@@ -113,7 +114,9 @@ export default { ...@@ -113,7 +114,9 @@ export default {
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: {}, codes: {
...CodeTable
},
}; };
}, },
methods: { methods: {
......
<template>
<div>
<c-col :span="24">
<div v-for="(item, idx) in rol" :key="idx">
<c-ptsmsg
:model="model"
:argadr="{
title: item.title,
grp: `${argadr.trans}`,
rol: item.trans,
}"
:disabled="true"
></c-ptsmsg>
</div>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import Ptsmsg from "~/views/Public/Ptsmsg";
// 机构信息模块
export default {
inject: ["root"],
mixins: [commonProcess],
components: {
"c-ptsmsg": Ptsmsg,
},
props: {
model: {
type: Object,
default: undefined,
},
argadr: {
type: Object,
default: function () {
return {
title: "", //角色名称
trans: "", //所属模块
};
},
},
rol: {
type: Array,
default: () => [],
},
},
data() {
return {
data: [],
};
},
watch: {},
methods: {},
created: function () {},
};
</script>
<style>
</style>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
</el-table-column> </el-table-column>
<el-table-column label="Payee" width="101px"> <el-table-column label="Payee" width="101px">
<template slot-scope="scope"> <template slot-scope="scope">
<c-select v-model="scope.row.payee"> <c-select v-model="scope.row.ptypay">
<el-option <el-option
v-for="item in codes.payee" v-for="item in codes.payee"
:key="item.value" :key="item.value"
......
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