Commit 3957b8bf by hulei
parents 54f1e674 557cc6c6
...@@ -327,6 +327,22 @@ export default { ...@@ -327,6 +327,22 @@ export default {
return value return value
} }
return em.label return em.label
},
timeFormat(item,scope){
let value = scope.row[item.prop];
if(!value){
return ""
}
let idx = value.indexOf(".");
return value.substring(0,idx);
},
dateFormat(item,scope){
let value = scope.row[item.prop];
if(!value){
return ""
}
let idx = value.indexOf(" ");
return value.substring(0,idx);
} }
} }
}; };
......
...@@ -295,11 +295,11 @@ export default { ...@@ -295,11 +295,11 @@ export default {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"skr":[ "skr":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 40,message:"长度不能超过40"} {max: 40,message:"长度不能超过40"}
], ],
"skzh":[ "skzh":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 40,message:"长度不能超过40"} {max: 40,message:"长度不能超过40"}
], ],
"bddgrp.rec.skhmc":[ "bddgrp.rec.skhmc":[
......
...@@ -288,6 +288,7 @@ export default class Ditdck{ ...@@ -288,6 +288,7 @@ export default class Ditdck{
ccvamt:"", // 保证金余额 .liaall.limmod.ccvamt ccvamt:"", // 保证金余额 .liaall.limmod.ccvamt
ecifno:"", // ECIFNO .liaall.limmod.ecifno ecifno:"", // ECIFNO .liaall.limmod.ecifno
}, },
liaallg:[],
}, },
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
infcon:{ infcon:{
......
...@@ -195,38 +195,6 @@ export default { ...@@ -195,38 +195,6 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
async onLiaccvAdd() {
let rtnmsg = await this.executeRule("liaall.liaccv.add")
//const that = this.root;
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
debugger;
this.stmData.data = rtnmsg.data.vals.rows;
this.dialogTableVisible = true;
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLiaccvDel(index,row) {
let ids = [index+1];
let params = {selDst:"liaall.liaccv.liaccvg",selIds:ids};
let rtnmsg = await this.executeRule("liaall.liaccv.del",params)
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
debugger;
this.$message({
type: 'success',
message: '删除成功!'
});
//this.model.liaall.liaccv.liaccvg = [];
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onSeaParty(path) { async onSeaParty(path) {
let rtnmsg = await this.executeRule(path) let rtnmsg = await this.executeRule(path)
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
...@@ -263,14 +231,6 @@ export default { ...@@ -263,14 +231,6 @@ export default {
async onExtkey(e) { async onExtkey(e) {
}, },
async pickDepItem(idx,row) {
var params = {selDst:"",selIds:[idx+1]}
let rtnmsg = await this.executeRule("liaall.liaccv.add", params)
if (rtnmsg.respCode == SUCCESS) {
this.dialogTableVisible = false;
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
// didgrp.iss.pts.extkey // didgrp.iss.pts.extkey
async changeExtkey() { async changeExtkey() {
let rtnmsg = await this.executeRule("didgrp.iss.pts.extkey") let rtnmsg = await this.executeRule("didgrp.iss.pts.extkey")
......
...@@ -22,7 +22,9 @@ export default class Setmod { ...@@ -22,7 +22,9 @@ export default class Setmod {
}, },
glemod: { glemod: {
gleshwstm: {} gleshwstm: {}
} },
setamt:"", // 扣费后付款金额 .setmod.setamt
redamt:"", // 扣减金额 .setmod.redamt
} }
} }
} }
\ No newline at end of file
...@@ -5,6 +5,7 @@ import Display from "../views/Display"; ...@@ -5,6 +5,7 @@ import Display from "../views/Display";
import Login from "../views/Login"; import Login from "../views/Login";
import Layout from "../views/Layout"; import Layout from "../views/Layout";
import BusRouter from "../views/Business/BusRouter"; import BusRouter from "../views/Business/BusRouter";
import ReviewRouter from "../views/Review/ReviewRouter";
import DocRouter from "../views/Docpan/DocRouter"; import DocRouter from "../views/Docpan/DocRouter";
Vue.use(VueRouter); Vue.use(VueRouter);
...@@ -15,12 +16,6 @@ const DisplayRouter = BusRouter.map(route => { ...@@ -15,12 +16,6 @@ const DisplayRouter = BusRouter.map(route => {
return newRoute; return newRoute;
}) })
const ReviewRouter = BusRouter.map(route => {
const newRoute = Object.assign({}, route)
newRoute.name = newRoute.name + 'Review'
return newRoute;
})
/** /**
* Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
* *
......
...@@ -145,7 +145,7 @@ const BusRouter = [ ...@@ -145,7 +145,7 @@ const BusRouter = [
{ path: 'ditame', component: Ditame, name: 'Ditame', meta: { title: '信用证修改' } }, { path: 'ditame', component: Ditame, name: 'Ditame', meta: { title: '信用证修改' } },
{ path: 'ditcan', component: Ditcan, name: 'Ditcan', meta: { title: '信用证注销' } }, { path: 'ditcan', component: Ditcan, name: 'Ditcan', meta: { title: '信用证注销' } },
{ path: 'ditsel', component: Ditsel, name: 'Ditsel', meta: { title: '信用证查询' } }, { path: 'ditsel', component: Ditsel, name: 'Ditsel', meta: { title: '信用证查询' } },
{ path: 'ditopn', component: Ditopn, name: 'Ditopn', meta: { title: (tag) => { return tag.path.startsWith("/review") ? "复核" : '买方信用证开立' } } }, { path: 'ditopn', component: Ditopn, name: 'Ditopn', meta: { title: '买方信用证开立' } },
{ path: 'infdid', component: Infdid, name: 'Infdid', meta: { title: '信用证交易查询' } }, { path: 'infdid', component: Infdid, name: 'Infdid', meta: { title: '信用证交易查询' } },
{ path: 'ditdck', component: Ditdck, name: 'Ditdck', meta: { title: '信用证到单' } }, { path: 'ditdck', component: Ditdck, name: 'Ditdck', meta: { title: '信用证到单' } },
// 例 // 例
......
...@@ -460,13 +460,14 @@ export default { ...@@ -460,13 +460,14 @@ export default {
}, },
stmData: { stmData: {
columns: [ columns: [
'1 1 "提示日期" 160', // '1 1 "提示日期" 160',
{index:1,position:1,width:90,pattern:'dateFormat',label:'提示日期'},
'2 2 "提示原因" 100', '2 2 "提示原因" 100',
'3 3 "业务编号" 150', '3 3 "业务编号" 150',
'4 4 "提示信息" 270', '4 4 "提示信息" 300',
'5 5 "待操作交易代码" 120', '5 5 "待操作交易代码" 120',
'6 6 "经办柜员" 100', '6 6 "经办柜员" 100',
'7 7 "所属工作组" 0', '7 7 "所属工作组" auto',
// '8 8 "客户号" 1', // '8 8 "客户号" 1',
// '9 9 "客户名称" 1', // '9 9 "客户名称" 1',
// '10 10 "币种" 1', // '10 10 "币种" 1',
......
...@@ -435,7 +435,8 @@ export default { ...@@ -435,7 +435,8 @@ export default {
{index:1,position:4,width:110,pattern:'code',label:'状态',code:this.codes.sptrelstatus}, {index:1,position:4,width:110,pattern:'code',label:'状态',code:this.codes.sptrelstatus},
'17 5 "报文类型" 100', '17 5 "报文类型" 100',
'18 6 "对方银行BIC" 110', '18 6 "对方银行BIC" 110',
'7 7 "创建时间" 160 20 DateTime 1', // '7 7 "创建时间" 160 20 DateTime 1',
{index:7,position:7,width:140,pattern:'timeFormat',label:'创建时间'},
'19 8 "币种" 50', '19 8 "币种" 50',
'20 9 "金额" 69 2 8 1 16', '20 9 "金额" 69 2 8 1 16',
......
...@@ -387,7 +387,8 @@ export default { ...@@ -387,7 +387,8 @@ export default {
{index:1,position:4,width:100,pattern:'code',label:'状态',code:[{label:"Pending",value:"PEN"}]}, {index:1,position:4,width:100,pattern:'code',label:'状态',code:[{label:"Pending",value:"PEN"}]},
'17 5 "报文类型" 100', '17 5 "报文类型" 100',
'18 6 "对方银行BIC" 110', '18 6 "对方银行BIC" 110',
'7 7 "创建时间" 160 20 DateTime 1', // '7 7 "创建时间" 160 20 DateTime 1',
{index:7,position:7,width:140,pattern:'timeFormat',label:'创建时间'},
'19 8 "币种" 50', '19 8 "币种" 50',
'20 9 "金额" 69 2 8 1 16', '20 9 "金额" 69 2 8 1 16',
......
...@@ -549,7 +549,8 @@ export default { ...@@ -549,7 +549,8 @@ export default {
'17 3 "摘要信息" 300', '17 3 "摘要信息" 300',
'12 4 "币种" 50', '12 4 "币种" 50',
'13 5 "金额" 100', '13 5 "金额" 100',
'14 6 "创建时间" 170', // '14 6 "创建时间" 170',
{index:14,position:6,width:140,pattern:'timeFormat',label:'创建时间'},
'9 7 "签名要求" 70', '9 7 "签名要求" 70',
'2 8 "签名状态" 70', '2 8 "签名状态" 70',
'16 9 "经办柜员" 70', '16 9 "经办柜员" 70',
......
...@@ -496,7 +496,8 @@ export default { ...@@ -496,7 +496,8 @@ export default {
'17 3 "摘要信息" 300', '17 3 "摘要信息" 300',
'12 4 "币种" 70', '12 4 "币种" 70',
'13 5 "金额" 100', '13 5 "金额" 100',
'14 6 "创建时间" 170', // '14 6 "创建时间" 170',
{index:14,position:6,width:140,pattern:'timeFormat',label:'创建时间'},
'9 7 "签名要求" 80', '9 7 "签名要求" 80',
'2 8 "签名状态" 80', '2 8 "签名状态" 80',
'16 9 "经办柜员" 80', '16 9 "经办柜员" 80',
......
...@@ -14,11 +14,7 @@ ...@@ -14,11 +14,7 @@
<el-main class="m-app-main"> <el-main class="m-app-main">
<tagViews></tagViews> <tagViews></tagViews>
<div style="height: 2px"></div> <div style="height: 2px"></div>
<keep-alive> <business></business>
<component v-bind:is="activeComponentName"></component>
</keep-alive>
<!-- <business v-if="activeComponentName === 'Business'"></business>
<review v-if="activeComponentName === 'Review'"></review> -->
<toolbars></toolbars> <toolbars></toolbars>
</el-main> </el-main>
</el-container> </el-container>
...@@ -30,17 +26,11 @@ import headerCom from "./Header"; ...@@ -30,17 +26,11 @@ import headerCom from "./Header";
import sideMenu from "./SideMenu"; import sideMenu from "./SideMenu";
import tagViews from "./components/TagsView"; import tagViews from "./components/TagsView";
import business from "../Business"; import business from "../Business";
import review from "../Review";
import toolbars from "~/components/Toolbars"; import toolbars from "~/components/Toolbars";
export default { export default {
name: "Layout", name: "Layout",
components: { headerCom, sideMenu, tagViews, business, review, toolbars }, components: { headerCom, sideMenu, tagViews, business, toolbars },
computed: {
activeComponentName() {
return this.$route.path.startsWith("/review") ? "review" : "business"
}
}
}; };
</script> </script>
......
...@@ -191,31 +191,41 @@ ...@@ -191,31 +191,41 @@
Add Add
</c-button> </c-button>
<!-- </c-col> --> <!-- </c-col> -->
<!-- <c-col :span="2">
<c-button size="small" icon="el-icon-delete" @click="onLiaccvDel">
Del
</c-button>
</c-col> -->
<!-- </c-row> -->
</c-col>
<!-- <c-col :span="24"><div style="height: 10px"></div></c-col> -->
<template>
<el-dialog <el-dialog
:visible.sync="dialogTableVisible" :visible.sync="dialogTableVisible"
:close-on-click-modal="false" width="60%"
:close-on-press-escape="false" center
> >
<c-istream-table :list="stmData.data" :columns="stmData.columns"> <c-istream-table :list="stmData.data" :columns="stmData.columns" :paginationShow="false">
<el-table-column prop="op" label="OP" width="100"> <el-table-column prop="op" label="OP" width="80" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<a href="javascript:void(0)" @click="pickDepItem(scope.$index,scope.row)" <!-- <a href="javascript:void(0)" type="primary" @click="pickDepItem(scope.$index,scope.row)"
>选择</a >选择</a
> -->
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="pickDepItem(scope.$index,scope.row)"
> >
选择
</c-button>
</template> </template>
</el-table-column> </el-table-column>
</c-istream-table> </c-istream-table>
</el-dialog> </el-dialog>
</template>
<!-- <c-col :span="2">
<c-button size="small" icon="el-icon-delete" @click="onLiaccvDel">
Del
</c-button>
</c-col> -->
<!-- </c-row> -->
</c-col>
<!-- <c-col :span="24"><div style="height: 10px"></div></c-col> -->
<c-col :span="23" style="margin-left: 9px;"> <c-col :span="23" style="margin-left: 9px;">
<c-table <c-table
:border="true" :border="true"
...@@ -321,7 +331,7 @@ ...@@ -321,7 +331,7 @@
import Api from "~/service/Api"; import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess"; import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditopn/Event"; import Utils from "~/utils/index"
export default { export default {
inject: ["root"], inject: ["root"],
...@@ -332,15 +342,15 @@ export default { ...@@ -332,15 +342,15 @@ export default {
dialogTableVisible: false, dialogTableVisible: false,
stmData: { stmData: {
columns: [ columns: [
'1 1:1 "Ref" 120', '1 1:1 "Ref" 150',
'2 2:1 "User" 80', '2 2:1 "User" 80',
'3 3:1 "Applicant" 196', '3 3:1 "Applicant" 100',
'4 4:1 "Account" 120', '4 4:1 "Account" 200',
'5 5:1 "Cur" 50', '5 5:1 "Cur" 200',
'6 6:1 "Amt" 80 2 0 1 18.3', '6 6:1 "Amt" 100 2 0 1 18.3',
'7 7:1 "Open date" 80 4 7', '7 7:1 "Open date" 80 4 7',
'8 8:1 "flg" 40', '8 8:1 "flg" 150',
'9 9:1 "Remarks" 180', '9 9:1 "Remarks" 250',
"P COLORED TRUE", "P COLORED TRUE",
"P VERTLINES TRUE", "P VERTLINES TRUE",
"P HORZLINES TRUE", "P HORZLINES TRUE",
...@@ -352,7 +362,50 @@ export default { ...@@ -352,7 +362,50 @@ export default {
relrowDisabled: true, relrowDisabled: true,
}; };
}, },
methods: { ...Event }, methods: {
async onLiaccvAdd() {
let rtnmsg = await this.executeRule("liaall.liaccv.add")
//const that = this.root;
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if(typeof(rtnmsg.data.vals) != "undefined"){
this.stmData.data = rtnmsg.data.vals.rows;
}else{
this.stmData.data = [];
}
this.dialogTableVisible = true;
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async pickDepItem(idx,row) {
var params = {selDst:"",selIds:[idx+1]}
let rtnmsg = await this.executeRule("liaall.liaccv.add", params)
if (rtnmsg.respCode == SUCCESS) {
this.dialogTableVisible = false;
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
async onLiaccvDel(index,row) {
let ids = [index+1];
let params = {selDst:"liaall.liaccv.liaccvg",selIds:ids};
let rtnmsg = await this.executeRule("liaall.liaccv.del",params)
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.$message({
type: 'success',
message: '删除成功!'
});
//this.model.liaall.liaccv.liaccvg = [];
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
},
created: function () {}, created: function () {},
}; };
</script> </script>
......
<template> <template>
<ReviewWrapper> <ReviewWrapper>
<businessContainer ref="business"></businessContainer> <Bdtset></Bdtset>
</ReviewWrapper> </ReviewWrapper>
</template> </template>
<script> <script>
import businessContainer from "../Business"; import Bdtset from "~/views/Business/Bdtset";
import { ReviewWrapper } from "../../components/gj-common.min.js"; import { ReviewWrapper } from "~/components/gj-common.min.js";
export default { export default {
name: "Review", name: "ReviewBdtset",
components: { ReviewWrapper, businessContainer }, components: { ReviewWrapper, Bdtset },
created() {}, created() {},
mounted() {}, mounted() {},
}; };
......
<template>
<ReviewWrapper>
<Ditdck></Ditdck>
</ReviewWrapper>
</template>
<script>
import Ditdck from "~/views/Business/Ditdck";
import { ReviewWrapper } from "~/components/gj-common.min.js";
export default {
name: "ReviewDitdck",
components: { ReviewWrapper, Ditdck },
created() {},
mounted() {},
};
</script>
<style></style>
<template>
<ReviewWrapper>
<Ditopn></Ditopn>
</ReviewWrapper>
</template>
<script>
import Ditopn from "~/views/Business/Ditopn";
import { ReviewWrapper } from "~/components/gj-common.min.js";
export default {
name: "ReviewDitopn",
components: { ReviewWrapper, Ditopn },
created() {},
mounted() {},
};
</script>
<style></style>
import ReviewDitopn from "./Business/ReviewDitopn.vue";
import ReviewDitdck from "./Business/ReviewDitdck.vue";
import ReviewBdtset from "./Business/ReviewBdtset.vue";
const ReviewRouter = [
{ path: "ditopn", component: ReviewDitopn, name: "ReviewDitopn", meta: { title: "复核-买方信用证开立" } },
{ path: "ditdck", component: ReviewDitdck, name: "ReviewDitdck", meta: { title: "复核-买方信用证到单" } },
{ path: "bdtset", component: ReviewBdtset, name: "ReviewBdtset", meta: { title: "复核-买方信用证付款" } },
];
export default ReviewRouter;
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