Commit 28acb514 by xionglin

注释内容

parent b2c3d99f
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/test/atp/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/test/atp/queryById?inr=${inr}`)
}
export function add(data) {
return Api.post("/test/atp/add", data)
}
export function edit(data) {
return Api.post("/test/atp/edit", data)
}
export function deleteById(inr) {
return Api.post(`/test/atp/deleteById?inr=${inr}`)
}
\ No newline at end of file
<template>
<m-atp ref="atp" title="dbaatp" type="add"></m-atp>
</template>
<script>
import Dbiatp from "~/views/Statics/Dbiatp";
export default {
name: "StaticsDbaatp",
components: {
"m-atp": Dbiatp
},
data() {
return {};
},
mounted() {
this.$refs.fec.rules['fecList'] = [
{ type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
]
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-pty title="dbdatp" type="delete"></m-pty>
</template>
<script>
import Dbiatp from "~/views/Statics/Dbiatp";
export default {
name: "StaticsDbdatp",
components: {
"m-pty": Dbiatp
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-pty title="dbeatp" type="edit"></m-pty>
</template>
<script>
import Dbiatp from "~/views/Statics/Dbiatp";
export default {
name: "StaticsDbeatp",
components: {
"m-pty": Dbiatp
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Pty {
constructor() {
this.data = {
inr: "",
cod: "",
rouflg: "",
bus: "",
concreflg: "",
dtaflg: "",
sepflg: "",
jobflg: "",
subflg: "",
lnkobj: "",
ccstyp: "",
ver: "",
bustrnflg: "",
relamt: "",
reltyp: "",
negflg: "",
dealtim: "",
}
}
}
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": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"rouflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"bus": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"concreflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"dtaflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"sepflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"jobflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"subflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"lnkobj": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"ccstyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"bustrnflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"relamt": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"reltyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"negflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"dealtim": [
],
}
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="编号" 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="代码" prop="cod">
<c-input
v-model="model.cod"
placeholder="请输入代码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="控制标志" prop="rouflg">
<c-input
v-model="model.rouflg"
placeholder="请输入rouflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="业务品种" prop="bus">
<c-input
v-model="model.bus"
placeholder="请输入bus"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="创建新进程标志" prop="concreflg">
<c-input
v-model="model.concreflg"
placeholder="请输入concreflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="处理数据标志" prop="dtaflg">
<c-input
v-model="model.dtaflg"
placeholder="请输入dtaflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="处理临时结算标志" prop="sepflg">
<c-input
v-model="model.sepflg"
placeholder="请输入sepflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="后台进程标志" prop="jobflg">
<c-input
v-model="model.jobflg"
placeholder="请输入jobflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="创建子合同进程" prop="subflg">
<c-input
v-model="model.subflg"
placeholder="请输入subflg"
>
</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="lnkobj">
<c-input
v-model="model.lnkobj"
placeholder="请输入lnkobj"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="比较类型" prop="ccstyp">
<c-input
v-model="model.ccstyp"
placeholder="请输入ccstyp"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="版本号" 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="交易处理标志" prop="bustrnflg">
<c-input
v-model="model.bustrnflg"
placeholder="请输入bustrnflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="用于release的金额" prop="relamt">
<c-input
v-model="model.relamt"
placeholder="请输入relamt"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="release规则类型" prop="reltyp">
<c-input
v-model="model.reltyp"
placeholder="请输入reltyp"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="押汇中心处理标志" prop="negflg">
<c-input
v-model="model.negflg"
placeholder="请输入negflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交易处理时间" prop="dealtim">
<c-input
v-model="model.dealtim"
placeholder="请输入dealtim"
>
</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="atp">
<c-content>
<m-atp-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 Atp, { Pattern } from "./Atp.js";
import AtpInfo from "./AtpInfo.vue";
import { queryById, add, edit, deleteById } from "~/service/test/atp.js";
export default {
name: "StaticsDbiatp",
components: {
"m-atp-info": AtpInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbiatp"
}
},
data() {
return {
model: new Atp().data,
tabVal: "atp",
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()
})
.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 是否更新infatp的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfatp", params: { update } });
},
},
};
</script>
<style>
</style>
\ 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="交易配置信息代码" prop="cod">
<c-input v-model="model.cod" placeholder="请输入交易配置信息代码" style="width: 100%">
</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="cod">
<c-input v-model="model.cod" placeholder="请输入代码描述" style="width: 100%">
</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="atpAdd">新增</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="onInfatpSearch()"
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="atpData"
:columns="atpColumns"
: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="atpInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="atpEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="atpDelete(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/atp.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
atpData: [],
atpColumns: [
{ label: '交易配置信息代码', prop: 'cod', width: '240' },
{ label: '描述', prop: 'cod', width: '600' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfatpSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onInfatpSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list
this.atpData = 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.onInfatpSearch()
},
atptypeChange(val) {
this.model.fectyp = val;
},
atpCodesByKey(key) {
return codes[key] ?? [];
},
atpAdd() {
this.$router.push(`/statics/dbaatp`)
},
atpInfo(index, row) {
this.$router.push(`/statics/dbiatp/${row.inr}`)
},
atpEdit(index, row) {
this.$router.push(`/statics/dbeatp/${row.inr}`)
},
atpDelete(index, row) {
this.$router.push(`/statics/dbdatp/${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>
<!-- <el-tab-pane label="交易配置信息" name="curpo">
<c-content>
<m-curpo :model="model" ref="curpo" />
</c-content>
</el-tab-pane> -->
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInfatp",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
cod: "",
pageSize:5,
pageNum:1,
total:0
},
};
},
};
</script>
<style>
</style>
......@@ -76,7 +76,7 @@ export default {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
async handleReset() {
async handleReset() {
this.model.cod = ""
this.model.seanam = ""
},
......
......@@ -44,6 +44,12 @@ import Dbabch from "./Dbabch";
import Dbebch from "./Dbebch";
import Dbdbch from "./Dbdbch";
import Infatp from "./Infatp";
import Dbiatp from "./Dbiatp";
import Dbaatp from "./Dbaatp";
import Dbeatp from "./Dbeatp";
import Dbdatp from "./Dbdatp";
const StaticsRouter = [
{ path: 'infpty', component: Infpty, name: 'StaticsInfpty', meta: { title: '客户查询' } },
{ path: 'dbapty', component: Dbapty, name: 'StaticsDbapty', meta: { title: '客户新增' } },
......@@ -91,6 +97,13 @@ const StaticsRouter = [
{ path: 'dbibch/:inr', component: Dbibch, name: 'StaticsDbibch', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
{ path: 'dbebch/:inr', component: Dbebch, name: 'StaticsDbebch', meta: { title: (tag) => { return '客户修改: ' + tag.params.inr } } },
{ path: 'dbdbch/:inr', component: Dbdbch, name: 'StaticsDbdbch', meta: { title: (tag) => { return '客户删除: ' + tag.params.inr } } },
{ path: 'infatp', component: Infatp, name: 'StaticsInfatp', meta: { title: '交易配置信息查询' } },
{ path: 'dbaatp', component: Dbaatp, name: 'StaticsDbaatp', meta: { title: '交易配置信息新增' } },
{ path: 'dbeatp/:inr', component: Dbeatp, name: 'StaticsDbeatp', meta: { title: (tag) => { return '客户修改: ' + tag.params.inr } } },
{ path: 'dbdatp/:inr', component: Dbdatp, name: 'StaticsDbdatp', meta: { title: (tag) => { return '客户删除: ' + tag.params.inr } } },
{ path: 'dbiatp/:inr', component: Dbiatp, name: 'StaticsDbiatp', meta: { title: (tag) => { return '交易配置信息详情: ' + tag.params.inr } } },
]
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