|
@@ -104,7 +104,7 @@
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
label="发送时间"
|
|
|
- prop="postTime"
|
|
|
+ prop="postTimeText"
|
|
|
width="180"
|
|
|
align="center"
|
|
|
>
|
|
@@ -120,6 +120,15 @@
|
|
|
>
|
|
|
查看
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ link
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ @click="resend(props.row)"
|
|
|
+ v-if="props.row.status != 1"
|
|
|
+ >
|
|
|
+ 重新发送
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -131,11 +140,11 @@
|
|
|
<el-skeleton :rows="6" animated v-if="!record.content" />
|
|
|
<el-row :gutter="0" :width="800" v-else>
|
|
|
<el-col :span="12">
|
|
|
- <div class="preFormat">{{ JSON.parse(record.content) }}</div>
|
|
|
+ <div class="preFormat">{{ JSON.parse(record.content || "{}") }}</div>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<div class="preFormat">
|
|
|
- {{ JSON.parse(record.result) }}
|
|
|
+ {{ JSON.parse(record.result || "{}") }}
|
|
|
</div></el-col
|
|
|
>
|
|
|
</el-row>
|
|
@@ -188,8 +197,22 @@ export default {
|
|
|
this.total = paged.dataCount;
|
|
|
var tableData = paged.pageData;
|
|
|
tableData.forEach((d) => {
|
|
|
- d.postTime = moment(d.postTime).format("YYYY-MM-DD HH:mm:ss");
|
|
|
- d.apiTypeText = d.apiType == "ExamRegisterAsync" ? "体检登记" : apiTypeText == "ExamDeleteAsync" ? "删除登记信息" : "";
|
|
|
+ var postTimeText = moment(d.postTime).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ d.postTimeText = postTimeText.indexOf("20") == 0 ? postTimeText : "";
|
|
|
+ d.apiTypeText =
|
|
|
+ d.apiType == "ExamRegisterAsync"
|
|
|
+ ? "体检登记"
|
|
|
+ : apiTypeText == "ExamDeleteAsync"
|
|
|
+ ? "删除登记信息"
|
|
|
+ : apiTypeText == "HEITCMC"
|
|
|
+ ? "中医体质记录"
|
|
|
+ : apiTypeText == "LNRZLNLPG"
|
|
|
+ ? "老年人自理评估"
|
|
|
+ : apiTypeText == "RemoteECG"
|
|
|
+ ? "超声报告"
|
|
|
+ : apiTypeText == "RemoteDiagnosis"
|
|
|
+ ? "心电报告"
|
|
|
+ : "";
|
|
|
d.statusText =
|
|
|
d.status == 1
|
|
|
? "待发送"
|
|
@@ -215,6 +238,28 @@ export default {
|
|
|
this.record = res;
|
|
|
});
|
|
|
},
|
|
|
+ async resend(row) {
|
|
|
+ this.$confirm(`确定重新发送吗?`, "提示", {
|
|
|
+ type: "warning",
|
|
|
+ confirmButtonText: "确 认",
|
|
|
+ cancelButtonText: "取 消",
|
|
|
+ confirmButtonClass: "el-button--danger",
|
|
|
+ })
|
|
|
+ .then(async () => {
|
|
|
+ var res =
|
|
|
+ await this.$rpc.facturyPostHistory.resendFacturyPostHistoryAsync({
|
|
|
+ Token: store.state.userInfo.token,
|
|
|
+ Code: row.code,
|
|
|
+ });
|
|
|
+ if (res) {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.search();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ console.log("Unlock method exception");
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|