Commit 53139194 by 李少勇

修改bug

parent c3b0ac4d
...@@ -31,23 +31,24 @@ export default { ...@@ -31,23 +31,24 @@ export default {
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
}); });
if (rtnmsg.respCode === SUCCESS) { if (rtnmsg.respCode === SUCCESS) {
this.updateValueSet(rtnmsg.codeSet); console.log('=====校验', rtnmsg)
// this.updateValueSet(rtnmsg.codeSet);
} }
if (rtnmsg.respCode === SUCCESS) { // if (rtnmsg.respCode === SUCCESS) {
const fieldErrors = rtnmsg.fieldErrors; // const fieldErrors = rtnmsg.fieldErrors;
this.updateModel(rtnmsg.data); // this.updateModel(rtnmsg.data);
if (fieldErrors && Object.keys(fieldErrors).length === 0) { // if (fieldErrors && Object.keys(fieldErrors).length === 0) {
// 清除之前的校验状态 // // 清除之前的校验状态
this.getRoot().$refs.modelForm.clearValidate(); // this.getRoot().$refs.modelForm.clearValidate();
this.$notify({ // return;
title: '成功', // }
message: '校验成功', // }
type: 'success', // this.$notify({
}); // title: '成功',
return; // message: '校验成功',
} // type: 'success',
} // });
loading.close(); loading.close();
}, },
// 暂存 // 暂存
......
...@@ -4,7 +4,7 @@ import Utils from '~/utils'; ...@@ -4,7 +4,7 @@ import Utils from '~/utils';
export default { export default {
async processLiaccv(liaccvRequest) { async processLiaccv(liaccvRequest) {
const loading = this.loading('正在请求数据'); const loading = this.loading('正在请求数据');
let objtyp = setfegRequest.rec.objtyp; let objtyp = liaccvRequest.rec.objtyp;
let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/liaccv/assertLiaccv`, liaccvRequest); let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/liaccv/assertLiaccv`, liaccvRequest);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model.liaccv, rtnmsg.data); Utils.copyValueFromVO(this.model.liaccv, rtnmsg.data);
......
...@@ -4,7 +4,7 @@ import Utils from '~/utils'; ...@@ -4,7 +4,7 @@ import Utils from '~/utils';
export default { export default {
async processTrndoc(trndocRequest) { async processTrndoc(trndocRequest) {
const loading = this.loading('正在请求数据') const loading = this.loading('正在请求数据')
let objtyp = setfegRequest.rec.objtyp; let objtyp = trndocRequest.rec.objtyp;
let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/docpan/assertTrndoc`, trndocRequest); let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/docpan/assertTrndoc`, trndocRequest);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model.docpan, rtnmsg.data); Utils.copyValueFromVO(this.model.docpan, rtnmsg.data);
......
...@@ -4,7 +4,7 @@ import Utils from '~/utils'; ...@@ -4,7 +4,7 @@ import Utils from '~/utils';
export default { export default {
async processLiaall(liaallRequest) { async processLiaall(liaallRequest) {
const loading = this.loading('正在请求数据') const loading = this.loading('正在请求数据')
let objtyp = setfegRequest.rec.objtyp; let objtyp = liaallRequest.rec.objtyp;
let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/liaall/assertLiaall`, liaallRequest); let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/liaall/assertLiaall`, liaallRequest);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model.liaall, rtnmsg.data); Utils.copyValueFromVO(this.model.liaall, rtnmsg.data);
......
...@@ -3,7 +3,7 @@ import Api from '~/service/Api'; ...@@ -3,7 +3,7 @@ import Api from '~/service/Api';
export default { export default {
async processGlentry(glentryRequest) { async processGlentry(glentryRequest) {
const loading = this.loading('正在请求数据') const loading = this.loading('正在请求数据')
let objtyp = setfegRequest.rec.objtyp; let objtyp = glentryRequest.rec.objtyp;
let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/gle/assertGle`, glentryRequest); let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/gle/assertGle`, glentryRequest);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.model.setmod.glemod.gleshwstm = rtnmsg.data.gleshwstm; this.model.setmod.glemod.gleshwstm = rtnmsg.data.gleshwstm;
......
<template> <template>
<div class="eibs"> <div class="eibs">
<c-col :span="24" style=""> <c-col :span="24" style="">
<c-istream-table :list="data" :columns="columns"></c-istream-table> <c-istream-table :list="data" :columns="columns"></c-istream-table>
</c-col> </c-col>
</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';
export default { export default {
inject: ['root'], inject: ['root'],
mixins: [commonProcess], mixins: [commonProcess],
props:["model","codes"], props: ['model', 'codes'],
data(){ data() {
return { return {
columns: [ columns: [
"2 1 \"借/贷\" 80 1 0", '2 1 "借/贷" 80 1 0',
"6 2 \"账号\" 200", '6 2 "账号" 200',
"3 3 \"币种\" 70", '3 3 "币种" 70',
"4 4 \"金额\" 150 2 8:1 2 5", '4 4 "金额" 150 2 8:1 2 5',
"5 5 \"起息日\" 150", '5 5 "起息日" 150',
"7 6 \"牌价类型\" 100", '7 6 "牌价类型" 100',
"8 7 \"牌价\" 100 2 0 1 0", '8 7 "牌价" 100 2 0 1 0',
"9 8 \"会计科目\" 100", '9 8 "会计科目" 100',
"0 9 \"分录序号\" 100 1 0" '0 9 "分录序号" 100 1 0',
], ],
data: [ data: [],
] };
},
watch: {
//this.$refs.glepan.stmData.data = res.data.setmod_glemod_gleshwstm.rows;
'model.setmod.glemod.gleshwstm': {
handler(val, oldVal) {
if (val.rows) {
this.data = val.rows;
} }
},
immediate: true,
}, },
watch: { },
//this.$refs.glepan.stmData.data = res.data.setmod_glemod_gleshwstm.rows; methods: {},
'model.setmod.glemod.gleshwstm': { created: function () {},
handler(val, oldVal) { };
if (val.rows) {
this.data = val.rows
}
},
immediate: true
}
},
methods:{
},
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