Commit 4fa427f3 by 李少勇

处理待经办点击处理时候行数据传递问题

parent 5ca35fda
......@@ -55,8 +55,13 @@ export default {
loading.close();
},
// 暂存
handleStash() {
console.log('暂存');
async handleStash() {
const res = await Api.post('/service/gitopn/txnHold', {
...this.model,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
});
console.log('暂存', res);
},
async tabClick(tab) {
if (this.isInDisplay) {
......
......@@ -138,6 +138,7 @@ import Docpan from "~/components/business/docpan/views";
import Doctre from "~/views/Public/Doctre";
import Limitbody from "~/views/Public/Limitbody";
import moment from "moment";
import { mapState } from 'vuex';
export default {
name: "Gitopn",
......@@ -172,6 +173,11 @@ export default {
"m-limitbody": Limitbody,
"m-aacp": Aacp,
},
computed: {
...mapState({
toHandleRowData: (state) => state.toHandleRowData
})
},
provide() {
return {
root: this,
......@@ -279,7 +285,7 @@ export default {
this.model.gitp.labissref = 'Issuing Bank\'s Ref.'
this.model.gitp.laborcdat = 'Contract Date'
this.model.gitp.letterlabel = '面函标题'
this.model.gitp.usr.extkey = 'ZL'
this.model.gitp.usr.extkey = window.sessionStorage.userId || 'ZL'
this.model.liaall.exttotamt = '0.000'
this.model.liaall.exttotoldamt = '0.000'
this.model.liaccv.cshpct = '0.00'
......@@ -291,12 +297,23 @@ export default {
this.model.liaall.limmod.ccvamt = '0.000'
this.model.liaall.limmod.comamt = '0.000'
this.model.liaall.misamt = '0.000'
this.model.pageId = 'CtxCache-4079be82-bb5e-4ced-835e-0f20d3268ec2'
this.model.setmod.dspflg = 'CG'
},
async init () {
const params = {
...this.toHandleRowData
}
const res = await Api.post('/service/xxx/xxx', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
});
console.log(res)
}
},
created () {
this.initModelData()
// this.initModelData()
// this.init()
this.queryHndtypCodeTableList(this.trnName)
},
mounted () {},
......
......@@ -48,27 +48,12 @@ export default {
this.$router.push({ path: 'business-new/sptpopup', query: { id: id || 'text'} });
},
async continueEdit(row, scope) {
//let rtnmsg = await Api.post("getPendingData",{params:{'selsptinr':row[0]}})
//if (rtnmsg.respCode == SUCCESS) {
//var cacheFileName = rtnmsg.data.cacheFileName;
// this.model.selsptinr = row['INR'];
// const selIds = [];
// selIds.push(row['IDX']);
// let params = { selDst: "sptstm", selIds: selIds };
// let rtnmsg = await this.executeRule("tak", params)
// if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateToHandleRowData(row)
let trnName = row.frm.toLowerCase();
// let viewurl = "/business/ditopn?selsptinr=" + row[0];
//let viewurl = "/business/"+trnName+"?selsptinr=" + row['INR'];
this.$router.push({
name: trnName.charAt(0).toUpperCase() + trnName.substring(1),
params: { prePageId: this.model.pageId },
});
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
},
},
};
......@@ -136,6 +136,7 @@
<script>
import Api from '~/service/Api';
import event from '../event'
import { mapMutations } from 'vuex';
export default {
inject: ['root'],
props: ['model', 'codes'],
......@@ -200,6 +201,7 @@ export default {
// this.$store.commit('setTaskList', {key: 'sptsel', val: this.stmData.data.length})
},
methods: {
...mapMutations(['updateToHandleRowData']),
// async choose(idx,row){
// var params = {selDst:"sptstm",selrow:[idx+1]}
// let rtnmsg = await this.executeRule("sptstm" , params) //SPTSTM
......
......@@ -6,6 +6,7 @@ import TagsView from "./TagsView"
import Transaction from "./Transaction";
import Vuex from 'vuex'
import Vue from 'vue'
import gitopn from './modules/gitopn.js'
Vue.use(Vuex)
......@@ -16,7 +17,8 @@ const store = new Vuex.Store({
Status: Status,
Swift: Swift,
TagsView: TagsView,
Transaction: Transaction
Transaction: Transaction,
gitopn
}
})
......
const store = {
state: {
toHandleRowData: {},
},
mutations: {
updateToHandleRowData(state, params) {
state.toBehandleRowData = params
}
}
}
export default store
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