Commit 0a36e0ea by wangna

cup静态暂存

parent 5396d9f5
......@@ -115,7 +115,7 @@
</el-form-item>
</c-col>
<!-- <c-col :span="24" v-if="model.gidgrp.rec.inr != '' && model.gidgrp.rec.liaflg != ''">
<c-col :span="24" v-if="model.gctp0.lialab != ''">
<el-form-item
label="日期"
prop="gctp0.lialab"
......@@ -123,12 +123,12 @@
<c-date-picker
disabled
type="date"
v-model="model.gctp0.lialab"
v-model="model.gctp0.liadat"
style="width: 100%"
placeholder="请选择日期"
></c-date-picker>
</el-form-item>
</c-col> -->
</c-col>
<c-col :span="24">
<el-form-item label="索赔日期" prop="gcdgrp.rec.clmdat">
......
<template>
<m-cup ref="cup" title="dbacup" type="add"></m-cup>
</template>
<script>
import Dbicup from "~/views/Statics/Dbicup";
export default {
name: "StaticsDbacup",
components: {
"m-cup": Dbicup
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-cup title="dbdcup" type="delete"></m-cup>
</template>
<script>
import Dbicup from "~/views/Statics/Dbicup";
export default {
name: "StaticsDbdcup",
components: {
"m-cup": Dbicup
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-cup title="dbecup" type="edit"></m-cup>
</template>
<script>
import Dbicup from "~/views/Statics/Dbicup";
export default {
name: "StaticsDbecup",
components: {
"m-cup": Dbicup
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Bopcur {
constructor() {
this.data = {
inr: "",
cod: "",
numcod: "",
txt: "",
ver: "",
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"cod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"numcod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"txt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 50, "message": "最大长度50个字符", "trigger": "blur" }
],
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="cod" prop="cod">
<c-input v-model="model.cod" placeholder="请输入cod"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="numcod" prop="numcod">
<c-input v-model="model.numcod" placeholder="请输入numcod"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="txt" prop="txt">
<c-input v-model="model.txt" placeholder="请输入txt"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ver" prop="ver">
<c-input v-model="model.ver" placeholder="请输入ver"> </c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
export default {
name: "",
props: ["model"],
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="120px"
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="cup">
<c-content>
<m-cup-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 Bopcur, { Pattern } from "./Bopcur.js";
import CupInfo from "./CupInfo.vue";
import { queryById, add, edit, deleteById } from "~/service/test/bopcur.js";
export default {
name: "StaticsDbicup",
components: {
"m-cup-info": CupInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbicup"
}
},
data() {
return {
model: new Bopcur().data,
tabVal: "cup",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.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) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.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 是否更新infcup的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfcup", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -2,38 +2,23 @@
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="机构编码" prop="bchkey">
<c-input v-model="model.bchkey" placeholder="请输入机构编码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="授权货币" prop="relcur">
<c-select v-model="model.relcur" placeholder="请选择授权货币" :code="relcur" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="授权金额" prop="relamt">
<c-input v-model="model.relamt" placeholder="请输入授权金额"> </c-input>
<el-form-item label="cod" prop="cod">
<c-input v-model="model.cod" placeholder="请输入cod"> </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="trn">
<c-input v-model="model.trn" placeholder="请输入交易代码"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交易属性" prop="relflg">
<c-input v-model="model.relflg" placeholder="请输入交易属性"> </c-input>
<el-form-item label="numcod" prop="numcod">
<c-input v-model="model.numcod" placeholder="请输入numcod"> </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="trlAdd">新增</el-button>
<el-button type="primary" size="small" @click="cupAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
......@@ -48,8 +33,8 @@
</c-col>
<c-col :span="24">
<c-paging-table
:data="trlData"
:columns="trlColumns"
:data="cupData"
:columns="cupColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
......@@ -61,20 +46,20 @@
<c-button
style="margin-left: 0"
size="small"
@click="trlInfo(scope.$index, scope.row)"
@click="cupInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="trlEdit(scope.$index, scope.row)"
@click="cupEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="trlDelete(scope.$index, scope.row)"
@click="cupDelete(scope.$index, scope.row)"
>删除</c-button
>
<el-popover placement="top-start" width="50" trigger="click">
......@@ -104,7 +89,7 @@
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/trl.js";
import { queryByPage } from "~/service/test/bopcur.js";
export default {
name: "",
......@@ -112,44 +97,20 @@ export default {
inject: ["root"],
data() {
return {
trlData: [],
trlColumns: [
{ label: "机构编码", prop: "bchkey", width: "auto" },
{ label: "交易代码", prop: "trn", width: "auto" },
{ label: "授权货币", prop: "relcur", width: "auto" },
{ label: "授权金额", prop: "relamt", width: "auto" },
{ label: "交易属性", prop: "relflg", width: "auto" },
],
relcur: [
{ label: "AUD 澳大利亚元", value: "AUD" },
{ label: "CAD 加拿大元", value: "CAD" },
{ label: "CHF 瑞士法郎", value: "CHF" },
{ label: "CNY 人民币", value: "CNY" },
{ label: "DKK 丹麦克朗", value: "DKK" },
{ label: "EUR 欧元", value: "EUR" },
{ label: "FIM 芬兰马克", value: "FIM" },
{ label: "FRF 法国法郎", value: "FRF" },
{ label: "GBP 英镑", value: "FRF" },
{ label: "HKD 港币", value: "FRF" },
{ label: "JPY 日元", value: "FRF" },
{ label: "KRW 韩圆", value: "FRF" },
{ label: "MOP 澳门元", value: "FRF" },
{ label: "NOK 挪威克朗", value: "FRF" },
{ label: "NZD 新西兰元", value: "FRF" },
{ label: "SEK 瑞典克朗", value: "FRF" },
{ label: "SGD 新加坡元", value: "FRF" },
{ label: "THB 泰国铢", value: "FRF" },
{ label: "TWD 新台湾元", value: "FRF" },
{ label: "USD 美元", value: "FRF" },
cupData: [],
cupColumns: [
{ label: "cod", prop: "cod", width: "auto" },
{ label: "numcod", prop: "numcod", width: "auto" },
{ label: "txt", prop: "txt", width: "auto" },
{ label: "ver", prop: "ver", width: "auto" },
],
};
},
computed: {
},
computed: {},
activated() {
const { update } = this.$route.params;
if (update) {
this.onInftrlSearch();
this.onInfcupSearch();
}
},
methods: {
......@@ -159,9 +120,9 @@ export default {
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInftrlSearch();
this.onInfcupSearch();
},
onInftrlSearch() {
onInfcupSearch() {
queryByPage(this.model).then((res) => {
/**
* pageNumber: 0
......@@ -170,7 +131,7 @@ export default {
* totalPage: 0
*/
const list = res.list;
this.trlData = list;
this.cupData = list;
this.model.pageNum = res.pageNumber;
this.model.pageSize = res.pageSize;
this.model.total = res.total;
......@@ -179,19 +140,19 @@ export default {
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber;
this.model.pageSize = pageSize;
this.onInftrlSearch();
this.onInfcupSearch();
},
trlAdd() {
this.$router.push(`/statics/dbatrl`);
cupAdd() {
this.$router.push(`/statics/dbacup`);
},
trlInfo(index, row) {
this.$router.push(`/statics/dbitrl/${row.inr}`);
cupInfo(index, row) {
this.$router.push(`/statics/dbicup/${row.inr}`);
},
trlEdit(index, row) {
this.$router.push(`/statics/dbetrl/${row.inr}`);
cupEdit(index, row) {
this.$router.push(`/statics/dbecup/${row.inr}`);
},
trlDelete(index, row) {
this.$router.push(`/statics/dbdtrl/${row.inr}`);
cupDelete(index, row) {
this.$router.push(`/statics/dbdcup/${row.inr}`);
},
},
};
......
<template>
<div class="eContainer">
<c-page title="复核级别查询">
<c-page title="查询申报币种信息">
<el-form
:model="model"
ref="modelForm"
......@@ -10,7 +10,7 @@
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<!--PD000039 -->
<el-tab-pane label="复核级别查询" name="infsea">
<el-tab-pane label="查询申报币种信息" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
......@@ -25,7 +25,7 @@
import Infsea from "./Infsea";
export default {
name: "StaticsInftrl",
name: "StaticsInfcup",
components: {
"m-infsea": Infsea,
},
......@@ -38,13 +38,9 @@ export default {
return {
tabVal: "infsea",
model: {
// trl
bchkey: "",
trn: "",
relcur: "",
relamt: "",
ver: "",
relflg: "",
// bopcur
cod: "",
numcod: "",
// paging
pageNum: 1,
pageSize: 5,
......
......@@ -75,6 +75,13 @@ import Dbafee from "./Dbafee";
import Dbefee from "./Dbefee";
import Dbdfee from "./Dbdfee";
import Infcup from "./Infcup";
import Dbicup from "./Dbicup";
import Dbacup from "./Dbacup";
import Dbecup from "./Dbecup";
import Dbdcup from "./Dbdcup";
const StaticsRouter = [
{ path: 'infpty', component: Infpty, name: 'StaticsInfpty', meta: { title: '客户查询' } },
{ path: 'dbapty', component: Dbapty, name: 'StaticsDbapty', meta: { title: '客户新增' } },
......@@ -151,6 +158,12 @@ const StaticsRouter = [
{ path: 'dbifee/:inr', component: Dbifee, name: 'StaticsDbifee', meta: { title: (tag) => { return '费用代码详情: ' + tag.params.inr } } },
{ path: 'dbefee/:inr', component: Dbefee, name: 'StaticsDbefee', meta: { title: (tag) => { return '费用代码修改: ' + tag.params.inr } } },
{ path: 'dbdfee/:inr', component: Dbdfee, name: 'StaticsDbdfee', meta: { title: (tag) => { return '费用代码删除: ' + tag.params.inr } } },
{ path: 'infcup', component: Infcup, name: 'StaticsInfcup', meta: { title: '查询申报币种信息' } },
{ path: 'dbacup', component: Dbacup, name: 'StaticsDbacup', meta: { title: '新增申报币别信息' } },
{ path: 'dbicup/:inr', component: Dbicup, name: 'StaticsDbicup', meta: { title: (tag) => { return '查看申报币种详情信息: ' + tag.params.inr } } },
{ path: 'dbecup/:inr', component: Dbecup, name: 'StaticsDbecup', meta: { title: (tag) => { return '修改申报币别信息: ' + tag.params.inr } } },
{ path: 'dbdcup/:inr', component: Dbdcup, name: 'StaticsDbdcup', 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