Commit f79c99d1 by taojinrui

cptbat交易

parent 3bfab765
...@@ -15,6 +15,8 @@ export default { ...@@ -15,6 +15,8 @@ export default {
} }
}, },
async onUpload(){ async onUpload(){
let rtnmsg1 = await this.executeRule("init")
let rtnmsg = await this.executeRule("upload") let rtnmsg = await this.executeRule("upload")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
...@@ -62,5 +64,23 @@ export default { ...@@ -62,5 +64,23 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async row(row, column, event){
console.log(12121)
this.flag = false
// this.$refs.table.setCurrentRow(row);
// this.$emit("chooseRowEvent", row);
let rtnmsg = await this.executeRule("filstm")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.model.filpth = rtnmsg.data.filpth
this.model.newnam = rtnmsg.data.newnam
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
} }
\ No newline at end of file
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
}, },
methods:{...Event}, methods:{...Event},
created:function(){ created:function(){
this.executeRule("bopmod.dbbp.basp").then((res) => { this.executeRule("bopmod.dbap.basp").then((res) => {
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
this.copyValueFromVO(res.data); this.copyValueFromVO(res.data);
} }
......
...@@ -663,7 +663,7 @@ export default { ...@@ -663,7 +663,7 @@ export default {
}, },
methods:{...Event}, methods:{...Event},
created:function(){ created:function(){
this.executeRule("bopmod.dbep.basp").then((res) => { this.executeRule("bopmod.dbdp.basp").then((res) => {
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
this.copyValueFromVO(res.data); this.copyValueFromVO(res.data);
} }
......
...@@ -144,6 +144,7 @@ export default { ...@@ -144,6 +144,7 @@ export default {
/** /**
* do it yourself * do it yourself
**/ **/
} }
}, },
created: async function () { created: async function () {
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="9">
<c-col :span="9"> <c-istream-table
<c-istream-table :list="model.filstm.rows||[]"
:list="stmData.data" :columns="stmData.columns"
:columns="stmData.columns" :showButtonFlg="true"
> @chooseRowEvent="row"
>
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<c-col :span="9" :offset="1"> <c-col :span="9" :offset="1">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="操作选择" prop="opetye"> <el-form-item label="操作选择" prop="opetye">
<c-select v-model="model.opetye" style="width: 100%"> <c-select v-model="model.opetye" style="width: 100%">
<el-option <el-option
v-for="item in opetye" v-for="item in opetye"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> ></el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="本地文件路径" prop="flpth"> <el-form-item label="本地文件路径" prop="filpth">
<c-input v-model="model.flpth" style="width:100%" placeholder="请输入本地文件路径" disabled></c-input> <c-input
</el-form-item> v-model="model.filpth"
</c-col> style="width: 100%"
<c-col :span="24"> placeholder="请输入本地文件路径"
<el-form-item label="上传文件名" prop="newnam"> disabled
<c-input v-model="model.newnam" style="width:100%" :disabled="model.opetye !== '1'"></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注意:上传文件若包含表头系统将无法解析</span> <el-form-item label="上传文件名" prop="newnam">
</c-col> <c-input
<c-col :span="24"> v-model="model.newnam"
<el-form-item label="删除首行上传"> style="width: 100%"
<c-checkbox v-model="model.flg" :disabled="model.opetye !== '1'"></c-checkbox> :disabled="model.opetye !== '1'"
</el-form-item> ></c-input>
</c-col> </el-form-item>
<c-col :span="24"> </c-col>
<el-form-item label="解析文件名" prop="opefil"> <c-col :span="24">
<c-input v-model="model.opefil" disabled></c-input> <span
</el-form-item> >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注意:上传文件若包含表头系统将无法解析</span
</c-col> >
</c-col>
<c-col :span="24">
<el-form-item label="删除首行上传">
<c-checkbox
v-model="model.flg"
:disabled="model.opetye !== '1'"
></c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="解析文件名" prop="opefil">
<c-input v-model="model.opefil" disabled></c-input>
</el-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="4" :offset="1"> <c-col :span="4" :offset="1">
<c-col :span="24"> <c-col :span="24">
<c-button type="primary" disabled>文件预览</c-button> <c-button type="primary" :disabled="flag" @click="onOpnfil">文件预览</c-button>
</c-col> </c-col>
<c-col><br/></c-col> <c-col><br /></c-col>
<c-col :span="24"> <c-col :span="24">
<c-button type="primary" :disabled="model.newnam === ''">文件上传</c-button> <c-button
</c-col> type="primary"
<c-col><br/></c-col> :disabled="model.newnam === ''"
<c-col :span="24"> @click="onUpload"
<c-button type="primary" disabled>文件解析</c-button> >文件上传</c-button
</c-col> >
<c-col><br/></c-col> </c-col>
<c-col :span="24"> <c-col><br /></c-col>
<c-button type="primary" disabled>文件删除</c-button> <c-col :span="24">
</c-col> <c-button type="primary" :disabled="flag" @click="onReadfil">文件解析</c-button>
</c-col> </c-col>
<c-col><br /></c-col>
<!-- <c-col :span="12"> <c-col :span="24">
<c-button type="primary" :disabled="flag" @click="onDel">文件删除</c-button>
</c-col>
</c-col>
<!-- <c-col :span="24">
<el-upload
action="http://127.0.0.1:8010/gjjs/business/infcpd/executeRule/upload"
:on-preview="handlePreview"
:on-remove="handleRemove"
:before-remove="beforeRemove"
multiple
:limit="3"
:on-exceed="handleExceed"
:file-list="fileList"
>
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">
只能上传jpg/png文件,且不超过500kb
</div>
</el-upload>
</c-col>-->
<!-- <c-col :span="24">
<div style="">
<input type="file" name="file" id="getAttchmentFile"><button @click="onUpload">上传</button>
</div>
</c-col> -->
<!-- <c-col :span="12">
<c-form-item label="" prop="filstm"> <c-form-item label="" prop="filstm">
<c-input v-model="model.filstm" :placeholder="$t('other.please_enter')+''"></c-input> <c-input v-model="model.filstm" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item> </c-form-item>
...@@ -143,43 +185,44 @@ ...@@ -143,43 +185,44 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptbat/Event" import Event from "~/model/Cptbat/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {
opetye:[ flag:true,
{label:"文件上传",value:"1"}, opetye: [
{label:"文件解析",value:"2"}, { label: "文件上传", value: "1" },
{label:"已解析文件",value:"3"}, { label: "文件解析", value: "2" },
], { label: "已解析文件", value: "3" },
stmData: { ],
columns: [ stmData: {
'0 1 "批量文件列表" 500' columns: [
// '0 1 "业务编号" 110', '0 1 "批量文件列表" 500',
// '1 2 "币种" 110', ],
// '2 3 "金额" 120 2 8:1 2 5', data: [],
// '3 4 "收款人名称" 250', },
// '4 5 "付款人名称" 250',
// '5 6 "业务发生日期" 150 20 30 1',
// { index: 6, position: 7, width: 100, pattern: "code", label: "复核状态" ,"code":"relsta"}, };
], },
data: [], methods: {
}, ...Event,
} // rowClick(row, column, event) {
}, // console.log(789)
methods:{...Event}, // this.$refs.table.setCurrentRow(row);
created:function(){ // this.$emit("chooseRowEvent", row);
// this.executerule("")
} // },
} },
created: function () {},
};
</script> </script>
<style> <style>
</style> </style>
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