Commit 4192beda by nanrui

cur静态交易优化。

parent a4a58527
...@@ -4,8 +4,8 @@ export function queryByPage(data) { ...@@ -4,8 +4,8 @@ export function queryByPage(data) {
return Api.post("/test/cur/queryByPage", data) return Api.post("/test/cur/queryByPage", data)
} }
export function queryDetailById(inr) { export function curInfo(inr) {
return Api.post(`/test/cur/queryDetailById?inr=${inr}`) return Api.post(`/test/cur/queryById?inr=${inr}`)
} }
export function add(data) { export function add(data) {
...@@ -16,8 +16,8 @@ export function edit(data) { ...@@ -16,8 +16,8 @@ export function edit(data) {
return Api.post("/test/cur/edit", data) return Api.post("/test/cur/edit", data)
} }
export function deleteById(inr) { export function deleteById(data) {
return Api.post(`/test/cur/deleteById?inr=${inr}`) return Api.post(`/test/cur/deleteById`, data)
} }
// export function addAdrData(inr, data) { // export function addAdrData(inr, data) {
......
<template>
<div class="eibs-tab">
<!-- 左边 -->
<c-col :span="12" class="col-left">
<!-- <c-col :span="24">
<el-form-item label="inr" prop="inr">
<c-input v-model="model.inr" placeholder="请输入inr">
</c-input>
</el-form-item>
</c-col> -->
<c-col :span="24">
<el-form-item label="cod" prop="cod">
<!-- <c-select v-model="model.cod" style="width: 100%" placeholder="请输入cod">
<el-option v-for="item in codes.currencycode" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select> -->
<c-input v-model="model.cod" style="width: 100%" placeholder="请输入cod">
</c-input>
<!-- <c-select v-model="model.cod" placeholder="请输入cod" code="codes.currencycode"
style="width: 100%;">
</c-select> -->
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="rndunt" prop="rndunt">
<c-input-currency-min v-model="model.rndunt" placeholder="请输入rndunt">
</c-input-currency-min>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bas" prop="bas">
<c-input v-model="model.bas" placeholder="请输入bas">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="acc1" prop="acc1">
<c-input v-model="model.acc1" placeholder="请输入acc1">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="acc2" prop="acc2">
<c-input v-model="model.acc2" placeholder="请输入acc2">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="seq" prop="seq" style="width: 100%">
<c-input v-model="model.seq" placeholder="请输入seq" style="width: 100%">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="newcur" prop="newcur" style="width: 100%">
<c-select v-model="model.newcur" placeholder="请输入newcur" style="width: 100%">
<el-option v-for="item in codes.currencycode" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="begdat" prop="begdat" style="width: 100%">
<c-date-picker type="date" v-model="model.begdat" placeholder="请输入begdat"
style="width: 100%">
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="enddat" prop="enddat" style="width: 100%">
<c-date-picker type="date" v-model="model.enddat" placeholder="请输入enddat"
style="width: 100%">
</c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="dbtday" prop="dbtday">
<c-input v-model="model.dbtday" placeholder="请输入dbtday">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="cdtday" prop="cdtday">
<c-input v-model="model.cdtday" placeholder="请输入cdtday">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="maxcur" prop="maxcur" style="width: 100%">
<c-select v-model="model.maxcur" placeholder="请输入maxcur" style="width: 100%">
<el-option v-for="item in codes.currencycode" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="maxamt" prop="maxamt">
<c-input-currency v-model="model.maxamt" placeholder="请输入maxamt">
</c-input-currency>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- 右边 -->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="altcod" prop="altcod">
<c-input v-model="model.altcod" placeholder="请输入altcod">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dec" prop="dec">
<c-input v-model="model.dec" placeholder="请输入dec">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dif" prop="dif">
<c-input v-model="model.dif" placeholder="请输入dif">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="glbrat" prop="glbrat">
<c-input-currency v-model="model.glbrat" placeholder="请输入glbrat">
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bsrmar" prop="bsrmar">
<c-input-currency v-model="model.bsrmar" placeholder="请输入bsrmar">
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="sqrmar" prop="sqrmar">
<c-input-currency v-model="model.sqrmar" placeholder="请输入sqrmar">
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="odrintday" prop="odrintday">
<c-input v-model="model.odrintday" placeholder="请输入odrintday">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24" style="padding-left: 120px">
<el-table :data="stmData.data" border>
<el-table-column prop="uilcod" label="Language" sortable width="220">
</el-table-column>
<el-table-column prop="nam" label="Description" sortable width="300">
</el-table-column>
</el-table>
</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 :span="24">
<el-form-item label="etgextkey" prop="etgextkey">
<c-input v-model="model.etgextkey" placeholder="请输入etgextkey">
</c-input>
</el-form-item>
</c-col> -->
</c-col>
</div>
</template>
<script>
export default {
name: "",
inject: ["root"],
props: ["model",],
data() {
return {
stmData: {
data: [],
},
codes: {
currencycode: [
{ label: "人民币", value: "CNY" },
{ label: "韩圆", value: "KRW" },
{ label: "新西兰元", value: "NZD" },
{ label: "美元", value: "USD" },
],
}
};
},
mounted() {
// console.log(codes);
}
};
</script>
\ No newline at end of file
<template> <template>
<m-cur ref="cur" title="dbacur" type="add"></m-cur> <div class="eContainer">
<c-page title="货币查询">
<el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small">
<c-content>
<m-currency :model="model" ref="currency" />
</c-content>
</el-form>
<div style="text-align: center">
<c-button type="primary" style="margin-right: 10px" @click="commitAdd">提 交</c-button>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template> </template>
<script> <script>
import Dbicur from "~/views/Statics/Dbicur"; import Utils from "~/utils";
import commonFuncs from "~/mixin/commonFuncs";
import Cur, { Pattern } from "../Infcur/Cur.js";
import Currency from "./Currency";
import { curInfo, add, edit, curDelete } from "~/service/test/cur.js";
export default { export default {
name: "StaticsDbacur", name: "StaticsDbacur",
components: { components: {
"m-cur": Dbicur "m-currency": Currency
}, },
provide() {
return {
root: this,
};
},
mixins: [commonFuncs],
data() { data() {
return {}; return {
tabVal: "",
model: new Cur().data,
rules: Pattern,
};
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
console.log(this.model);
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfcur", params: { update } });
},
}, },
mounted() { mounted() {
// this.$refs.cur.rules['ptaList'] = [ // this.$refs.cur.rules['ptaList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' } // { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// ] // ]
console.log(this.$refs.modelForm);
} }
}; };
</script> </script>
<style> <style>
</style> </style>
\ No newline at end of file
<template> <template>
<m-cur title="dbecur" type="edit"></m-cur> <div class="eContainer">
<c-page title="货币查询">
<el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small">
<c-content>
<m-currency :model="model" ref="currency" />
</c-content>
</el-form>
<div style="text-align: center">
<c-button type="primary" style="margin-right: 10px" @click="commitEdit">提 交</c-button>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template> </template>
<script> <script>
import Dbicur from "~/views/Statics/Dbicur"; import Utils from "~/utils";
// import commonFuncs from "~/mixin/commonFuncs";
import Cur, { Pattern } from "../Infcur/Cur.js";
import Currency from "../Dbacur/Currency";
import { curInfo, add, edit, curDelete } from "~/service/test/cur.js";
export default { export default {
name: "StaticsDbecur", name: "StaticsDbacur",
components: { components: {
"m-cur": Dbicur "m-currency": Currency
}, },
provide() {
return {
root: this,
};
},
// mixins: [commonFuncs],
data() { data() {
return {}; return {
tabVal: "",
model: new Cur().data,
rules: Pattern,
};
},
methods: {
commitEdit() {
this.model.inr = this.$route.params.inr
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)
}
});
}, },
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfcur", params: { update } });
},
},
mounted() {
// this.$refs.cur.rules['ptaList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// ]
console.log(this.$refs.modelForm);
}
}; };
</script> </script>
<style> <style>
</style> </style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-table :list="model.actList" :columnsConfig="columns"></c-table>
</div>
</template>
<script>
export default {
props: ['model'],
data() {
return {
columns: [
{ label: "typ", prop: "typ", width: "auto" },
{ label: "cur", prop: "cur", width: "auto" },
{ label: "extkey", prop: "extkey", width: "auto" },
{ label: "trmtyp", prop: "trmtyp", width: "auto" },
{ label: "nam", prop: "nam", width: "auto" },
],
};
}
};
</script>
<style>
</style>
\ No newline at end of file
export default class Pty {
constructor() {
this.data = {
inr: "",
extkey: "",
nam: "",
bic: "",
bicaut: "",
bid: "",
blz: "",
clc: "",
dpt: "",
eml: "",
fax1: "",
fax2: "",
nam1: "",
nam2: "",
nam3: "",
str1: "",
str2: "",
loczip: "",
loctxt: "",
loc2: "",
loccty: "",
cortyp: "",
pob: "",
pobzip: "",
pobtxt: "",
tel1: "",
tel2: "",
tid: "",
tlx: "",
tlxaut: "",
uil: "",
ver: "",
manmod: "",
rtgflg: "",
tarflg: "",
dtacid: "",
dtecid: "",
etgextkey: "",
adr1: "",
adr2: "",
adr3: "",
adr4: "",
discod: "",
namelc: "",
adrelc: "",
dtgcid: "",
// pat
inrpat: "",
ptyinrpat: "",
nampat: "",
pripat: "",
enopat: "",
objtyppat: "",
objinrpat: "",
objkeypat: "",
usgpat: "",
verpat: "",
bicpat: "",
adrstapat: "",
ptytyppat: "",
ptyextkeypat: "",
tidpat: "",
etgextkeypat: "",
branchinrpat: "",
bchkeyinrpat: "",
nam1pat: "",
issbchinfpat: "",
opnflgpat: "",
}
}
}
export const Pattern = {
"usgpat": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"adrstapat": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"extkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 16, "message": "最大长度16个字符", "trigger": "blur" }
],
"nam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"bic": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 11, "message": "最大长度11个字符", "trigger": "blur" }
],
"bicaut": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"bid": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"blz": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"clc": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"dpt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"eml": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 80, "message": "最大长度80个字符", "trigger": "blur" }
],
"fax1": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"fax2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"nam1": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"nam2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"nam3": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"str1": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"str2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"loczip": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 10, "message": "最大长度10个字符", "trigger": "blur" }
],
"loctxt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 25, "message": "最大长度25个字符", "trigger": "blur" }
],
"loc2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"loccty": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"cortyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"pob": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"pobzip": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 10, "message": "最大长度10个字符", "trigger": "blur" }
],
"pobtxt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 25, "message": "最大长度25个字符", "trigger": "blur" }
],
"tel1": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"tel2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"tid": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 23, "message": "最大长度23个字符", "trigger": "blur" }
],
"tlx": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"tlxaut": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"uil": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"manmod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"rtgflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"tarflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"dtacid": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 23, "message": "最大长度23个字符", "trigger": "blur" }
],
"dtecid": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 23, "message": "最大长度23个字符", "trigger": "blur" }
],
"etgextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"adr1": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"adr2": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"adr3": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"adr4": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"discod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"namelc": [
{ "type": "string", "trigger": "blur" },
{ "max": 216, "message": "最大长度216个字符", "trigger": "blur" }
],
"adrelc": [
{ "type": "string", "trigger": "blur" },
{ "max": 216, "message": "最大长度216个字符", "trigger": "blur" }
],
"dtgcid": [
{ "type": "string", "trigger": "blur" },
{ "max": 23, "message": "最大长度23个字符", "trigger": "blur" }
]
}
<template>
<div class="eibs">
<el-form
ref="modelForm"
label-width="120px"
size="small"
label-position="right"
:model="adr"
:rules="rules"
:validate-on-rule-change="false"
:disabled="operate === 'details'"
>
<c-col :span="8" class="col-left">
<c-col :span="24">
<el-form-item label="usgpat" prop="usgpat">
<c-input v-model="adr.usgpat" placeholder="请输入usgpat"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="extkey" prop="extkey">
<c-input v-model="adr.extkey" placeholder="请输入extkey"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="nam" prop="nam">
<c-input v-model="adr.nam" placeholder="请输入nam"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bic" prop="bic">
<c-input v-model="adr.bic" placeholder="请输入bic"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bicaut" prop="bicaut">
<c-input v-model="adr.bicaut" placeholder="请输入bicaut"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bid" prop="bid">
<c-input v-model="adr.bid" placeholder="请输入bid"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dtgcid" prop="dtgcid">
<c-input v-model="adr.dtgcid" placeholder="请输入dtgcid"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="blz" prop="blz">
<c-input v-model="adr.blz" placeholder="请输入blz"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="clc" prop="clc">
<c-input v-model="adr.clc" placeholder="请输入clc"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dpt" prop="dpt">
<c-input v-model="adr.dpt" placeholder="请输入dpt"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="eml" prop="eml">
<c-input v-model="adr.eml" placeholder="请输入eml"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="fax1" prop="fax1">
<c-input v-model="adr.fax1" placeholder="请输入fax1"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="fax2" prop="fax2">
<c-input v-model="adr.fax2" placeholder="请输入fax2"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="nam1" prop="nam1">
<c-input v-model="adr.nam1" placeholder="请输入nam1"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="nam2" prop="nam2">
<c-input v-model="adr.nam2" placeholder="请输入nam2"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="nam3" prop="nam3">
<c-input v-model="adr.nam3" placeholder="请输入nam3"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="8" class="col-left col-right">
<c-col :span="24">
<el-form-item label="adrstapat" prop="adrstapat">
<c-input v-model="adr.adrstapat" placeholder="请输入adrstapat"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="str1" prop="str1">
<c-input v-model="adr.str1" placeholder="请输入str1"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="str2" prop="str2">
<c-input v-model="adr.str2" placeholder="请输入str2"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="loczip" prop="loczip">
<c-input v-model="adr.loczip" placeholder="请输入loczip"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="loctxt" prop="loctxt">
<c-input v-model="adr.loctxt" placeholder="请输入loctxt"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="loc2" prop="loc2">
<c-input v-model="adr.loc2" placeholder="请输入loc2"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="loccty" prop="loccty">
<c-input v-model="adr.loccty" placeholder="请输入loccty"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="cortyp" prop="cortyp">
<c-input v-model="adr.cortyp" placeholder="请输入cortyp"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="pob" prop="pob">
<c-input v-model="adr.pob" placeholder="请输入pob"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="pobzip" prop="pobzip">
<c-input v-model="adr.pobzip" placeholder="请输入pobzip"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="pobtxt" prop="pobtxt">
<c-input v-model="adr.pobtxt" placeholder="请输入pobtxt"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="tel1" prop="tel1">
<c-input v-model="adr.tel1" placeholder="请输入tel1"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="tel2" prop="tel2">
<c-input v-model="adr.tel2" placeholder="请输入tel2"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="tid" prop="tid">
<c-input v-model="adr.tid" placeholder="请输入tid"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="tlx" prop="tlx">
<c-input v-model="adr.tlx" placeholder="请输入tlx"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="tlxaut" prop="tlxaut">
<c-input v-model="adr.tlxaut" placeholder="请输入tlxaut"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="8" class="col-right">
<c-col :span="24">
<el-form-item label="uil" prop="uil">
<c-input v-model="adr.uil" placeholder="请输入uil"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="manmod" prop="manmod">
<c-input v-model="adr.manmod" placeholder="请输入manmod"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="rtgflg" prop="rtgflg">
<c-input v-model="adr.rtgflg" placeholder="请输入rtgflg"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="tarflg" prop="tarflg">
<c-input v-model="adr.tarflg" placeholder="请输入tarflg"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dtacid" prop="dtacid">
<c-input v-model="adr.dtacid" placeholder="请输入dtacid"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dtecid" prop="dtecid">
<c-input v-model="adr.dtecid" placeholder="请输入dtecid"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="etgextkey" prop="etgextkey">
<c-input v-model="adr.etgextkey" placeholder="请输入etgextkey">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="adr1" prop="adr1">
<c-input v-model="adr.adr1" placeholder="请输入adr1"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="adr2" prop="adr2">
<c-input v-model="adr.adr2" placeholder="请输入adr2"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="adr3" prop="adr3">
<c-input v-model="adr.adr3" placeholder="请输入adr3"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="adr4" prop="adr4">
<c-input v-model="adr.adr4" placeholder="请输入adr4"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="discod" prop="discod">
<c-input v-model="adr.discod" placeholder="请输入discod"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="namelc" prop="namelc">
<c-input v-model="adr.namelc" placeholder="请输入namelc"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="adrelc" prop="adrelc">
<c-input v-model="adr.adrelc" placeholder="请输入adrelc"> </c-input>
</el-form-item>
</c-col>
</c-col>
</el-form>
</div>
</template>
<script>
import { Pattern } from "./Adr.js";
export default {
name: "",
props: ['adr', 'operate'],
data() {
return {
rules: Pattern,
};
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<div style="text-align: right">
<c-button size="small" type="primary" @click="adrAdd()"> 新增 </c-button>
</div>
<el-form-item label="" label-width="0" prop="ptaList">
<c-table :columnsConfig="columns" :list="model.ptaList">
<c-table-column fixed="right" prop="op" label="操作" width="200px">
<template slot-scope="{ scope }">
<button
class="el-button el-button--default el-button--small"
style="margin-left: 0"
size="small"
:disabled="false"
@click.prevent="adrInfo(scope.$index, scope.row)"
>
<span>详情</span>
</button>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="adrEdit(scope.$index, scope.row)"
>
修改
</c-button>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="adrDelete(scope.$index, scope.row)"
>
删除
</c-button>
</template>
</c-table-column>
</c-table>
</el-form-item>
<el-dialog
:title="
'地址信息:' +
(operate === 'details' ? '详情' : operate === 'edit' ? '修改' : '新增')
"
:visible.sync="adrDialog"
top="10vh"
width="80%"
:destroy-on-close="true"
:before-close="handleClose"
>
<m-adr-info ref="adr" :adr="adr" :operate="operate"></m-adr-info>
<span slot="footer" class="dialog-footer">
<button
class="el-button el-button--default el-button--small"
style="margin-left: 0"
size="small"
:disabled="false"
@click.prevent="cancel"
>
<span>取 消</span>
</button>
<c-button type="primary" @click="cancel" v-if="operate === 'details'"
>确 定</c-button
>
<c-button type="primary" @click="editAdr" v-if="operate === 'edit'"
>保 存</c-button
>
<c-button type="primary" @click="saveAdr" v-if="operate === 'add'"
>保 存</c-button
>
</span>
</el-dialog>
</div>
</template>
<script>
import Adr from "./Adr.js";
import AdrInfo from "./AdrInfo.vue";
import {
addAdrData,
updateAdrData,
deleteAdrData,
} from "~/service/test/pty.js";
export default {
name: "AdrList",
components: {
"m-adr-info": AdrInfo,
},
inject: ["root"],
props: ["model"],
data() {
return {
adrDialog: false,
adr: null,
operate: "",
operateIdx: 0,
columns: [
{ label: "usgpat", prop: "usgpat", width: "auto" },
{ label: "adrstapat", prop: "adrstapat", width: "auto" },
{ label: "extkey", prop: "extkey", width: "auto" },
{ label: "bic", prop: "bic", width: "auto" },
{ label: "nam1", prop: "nam1", width: "auto" },
{ label: "nam2", prop: "nam2", width: "auto" },
{ label: "nam3", prop: "nam3", width: "auto" },
{ label: "str1", prop: "str1", width: "auto" },
{ label: "str2", prop: "str2", width: "auto" },
{ label: "adr1", prop: "adr1", width: "auto" },
{ label: "adr2", prop: "adr2", width: "auto" },
{ label: "adr3", prop: "adr3", width: "auto" },
],
};
},
methods: {
/**
* 详情
*/
adrInfo(index, row) {
this.adr = { ...row };
this.operate = "details";
this.operateIdx = index;
this.adrDialog = true;
},
/**
* 新增
*/
adrAdd() {
this.adr = new Adr().data;
this.operate = "add";
this.adrDialog = true;
},
/**
* 修改
*/
adrEdit(index, row) {
this.adr = { ...row };
this.operate = "edit";
this.operateIdx = index;
this.adrDialog = true;
},
/**
* 删除
*/
adrDelete(index, row) {
this.$confirm("是否真的删除?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then((res) => {
deleteAdrData(row).then((res) => {
if (res) {
this.model.ptaList.splice(index, 1);
this.$message.success("删除成功!");
} else {
this.$message.error("删除失败!");
}
});
});
},
cancel() {
this.handleClose();
},
editAdr() {
this.$refs.adr.$refs.modelForm.validate((validated) => {
if (validated) {
updateAdrData(this.model.inr, this.adr)
.then((res) => {
if (res.inr) {
this.$message.success("修改地址信息成功!");
// this.model.ptaList.splice(this.operateIdx, 1, this.adr);
this.model.ptaList = res.ptaList;
this.handleClose();
}
})
.catch((error) => {
this.$message.error("修改地址信息失败!");
});
}
});
},
/**
* Adr新增有2种情况
* 1. pty的新增界面下,此时pty的inr为空,adr需要在pty插入之后,才能执行新增,
* 所以我们在这里不能直接调用新增接口,将adr添加到ptaList中,随着这个pty一起传入接口。
* 2. pty的修改界面下,可直接新增 ;
*/
saveAdr() {
for (const key in this.adr) {
if (Object.hasOwnProperty.call(this.adr, key)) {
const v = this.adr[key];
if (typeof v === 'string' && v === '') {
this.adr[key] = " "
}
}
}
if (this.root.type === "add") {
this.model.ptaList.push(this.adr);
this.handleClose();
} else {
this.$refs.adr.$refs.modelForm.validate((validated) => {
if (validated) {
addAdrData(this.model.inr, this.adr)
.then((res) => {
if (res && res.inr) {
this.$message.success("保存地址信息成功!");
this.model.ptaList = res.ptaList;
this.handleClose();
}
})
.catch((error) => {
this.$message.error("保存地址信息失败!");
});
}
});
}
},
handleClose(done) {
this.adrDialog = false;
if (done && typeof done === "function") {
done();
}
},
},
};
</script>
<style></style>
<template>
<div class="eibs-tab">
<!-- 左边 -->
<c-col :span="12" class="col-left">
<!-- <c-col :span="24">
<el-form-item label="inr" prop="inr">
<c-input v-model="model.inr" placeholder="请输入inr">
</c-input>
</el-form-item>
</c-col> -->
<c-col :span="24">
<el-form-item label="cod" prop="cod">
<c-select v-model="model.cod" style="width: 100%" placeholder="请输入cod" disabled>
<el-option v-for="item in codes.currencycode" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
<!-- <c-select v-model="model.cod" placeholder="请输入cod" code="codes.currencycode"
style="width: 100%;">
</c-select> -->
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="rndunt" prop="rndunt">
<c-input-currency-min v-model="model.rndunt" placeholder="请输入rndunt" disabled>
</c-input-currency-min>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bas" prop="bas">
<c-input v-model="model.bas" placeholder="请输入bas" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="acc1" prop="acc1">
<c-input v-model="model.acc1" placeholder="请输入acc1" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="acc2" prop="acc2">
<c-input v-model="model.acc2" placeholder="请输入acc2" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="seq" prop="seq" style="width: 100%">
<c-input v-model="model.seq" placeholder="请输入seq" style="width: 100%" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="newcur" prop="newcur" style="width: 100%">
<c-select v-model="model.newcur" placeholder="请输入newcur" style="width: 100%" disabled>
<el-option v-for="item in codes.currencycode" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="begdat" prop="begdat" style="width: 100%">
<c-date-picker type="date" v-model="model.begdat" placeholder="请输入begdat"
style="width: 100%" disabled>
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="enddat" prop="enddat" style="width: 100%">
<c-date-picker type="date" v-model="model.enddat" placeholder="请输入enddat"
style="width: 100%" disabled>
</c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="dbtday" prop="dbtday">
<c-input v-model="model.dbtday" placeholder="请输入dbtday" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="cdtday" prop="cdtday">
<c-input v-model="model.cdtday" placeholder="请输入cdtday" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="maxcur" prop="maxcur" style="width: 100%">
<c-select v-model="model.maxcur" placeholder="请输入maxcur" style="width: 100%" disabled>
<el-option v-for="item in codes.currencycode" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="maxamt" prop="maxamt">
<c-input-currency v-model="model.maxamt" placeholder="请输入maxamt" disabled>
</c-input-currency>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- 右边 -->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="altcod" prop="altcod">
<c-input v-model="model.altcod" placeholder="请输入altcod" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dec" prop="dec">
<c-input v-model="model.dec" placeholder="请输入dec" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dif" prop="dif">
<c-input v-model="model.dif" placeholder="请输入dif" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="glbrat" prop="glbrat">
<c-input-currency v-model="model.glbrat" placeholder="请输入glbrat" disabled>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bsrmar" prop="bsrmar">
<c-input-currency v-model="model.bsrmar" placeholder="请输入bsrmar" disabled>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="sqrmar" prop="sqrmar" disabled>
<c-input-currency v-model="model.sqrmar" placeholder="请输入sqrmar" disabled>
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="odrintday" prop="odrintday">
<c-input v-model="model.odrintday" placeholder="请输入odrintday" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24" style="padding-left: 120px">
<el-table :data="stmData.data" border>
<el-table-column prop="uilcod" label="Language" sortable width="220">
</el-table-column>
<el-table-column prop="nam" label="Description" sortable width="300">
</el-table-column>
</el-table>
</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 :span="24">
<el-form-item label="etgextkey" prop="etgextkey">
<c-input v-model="model.etgextkey" placeholder="请输入etgextkey">
</c-input>
</el-form-item>
</c-col> -->
</c-col>
</div>
</template>
<script>
export default {
name: "",
inject: ["root"],
props: ["model",],
data() {
return {
stmData: {
data: [],
},
codes: {
currencycode: [
{ label: "人民币", value: "CNY" },
{ label: "韩圆", value: "KRW" },
{ label: "新西兰元", value: "NZD" },
{ label: "美元", value: "USD" },
],
}
};
},
mounted() {
// console.log(codes);
}
};
</script>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-table :list="model.ptcList" :columnsConfig="columns"></c-table>
</div>
</template>
<script>
export default {
props: ["model"],
data() {
return {
columns: [
{ label: "gen", prop: "gen", width: "auto" },
{ label: "nam", prop: "nam", width: "auto" },
{ label: "dep", prop: "dep", width: "auto" },
{ label: "teloff", prop: "teloff", width: "auto" },
{ label: "eml", prop: "eml", width: "auto" },
{ label: "telfax", prop: "telfax", width: "auto" },
],
};
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Pty {
constructor() {
this.data = {
inr: "",
extkey: "",
nam: "",
ptytyp: "",
accusr: "",
hbkaccflg: "",
hbkconflg: "",
hbkinr: "",
heqaccflg: "",
heqconflg: "",
heqinr: "",
prfctr: "",
resusr: "",
rskcls: "",
rskcty: "",
rsktxt: "",
uil: "",
ver: "",
akkbra: "",
akkcom: "",
akkreg: "",
lidcndflg: "",
lidmaxdur: "",
trdcndflg: "",
trdtentot: "",
trdtenini: "",
trdtenext: "",
trdextnmb: "",
badcndflg: "",
badtenext: "",
adrsta: "",
seltyp: "",
buytyp: "",
sla: "",
etgextkey: "",
nam1: "",
juscod: "",
bilvvv: "",
cunqii: "",
idcode: "",
idtype: "",
bchkeyinr: "",
clscty: "",
procod: "",
trnman: "",
speeco: "",
selrat: "",
buyrat: "",
bngcod: "",
ecifno: "",
dshflg: "",
crmtyp: "",
ecifnam1: "",
ecifjuscod: "",
qygmgb: "",
khbsdt: "",
ptaList: [],
actList: [],
ptcList: [],
fecList: [],
ptyratList: [],
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"extkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
"nam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"ptytyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 15, "message": "最大长度15个字符", "trigger": "blur" }
],
"accusr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"hbkaccflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"hbkconflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"hbkinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"heqaccflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"heqconflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"heqinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"prfctr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"resusr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"rskcls": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"rskcty": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"rsktxt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 35, "message": "最大长度35个字符", "trigger": "blur" }
],
"uil": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"akkbra": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"akkcom": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"akkreg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"lidcndflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"lidmaxdur": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,4}$/, "message": "整数不能超过4位", "trigger": "blur" }
],
"trdcndflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"trdtentot": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}$/, "message": "整数不能超过5位", "trigger": "blur" }
],
"trdtenini": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}$/, "message": "整数不能超过5位", "trigger": "blur" }
],
"trdtenext": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}$/, "message": "整数不能超过5位", "trigger": "blur" }
],
"trdextnmb": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}$/, "message": "整数不能超过5位", "trigger": "blur" }
],
"badcndflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"badtenext": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,4}$/, "message": "整数不能超过4位", "trigger": "blur" }
],
"adrsta": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"seltyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"buytyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"sla": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"etgextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"nam1": [
{ "type": "string", "trigger": "blur" },
{ "max": 102, "message": "最大长度102个字符", "trigger": "blur" }
],
"juscod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 10, "message": "最大长度10个字符", "trigger": "blur" }
],
"bilvvv": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,8}(\.\d{1,5})?$/, "message": "整数不能超过8位,小数不能超过5位", "trigger": "blur" }
],
"cunqii": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"idcode": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 32, "message": "最大长度32个字符", "trigger": "blur" }
],
"idtype": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"bchkeyinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"clscty": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"procod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"trnman": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"speeco": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"selrat": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}(\.\d{1,2})?$/, "message": "整数不能超过5位,小数不能超过2位", "trigger": "blur" }
],
"buyrat": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,5}(\.\d{1,2})?$/, "message": "整数不能超过5位,小数不能超过2位", "trigger": "blur" }
],
"bngcod": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 10, "message": "最大长度10个字符", "trigger": "blur" }
],
"ecifno": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
"dshflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"crmtyp": [
{ "type": "string", "trigger": "blur" },
{ "max": 20, "message": "最大长度20个字符", "trigger": "blur" }
],
"ecifnam1": [
{ "type": "string", "trigger": "blur" },
{ "max": 100, "message": "最大长度100个字符", "trigger": "blur" }
],
"ecifjuscod": [
{ "type": "string", "trigger": "blur" },
{ "max": 50, "message": "最大长度50个字符", "trigger": "blur" }
],
"qygmgb": [
{ "type": "string", "trigger": "blur" },
{ "max": 10, "message": "最大长度10个字符", "trigger": "blur" }
],
"khbsdt": [
{ "type": "string", "trigger": "blur" }
]
}
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="extkey" prop="extkey">
<c-input v-model="model.extkey" placeholder="请输入extkey"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="nam" prop="nam">
<c-input v-model="model.nam" placeholder="请输入nam"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ptytyp" prop="ptytyp">
<c-input v-model="model.ptytyp" placeholder="请输入ptytyp"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="accusr" prop="accusr">
<c-input v-model="model.accusr" placeholder="请输入accusr"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="hbkaccflg" prop="hbkaccflg">
<c-input v-model="model.hbkaccflg" placeholder="请输入hbkaccflg">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="hbkconflg" prop="hbkconflg">
<c-input v-model="model.hbkconflg" placeholder="请输入hbkconflg">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="hbkinr" prop="hbkinr">
<c-input v-model="model.hbkinr" placeholder="请输入hbkinr"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="heqaccflg" prop="heqaccflg">
<c-input v-model="model.heqaccflg" placeholder="请输入heqaccflg">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="heqconflg" prop="heqconflg">
<c-input v-model="model.heqconflg" placeholder="请输入heqconflg">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="heqinr" prop="heqinr">
<c-input v-model="model.heqinr" placeholder="请输入heqinr"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="prfctr" prop="prfctr">
<c-input v-model="model.prfctr" placeholder="请输入prfctr"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="resusr" prop="resusr">
<c-input v-model="model.resusr" placeholder="请输入resusr"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="rskcls" prop="rskcls">
<c-input v-model="model.rskcls" placeholder="请输入rskcls"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="rskcty" prop="rskcty">
<c-input v-model="model.rskcty" placeholder="请输入rskcty"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="rsktxt" prop="rsktxt">
<c-input v-model="model.rsktxt" placeholder="请输入rsktxt"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="akkbra" prop="akkbra">
<c-input v-model="model.akkbra" placeholder="请输入akkbra"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="akkcom" prop="akkcom">
<c-input v-model="model.akkcom" placeholder="请输入akkcom"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="akkreg" prop="akkreg">
<c-input v-model="model.akkreg" placeholder="请输入akkreg"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lidcndflg" prop="lidcndflg">
<c-input v-model="model.lidcndflg" placeholder="请输入lidcndflg">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lidmaxdur" prop="lidmaxdur">
<c-input v-model="model.lidmaxdur" placeholder="请输入lidmaxdur">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="trdcndflg" prop="trdcndflg">
<c-input v-model="model.trdcndflg" placeholder="请输入trdcndflg">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="trdtentot" prop="trdtentot">
<c-input v-model="model.trdtentot" placeholder="请输入trdtentot">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="trdtenini" prop="trdtenini">
<c-input v-model="model.trdtenini" placeholder="请输入trdtenini">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="trdtenext" prop="trdtenext">
<c-input v-model="model.trdtenext" placeholder="请输入trdtenext">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="trdextnmb" prop="trdextnmb">
<c-input v-model="model.trdextnmb" placeholder="请输入trdextnmb">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="badcndflg" prop="badcndflg">
<c-input v-model="model.badcndflg" placeholder="请输入badcndflg">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="badtenext" prop="badtenext">
<c-input v-model="model.badtenext" placeholder="请输入badtenext">
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="adrsta" prop="adrsta">
<c-input v-model="model.adrsta" placeholder="请输入adrsta"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="seltyp" prop="seltyp">
<c-input v-model="model.seltyp" placeholder="请输入seltyp"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="buytyp" prop="buytyp">
<c-input v-model="model.buytyp" placeholder="请输入buytyp"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="sla" prop="sla">
<c-input v-model="model.sla" placeholder="请输入sla"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="etgextkey" prop="etgextkey">
<c-input v-model="model.etgextkey" placeholder="请输入etgextkey">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="nam1" prop="nam1">
<c-input v-model="model.nam1" placeholder="请输入nam1"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="juscod" prop="juscod">
<c-input v-model="model.juscod" placeholder="请输入juscod"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bilvvv" prop="bilvvv">
<c-input v-model="model.bilvvv" placeholder="请输入bilvvv"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="cunqii" prop="cunqii">
<c-input v-model="model.cunqii" placeholder="请输入cunqii"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="idcode" prop="idcode">
<c-input v-model="model.idcode" placeholder="请输入idcode"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="idtype" prop="idtype">
<c-input v-model="model.idtype" placeholder="请输入idtype"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bchkeyinr" prop="bchkeyinr">
<c-input v-model="model.bchkeyinr" placeholder="请输入bchkeyinr">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="clscty" prop="clscty">
<c-input v-model="model.clscty" placeholder="请输入clscty"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="procod" prop="procod">
<c-input v-model="model.procod" placeholder="请输入procod"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="trnman" prop="trnman">
<c-input v-model="model.trnman" placeholder="请输入trnman"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="speeco" prop="speeco">
<c-input v-model="model.speeco" placeholder="请输入speeco"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="selrat" prop="selrat">
<c-input v-model="model.selrat" placeholder="请输入selrat"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="buyrat" prop="buyrat">
<c-input v-model="model.buyrat" placeholder="请输入buyrat"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="bngcod" prop="bngcod">
<c-input v-model="model.bngcod" placeholder="请输入bngcod"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ecifno" prop="ecifno">
<c-input v-model="model.ecifno" placeholder="请输入ecifno"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="dshflg" prop="dshflg">
<c-input v-model="model.dshflg" placeholder="请输入dshflg"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="crmtyp" prop="crmtyp">
<c-input v-model="model.crmtyp" placeholder="请输入crmtyp"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ecifnam1" prop="ecifnam1">
<c-input v-model="model.ecifnam1" placeholder="请输入ecifnam1">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ecifjuscod" prop="ecifjuscod">
<c-input v-model="model.ecifjuscod" placeholder="请输入ecifjuscod">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="qygmgb" prop="qygmgb">
<c-input v-model="model.qygmgb" placeholder="请输入qygmgb"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="khbsdt" prop="khbsdt">
<c-date-picker
v-model="model.khbsdt"
placeholder="请输入khbsdt"
style="width: 100%"
>
</c-date-picker>
</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="eibs-tab">
<c-col :span="24">
<div>汇率信息</div>
</c-col>
<c-col :span="24">
<c-table :list="model.ptyratList" :columnsConfig="ptyratColumns"></c-table>
</c-col>
<c-col :span="24">
<div>费率信息</div>
</c-col>
<c-col :span="24">
<c-table :list="model.fecList" :columnsConfig="fecColumns"></c-table>
</c-col>
</div>
</template>
<script>
export default {
props: ["model"],
data() {
return {
ptyratColumns: [
{ label: "cur", prop: "cur", width: "auto" },
{ label: "buytyp", prop: "buytyp", width: "auto" },
{ label: "buyrat", prop: "buyrat", width: "auto" },
{ label: "seltyp", prop: "seltyp", width: "auto" },
{ label: "selrat", prop: "selrat", width: "auto" },
],
fecColumns: [
{ label: "codFee", prop: "codFee", width: "auto" },
{ label: "begdat", prop: "begdat", width: "auto" },
{ label: "enddat", prop: "enddat", width: "auto" },
{ label: "calcbs", prop: "calcbs", width: "auto" },
{ label: "mincur", prop: "mincur", width: "auto" },
{ label: "minamt", prop: "minamt", width: "auto" },
{ label: "maxamt", prop: "maxamt", width: "auto" },
{ label: "untamt", prop: "untamt", width: "auto" },
{ label: "ratcal", prop: "ratcal", width: "auto" },
],
};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template> <template>
<div class="eContainer"> <div class="eContainer">
<c-page :title="title"> <c-page :title="title">
<el-form ref="modelForm" label-width="120px" size="small" label-position="right" :model="model" :rules="rules" <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="pty">
<c-content> <c-content>
<m-pty-info :model="model" /> <m-cur-info :model="model" />
</c-content> </c-content>
</el-tab-pane>
<el-tab-pane label="地址信息" name="pta,adr">
<c-content>
<m-adr-list :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="账号信息" name="act">
<c-content>
<m-act-info :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="联系人信息" name="ptc">
<c-content>
<m-ptc-info :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="汇率/费率信息" name="ptyrat,fec,fee">
<c-content>
<m-rat-info :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form> </el-form>
<div style="text-align: center"> <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="commitAdd" v-if="type === 'add'">提 交</c-button>
...@@ -44,24 +19,16 @@ ...@@ -44,24 +19,16 @@
<script> <script>
import Utils from "~/utils"; import Utils from "~/utils";
import Cur, { Pattern } from "./Cur.js"; import Cur, { Pattern } from "../Infcur/Cur.js";
import PtyInfo from "./PtyInfo.vue"; import Currency from "./Currency.vue";
import AdrList from "./AdrList.vue";
import ActInfo from "./ActInfo.vue";
import PtcInfo from "./PtcInfo.vue";
import RatInfo from "./RatInfo.vue";
import { queryDetailById, add, edit, deleteById } from "~/service/test/cur.js"; import { curInfo, add, edit, deleteById } from "~/service/test/cur.js";
export default { export default {
name: "StaticsDbicur", name: "StaticsDbicur",
components: { components: {
"m-pty-info": PtyInfo, "m-cur-info": Currency,
"m-adr-list": AdrList,
"m-act-info": ActInfo,
"m-ptc-info": PtcInfo,
"m-rat-info": RatInfo,
}, },
provide() { provide() {
return { return {
...@@ -93,14 +60,16 @@ export default { ...@@ -93,14 +60,16 @@ export default {
created() { created() {
if (this.type !== "add") { if (this.type !== "add") {
const inr = this.$route.params.inr; const inr = this.$route.params.inr;
queryDetailById(inr).then((res) => { curInfo(inr).then((res) => {
if (res.inr) { if (res.inr) {
console.log(res);
this.model = res; this.model = res;
} else { } else {
this.$message.error("客户不存在") this.$message.error("客户不存在")
} }
}); });
} }
}, },
methods: { methods: {
commitAdd() { commitAdd() {
...@@ -163,7 +132,7 @@ export default { ...@@ -163,7 +132,7 @@ export default {
*/ */
goBack(update) { goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route); this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfpty", params: { update } }); this.$router.push({ name: "StaticsInfcur", params: { update } });
}, },
}, },
......
export default class Cur { export default class Cur {
constructor() { constructor() {
this.data = { this.data = {
inr: "", // cod: "",
cod: "", // seanam: "",
newcur: "", // inr: "",
altcod: "", // cod: "",
dec: "", // newcur: "",
seq: "", // altcod: "",
acc1: "", // dec: "",
acc2: "", // seq: "",
bsrmar: "", // acc1: "",
sqrmar: "", // acc2: "",
glbrat: "", // bsrmar: "",
dif: "", // sqrmar: "",
bas: "", // glbrat: "",
rndunt: "", // dif: "",
begdat: "", // bas: "",
enddat: "", // rndunt: "",
odrintday: "", // begdat: "",
dbtday: "", // enddat: "",
cdtday: "", // odrintday: "",
maxcur: "", // dbtday: "",
maxamt: "", // cdtday: "",
ver: "", // maxcur: "",
etgextkey: "", // maxamt: "",
// ver: "",
// etgextkey: "",
"cod": "ppp",
"newcur": "",
"altcod": "",
"dec": 0,
"seq": 0,
"acc1": "",
"acc2": "",
"bsrmar": 0,
"sqrmar": 0,
"glbrat": 0,
"dif": 50,
"bas": 1,
"rndunt": 0,
"begdat": "2001-04-10T16:00:00.000+00:00",
"enddat": null,
"odrintday": 0,
"dbtday": 1,
"cdtday": 1,
"maxcur": "USD",
"maxamt": 9999999999.99,
"ver": "0001",
"etgextkey": "CEBGRP",
"pageSize": 0,
"pageNum": 0
} }
} }
} }
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<c-col :span="12" class="col-left"> <c-col :span="12" class="col-left">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="货币代码" prop="cod"> <el-form-item label="货币代码" prop="cod">
<c-select v-model="model.cod" placeholder="请输入货币代码" style="width: 100%"> <c-input v-model="model.cod" placeholder="请输入货币代码" style="width: 100%">
</c-select> </c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
...@@ -25,6 +25,10 @@ ...@@ -25,6 +25,10 @@
</el-button> </el-button>
</c-col> </c-col>
<c-col :span="24" style="margin-top: 10px">
<c-button class="medium_bcs" size="medium" style="margin-left: 0px" type="primary" @click="toBbacur">添加货币</c-button>
</c-col>
<c-col :span="24"> <c-col :span="24">
<c-paging-table :data="curData" :columns="curColumns" :pageNumber="model.pageNum" :pageSize="model.pageSize" <c-paging-table :data="curData" :columns="curColumns" :pageNumber="model.pageNum" :pageSize="model.pageSize"
:total="model.total" v-on:queryFunc="queryFunc" :border="true"> :total="model.total" v-on:queryFunc="queryFunc" :border="true">
...@@ -57,7 +61,7 @@ ...@@ -57,7 +61,7 @@
<script> <script>
import codes from "~/config/CodeTable"; import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/cur.js"; import { queryByPage, deleteById } from "~/service/test/cur.js";
export default { export default {
name: "", name: "",
...@@ -67,12 +71,15 @@ export default { ...@@ -67,12 +71,15 @@ export default {
return { return {
curData: [], curData: [],
curColumns: [ curColumns: [
{ label: '币种', prop: 'extkey', width: '200' }, { label: 'Currency', prop: 'cod', width: '200' },
{ label: '描述', prop: '', width: '636' }, { label: 'Description', prop: 'seanam', width: '636' },
], ],
}; };
}, },
methods: { methods: {
toBbacur(){
this.$router.history.push("/statics/dbacur");
},
handleReset() { handleReset() {
this.root.$refs.modelForm.resetFields(); this.root.$refs.modelForm.resetFields();
}, },
...@@ -93,6 +100,7 @@ export default { ...@@ -93,6 +100,7 @@ export default {
this.model.pageNum = res.pageNumber this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize this.model.pageSize = res.pageSize
this.model.total = res.total this.model.total = res.total
console.log(this.model);
}) })
}, },
async onInfbutSearow() { async onInfbutSearow() {
...@@ -107,21 +115,6 @@ export default { ...@@ -107,21 +115,6 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
// onInfcurSearch() {
// queryByPage(this.model).then(res => {
// /**
// * pageNumber: 0
// * pageSize: 0
// * total: 69
// * totalPage: 0
// */
// const list = res.list
// this.curData = list
// this.model.pageNum = res.pageNumber
// this.model.pageSize = res.pageSize
// this.model.total = res.total
// })
// },
queryFunc(pageNumber, pageSize) { queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber this.model.pageNum = pageNumber
this.model.pageSize = pageSize this.model.pageSize = pageSize
...@@ -137,13 +130,51 @@ export default { ...@@ -137,13 +130,51 @@ export default {
this.$router.push(`/statics/dbacur`) this.$router.push(`/statics/dbacur`)
}, },
curInfo(index, row) { curInfo(index, row) {
// console.log(row);
this.$router.push(`/statics/dbicur/${row.inr}`) this.$router.push(`/statics/dbicur/${row.inr}`)
}, },
curEdit(index, row) { curEdit(index, row) {
this.$router.push(`/statics/dbecur/${row.inr}`) this.$router.push(`/statics/dbecur/${row.inr}`)
}, },
curDelete(index, row) { // curDelete(index, row) {
this.$router.push(`/statics/dbdcur/${row.inr}`) // this.$router.push(`/statics/dbdcur/${row.inr}`)
// },
curDelete(idx, row) {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let paramsData = { };
paramsData.inr = row.inr;
// let result = deleteById(paramsData).then((d) => {return {data: d}});
// console.log(result);
// if(result == "true"){
// this.$message.success("删除成功!");
// }else{
// this.$message.error("删除失败!");
// }
deleteById(paramsData)
.then((res) => {
console.log(res);
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
console.log(err);
this.$message.error("删除失败!");
});
}).catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfcur", params: { update } });
}, },
}, },
}; };
......
...@@ -2,44 +2,53 @@ ...@@ -2,44 +2,53 @@
<div class="eContainer"> <div class="eContainer">
<c-page title="货币查询"> <c-page title="货币查询">
<el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small"> <el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small">
<c-tabs v-model="tabVal" ref="elment" type="card">
<!--PD000039 --> <!--PD000039 -->
<el-tab-pane label="查询面板" name="infsea"> <!-- <el-tab-pane label="查询面板" name="infsea"> -->
<c-content> <c-content>
<m-infsea :model="model" ref="infsea" /> <m-infsea :model="model" ref="infsea" />
</c-content> </c-content>
</el-tab-pane> <!-- </el-tab-pane> -->
<!-- <el-tab-pane label="货币" name="curpo"> <!-- <el-tab-pane label="货币" name="currency">
<c-content> <c-content>
<m-curpo :model="model" ref="curpo" /> <m-currency :model="model" ref="currency" />
</c-content> </c-content>
</el-tab-pane> --> </el-tab-pane> -->
</c-tabs>
</el-form> </el-form>
</c-page> </c-page>
</div> </div>
</template> </template>
<script> <script>
import Utils from "~/utils";
import CodeTable from "~/config/CodeTable"
// import commonProcess from "~/mixin/commonProcess"
// import commonFuncs from "~/mixin/commonFuncs";
import Cur, { Pattern } from "./Cur.js";
import Infsea from "./Infsea"; import Infsea from "./Infsea";
// import Currency from "./Currency";
import { queryDetailById, add, edit, deleteById } from "~/service/test/cur.js";
export default { export default {
name: "StaticsInfcur", name: "StaticsInfcur",
components: { components: {
"m-infsea": Infsea, "m-infsea": Infsea,
// "m-currency": Currency,
}, },
provide() { provide() {
return { return {
root: this, root: this,
}; };
}, },
// mixins: [commonProcess, commonFuncs],
data() { data() {
return { return {
tabVal: "infsea", tabVal: "",
model: { model: new Cur().data,
// cur rules: Pattern,
cod: "", codes: {
seanam: "", ...CodeTable,
}, },
}; };
}, },
......
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