Commit 7864d79e by sunxi

孙曦晚6点提交,疑似重复

parent b6ee2add
......@@ -3,10 +3,17 @@
<c-button class="medium_bcs" size="medium" style="margin-left: 0" type="primary" @click="handleList">
历史记录
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20px" type="primary" @click="handleBack">
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleCheck">
放行
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleReject">
丢弃
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 1000px" type="primary" @click="handleBack">
返回
</c-button>
<p style="margin-top: 20px;border: 1px solid #333333;padding-10px;width: 100%;min-height: 500px;" v-html="model.msgdtll"></p>
<p style="margin-top: 20px;margin-left: 0;border: 1px solid #333333;padding-10px;width: 40%;min-height: 500px;" v-html="model.msgdtll"></p>
<p style="margin-top: 20px;margin-left: 0;border: 1px solid #333333;padding-10px;width: 40%;min-height: 500px;" v-html="model.msgdtlll"></p>
<el-dialog v-if="visible" v-dialogDrag :visible="visible" :modal-append-to-body="false" :close-on-click-modal="true"
title="历史记录" destroy-on-close width="50%">
......@@ -54,11 +61,44 @@ export default {
mixins: [Event],
data() {
return {
trnName: "msgdtl",
trnName: "msgdtlrsm",
visible: false
}
},
methods: {
async handleCheck() {
this.$confirm("确定放行该报文?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then(async() => {
let params={
mpsinr: this.$route.query.mpsinr || "",
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/check`, params);
if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' })
}
});
},
async handleReject() {
this.$confirm("确定丢弃该报文?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
}).then(async() => {
let params={
mpsinr: this.$route.query.mpsinr || "",
};
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/reject`, params);
if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' })
}
});
},
async handleList () {
let params = {
mpsinr: this.$route.query.mpsinr || "",
......
......@@ -24,7 +24,8 @@ export default {
this.load = true;
let rtnmsg = await Api.post("/frontend/msgsel/query", {
...this.model.rcvp,
dir: "<",
dir: ">",
querytyp: "rsm",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
......
......@@ -157,11 +157,15 @@
<el-tab-pane label="收报疑似重复处理" name="sb">
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange"
@row-dblclick="dbClickRow"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
:min-width="item.width">
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" :min-width="item.width">
<template slot-scope="scope">
<c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label>
<span v-else>{{ scope.row[item.prop] }}</span>
</template>
</el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
......@@ -320,7 +324,16 @@ export default {
deep: true
}
},
methods: {},
methods: {
dbClickRow(row) {
this.routerPush({
path: '/business/msgdtlrsm',
query: {
mpsinr: row.inr
}
})
}
},
mounted: function () {
},
};
......
......@@ -24,7 +24,8 @@ export default {
this.load = true;
let rtnmsg = await Api.post("/frontend/msgsel/query", {
...this.model.sndp,
dir: ">",
dir: "<",
querytyp: "rsm",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
......
......@@ -147,6 +147,7 @@
<el-tab-pane label="发报疑似重复处理" name="fb">
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange"
@row-dblclick="dbClickRow"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55">
</el-table-column>
......@@ -310,6 +311,14 @@ export default {
}
},
methods: {
dbClickRow(row) {
this.routerPush({
path: '/business/msgdtlrsm',
query: {
mpsinr: row.inr
}
})
}
},
mounted: function () {
},
......
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