Commit eef04908 by nanrui

cltdav解决报错以及“Sel”面板排版

parent 04749ae0
...@@ -2,137 +2,115 @@ import Api from "~/service/Api" ...@@ -2,137 +2,115 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
async onCltpButgetref(){ async onCltpButgetref() {
let rtnmsg = await this.executeRule("cltp.butgetref") let rtnmsg = await this.executeRule("cltp.butgetref")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ //TODO 处理数据逻辑
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}, async onGet() {
async onGet(){ let rtnmsg = await this.executeRule("get")
let rtnmsg = await this.executeRule("get") if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.respCode == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}, async onColpDet() {
async onColpDet(){ let rtnmsg = await this.executeRule("colp.det")
let rtnmsg = await this.executeRule("colp.det") if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.respCode == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}, async onTrndocButshw() {
async onTrndocButshw(){ let rtnmsg = await this.executeRule("trndoc.butshw")
let rtnmsg = await this.executeRule("trndoc.butshw") if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.respCode == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}, async onTrndocButadd() {
async onTrndocButadd(){ let rtnmsg = await this.executeRule("trndoc.butadd")
let rtnmsg = await this.executeRule("trndoc.butadd") if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.respCode == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}, async onTrndocButnew() {
async onTrndocButnew(){ let rtnmsg = await this.executeRule("trndoc.butnew")
let rtnmsg = await this.executeRule("trndoc.butnew") if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.respCode == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}, async onTrndocButattto() {
async onTrndocButattto(){ let rtnmsg = await this.executeRule("trndoc.butattto")
let rtnmsg = await this.executeRule("trndoc.butattto") if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.respCode == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}, async onTrndocButdel() {
async onTrndocButdel(){ let rtnmsg = await this.executeRule("trndoc.butdel")
let rtnmsg = await this.executeRule("trndoc.butdel") if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.respCode == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}, async onTrndocButatt() {
async onTrndocButatt(){ let rtnmsg = await this.executeRule("trndoc.butatt")
let rtnmsg = await this.executeRule("trndoc.butatt") if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.respCode == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}, async onSetmodDet() {
async onSetmodDet(){ let rtnmsg = await this.executeRule("setmod.det")
let rtnmsg = await this.executeRule("setmod.det") if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.respCode == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}, async onSetinsButtxmsel() {
async onSetinsButtxmsel(){ let rtnmsg = await this.executeRule("setins.buttxmsel")
let rtnmsg = await this.executeRule("setins.buttxmsel") if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.respCode == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
},
} }
\ No newline at end of file
...@@ -41,24 +41,25 @@ export default class Cltdav{ ...@@ -41,24 +41,25 @@ export default class Cltdav{
}, },
}, },
colmet:"", // Collection Method .colmet colmet:"", // Collection Method .colmet
trnmod:{ // trnmod:{
trndoc:{ // trndoc:{
advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel // advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel
amdnam:"", // AMDNAM .trnmod.trndoc.amdnam // amdnam:"", // AMDNAM .trnmod.trndoc.amdnam
advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc // advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc
advnam:"", // 国内证落款 .trnmod.trndoc.advnam // advnam:"", // 国内证落款 .trnmod.trndoc.advnam
amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl // amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl
doclbl:"", // Lable for CONDOCSTM .trnmod.trndoc.doclbl // doclbl:"", // Lable for CONDOCSTM .trnmod.trndoc.doclbl
doctrestm:"", // Document tree .trnmod.trndoc.doctrestm // doctrestm:"", // Document tree .trnmod.trndoc.doctrestm
shwinc:"", // Show Incoming Messages .trnmod.trndoc.shwinc // shwinc:"", // Show Incoming Messages .trnmod.trndoc.shwinc
shwout:"", // Show Outgoing Messages .trnmod.trndoc.shwout // shwout:"", // Show Outgoing Messages .trnmod.trndoc.shwout
condocstm:"", // Connected Documents .trnmod.trndoc.condocstm // condocstm:"", // Connected Documents .trnmod.trndoc.condocstm
rcvatt:{ // rcvatt:{
seainf:"", // .trnmod.trndoc.rcvatt.seainf // seainf:"", // .trnmod.trndoc.rcvatt.seainf
}, // },
filrecv:"", // File Receiver .trnmod.trndoc.filrecv // filrecv:"", // File Receiver .trnmod.trndoc.filrecv
}, // },
}, // },
trnmod: new Pub().data.Trnmod,
mtabut:{ mtabut:{
coninf:{ coninf:{
oitinf:{ oitinf:{
......
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="11" :offset="1"> <c-col :span="11" :offset="1">
<c-checkbox v-model="model.mtabut.clsflg" disabled>Close Contract</c-checkbox> <c-checkbox v-model="model.mtabut.clsflg" :disabled="model.mtabut.clsflg !== 'O'">Close Contract</c-checkbox>
</c-col> </c-col>
</c-col> </c-col>
......
...@@ -20,15 +20,15 @@ ...@@ -20,15 +20,15 @@
<m-sel :model="model" :codes="codes" /> <m-sel :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000057 --> <!--PD000057 -->
<el-tab-pane label="关联账号" name="account"> <!-- <el-tab-pane label="关联账号" name="account">
<m-account :model="model" :codes="codes" /> <m-account :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane> -->
<!--PD000000 --> <!--PD000000 -->
<el-tab-pane label="费用及账务" name="setpan"> <el-tab-pane label="费用及账务" name="setpan">
<c-content> <c-content>
<m-setpan :model="model" :codes="codes" /> <m-setpan :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000027 --> <!--PD000027 -->
<el-tab-pane label="表外信息" name="engp"> <el-tab-pane label="表外信息" name="engp">
<m-engp :model="model" :codes="codes" /> <m-engp :model="model" :codes="codes" />
...@@ -60,76 +60,75 @@ ...@@ -60,76 +60,75 @@
</c-page> </c-page>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import Api from "~/service/Api";
import Utils from "~/utils/index"; import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Cltdav from "~/model/Cltdav"; import Cltdav from "~/model/Cltdav";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs"; import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Cltdav/Check"; import Check from "~/model/Cltdav/Check";
import Default from "~/model/Cltdav/Default"; import Default from "~/model/Cltdav/Default";
import Pattern from "~/model/Cltdav/Pattern"; import Pattern from "~/model/Cltdav/Pattern";
import Sel from "./Sel"; import Sel from "./Sel";
import Account from "./Account"; import Account from "./Account";
import Setpan from "~/views/Public/Setpan"; import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan"; import Docpan from "~/views/Public/Docpan";
import Engp from "~/views/Public/Engp"; import Engp from "~/views/Public/Engp";
import Glepan from "~/views/Public/Glepan"; import Glepan from "~/views/Public/Glepan";
import Ccvpan from "~/views/Public/Ccvpan"; import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp"; import Coninfp from "~/views/Public/Coninfp";
import Doctre from "./Doctre"; import Doctre from "~/views/Public/Doctre";
export default { export default {
name: "Cltdav", name: "Cltdav",
components: { components: {
"m-sel": Sel, "m-sel": Sel,
"m-account": Account, "m-account": Account,
"m-setpan": Setpan, "m-setpan": Setpan,
"m-engp": Engp, "m-engp": Engp,
"m-glepan": Glepan, "m-glepan": Glepan,
"m-docpan": Docpan, "m-docpan": Docpan,
"m-doctre": Doctre, "m-doctre": Doctre,
"m-coninfp": Coninfp, "m-coninfp": Coninfp,
"m-ccvpan": Ccvpan, "m-ccvpan": Ccvpan,
}, },
provide() { provide() {
return { return {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "", tabVal: "sel",
trnName: "cltdav", trnName: "cltdav",
model: new Cltdav().data, model: new Cltdav().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: {...CodeTable}, codes: { ...CodeTable },
} }
}, },
methods: { methods: {
tabClick() { tabClick() {
} }
}, },
created: async function () { created: async function () {
console.log("进入cltdav交易"); console.log("进入cltdav交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} }
} }
}
</script> </script>
<style> <style>
</style> </style>
\ No newline at end of file
...@@ -274,18 +274,18 @@ export ...@@ -274,18 +274,18 @@ export
columns: [ columns: [
"1 1 \"Reference\" 150", "1 1 \"Reference\" 150",
"2 2 \"Resp. User\" 120", "2 2 \"Resp. User\" 120",
"3 3 \"Opened\" 150 4 7", "6 3 \"分行名称\" 170",
"4 4 \"Closed\" 150 4 7", "8 4 \"Drawee Party Number\" 170",
"5 5 \"Goods Code\" 130 1 0 1 GODCOD", "9 5 \"Drawee\" 300",
"6 6 \"分行名称\" 170", "10 6 \"Drawee CN\" 130",
"7 7 \"Pta.No\" 130", "11 7 \"Drawer Party Number\" 170",
"8 8 \"Drawee Party Number\" 170", "12 8 \"Drawer\" 150",
"9 9 \"Drawee\" 300", "7 9 \"Pta.No\" 130",
"10 10 \"Drawee CN\" 130", "13 10 \"Remitting Bank Party Number\" 220",
"11 11 \"Drawer Party Number\" 170", "14 11 \"Remitting Bank\" 200",
"12 12 \"Drawer\" 100", "5 12 \"Goods Code\" 130 1 0 1 GODCOD",
"13 13 \"Remitting Bank Party Number\" 220", "3 13 \"Opened\" 150 4 7",
"14 14 \"Remitting Bank\" 200", "4 14 \"Closed\" 150 4 7",
"15 15 \"Doc.Amount Cur\" 150", "15 15 \"Doc.Amount Cur\" 150",
"16 16 \"Doc.Amount\" 120 2 8 1 15", "16 16 \"Doc.Amount\" 120 2 8 1 15",
"17 17 \"Open Amount Cur\" 150", "17 17 \"Open Amount Cur\" 150",
......
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