Commit d9fba1ce by 李少勇

修改一些问题

parent 69ba29b1
......@@ -22,7 +22,7 @@ export default {
...doctre,
async init () {
const params = {
spt: this.toHandleRowData['row_' + this.trnName]
spt: JSON.parse(localStorage.getItem('row_' + this.trnName))
}
const res = await Api.post('/service/gitopn/init', {
...params,
......
......@@ -375,11 +375,11 @@ export default {
{max: 16,message:"长度不能超过16"}
],
"gidgrp.blk.exptxt":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 780,message:"长度不能超过780"}
],
"gidgrp.blk.atxexptxt":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"gidgrp.rec.inudat":[
......
......@@ -72,7 +72,6 @@
<c-fullbox>
<c-input
v-model="model.gidgrp.con.pts.extkey"
disabled
maxlength="16"
placeholder="请输入"
@keyup.enter.native="queryGridEtyPromptDialogData('CON', 'B')"
......
......@@ -141,7 +141,6 @@ import Glentry from "~/components/business/glentry/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Limitbody from "~/components/business/limitbody/views";
import { mapState } from 'vuex';
export default {
name: "Gitopn",
......@@ -175,11 +174,6 @@ export default {
"m-limitbody": Limitbody,
"m-aacp": Aacp,
},
computed: {
...mapState({
toHandleRowData: (state) => state.gitopn.toHandleRowData
})
},
provide() {
return {
root: this,
......
......@@ -52,14 +52,10 @@ export default {
this.$router.push({ path: 'business-new/sptpopup', query: { inr: inr } });
},
async continueEdit(row, scope) {
this.updateToHandleRowData({
...this.toHandleRowData,
[`row_${row.frm.toLowerCase()}`]: row
})
localStorage.setItem(`row_${row.frm.toLowerCase()}`, JSON.stringify(row))
let trnName = row.frm.toLowerCase();
this.$router.push({
path: 'business-new/' + trnName,
params: { prePageId: this.model.pageId },
});
},
// pageSize改变
......
......@@ -148,15 +148,9 @@
<script>
import Api from '~/service/Api';
import event from '../event'
import { mapMutations, mapState } from 'vuex';
export default {
inject: ['root'],
props: ['model', 'codes'],
computed: {
...mapState({
toHandleRowData: (state) => state.gitopn.toHandleRowData
})
},
mixins: [event],
data() {
return {
......@@ -240,7 +234,6 @@ export default {
];
},
methods: {
...mapMutations(['updateToHandleRowData']),
getInidatfro() {
let datetime = new Date();
datetime = datetime.setDate(datetime.getDate() - 10);
......
......@@ -147,7 +147,6 @@ export default {
const selDst = 'trncorco.trnstm'; //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule('relrow', params);
if (rtnmsg.respCode == SUCCESS) {
let errorMsg = '';
......
......@@ -211,7 +211,6 @@
watch: {
reload(val) {
if(val) {
debugger
this.handleSearch()
}
}
......
......@@ -7,7 +7,7 @@ export default {
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);
this.copyValueFromVoData(this.model.docpan, rtnmsg.data)
}
loading.close();
}
......
<template>
<div class="eibs-tab">
<c-col :span="24" style="">
<el-table :data="stmData.data" :columns="stmData.columns">
<el-table :data="stmData.data">
<el-table-column label="介质" width="110px">
<template slot-scope="scope">
<el-form-item
......@@ -139,22 +139,18 @@
suppress
"
@click="
handleDisplay(
scope.row.index,
scope.row,
model.docpan.doceot[scope.row.idx]
)
"
handleDisplay(scope.row.index, scope.row)"
style="margin-right: 10px"
>预览</c-button
>
<c-button
<!-- 2023.4.13临时注释,为了当次演示使用,后期详情接口做完了在放开注释联调 -->
<!-- <c-button
size="small"
type="primary"
style="margin-left: 0"
@click="handleDetail(scope.row.index, scope.row)"
>详情</c-button
>
> -->
</template>
</el-table-column>
</el-table>
......@@ -502,15 +498,7 @@ export default {
},
centerDialogVisible: false,
stmData: {
columns: [
//注释的已改成静态
'role 收报人 70px',
'pandsc 描述 250px',
//"cortyp 类型",
//"docsnf 报文格式",
//"docuil 语言",
//"apf 传送方式"
],
columns: [],
data: [],
},
gitopn: {
......@@ -573,11 +561,10 @@ export default {
}
);
},
async handleDisplay(index, row, doceot) {
async handleDisplay(index, row) {
//后续要根据快照模式切换请求方式
let cortyp = row.cortyp;
let docuil = doceot.docuil;
let docnam = doceot.docnam || '';
let docnam = row.docnam;
docnam = docnam
.substr(docnam.indexOf('\\') + 1)
.toLowerCase()
......
......@@ -97,6 +97,22 @@ export default {
});
this.$nextTick(() => {
let isError = document.querySelectorAll('.is-error')
let fields = this.$refs['modelForm'].fields
fields.map((fieldItem) => {
if (fieldItem.validateState === 'error') {
let errorComponentName = fieldItem.$options.componentName
console.log('fieldItem===', fieldItem)
// 切换tab
if (errorComponentName === 'ElTabPane') {
fieldItem.$parent.currentName = fieldItem.name
// 切换收缩框
} else if (errorComponentName === 'ElCollapseItem') {
if (fieldItem.collapse.activeNames.indexOf(fieldItem.name) < 0) {
fieldItem.collapse.activeNames.push(fieldItem.name)
}
}
}
})
isError[0].scrollIntoView({
block: 'center',
behavior: 'smooth'
......@@ -106,6 +122,9 @@ export default {
})
})
},
showFrontendErrors () {
},
// 后端校验
showBackendErrors(fieldErrors) {
// 清除之前的校验状态
......@@ -134,7 +153,7 @@ export default {
setfeg: this.model.setmod.setfeg,
setglg: this.model.setmod.setglg,
doceot: this.model.docpan.doceot,
spt: this.toHandleRowData['row_' + this.trnName] || {},
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) || {},
gidgrp: this.model.gidgrp,
gitp: this.model.gitp,
}
......
......@@ -2,11 +2,12 @@ import Api from '~/service/Api';
export default {
methods: {
async init() {
const params = {
spt: this.toHandleRowData,
};
const res = await Api.post('/service/gitopn/init', {
...params,
trnmodVo: {
trn: {
inr: this.$route.query.trn
}
},
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
});
......@@ -72,8 +73,11 @@ export default {
//处理-复核
async handlePass(val) {
let params = {};
let rtnmsg = await Api.post('', params);
let params = {
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
}
let rtnmsg = await Api.post('/service/trnrel/relrow', params);
if (rtnmsg.respCode === SUCCESS) {
let errorMsg = '';
let fieldErrorsFlag = JSON.stringify(rtnmsg.fieldErrors) == '{}';
......
......@@ -247,26 +247,27 @@ export default {
}
},
},
created: async function () {
console.log("进入gitopn交易");
let params = {
transName: this.trnName,
trnmodVo: {
trn: {
inr: this.$route.query.trn
}
}
}
let res = await Api.post('/service/gitopn/init', params);
if (res && res.respCode == SUCCESS) {
this.model = res.data
//TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
mounted () {
this.init()
// console.log("进入gitopn交易");
// let params = {
// transName: this.trnName,
// trnmodVo: {
// trn: {
// inr: this.$route.query.trn
// }
// }
// }
// let res = await Api.post('/service/gitopn/init', params);
// if (res && res.respCode == SUCCESS) {
// this.model = res.data
// //TODO 处理数据逻辑
// if (this.isInDisplay) {
// this.restoreDisplay();
// }
// } else {
// this.$notify.error({ title: "错误", message: "服务请求失败!" });
// }
},
};
</script>
......
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