Commit e25c892d by wangna

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs into development-202206
parents e2ca8c18 c12c31bd
......@@ -6973,6 +6973,7 @@ const CodeTable = {
],
atptxt: [
{ label: "开立信用证", value: "DITOPN" },
{ label: "Settling Documents", value: "BCTSET" },
],
sptrelstatus: [
{ label: '传入', value: 'INC' },
......@@ -7795,7 +7796,7 @@ const CodeTable = {
{ label: '/WAREHOUSE/', value: 'WARE' },
],
dscmodflg: [
{ label: "是", value: "Y" },
{ label: "是", value: "X" },
{ label: "否", value: "N" },
],
grpcod: [
......@@ -7912,7 +7913,39 @@ const CodeTable = {
{ label: '境外汇入汇款手续费', value: 'cpifee' },
{ label: '境外汇出汇款手续费', value: 'cpofee' },
{ label: '出口信用证预通知手续费(停用)', value: 'preadv' },
]
],
dia_bustxt: [
{ label: 'Advance', value: 'BP' },
{ label: 'Batch Collection', value: 'CL' },
{ label: 'Cash Collection', value: 'FC' },
{ label: 'Clean Colection', value: 'CC' },
{ label: 'Clean Payments', value: 'CP' },
{ label: 'Export Collection', value: 'BO' },
{ label: 'Export Guarantee(INT)', value: 'GF' },
{ label: 'Export L/C', value: 'LE' },
{ label: 'Export L/C Document Set', value: 'BE' },
{ label: 'Export L/C Transfer', value: 'LT' },
{ label: 'Guarantee', value: 'GI' },
{ label: 'Guarantee Claim', value: 'GC' },
{ label: 'Guarantee Claim(INT)', value: 'GD' },
{ label: 'Guarantee(INT)', value: 'GB' },
{ label: 'Import Collection', value: 'BC' },
{ label: 'mport L/C', value: 'LI' },
{ label: 'Import L/C Document Set', value: 'BR' },
{ label: 'Loan', value: 'TR' },
{ label: 'Manual Contract', value: 'MC' },
{ label: 'Reimbursement', value: 'RM' },
{ label: 'Reimbursement Claim', value: 'RC' },
{ label: 'Transfer Bills', value: 'BT' },
{ label: 're-financing', value: 'DF' },
{ label: '出口保函', value: 'GE' },
{ label: '结售汇业务', value: 'JS' },
{ label: '买方国内证', value: 'DI' },
{ label: '买方国内证单据', value: 'BD' },
{ label: '卖方国内证', value: 'DE' },
{ label: '卖方国内证单据', value: 'BF' },
{ label: '期权业务', value: 'WI' },
],
}
export default CodeTable;
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/act/queryByPage", data)
return Api.post("/manager/apf/queryByPage", data)
}
export function queryDetailById(inr) {
return Api.post(`/manager/act/queryDetailById?inr=${inr}`)
export function queryById(data) {
return Api.post(`/manager/apf/queryById`, data)
}
export function add(data) {
return Api.post("/manager/act/add", data)
return Api.post("/manager/apf/add", data)
}
export function edit(data) {
return Api.post("/manager/act/edit", data)
return Api.post("/manager/apf/edit", data)
}
export function deleteById(inr) {
return Api.post(`/manager/act/deleteById?inr=${inr}`)
export function deleteById(data) {
return Api.post(`/manager/apf/deleteById`, data)
}
import Api from "~/service/Api";
export function queryByPage(data) {
return Api.post("/manager/ptm/queryByPage", data);
}
export function queryById(inr) {
return Api.post(`/manager/ptm/queryById?inr=${inr}`)
}
export function queryDetailById(inr) {
return Api.post(`/manager/ptm/queryDetailById?inr=${inr}`)
}
export function add(data) {
return Api.post("/manager/ptm/add", data);
}
export function edit(data) {
return Api.post("/manager/ptm/edit", data);
}
export function deleteById(data) {
return Api.post(`/manager/ptm/deleteById`, { data });
}
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/zmqxrt/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/manager/zmqxrt/queryById?inr=${inr}`)
}
export function add(data) {
return Api.post("/manager/zmqxrt/add", data)
}
export function edit(data) {
return Api.post("/manager/zmqxrt/edit", data)
}
export function deleteById(inr) {
return Api.post(`/manager/zmqxrt/deleteById?inr=${inr}`)
}
export function queryDetailById(inr) {
return Api.post(`/manager/zmqxrt/queryDetailById?inr=${inr}`)
}
\ No newline at end of file
<template>
<div class="eibs">
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="开立方式" name="opnp1">
<m-opnp1 :model="model" :codes="codes" />
<el-collapse-item title="Opnp1" name="Opnp1">
<m-Opnp1 :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Fctcan/Event";
import Opnp1 from "./Opnp1";
export default {
components:{
"m-Opnp1" : Opnp1,
import commonProcess from "~/mixin/commonProcess";
import Event from "~/model/Fctcan/Event"
import Opnp1 from "./Opnp1"
export default {
components: {
"m-opnp1": Opnp1,
},
inject: ['root'],
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
activeNames: ["opnp1"],
}
},
methods: { ...Event },
created: function () {
activeNames: ["Opnp1"],
//activeNames: ["cltrns"],
}
}
</script>
<style>
</style>
\ No newline at end of file
};
},
methods: { ...Event,
},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<c-page title="保证金注销">
<div class="eContainer">
<c-page title="保证金注销">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
......@@ -42,8 +43,9 @@
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
</div>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
......
......@@ -468,8 +468,8 @@
class="medium_bcs"
size="medium"
type="primary"
@click="toFctcan"
>证金撤销
@click="toConres"
>留参考号
</c-button>
</el-col>
......@@ -715,9 +715,9 @@ export default {
toGetopn() {
this.$router.history.push("/business/getopn");
},
toFctcan() {
this.$router.history.push("/business/Fctcan");
},
toConres(){
this.$router.history.push("/business/Conres");
}
// handleReset: function () {
// this.model = {
// instNo: "",
......
......@@ -10,10 +10,11 @@
export default {
name: "ReviewFctcan",
components: { ReviewWrapper, Fctcan },
components: { ReviewWrapper,Fctcan },
created() {},
mounted() {},
};
</script>
<style></style>
\ No newline at end of file
<template>
<m-zmqxrt ref="zmq" title="dbazmq" type="add"></m-zmqxrt>
</template>
<script>
import Dbizmqxrt from "~/views/Statics/Dbizmqxrt";
debugger
export default {
name: "StaticsDbizmqxrt",
components: {
"m-zmqxrt": Dbizmqxrt
},
data() {
return {};
},
mounted() {
// this.$refs.pty.rules['ptaList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// ]
}
};
debugger
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-zmqxrt ref="zmq" title="dbezmq" type="delete"></m-zmqxrt>
</template>
<script>
import Dbizmqxrt from "~/views/Statics/Dbizmqxrt";
export default {
name: "StaticsDbezmq",
components: {
"m-zmqxrt": Dbizmqxrt
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-zmqxrt ref="zmq" title="dbezmq" type="edit"></m-zmqxrt>
</template>
<script>
import Dbizmqxrt from "~/views/Statics/Dbizmqxrt";
export default {
name: "StaticsDbezmq",
components: {
"m-zmqxrt": Dbizmqxrt
},
data() {
return {
rules:{required:false}
};
},
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -45,17 +45,17 @@
</div>
</c-page>
</div>
</template>
</template>
<script>
import Utils from "~/utils";
import Apf, { Pattern } from "./Apf.js";
import Utils from "~/utils";
import Apf, { Pattern } from "./Apf.js";
import ApfInfo from "./ApfInfo.vue";
import ApfInfo from "./ApfInfo.vue";
import { queryDetailById, add, edit, deleteById } from "~/service/test/apf.js";
import { queryById, add, edit, deleteById } from "~/service/test/apf.js";
export default {
export default {
name: "StaticsDbiapf",
components: {
"m-apf-info": ApfInfo,
......@@ -68,12 +68,12 @@
props: {
type: {
type: String,
default: "info"
default: "info",
},
title: {
type: String,
default: "dbiapf"
}
default: "dbiapf",
},
},
data() {
return {
......@@ -90,11 +90,12 @@
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryDetailById(inr).then((res) => {
const data = { inr: inr };
queryById(data).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("客户不存在")
this.$message.error("客户不存在");
}
});
}
......@@ -106,13 +107,13 @@
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
this.goBack(true);
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
Utils.formValidateTips(this.$refs.modelForm.fields);
}
});
},
......@@ -122,13 +123,13 @@
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack()
this.goBack();
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
Utils.formValidateTips(this.$refs.modelForm.fields);
}
});
},
......@@ -139,10 +140,11 @@
type: "warning",
})
.then(() => {
deleteById(this.model.inr)
const data = { inr: this.model.inr };
deleteById(data)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
this.goBack(true);
})
.catch((err) => {
this.$message.error("删除失败!");
......@@ -162,10 +164,9 @@
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsDblapf", params: { update } });
},
},
};
</script>
};
</script>
<style>
</style>
\ No newline at end of file
</style>
\ No newline at end of file
......@@ -5,79 +5,111 @@
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="Business Sector" prop="subObjTyp">
<c-select style="width: 100%" v-model="model.subObjTyp" placeholder="请选择Business Sector" :code="getCodesByKey('bustxt')">
<c-select :disabled="true" style="width: 100%" v-model="model.subObjTyp" placeholder="请选择Business Sector" :code="getCodesByKey('dia_bustxt')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Reference No." prop="objref">
<c-input v-model="model.objref" style="width: 100%" placeholder="请输入Reference No"> </c-input>
<el-form-item label="参考号" prop="objref">
<c-input :disabled="true" v-model="model.objref" style="width: 100%" placeholder="请输入参考号"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Description" prop="ownrefDesc">
<c-input v-model="model.ownrefDesc" style="width: 100%" placeholder="请输入Description"> </c-input>
<el-form-item label="参考号描述" prop="ownrefDesc">
<c-input :disabled="true" v-model="model.ownrefDesc" style="width: 100%" placeholder="请输入参考号描述"> </c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="24">
<el-form-item label="Start Transaction" prop="frm">
<c-input v-model="model.frm" placeholder="请输入账号" > </c-input>
<el-form-item label="交易名" prop="frm">
<c-select style="width: 100%" v-model="model.frm" placeholder="请选择交易名">
</c-select>
</el-form-item>
</c-col> -->
<c-col :span="24">
<el-form-item label="Description" prop="frm">
<c-select style="width: 100%" v-model="model.frm" placeholder="请选择Description" :code="getCodesByKey('atptxt')">
<el-form-item label="交易" prop="frm">
<c-select style="width: 100%" v-model="model.frm" placeholder="请选择交易" :code="getCodesByKey('atptxt')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Description" prop="nam">
<c-input v-model="model.nam" style="width: 100%" placeholder="请输入Description">
<el-form-item label="备忘录名称" prop="nam">
<c-input v-model="model.nam" style="width: 100%" placeholder="请输入备忘录名称">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Detailed Information" prop="inftxt">
<c-input v-model="model.inftxt" placeholder="请输入Detailed Information" > </c-input>
<el-form-item label="明细信息" prop="inftxt">
<c-input v-model="model.inftxt" placeholder="请输入明细信息" > </c-input>
</el-form-item>
</c-col>
<div v-if="model.cod == 'RAM'">
<c-col :span="24">
<el-form-item label="客户号" prop="ptyextkey">
<c-input v-model="model.ptyextkey" placeholder="请输入客户号" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="客户名称" prop="ptynam">
<c-input v-model="model.ptynam" placeholder="请输入客户名称" > </c-input>
</el-form-item>
</c-col>
</div>
</c-col>
<!-- =============================================右边=========================================== -->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="User" prop="ownusr">
<c-input v-model="model.ownusr" placeholder="请输入User" > </c-input>
<el-form-item label="经办用户" prop="ownusr">
<c-input :disabled="true" v-model="model.ownusr" placeholder="请输入经办用户" > </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Group" prop="ownusg">
<c-select style="width: 100%" v-model="model.ownusg" placeholder="请选择Group" :code="getCodesByKey('usgtxt')">
<el-form-item label="经办用户组" prop="ownusg">
<c-select style="width: 100%" v-model="model.ownusg" placeholder="请选择经办用户组" :code="getCodesByKey('usgtxt')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Entered/Modified by" prop="usr">
<c-input v-model="model.usr" placeholder="请输入Entered/Modified by" >
<el-form-item label="创建/修改人" prop="usr">
<c-input :disabled="true" v-model="model.usr" placeholder="请输入创建/修改人" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="entry Done" prop="donflg">
<c-select style="width: 100%" v-model="model.donflg" placeholder="请选择entry Done" :code="getCodesByKey('dia_donflg')">
<el-form-item label="是否完成" prop="donflg">
<c-select style="width: 100%" v-model="model.donflg" placeholder="请选择是否完成" :code="getCodesByKey('dia_donflg')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Diary Reason" prop="cod">
<c-select style="width: 100%" v-model="model.cod" placeholder="请选择Diary Reason" :code="getCodesByKey('diatxt')">
<el-form-item label="类型" prop="cod">
<c-select :disabled="true" style="width: 100%" v-model="model.cod" placeholder="请选择类型" :code="getCodesByKey('diatxt')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Date of Diary" prop="dat">
<c-date-picker type="date"  v-model="model.dat" style="width:100%"  placeholder="请选择Date of Diary"></c-date-picker>
<el-form-item label="日期" prop="dat">
<c-date-picker type="date"  v-model="model.dat" style="width:100%"  placeholder="请选择日期"></c-date-picker>
</el-form-item>
</c-col>
<div v-if="model.cod == 'RAM'">
<c-col :span="24">
<el-form-item label="付款币种" prop="paycur">
<c-input v-model="model.paycur" placeholder="请输入付款币种" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="付款金额" prop="payamt">
<c-input v-model="model.payamt" placeholder="请输入付款金额" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="预计核验日期" prop="prechkdat">
<c-date-picker type="date"  v-model="model.prechkdat" style="width:100%"  placeholder="请选择预计核验日期"></c-date-picker>
</el-form-item>
</c-col>
</div>
</c-col>
</div>
</template>
......
......@@ -33,15 +33,15 @@ export const Pattern = {
],
"cod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "trigger": "blur" }
{ "max": 6, "message": "最大长度6个字符","trigger": "blur" }
],
"sftcod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "trigger": "blur" }
{ "max": 4, "message": "最大长度4个字符","trigger": "blur" }
],
"rol": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "trigger": "blur" }
{ "max": 3, "message": "最大长度3个字符","trigger": "blur" }
],
"incflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
......
......@@ -3,13 +3,14 @@
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="费用代码" prop="cod">
<c-select
<!-- <c-select
style="width: 100%"
v-model="model.cod"
placeholder="请选择费用代码"
:code="getCodesByKey('feecod3')"
>
</c-select>
</c-select> -->
<c-input v-model="model.cod" placeholder="请输入费用代码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
......
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="ID号" prop="inr">
<c-input v-model="model.inr" placeholder="请输入ID号"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="关联地址" prop="ptainr">
<c-input v-model="model.ptainr" placeholder="请输入关联地址"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="类型" prop="cortyp">
<c-input v-model="model.cortyp" placeholder="请输入类型"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="BIC" prop="coradr">
<c-input v-model="model.coradr" placeholder="请输入BIC"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="验证标志" prop="autflg">
<c-input v-model="model.autflg" placeholder="请输入验证标志"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="可选的验证关键字" prop="autdet">
<c-input v-model="model.autdet" 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 :span="24">
<el-form-item label="关联实体拥有的PTM" prop="etyextkey">
<c-input v-model="model.etyextkey" placeholder="请输入关联实体拥有的PTM">
</c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: "",
props: ["model"],
data() {
return {};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="160px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="ptm">
<c-content>
<m-ptm-info :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Ptm, { Pattern } from "./ptm.js";
import PtmInfo from "./PtmInfo.vue";
import { add, edit, deleteById, queryDetailById,queryById} from "~/service/test/ptm.js";
export default {
name: "StaticsDbiptm",
components: {
"m-ptm-info": PtmInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbiptm"
}
},
data() {
return {
model: new Ptm().data,
tabVal: "ptm",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
// this.model.inr = this.$route.params.inr;
console.log(inr);
queryById(inr).then((res) => {
debugger
if (res.inr) {
this.model = res;
} else {
this.$message.error("不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack()
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新infptm的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfptm", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Ptm {
constructor() {
this.data = {
inr: "",
ptainr: "",
cortyp: "",
coradr: "",
autflg: "",
autdet: "",
ver: "",
etyextkey: "",
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"ptainr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"cortyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"coradr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 80, "message": "最大长度80个字符", "trigger": "blur" }
],
"autflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"autdet": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
}
\ No newline at end of file
......@@ -77,7 +77,7 @@ import ActInfo from "./ActInfo.vue";
import PtcInfo from "./PtcInfo.vue";
import RatInfo from "./RatInfo.vue";
import { queryDetailById, add, edit, deleteById } from "~/service/test/pty.js";
import { queryDetailById,queryById, add, edit, deleteById } from "~/service/test/ptm.js";
export default {
name: "StaticsDbipty",
......@@ -118,7 +118,7 @@ export default {
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryDetailById(inr).then((res) => {
queryDetailById(inr).then((res)=> {queryById(this.model)
if (res.inr) {
this.model = res;
} else {
......
......@@ -22,11 +22,11 @@
</c-col>
<c-col :span="12" class="col-right">
<el-form-item label="条款模板关键字" prop="extkey">
<c-input v-model="model.extkey" placeholder="请输入条款模板关键字" >
<c-input v-model="model.extkey" placeholder="请输入条款模板关键字" :disabled="type === 'edit'">
</c-input>
</el-form-item>
<el-form-item label="语言" prop="uil" style="width:100%">
<c-select v-model="model.uil" style="width:100%" placeholder="请选择语言">
<c-select v-model="model.uil" style="width:100%" placeholder="请选择语言" :disabled="type === 'edit'">
<el-option v-for="item in getCodesByKey('uiltxt')" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
......
export default class Zmqxrt {
constructor() {
this.data = {
inr: "",
cur: "",
begdat: "",
enddat: "",
buyrat: "",
midrat: "",
selrat: "",
ttrrat: "",
odrrat: "",
ver: "",
resrat: "",
rebrat: "",
ibrrat: "",
sel1rat: "",
buy1rat: "",
etgextkey: "CEBGRP",
xrttim: "",
caozbz: "",
canssm: "",
}
}
}
export const Pattern = {
"inr": [
{ "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"cur": [
{ "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"begdat": [
{ "type": "date", "trigger": "blur" }
],
"enddat": [
{ "type": "date", "trigger": "blur" }
],
"buyrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"midrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"selrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"ttrrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"odrrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"ver": [
{ "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"resrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"rebrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"ibrrat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"sel1rat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"buy1rat": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,14}(\.\d{1,6})?$/, "message": "整数不能超过14位,小数不能超过6位", "trigger": "blur" }
],
"etgextkey": [
{ "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"xrttim": [
{ "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"caozbz": [
{ "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
// "zmqxrt_cur": [
// ],
}
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="币种" prop="cur">
<c-select
v-model="model.cur"
style="width: 100%"
placeholder="请选择币种类型"
:code="getCodesByKey('cur')"
></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="开始日期"
prop="model.begdat"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.begdat"
style="width: 100%"
placeholder="请选择起始日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="终止日期"
prop="model.enddat"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.enddat"
style="width: 100%"
placeholder="请选择终止日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="买入价" prop="buyrat">
<c-input-currency
v-model="model.buyrat"
placeholder="请输入买入价"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="中间价" prop="midrat">
<c-input-currency
v-model="model.midrat"
placeholder="请输入中间价"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="卖出价" prop="selrat">
<c-input-currency
v-model="model.selrat"
placeholder="请输入卖出价"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ttrrat" prop="ttrrat">
<c-input-currency
v-model="model.ttrrat"
placeholder="请输入ttrrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="odrrat" prop="odrrat">
<c-input-currency
v-model="model.odrrat"
placeholder="请输入odrrat"
>
</c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="resrat" prop="resrat">
<c-input-currency
v-model="model.resrat"
placeholder="请输入resrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="rebrat" prop="rebrat">
<c-input-currency
v-model="model.rebrat"
placeholder="请输入rebrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ibrrat" prop="ibrrat">
<c-input-currency
v-model="model.ibrrat"
placeholder="请输入ibrrat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="sel1rat" prop="sel1rat">
<c-input-currency
v-model="model.sel1rat"
placeholder="请输入sel1rat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="buy1rat" prop="buy1rat">
<c-input-currency
v-model="model.buy1rat"
placeholder="请输入buy1rat"
>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体组代码" prop="etgextkey">
<c-input
v-model="model.etgextkey"
placeholder="请输入实体组代码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="牌价时间" prop="xrttim">
<c-input
v-model="model.xrttim"
placeholder="请输入牌价时间"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="caozbz" prop="caozbz">
<c-select
v-model="model.caozbz"
placeholder="请输入caozbz"
:code="getCodesByKey('caozbz')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="canssm" prop="canssm">
<c-input
v-model="model.canssm"
placeholder="请输入canssm"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</c-row>
<!-- <c-col :span="24">-->
<!-- </c-col>-->
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: "zmqxrt",
props: ["model"],
data() {
return {};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="180px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="changePosition">
<el-tab-pane label="自贸区牌价信息" name="zmqxrt">
<c-content>
<m-zmqxrt-info :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Zmqxrt, { Pattern } from "./Zmqxrt.js";
import ZmqxrtInfo from "./ZmqxrtInfo.vue";
import {queryDetailById, queryByPage, queryById, add, edit, deleteById } from "~/service/test/zmqxrt.js";
export default {
name: "StaticsDbizmqxrt",
components: {
"m-zmqxrt-info": ZmqxrtInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbizmqxrt"
}
},
data() {
return {
model: new Zmqxrt().data,
tabVal: "zmqxrt",
rules: Pattern,
tabPosition:"tab-zmqxrt",
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
debugger
if (this.type !== "add") {
const inr = this.$route.params.inr;
this.model.inr = this.$route.params.inr;
console.log(inr);
queryById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
if(this.tabPosition===`tab-zmqxrt`){
edit(this.model)
.then((res) => {
this.$message.success("自贸区牌价信息修改保存成功!");
this.goBack()
})
.catch((err) => {
this.$message.error("自贸区牌价信息修改保存失败!");
});}
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
if(this.tabPosition===`tab-zmqxrt`){
debugger
deleteById(this.model.inr)
.then((res) => {
debugger
this.$message.success("自贸区牌价信息删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("自贸区牌价信息删除失败!");
})};
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新dblzmq的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsDblzmq", params: { update } });
},
changePosition(tab,event){
this.tabPosition=event.target.getAttribute('id');
console.log(this.tabPosition)
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- ----------左 ---------->
<c-col :span="24">
<el-form-item label="币种" prop="cur">
<c-select
v-model="model.cur"
placeholder="请选择币种"
:code="getCodesByKey('cur')"
></c-select>
</el-form-item>
</c-col>
<c-col :span="12" class="col-left">
<!-- <c-col :span="24">-->
<!-- <el-form-item label="BEGDAT" prop="BEGDAT">-->
<!-- <c-input-->
<!-- v-model="model.BEGDAT"-->
<!-- placeholder="请输入BEGDAT"-->
<!-- ></c-input>-->
<!-- </el-form-item>-->
<!-- </c-col>-->
<c-col :span="24">
<el-form-item
label="开始日期"
prop="model.begdat"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.begdat"
style="width: 100%"
placeholder="请选择起始日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<!-- <el-form-item label="Party No." prop="extkey">-->
<!-- <c-input-->
<!-- v-model="model.extkey"-->
<!-- maxlength="24"-->
<!-- placeholder="请输入Party No."-->
<!-- ></c-input>-->
<!-- </el-form-item>-->
</c-col>
<c-col :span="24">
<el-form-item
label="结束日期"
prop="model.enddat"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.enddat"
style="width: 100%"
placeholder="请选择结束日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="zmqxrtAdd" :disabled="model.cur===''" >新增</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="zmqxrtData"
:columns="zmqxrtColumns"
: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="zmqxrtInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="zmqxrtEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="zmqxrtDelete(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/zmqxrt.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
zmqxrtData: [],
zmqxrtColumns: [
{ label: 'INR', prop: 'inr', width: '120' },
{ label: '币种', prop: 'cur', width: '120' },
{ label: '起始日期', prop: 'begdat', width: '150' },
{ label: '终止日期', prop: 'enddat', width: '200' },
{ label: '买入价', prop: 'buyrat', width: '100' },
{ label: '中间价', prop: 'midrat', width: '200' },
{ label: '卖出价', prop: 'selrat', width: '98' },
// { label: 'TTRRAT', prop: 'ttrrat', width: '98' },
// { label: 'ODRRAT', prop: 'odrrat', width: '200' },
// { label: 'VER', prop: 'ver', width: '120' },
// { label: 'RESRAT', prop: 'resrat', width: '200' },
// { label: 'REBRAT', prop: 'rebrat', width: '98' },
// { label: 'IBRRAT', prop: 'ibrrat', width: '200' },
// { label: 'SEL1RAT', prop: 'sel1rat', width: '100' },
// { label: 'BUY1RAT', prop: 'buy1rat', width: '150' },
{ label: '实体组代码', prop: 'etgextkey', width: '120' },
{ label: '牌价时间', prop: 'xrttim', width: '98' },
// { label: 'CAOZBZ', prop: 'caozbz', width: '98' },
// { label: 'CANSSM', prop: 'canssm', width: '98' },
],
};
},
computed: {
seatypb: {
get: function () {
return this.model.zmqxrttyp === "B";
},
set: function (val) {
this.model.zmqxrttyp = val ? "B" : "";
},
},
seatypc: {
get: function () {
return this.model.zmqxrttyp === "C";
},
set: function (val) {
this.model.zmqxrttyp = val ? "C" : "";
},
},
seatypa: {
get: function () {
return this.model.zmqxrttyp === "A";
},
set: function (val) {
this.model.zmqxrttyp = val ? "A" : "";
},
},
seatypo: {
get: function () {
return this.model.zmqxrttyp === "O";
},
set: function (val) {
this.model.zmqxrttyp = val ? "O" : "";
},
},
seatyph: {
get: function () {
return this.model.zmqxrttyp === "H";
},
set: function (val) {
this.model.zmqxrttyp = val ? "H" : "";
},
},
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfzmqxrtSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfzmqxrtSearch();
},
onInfzmqxrtSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list
this.zmqxrtData = 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.onInfzmqxrtSearch()
},
zmqxrttypeChange(val) {
this.model.zmqxrttyp = val;
},
getCodesByKey(key) {
return codes[key] ?? [];
},
zmqxrtAdd() {
this.$router.push(`/statics/dbazmq`)
},
zmqxrtInfo(index, row) {
this.$router.push(`/statics/dbizmqxrt/${row.inr}`)
},
zmqxrtEdit(index, row) {
this.$router.push(`/statics/dbezmq/${row.inr}`)
},
zmqxrtDelete(index, row) {
this.$router.push(`/statics/dbdzmq/${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: "StaticsDblzmq",
components: {
"m-infsea": Infsea,
},
provide() {
return {
//cur: model.cur,
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
inr:"",
cur:"",
begdat:"",
enddat:"",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -3,32 +3,32 @@
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="Reason" prop="cod">
<c-select style="width: 100%" v-model="model.cod" placeholder="请选择Reason" :code="getCodesByKey('diatxt')">
<el-form-item label="类型" prop="cod">
<c-select style="width: 100%" v-model="model.cod" placeholder="请选择类型" :code="getCodesByKey('diatxt')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Reference" prop="objref">
<c-input v-model="model.objref" placeholder="请输入Reference" style="width: 100%">
<el-form-item label="参考号" prop="objref">
<c-input v-model="model.objref" placeholder="请输入参考号" style="width: 100%">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="User" prop="ownusr">
<c-input v-model="model.ownusr" placeholder="请输入User" style="width: 100%">
<el-form-item label="经办用户" prop="ownusr">
<c-input v-model="model.ownusr" placeholder="请输入经办用户" style="width: 100%">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Status" prop="donflg">
<c-select style="width: 100%" v-model="model.donflg" placeholder="请选择Status" :code="getCodesByKey('dia_donflg')">
<el-form-item label="是否完成标志" prop="donflg">
<c-select style="width: 100%" v-model="model.donflg" placeholder="请选择是否完成标志" :code="getCodesByKey('dia_donflg')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Group" prop="ownusg">
<c-input v-model="model.ownusg" placeholder="请输入Group" style="width: 100%">
<el-form-item label="经办用户组" prop="ownusg">
<c-input v-model="model.ownusg" placeholder="请输入经办用户组" style="width: 100%">
</c-input>
</el-form-item>
</c-col>
......@@ -36,24 +36,24 @@
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="From" prop="datFrom">
<el-form-item label="开始日期" prop="datFrom">
<c-date-picker type="date"  v-model="model.datFrom" style="width:100%"  placeholder="请选择开始日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="To" prop="datTo">
<c-date-picker type="date"  v-model="model.datTo" style="width:100%"  placeholder="请选择结束日期"></c-date-picker>
<el-form-item label="截止日期" prop="datTo">
<c-date-picker type="date"  v-model="model.datTo" style="width:100%"  placeholder="请选择截止日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Start Transaction" prop="frm">
<c-select style="width: 100%" v-model="model.frm" placeholder="请选择Start Transaction" :code="getCodesByKey('atptxt')">
<el-form-item label="交易名" prop="frm">
<c-select style="width: 100%" v-model="model.frm" placeholder="请选择交易名" :code="getCodesByKey('atptxt')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Entered By" prop="usr">
<c-input v-model="model.usr" placeholder="请输入Entered By" style="width: 100%">
<el-form-item label="柜员名" prop="usr">
<c-input v-model="model.usr" placeholder="请输入柜员名" style="width: 100%">
</c-input>
</el-form-item>
</c-col>
......@@ -130,7 +130,8 @@
</template>
<script>
import codes from "~/config/CodeTable";
import { format } from "path";
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/dia.js";
......@@ -142,14 +143,14 @@
return {
diaData: [],
diaColumns: [
{ label: 'Date', prop: 'dat', width: 'auto' },
{ label: 'Reason', prop: 'codCn', width: 'auto' },
{ label: 'Reference', prop: 'objref', width: 'auto' },
{ label: 'Description', prop: 'nam', width: 'auto' },
{ label: 'Transaction', prop: 'frm', width: 'auto' },
{ label: 'User', prop: 'ownusr', width: 'auto' },
{ label: 'Group', prop: 'ownusg', width: 'auto' },
{ label: 'Status', prop: 'donflgCn', width: 'auto' },
{ label: '日期', prop: 'datStr', width: 'auto' },
{ label: '类型', prop: 'codCn', width: 'auto' },
{ label: '参考号', prop: 'objref', width: 'auto' },
{ label: '备忘录名称', prop: 'nam', width: 'auto' },
{ label: '交易名', prop: 'frm', width: 'auto' },
{ label: '经办用户', prop: 'ownusr', width: 'auto' },
{ label: '经办用户组', prop: 'ownusg', width: 'auto' },
{ label: '是否完成', prop: 'donflgCn', width: 'auto' },
],
};
},
......
<template>
<div class="eibs-tab">
<!-- 查询条件 -->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="ID号" prop="inr">
<c-input v-model="model.inr" placeholder="请输入ID号"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="关联地址" prop="ptainr">
<c-input v-model="model.ptainr" placeholder="请输入关联地址"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="类型" prop="cortyp">
<c-input v-model="model.cortyp" placeholder="请输入类型"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="BIC" prop="coradr">
<c-input v-model="model.coradr" placeholder="请输入BIC"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="验证标志" prop="autflg">
<c-input v-model="model.autflg" placeholder="请输入验证标志"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="可选的验证关键字" prop="autdet">
<c-input v-model="model.autdet" 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 :span="24">
<el-form-item label="关联实体拥有的PTM" prop="etyextkey">
<c-input v-model="model.etyextkey" placeholder="请输入关联实体拥有的PTM">
</c-input>
</el-form-item>
</c-col>
</c-col>
<!-- 操作按钮 -->
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="ptmAdd">新增</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="ptmData"
:columns="ptmColumns"
: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="ptmInfo(scope.$index, scope.row)"
>详情</c-button
>
<!-- <c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="ptmEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="ptmDelete(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 { queryByPage } from "~/service/test/ptm.js";
import CodeTable from "~/config/CodeTable";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
entyGrp: [],
lang: CodeTable["uiltxt"],
ptmData: [],
ptmColumns: [
{ label: "ID号", prop: "inr", width: "120" },
{ label: "关联地址", prop: "ptainr", width: "120" },
{ label: "类型", prop: "cortyp", width: "120" },
{ label: "BIC", prop: "coradr", width: "120" },
{ label: "验证标志", prop: "autflg", width: "120" },
{ label: "可选的验证关键字", prop: "autdet", width: "150" },
{ label: "版本控制", prop: "ver", width: "120" },
{ label: "关联实体拥有的PTM", prop: "etyextkey", width: "170" },
],
};
},
activated() {
const { update } = this.$route.params;
if (update) {
this.onInfptmSearch();
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInfptmSearch();
},
langValue(key) {
return this.lang.filter((item) => item.value === key)[0]?.label;
},
onInfptmSearch() {
queryByPage(this.model).then((res) => {
const list = res.list ?? [];
list.map((item) => (item.uil = this.langValue(item.uil) ?? item.uil));
this.ptmData = 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.onInfptmSearch();
},
ptmAdd() {
this.$router.push(`/statics/dbaptm`);
},
ptmInfo(index, row) {
this.$router.push(`/statics/dbiptm/${row.inr}`);
},
ptmEdit(index, row) {
this.$router.push(`/statics/dbeptm/${row.inr}`);
},
ptmDelete(index, row) {
this.$router.push(`/statics/dbdptm/${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">
<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: "StaticsInfptm",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
etgextkey: "",
nam: "",
uil: "",
pageSize: 5,
pageNum: 1,
total: 0,
},
};
},
};
</script>
<style>
</style>
import Infpty from "./Infpty";
import Dbiptm from "./Dbiptm";
import Dbipty from "./Dbipty";
import Dbapty from "./Dbapty";
import Dbepty from "./Dbepty";
......@@ -13,6 +14,7 @@ import Dbausr from "./Dbausr";
import Dbiusr from "./Dbiusr";
import Dbeusr from "./Dbeusr";
import Dbdusr from "./Dbdusr";
import Infptm from "./Infptm";
import Infcty from "./Infcty";
import Dbicty from "./Dbicty";
......@@ -92,9 +94,16 @@ import Dbiapf from "./Dbiapf";
import Dbaapf from "./Dbaapf";
import Dbeapf from "./Dbeapf";
import Dbdapf from "./Dbdapf";
import Dblzmq from "./Dblzmq";
import Dbazmq from "./Dbazmq";
import Dbezmq from "./Dbezmq";
import Dbdzmq from "./Dbdzmq";
import Dbizmqxrt from "./Dbizmqxrt";
const StaticsRouter = [
{ path: 'dbiptm/:inr', component:Dbiptm, name: 'StaticsDbiptm', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
{ path: 'infptm', component:Infptm, name: 'StaticsInfptm', meta: { title: '银行密押查询' } },
{ path: 'infpty', component: Infpty, name: 'StaticsInfpty', meta: { title: '客户查询' } },
{ path: 'dbapty', component: Dbapty, name: 'StaticsDbapty', meta: { title: '客户新增' } },
{ path: 'dbipty/:inr', component: Dbipty, name: 'StaticsDbipty', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
......@@ -188,6 +197,11 @@ const StaticsRouter = [
{ path: 'dbiapf/:inr', component: Dbiapf, name: 'StaticsDbiapf', meta: { title: (tag) => { return '报文格式信息详情: ' + tag.params.inr } } },
{ 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: 'dblzmq', component: Dblzmq, name: 'StaticsDblzmq', meta: { title: '自贸区牌价查询' } },
{ path: 'dbazmq', component: Dbazmq, name: 'StaticsDbazmq', meta: { title: '自贸区牌价新增' } },
{ path: 'dbizmqxrt/:inr', component: Dbizmqxrt, name: 'StaticsDbizmqxrt', meta: { title: (tag) => { return '自贸区牌价详情: ' + tag.params.inr } } },
{ path: 'dbezmq/:inr', component: Dbezmq, name: 'StaticsDbezmq', meta: { title: (tag) => { return '自贸区牌价编辑: ' + tag.params.inr } } },
{ path: 'dbdzmq/:inr', component: Dbdzmq, name: 'StaticsDbdzmq', meta: { title: (tag) => { return '自贸区牌价删除: ' + tag.params.inr } } },
]
export default StaticsRouter
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