Commit f79c99d1 by taojinrui

cptbat交易

parent 3bfab765
......@@ -15,6 +15,8 @@ export default {
}
},
async onUpload(){
let rtnmsg1 = await this.executeRule("init")
let rtnmsg = await this.executeRule("upload")
if(rtnmsg.respCode == SUCCESS)
{
......@@ -62,5 +64,23 @@ export default {
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 {
},
methods:{...Event},
created:function(){
this.executeRule("bopmod.dbbp.basp").then((res) => {
this.executeRule("bopmod.dbap.basp").then((res) => {
if (res.respCode == SUCCESS) {
this.copyValueFromVO(res.data);
}
......
......@@ -663,7 +663,7 @@ export default {
},
methods:{...Event},
created:function(){
this.executeRule("bopmod.dbep.basp").then((res) => {
this.executeRule("bopmod.dbdp.basp").then((res) => {
if (res.respCode == SUCCESS) {
this.copyValueFromVO(res.data);
}
......
......@@ -144,6 +144,7 @@ export default {
/**
* do it yourself
**/
}
},
created: async function () {
......
<template>
<div class="eibs-tab">
<c-col :span="9">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
>
</c-istream-table>
</c-col>
<c-col :span="9">
<c-istream-table
:list="model.filstm.rows||[]"
:columns="stmData.columns"
:showButtonFlg="true"
@chooseRowEvent="row"
>
</c-istream-table>
</c-col>
<c-col :span="9" :offset="1">
<c-col :span="24">
<el-form-item label="操作选择" prop="opetye">
<c-select v-model="model.opetye" style="width: 100%">
<el-option
v-for="item in opetye"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="本地文件路径" prop="flpth">
<c-input v-model="model.flpth" style="width:100%" placeholder="请输入本地文件路径" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="上传文件名" prop="newnam">
<c-input v-model="model.newnam" style="width:100%" :disabled="model.opetye !== '1'"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注意:上传文件若包含表头系统将无法解析</span>
</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 :span="9" :offset="1">
<c-col :span="24">
<el-form-item label="操作选择" prop="opetye">
<c-select v-model="model.opetye" style="width: 100%">
<el-option
v-for="item in opetye"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="本地文件路径" prop="filpth">
<c-input
v-model="model.filpth"
style="width: 100%"
placeholder="请输入本地文件路径"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="上传文件名" prop="newnam">
<c-input
v-model="model.newnam"
style="width: 100%"
:disabled="model.opetye !== '1'"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<span
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注意:上传文件若包含表头系统将无法解析</span
>
</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 :span="4" :offset="1">
<c-col :span="24">
<c-button type="primary" disabled>文件预览</c-button>
</c-col>
<c-col><br/></c-col>
<c-col :span="24">
<c-button type="primary" :disabled="model.newnam === ''">文件上传</c-button>
</c-col>
<c-col><br/></c-col>
<c-col :span="24">
<c-button type="primary" disabled>文件解析</c-button>
</c-col>
<c-col><br/></c-col>
<c-col :span="24">
<c-button type="primary" disabled>文件删除</c-button>
</c-col>
<c-col :span="4" :offset="1">
<c-col :span="24">
<c-button type="primary" :disabled="flag" @click="onOpnfil">文件预览</c-button>
</c-col>
<c-col><br /></c-col>
<c-col :span="24">
<c-button
type="primary"
:disabled="model.newnam === ''"
@click="onUpload"
>文件上传</c-button
>
</c-col>
<c-col><br /></c-col>
<c-col :span="24">
<c-button type="primary" :disabled="flag" @click="onReadfil">文件解析</c-button>
</c-col>
<!-- <c-col :span="12">
<c-col><br /></c-col>
<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-input v-model="model.filstm" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
......@@ -143,43 +185,44 @@
</div>
</template>
<script>
import Api from "~/service/Api"
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptbat/Event"
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptbat/Event";
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
opetye:[
{label:"文件上传",value:"1"},
{label:"文件解析",value:"2"},
{label:"已解析文件",value:"3"},
],
stmData: {
columns: [
'0 1 "批量文件列表" 500'
// '0 1 "业务编号" 110',
// '1 2 "币种" 110',
// '2 3 "金额" 120 2 8:1 2 5',
// '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},
created:function(){
}
}
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
flag:true,
opetye: [
{ label: "文件上传", value: "1" },
{ label: "文件解析", value: "2" },
{ label: "已解析文件", value: "3" },
],
stmData: {
columns: [
'0 1 "批量文件列表" 500',
],
data: [],
},
};
},
methods: {
...Event,
// rowClick(row, column, event) {
// console.log(789)
// this.$refs.table.setCurrentRow(row);
// this.$emit("chooseRowEvent", row);
// this.executerule("")
// },
},
created: function () {},
};
</script>
<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