Commit 0327e78b by 李少勇

nxysdb 交易修改

parent 1064ae5a
......@@ -12935,6 +12935,9 @@ const CodeTable = {
{ label: "排队调整申请中", value: "4" },
{ label: "撤销申请", value: "3" },
],
dtatyp: [
{ value: '1', label: '参与者信息' },
{ value: '2', label: '直间参关系' }
]
};
export default CodeTable;
......@@ -5,7 +5,7 @@ import Utils from "~/utils";
export default {
methods: {
async handleSearch() {
let begdat = this.model.fddp.begdat;
let begdat = this.model.nxpp.begdat;
if (!begdat || begdat == "") {
this.$notify.error({
title: this.$t("financing.错误"),
......@@ -13,7 +13,7 @@ export default {
});
return;
}
let enddat = this.model.fddp.enddat;
let enddat = this.model.nxpp.enddat;
if (!enddat || enddat == "") {
this.$notify.error({
title: this.$t("financing.错误"),
......@@ -24,7 +24,7 @@ export default {
this.load = true;
let rtnmsg = await Api.post("/frontend/nxysdb/query", {
...this.model.fddp,
...this.model.nxpp,
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize
});
......
export default {
"fddp.begdat": [
"nxpp.begdat": [
{ type: "string", required: false, message: "输入正确的日期" }
],
"fddp.enddat": [
"nxpp.enddat": [
{ type: "string", required: false, message: "输入正确的日期" }
],
"fddp.filnam": [
"nxpp.filnam": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
......
......@@ -3,11 +3,9 @@ import moment from "moment";
export default class Nxysdb {
constructor() {
this.data = {
fddp: {
begdat: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // 导入起始日期 .fddp.begdat
enddat: moment(new Date()).format('YYYY-MM-DD'), // 导入截止日期 .fddp.enddat
filtyp: "", // 文件类型 .fddp.filtyp
filnam: "", // 文件名 .fddp.filnam
nxpp: {
dtatyp: "", // 文件类型 .nxpp.filtyp
cod: "", // 文件名 .nxpp.filnam
},
cpsfxdgrp: {
fxdlst: [], // .cpsfxdgrp.fxdlst
......
......@@ -6,26 +6,13 @@
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="文件类型" prop="fddp.filtyp" style="width: 100%">
<c-select v-model="model.fddp.filtyp" style="width: 100%" placeholder="请选择文件类型" dbCode="FILTYP" />
<el-form-item label="基础数据类型" prop="nxpp.dtatyp" style="width: 100%">
<c-select v-model="model.nxpp.dtatyp" style="width: 100%" placeholder="请选择基础数据类型" dbCode="DTATYP" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="文件名" prop="fddp.filnam" style="width: 100%">
<c-input v-model="model.fddp.filnam" style="width: 100%" placeholder="请输入文件名" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="导入日期" prop="rcvdatsta" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.fddp.begdat" style="width: 100%"></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.fddp.enddat" style="width: 100%"></c-date-picker>
</c-col>
<el-form-item label="参与者行号" prop="nxpp.cod" style="width: 100%">
<c-input v-model="model.nxpp.cod" style="width: 100%" placeholder="请输入参与者行号" />
</el-form-item>
</c-col>
</c-col>
......
......@@ -9,7 +9,7 @@
:on-success="handleSuccess"
:limit="1"
:show-file-list="false"
accept=".xml"
accept=".xls,.xlsx"
>
<c-button slot="trigger" size="small" type="primary">导入</c-button>
</el-upload>
......
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