Commit 4fa427f3 by 李少勇

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

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