Commit c44a7ae2 by xionglin

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs into settle-test-20230110
parents a4d30c0a 7ed0db77
......@@ -137,7 +137,7 @@
<c-col :span="24">
<el-form-item v-show="model.gitp.swiftflg == 'Y'" label="修改目的" prop="trnmod.swiadd.purposame">
<c-select v-model="model.trnmod.swiadd.purposame" style="width: 100%" placeholder="请输入修改目的"
:code="getValues('trnmod.swiadd.purposame')">
:code="[]">
</c-select>
</el-form-item>
</c-col>
......
......@@ -24,7 +24,7 @@
<c-col :span="24">
<el-form-item label="发送保函文本" prop="gidgrp.rec.sndto">
<c-select disabled v-model="model.gidgrp.rec.sndto" style="width: 100%" placeholder="请选择发送保函文本"
:code="getValues('gidgrp.rec.sndto')">
:code="[]">
</c-select>
</el-form-item>
</c-col>
......
......@@ -16,35 +16,10 @@ export default {
...docpan,
...ccvpan,
async init () {
const params = {
// spt: {
// bchname: "中国光大银行北京分行",
// cxmflg: "N",
// expdat: null,
// fromflg: "",
// gartyp: "A",
// grtnam: "",
// hndtyp: "OL",
// inr: "00000582",
// iscrotra: "",
// liadat: null,
// opndat: 1680537600000,
// othersno: "",
// ownref: "LG3500231016AA",
// ownusr: "ZL",
// segtyp: "01",
// sta:"111"
// }
"transName":"gitcan",
"userId":"ZL",
"gidInr":"00000582"
}
const res = await Api.post('/service/gitcan/init', {
...params,
sta:1122,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
gidInr: this.$route.query.inr
});
if (!res.data) {
return
......
......@@ -171,6 +171,7 @@ export default {
chgamt: this.model.liaccv.chgamt,
concur: this.model.liaccv.concur,
};
return params
},
// 公共组件setmod处理方式改变触发联动
......
......@@ -89,7 +89,6 @@
prop="gidgrp.blk.covgodsrv"
>
<c-input
disabled
rows="7"
type="textarea"
v-model="model.gidgrp.blk.covgodsrv"
......@@ -366,7 +365,6 @@
prop="gidgrp.rec.mannum"
>
<c-input
disabled
v-model="model.gidgrp.rec.mannum"
maxlength="12"
placeholder="请输入手册号码"
......@@ -481,7 +479,6 @@
prop="gidgrp.rec.bilvvv"
>
<c-input
disabled
v-model="model.gidgrp.rec.bilvvv"
placeholder="请输入上浮比率"
></c-input>
......
......@@ -43,7 +43,6 @@
prop="gidgrp.blk.covgodsrvc"
>
<c-input
disabled
rows="5"
type="textarea"
v-model="model.gidgrp.blk.covgodsrvc"
......
......@@ -107,6 +107,7 @@ export default {
// 处理
async handler(row) {
this.initdialog = true;
this.currentHandleRow = row
const params = {
//根据xx字段 查询处理的数据
ownref: row.ownref,
......@@ -131,7 +132,12 @@ export default {
let filterRoute = this.btnRouteMap.filter((item) => {
return item.label === btn.label
})
this.$router.history.push(filterRoute[0].route);
this.$router.history.push({
path: filterRoute[0].route,
query: {
inr: this.currentHandleRow.inr
}
});
},
// 关闭处理弹框
closeHandlerDialog() {
......
......@@ -656,9 +656,14 @@ export default {
btnRouteMap: [
{
label: '注销',
route: '/business/gitcan'
}
]
route: '/business-new/gitcan'
},
{
label: '修改',
route: '/business-new/gitame'
},
],
currentHandleRow: {}
};
},
methods: {},
......
......@@ -30,7 +30,7 @@ export default {
}
let dataObj = {
rec: {
objtyp: 'LID',
objtyp: 'GID',
ownref: model.lidgrp.rec.ownref,
opndat: model.lidgrp.rec.opndat,
expdat: model.lidgrp.rec.expdat,
......@@ -50,6 +50,9 @@ export default {
},
cbsMap: {
MAX: model.lidgrp.cbs.max,
OLDMAX: model.lidgrp.cbs.oldmax,
MAX2: model.lidgrp.cbs.max2,
NOM1: model.lidgrp.cbs.nom1,
OPN1: model.lidgrp.cbs.opn1,
MAC: model.lidgrp.cbs.mac,
MAC2: model.lidgrp.cbs.mac2,
......@@ -117,7 +120,7 @@ export default {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'LID',
objtyp: 'GID',
objinr: model.lidgrp.rec.objinr,
ownref: model.lidgrp.rec.ownref,
},
......@@ -128,7 +131,7 @@ export default {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'LID',
objtyp: 'GID',
objinr: model.lidgrp.rec.objinr,
ownref: model.lidgrp.rec.ownref,
// swiftflg: model.gitp.swiftflg,
......
......@@ -79,7 +79,6 @@ export default {
'trnmod.trndia.usr.extkey': null,
'lidgrp.blk.shpper': null,
'liaall.liaccv.cshpct': null,
label5: null,
'lidgrp.rec.spcrcbflg': null,
'lidgrp.cbs.max2.amt': null,
'lidgrp.cbs.max2.cur': null,
......@@ -728,14 +727,14 @@ export default {
{ max: 16, message: '长度不能超过16' },
],
'setmod.docamt': [
{ type: 'number', required: false, message: '必输项' },
{ max: 18, message: '整数位不能超过14位' },
{
pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
message: '小数位不能超过3位',
},
],
// 'setmod.docamt': [
// { type: 'number', required: false, message: '必输项' },
// { max: 18, message: '整数位不能超过14位' },
// {
// pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
// message: '小数位不能超过3位',
// },
// ],
'setmod.zmqacc': [
{ type: 'string', required: false, message: '必输项' },
......@@ -757,16 +756,6 @@ export default {
],
bcbdat: [{ type: 'string', required: false, message: '输入正确的日期' }],
'mtabut.coninf.oitinf.oit.inftxt': [
{ type: 'string', required: false, message: '必输项' },
{ max: 60, message: '长度不能超过60' },
],
'mtabut.coninf.oitset.oit.inftxt': [
{ type: 'string', required: false, message: '必输项' },
{ max: 60, message: '长度不能超过60' },
],
'mtabut.coninf.conexedat': [
{ type: 'string', required: false, message: '输入正确的日期' },
],
......
......@@ -54,22 +54,34 @@ export default class Litopn {
branchinr: '',
},
cbs: {
cnf: {
cur: '', // Confirmation Amount .gidgrp.cbs.cnf.cur
amt: '0.00', // Balance .gidgrp.cbs.cnf.amt
},
nom1: {
cur: '', // Nominal Amount .lidgrp.cbs.nom1.cur
amt: '0.00', // Nominal Amount .lidgrp.cbs.nom1.amt
},
max: {
cur: '', // Maximum Amount .lidgrp.cbs.max.cur
amt: '', // Maximum Amount .lidgrp.cbs.max.amt
amt: '0.00', // Maximum Amount .lidgrp.cbs.max.amt
},
max2: {
cur: '', // Additional Amount .lidgrp.cbs.max2.cur
amt: '', // Additional Amount .lidgrp.cbs.max2.amt
amt: '0.00', // Additional Amount .lidgrp.cbs.max2.amt
},
opn1: {
cur: '',
amt: '0.00',
},
opn2: {
cur: '', // Open Add. Amount .lidgrp.cbs.opn2.cur
amt: '', // Open Add. Amount .lidgrp.cbs.opn2.amt
amt: '0.00', // Open Add. Amount .lidgrp.cbs.opn2.amt
},
oldmax: {
cur: '',
amt: '0.00'
}
},
apl: {
pts: new Pts().data,
......
......@@ -195,9 +195,46 @@ export default {
codes: { ...CodeTable },
activeNames: ["engp"],
promptData: {
title: '',
columns: [],
data:[]
title: 'Select a Party',
columns: [
{
prop: 'ptyInr',
label: 'Party Number'
},
{
prop: 'inr',
label: 'Address Number'
},
{
prop: 'branch',
label: 'Branch Code'
},
{
prop: 'bchName',
label: 'Branch Name'
},
{
prop: 'adrName',
label: 'Address Name'
},
{
prop: 'adr1',
label: 'Address1'
},
{
prop: 'locCty',
label: 'City'
},
{
prop: 'locZip',
label: 'Zip'
},
{
prop: 'bicCode',
label: 'BIC'
}
],
data: []
},
promptData1: {
title: '',
......
......@@ -22,7 +22,6 @@ export default {
},
//点击查询按钮时,判断“来源”是否有数据
async handleSearch() {
console.log('this', this.sourceList);
if (!this.sourceList.length) {
this.$notify.error({ title: '错误', message: '来源不能为空!' });
return;
......
......@@ -116,7 +116,7 @@
<c-button style="margin-left: 0" size="small" @click="onWaitDetail(scope.$index,scope.row)">
详情
</c-button>
<c-button style="margin-left: 5px" size="small" type="primary" @click="onHandle(scope.$index,scope.row)">
<c-button :disabled="scope.row.relflg != 'W'" style="margin-left: 5px" size="small" type="primary" @click="onHandle(scope.$index,scope.row)">
处理
</c-button>
</template>
......
......@@ -23,7 +23,7 @@
</el-table>
<el-pagination
layout="prev, pager, next, total, jumper"
:total="tableData.length"
:total="this.promptData.data.length"
:page-sizes="pageSizes"
:page-size="pageSize"
:current-page="currentPage"
......@@ -69,7 +69,7 @@ export default {
return this.promptData.columns
},
tableData() {
return this.promptData.data
return this.promptData.data.slice((this.currentPage - 1) * this.pageSize, this.currentPage * this.pageSize)
},
},
methods: {
......
......@@ -7788,6 +7788,12 @@ const CodeTable = {
{label:'eMail',value:'EML'},
{label:'eMail Att',value:'FMA'}
],
apftyp:[
{ label: 'Customer Copy', value: 'CPY' },
{ label: 'File Copy', value: 'FIL' },
{ label: 'Internal Copy', value: 'INT' },
{ label: 'Original', value: 'ORI' },
],
}
export default CodeTable;
......@@ -16,11 +16,11 @@ export default {
userId: window.sessionStorage.userId || 'ZL',
}
// 精简cfagit
if (params.cfagit.cfaflg !== '1') {
if (params.cfagit && params.cfagit.cfaflg !== '1') {
delete params.cfagit
}
// 精简cnybop
if (params.cnybop.vouflg !== '1') {
if (params.cnybop && params.cnybop.vouflg !== '1') {
delete params.cnybop.cnyvou
}
const res = await Api.post(`/service/${this.trnName}/save`, params);
......@@ -47,6 +47,7 @@ export default {
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
});
loading.close()
if (rtnmsg.respCode === SUCCESS) {
let errorRules = rtnmsg.data;
let keysList = Object.keys(errorRules)
......@@ -62,10 +63,8 @@ export default {
});
}
resolve()
loading.close();
return
}
loading.close();
const tab = this.showBackendErrors(errorRules)
if (tab) {
// tab切换之后,需出发tab-click的事件
......@@ -88,36 +87,50 @@ export default {
message: '校验失败',
type: 'error',
});
this.$nextTick(() => {
console.log('========', this.$refs['modelForm'])
let isError = document.querySelectorAll('.is-error')
let fields = this.$refs['modelForm'].fields
fields.map((fieldItem) => {
if (fieldItem.validateState === 'error') {
let errorComponentName = fieldItem.$options.componentName
// console.log('fieldItem===', fieldItem)
// 切换tab
if (errorComponentName === 'ElTabPane') {
fieldItem.$parent.currentName = fieldItem.name
// 切换收缩框
} else if (errorComponentName === 'ElCollapseItem') {
if (fieldItem.collapse.activeNames.indexOf(fieldItem.name) < 0) {
fieldItem.collapse.activeNames.push(fieldItem.name)
}
}
}
})
isError[0].scrollIntoView({
block: 'center',
behavior: 'smooth'
})
})
this.showFrontendErrors()
}
})
})
},
// 前端校验失败时候,tab和Collapse组件效果处理
showFrontendErrors () {
this.$nextTick(() => {
let fields = this.$refs['modelForm'].fields
fields.map((fieldItem) => {
if (fieldItem.validateState === 'error') {
let parentVC = fieldItem
let firstErrorTab = null
let collapsePanel = null
while(!firstErrorTab) {
const vcName = parentVC.$options.componentName
// 没有Tabs的表单
if (vcName === "ElForm") {
break;
}
if (vcName === "ElTabPane") {
firstErrorTab = parentVC
break;
}
if (vcName === "ElCollapseItem") {
collapsePanel = parentVC;
}
parentVC = parentVC.$parent;
}
if (firstErrorTab) {
const tabs = firstErrorTab.$parent
tabs.currentName = firstErrorTab.name
}
if (collapsePanel && collapsePanel.collapse.activeNames.indexOf(collapsePanel.name) < 0) {
collapsePanel.collapse.activeNames.push(collapsePanel.name)
}
}
})
let isError = document.querySelectorAll('.is-error')
isError[0].scrollIntoView({
block: 'center',
behavior: 'smooth'
})
})
},
// 后端校验
showBackendErrors(fieldErrors) {
......@@ -132,6 +145,7 @@ export default {
this.isChecking = false;
}
const fields = this.$refs.modelForm.fields;
console.log('backFileds', fields)
const tab = Utils.positioningErrorMsg(fieldErrors, fields);
return tab;
},
......@@ -150,6 +164,7 @@ export default {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) || {},
gidgrp: this.model.gidgrp,
gitp: this.model.gitp,
lidgrp: this.model.lidgrp,
}
const res = await Api.post(`/service/${this.trnName}/txnHold`, params);
if (res.respCode === SUCCESS) {
......
import Api from '~/service/Api';
import Utils from "~/utils"
export default {
methods: {
async init() {
......@@ -14,28 +15,23 @@ export default {
if (!res.data) {
return;
}
if (res.data.addbcb) {
this.$set(this.model, 'addbcb', res.data.addbcb);
}
if (res.data.gitp) {
this.$set(this.model, 'gitp', res.data.gitp);
}
if (res.data.gidgrp) {
this.$set(this.model, 'gidgrp', res.data.gidgrp);
}
if (res.data.cfagit) {
this.$set(this.model, 'cfagit', res.data.cfagit);
}
if (res.data.cnybop) {
this.$set(this.model, 'cnybop', res.data.cnybop);
}
this.$set(this.model, 'setmod', {
...this.model.setmod,
setfeg: res.data.setfeg,
setfog: res.data.setfog,
setglg: res.data.setglg,
});
console.log(res);
this.copyValueFromVoData(this.model, res.data)
this.copyValueFromVoData(this.model.setmod.setfeg, res.data.setfeg)
this.copyValueFromVoData(this.model.setmod.setfog, res.data.setfog)
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
if (Utils.typeOf(model[key]) === 'Object') {
this.copyValueFromVoData(model[key], data[key])
} else {
this.$set(model, key, data[key])
}
}
})
},
async tabClick(tab) {
if (this.isInDisplay) {
......
......@@ -219,10 +219,9 @@
prop="gidgrp.blk.exptxt"
>
<c-input
disabled
type="textarea"
rows="5"
:disabled="model.gitp.exptxtmodflg == ''"
:disabled="!model.gitp.exptxtmodflg"
v-model="model.gidgrp.blk.exptxt"
maxlength="780"
show-word-limit
......
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/service/apf/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/service/apf/queryById?inr=${inr}`)
}
export function add(data) {
return Api.post("/service/apf/add", data)
}
export function edit(data) {
return Api.post("/service/apf/edit", data)
}
export function deleteById(inr) {
return Api.post(`/service/apf/deleteById?inr=${inr}`)
}
......@@ -13,7 +13,7 @@ export function add(data) {
}
export function hasCod(cod) {
return Api.post(`/service/atp/hasCod?cod=${cod}`)
return Api.post(`/service/atp/queryCod?cod=${cod}`)
}
export function edit(data) {
......
......@@ -21,17 +21,17 @@ export function edit(data) {
}
export function deleteById(inr) {
return Api.post(`/manager/cty/deleteById?inr=${inr}`)
return Api.post(`/service/cty/deleteById?inr=${inr}`)
}
export function addBopctyData(inr, data) {
return Api.post(`/service/cty/addBopctyData?inr=${inr}`, data)
}
// export function addBopctyData(inr, data) {
// return Api.post(`/service/cty/addBopctyData?inr=${inr}`, data)
// }
export function editBopctyData(inr, data) {
return Api.post(`/service/cty/editBopctyData?inr=${inr}`, data)
}
// export function editBopctyData(inr, data) {
// return Api.post(`/service/cty/editBopctyData?inr=${inr}`, data)
// }
export function deleteBopctyById(data) {
return Api.post(`/service/cty/deleteBopctyById`, data)
}
// export function deleteBopctyById(data) {
// return Api.post(`/service/cty/deleteBopctyById`, data)
// }
......@@ -21,7 +21,7 @@ export function edit(data) {
}
export function deleteById(data) {
return Api.post(`/manager/cur/deleteById?inr=${data}`)
return Api.post(`/service/cur/deleteById?inr=${data}`)
}
// export function addAdrData(inr, data) {
......
......@@ -17,6 +17,6 @@ export function edit(data) {
}
export function deleteById(inr) {
return Api.post("/service/ety/deleteById", {inr})
return Api.post(`/service/ety/deleteById?inr=${inr}`)
}
......@@ -20,8 +20,8 @@ export function edit(data) {
return Api.post("/service/tdh/edit", data)
}
export function deleteById(data) {
return Api.post(`/service/tdh/deleteById`, data)
export function deleteById(inr) {
return Api.post(`/service/tdh/deleteById?inr=${inr}`)
}
export function queryYearList(data) {
......
......@@ -281,6 +281,19 @@ import Dbaatp from "~/views/Statics/Atp/views/Dbaatp";
import Dbeatp from "~/views/Statics/Atp/views/Dbeatp";
import Dbdatp from "~/views/Statics/Atp/views/Dbdatp";
import Infapf from "~/views/Statics/Apf/views/Infapf";
import Dbiapf from "~/views/Statics/Apf/views/Dbiapf";
import Dbaapf from "~/views/Statics/Apf/views/Dbaapf";
import Dbeapf from "~/views/Statics/Apf/views/Dbeapf";
import Dbdapf from "~/views/Statics/Apf/views/Dbdapf";
import Infatx from "~/views/Statics/Atx/views/Infatx";
import Dbiatx from "~/views/Statics/Atx/views/Dbiatx";
import Dbaatx from "~/views/Statics/Atx/views/Dbaatx";
import Dbeatx from "~/views/Statics/Atx/views/Dbeatx";
import Dbdatx from "~/views/Statics/Atx/views/Dbdatx";
import Infbch from "~/views/Statics/Infbch";
import Dbibch from "~/views/Statics/Dbibch";
import Dbabch from "~/views/Statics/Dbabch";
......@@ -709,6 +722,11 @@ const BusRouter = [
{ path: 'dbipts/:extkey', component: Dbipts, name: 'StaticsDbipts', meta: { title: (tag) => { return '客户更新详情: ' + tag.params.extkey } } },
{ path: 'dbepts/:extkey', component: Dbipts, name: 'StaticsDbepts', meta: { title: (tag) => { return '客户信息修改: ' + tag.params.extkey } } },
{ path: 'infapf', component: Infapf, name: 'StaticsInfapf', meta: { title: '报文格式信息查询' } },
{ path: 'dbaapf', component: Dbaapf, name: 'StaticsDbaapf', meta: { title: '报文格式信息新增' } },
{ path: 'dbeapf/:inr', component: Dbeapf, name: 'StaticsDbeapf', meta: { title: (tag) => { return '报文格式信息修改: ' + tag.params.inr } } },
{ path: 'dbdapf/:inr', component: Dbdapf, name: 'StaticsDbdapf', meta: { title: (tag) => { return '报文格式信息删除: ' + tag.params.inr } } },
{ path: 'dbiapf/:inr', component: Dbiapf, name: 'StaticsDbiapf', meta: { title: (tag) => { return '报文格式信息详情: ' + tag.params.inr } } },
{ path: 'infatp', component: Infatp, name: 'StaticsInfatp', meta: { title: '交易配置信息查询' } },
{ path: 'dbaatp', component: Dbaatp, name: 'StaticsDbaatp', meta: { title: '交易配置信息新增' } },
......@@ -716,6 +734,12 @@ const BusRouter = [
{ path: 'dbdatp/:inr', component: Dbdatp, name: 'StaticsDbdatp', meta: { title: (tag) => { return '客户删除: ' + tag.params.inr } } },
{ path: 'dbiatp/:inr', component: Dbiatp, name: 'StaticsDbiatp', meta: { title: (tag) => { return '交易配置信息详情: ' + tag.params.inr } } },
{ path: 'infatx', component: Infatx, name: 'StaticsInfatx', meta: { title: '保函文本查询' } },
{ path: 'dbaatx', component: Dbaatx, name: 'StaticsDbaatx', meta: { title: '保函文本新增' } },
{ path: 'dbiatx/:inr', component: Dbiatx, name: 'StaticsDbiatx', meta: { title: (tag) => { return '保函文本详情: ' + tag.params.inr } } },
{ path: 'dbeatx/:inr', component: Dbeatx, name: 'StaticsDbeatx', meta: { title: (tag) => { return '保函文本修改: ' + tag.params.inr } } },
{ path: 'dbdatx/:inr', component: Dbdatx, name: 'StaticsDbdatx', meta: { title: (tag) => { return '保函文本删除: ' + tag.params.inr } } },
{ path: 'infbch', component: Infbch, name: 'StaticsInfbch', meta: { title: '客户查询' } },
{ path: 'dbabch', component: Dbabch, name: 'StaticsDbabch', meta: { title: '客户新增' } },
{ path: 'dbibch/:inr', component: Dbibch, name: 'StaticsDbibch', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
......
......@@ -323,6 +323,8 @@ export default {
},
toLitopn() {
// 点击开立,清空从待经办进来的时候带的行参数
localStorage.setItem('row_litopn', null);
this.$router.history.push("/business-new/litopn");
},
},
......
......@@ -191,7 +191,9 @@ export default {
// { inifrm: "infpta", ininam: "客户地址查询", pntmiu: "10" },
{ inifrm: "infact", ininam: "账号信息查询", pntmiu: "10" },
{ inifrm: "infapf", ininam: "报文格式信息查询", pntmiu: "10" },
{ inifrm: "infatp", ininam: "交易模式配置查询", pntmiu: "10" },
{ inifrm: "infatx", ininam: "保函文本查询ATX", pntmiu: "10" },
{ inifrm: "infbch", ininam: "机构信息查询", pntmiu: "10" },
{ inifrm: 'infoit', ininam: '消息信息查询OIT', pntmiu: '10' },
{ inifrm: 'infsmh', ininam: 'Message索引信息查询', pntmiu: '10' },
......@@ -204,7 +206,6 @@ export default {
{ inifrm: "infpty", ininam: "客户信息查询", pntmiu: "10" },
{ inifrm: "inftrl", ininam: "交易权限查询", pntmiu: "10" },
{ inifrm: "infusr", ininam: "柜员信息查询", pntmiu: "10" },
{ inifrm: "infdia", ininam: "交易备忘录查询", pntmiu: "10" },
// { inifrm: "gitset", ininam: "进口保函赔付", pntmiu: "13" },
// { inifrm: "gitcrq", ininam: "进口保函索赔登记", pntmiu: "13" },
{ inifrm: "14", ininam: "服务管理", pntmiu: "" },
......
......@@ -15,10 +15,10 @@
</c-col>
<c-col :span="24">
<!-- Holding Party -->
<el-form-item label="客户账户" prop="ptyExtkey">
<el-form-item label="客户" prop="ptyExtkey">
<c-input
v-model="model.ptyExtkey"
placeholder="请输入客户账户"
placeholder="请输入客户"
>
</c-input>
</el-form-item>
......
......@@ -18,6 +18,10 @@ export const Pattern = {
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"cod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
......
......@@ -33,11 +33,7 @@
<c-input v-model="model.pri" placeholder="请输入优先级"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="版本号" prop="ver">
<c-input v-model="model.ver" placeholder="请输入版本号"> </c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
......
......@@ -90,8 +90,8 @@ export default {
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
const data = { inr: inr };
queryById(data).then((res) => {
queryById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
......@@ -139,9 +139,10 @@ export default {
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const data = { inr: this.model.inr };
deleteById(data)
const inr = this.$route.params.inr;
deleteById(inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true);
......@@ -162,7 +163,8 @@ export default {
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsDblapf", params: { update } });
this.$router.push({ name: "StaticsInfapf", params: { update } });
},
},
};
......
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<c-form-item label="Form Set" prop="cod">
<c-input
v-model="model.cod"
maxlength="40"
placeholder=""
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Techn.Form" prop="tef">
<c-select style="width: 100%"
v-model="model.tef"
placeholder=""
:code="getCodesByKey('tef')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="Appl.Form" prop="typ">
<c-select style="width: 100%"
v-model="model.typ"
placeholder=""
:code="getCodesByKey('apftyp')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-row>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="apfAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onSearch()"
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="apfData"
:columns="apfColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
v-on:queryFunc="queryFunc"
:border="true"
>
<c-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 0"
size="small"
@click="apfInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="apfEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="apfDelete(scope.$index, scope.row)"
>删除</c-button
>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/apf.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
apfData: [],
apfColumns: [
{ label: '样式设置', prop: 'cod', width: 'auto' },
{ label: '描述', prop: 'cod', width: 'auto' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
console.log("================================")
console.log(update);
if (update) {
this.onInfapfSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfapfSearch();
},
onInfapfSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list
this.apfData = list
this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize
this.model.total = res.total
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onInfapfSearch()
},
apftypeChange(val) {
this.model.apftyp = val;
},
getCodesByKey(key) {
return codes[key] ?? [];
},
apfAdd() {
this.$router.push(`/statics/dbaapf`)
},
apfInfo(index, row) {
this.$router.push(`/statics/dbiapf/${row.inr}`)
},
apfEdit(index, row) {
this.$router.push(`/statics/dbeapf/${row.inr}`)
},
apfDelete(index, row) {
this.$router.push(`/statics/dbdapf/${row.inr}`)
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}</style>
<template>
<div class="eContainer">
<c-page title="报文格式信息查询">
<el-form
:model="model"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<!--PD000039 -->
<el-tab-pane label="报文格式查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInfapf",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// apf,查询条件的字段
cod: "",
typ: "",
tef: "",
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -160,11 +160,11 @@
</c-col>
<c-col :span="24">
<el-form-item label="交易处理时间" prop="dealtim">
<c-input-currency value="0.0" class="input-currency-left"
<c-input
v-model="model.dealtim"
placeholder="请输入交易处理时间"
>
</c-input-currency>
</c-input>
</el-form-item>
</c-col>
</c-col>
......
......@@ -117,6 +117,12 @@ import Dbiact from "./Act/views/Dbiact";
import Dbeact from "./Act/views/Dbeact";
import Dbdact from "./Act/views/Dbdact";
import Infapf from "./Apf/views/Infapf";
import Dbiapf from "./Apf/views/Dbiapf";
import Dbaapf from "./Apf/views/Dbaapf";
import Dbeapf from "./Apf/views/Dbeapf";
import Dbdapf from "./Apf/views/Dbdapf";
import Infatp from "./Atp/views/Infatp";
import Dbiatp from "./Atp/views/Dbiatp";
import Dbaatp from "./Atp/views/Dbaatp";
......@@ -213,6 +219,13 @@ const StaticsRouter = [
{ path: 'dbdatp/:inr', component: Dbdatp, name: 'StaticsDbdatp', meta: { title: (tag) => { return '客户删除: ' + tag.params.inr } } },
{ path: 'dbiatp/:inr', component: Dbiatp, name: 'StaticsDbiatp', meta: { title: (tag) => { return '交易配置信息详情: ' + tag.params.inr } } },
{ path: 'infapf', component: Infapf, name: 'StaticsInfapf', meta: { title: '报文格式信息查询' } },
{ path: 'dbaapf', component: Dbaapf, name: 'StaticsDbaapf', meta: { title: '报文格式信息新增' } },
{ path: 'dbeapf/:inr', component: Dbeapf, name: 'StaticsDbeapf', meta: { title: (tag) => { return '报文格式信息修改: ' + tag.params.inr } } },
{ path: 'dbdapf/:inr', component: Dbdapf, name: 'StaticsDbdapf', meta: { title: (tag) => { return '报文格式信息删除: ' + tag.params.inr } } },
{ path: 'dbiapf/:inr', component: Dbiapf, name: 'StaticsDbiapf', meta: { title: (tag) => { return '报文格式信息详情: ' + tag.params.inr } } },
{ path: 'infact', component: Infact, name: 'StaticsInfact', meta: { title: '资金账户查询' } },
{ path: 'dbaact', component: Dbaact, name: 'StaticsDbaact', meta: { title: '资金账户新增' } },
{ path: 'dbiact/:inr', component: Dbiact, name: 'StaticsDbiact', meta: { title: (tag) => { return '资金账户详情: ' + tag.params.inr } } },
......
......@@ -21,7 +21,7 @@ export default class Swm {
export const Pattern = {
"fmt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
{ "max": 10, "message": "最大长度1个字符", "trigger": "blur" }
],
"mt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
......
......@@ -14,7 +14,7 @@ export default class Tdh {
export const Pattern = {
"dat": [
{ "required": true, "message": "必输项", "type": "date", "trigger": "blur" },
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
],
"calendar": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
......
......@@ -103,6 +103,7 @@
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
console.log("123")
add(this.model)
.then((res) => {
this.$message.success("保存成功!")
......@@ -112,6 +113,7 @@
this.$message.error("保存失败!");
});
} else {
console.log("失败")
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
......@@ -139,15 +141,14 @@
type: "warning",
})
.then(() => {
let data = {"inr":this.model.inr}
deleteById(data)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
......
......@@ -35,8 +35,12 @@
</c-col>
<c-col :span="8" class="col-right">
<el-form-item label="货币名称" prop="cur" v-if="type == 'add'">
<c-input-currency v-model="model.cur" placeholder="请输入货币名称">
</c-input-currency>
<c-select
v-model="model.cur"
style="width: 100%"
placeholder="请选择币种类型"
:code="getCodesByKey('cur')"
></c-select>
</el-form-item>
<el-form-item label="中间价" prop="midrat">
<c-input-currency v-model="model.midrat" placeholder="请输入中间价">
......
......@@ -85,7 +85,7 @@
>
<span>取 消</span>
</button>
<c-button type="primary" @click="" v-if="operate === 'details'"
<c-button type="primary" @click="created" v-if="operate === 'details'"
>确 定</c-button
>
<c-button type="primary" @click="editBtb" v-if="operate === 'edit'"
......
......@@ -26,8 +26,7 @@
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: right">
<c-col :span="24" style="text-align: right; height: 36.8px">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
......@@ -37,7 +36,7 @@
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="btbData"
......
......@@ -145,15 +145,16 @@ export default {
})
.catch((err) => {
this.$message.error("国家地区信息保存失败!");
});}else{
editBopctyData(this.model.inr,this.model)
.then((res) => {
this.$message.success("收支申报国家代码表保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("收支申报国家代码表保存失败!");
});
// }else{
// editBopctyData(this.model.inr,this.model)
// .then((res) => {
// this.$message.success("收支申报国家代码表保存成功!");
// this.goBack(true)
// })
// .catch((err) => {
// this.$message.error("收支申报国家代码表保存失败!");
// });
}
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
......@@ -175,15 +176,16 @@ export default {
})
.catch((err) => {
this.$message.error("国家地区信息删除失败!");
})}else{
deleteBopctyById(this.model)
.then((res) => {
this.$message.success("收支申报国家代码表删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("收支申报国家代码表删除失败!");
})
// }else{
// deleteBopctyById(this.model)
// .then((res) => {
// this.$message.success("收支申报国家代码表删除成功!");
// this.goBack(true)
// })
// .catch((err) => {
// this.$message.error("收支申报国家代码表删除失败!");
// })
};
})
.catch(() => {
......
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