Commit 53139194 by 李少勇

修改bug

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