Commit e739f3ff authored by yanglilong's avatar yanglilong

Merge branch 'yanglilong' of git.ssish.com:sunhailiang/bims into test

parents c2e2be23 8d4cf309
...@@ -47,14 +47,14 @@ ...@@ -47,14 +47,14 @@
<div class="btn-div flex"> <div class="btn-div flex">
<span></span> <span></span>
<a-form-model-item label="button"> <a-form-model-item label="button">
<a-button class="mar-left10" type="primary" @click="addNewCharge">
<Icon name="ssiadd" :size="14" />新建寄送</a-button>
<a-button class="mar-left10" type="primary" @click="handlerReset">
<Icon name="ssireset" :size="14" />重置
</a-button>
<a-button class="mar-left10" type="primary" @click="handlerSearch"> <a-button class="mar-left10" type="primary" @click="handlerSearch">
<Icon name="ssisearch_active" :size="14" />查询 <Icon name="ssisearch_active" :size="14" />查询
</a-button> </a-button>
<a-button class="mar-left10" type="primary" @click="handlerReset">
<Icon name="ssireset" :size="14" />重置
</a-button>
<a-button class="mar-left10" type="primary" @click="addNewCharge">
<Icon name="ssiadd" :size="14" />新建寄送</a-button>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
......
<template> <template>
<div class="white_bg burt-container"> <div class="white_bg burt-container">
<div class="title-div">保险公司信息</div> <div class="flex title-div">
<span>保险公司信息</span>
<a-button type="primary" @click.stop="addCompany">新建保险公司</a-button>
</div>
<a-table :columns="columns" :data-source="dataList" :scroll="{ x: 'max-content' }" :pagination="false"> <a-table :columns="columns" :data-source="dataList" :scroll="{ x: 'max-content' }" :pagination="false">
<div v-for="col in columns" :slot="col.dataIndex" slot-scope="text, record, index" :key="col.dataIndex" > <div v-for="col in columns" :slot="col.dataIndex" slot-scope="text, record, index" :key="col.dataIndex" >
<template v-if="col.dataIndex == 'operation'"> <template v-if="col.dataIndex == 'operation'">
<a-button type="link" @click.stop="editEvt(record)">修改</a-button> <a-button type="link" @click.stop="editEvt(record)">修改</a-button>
<a-button type="link" @click.stop="detailEvt(record)">查看</a-button> <a-button type="link" class="success" @click.stop="detailEvt(record)">查看</a-button>
<a-button type="link" class="danger" @click.stop="delRecord(index)">删除</a-button> <a-button type="link" class="danger" @click.stop="delRecord(index)">删除</a-button>
</template> </template>
<template v-else> <template v-else>
...@@ -118,6 +121,21 @@ export default { ...@@ -118,6 +121,21 @@ export default {
} }
}); });
}, },
//新增保险公司
addCompany(){
this.$apis.CREATEPAY({
...this.detailObj
})
.then((res) => {
if (res.returnCode == "0000") {
this.$message.success("新增成功");
this.pagination.pageNum = 1;
this.getData();
} else {
this.$message.error(res.returnMsg);
}
});
},
//编辑 //编辑
editEvt(record) { editEvt(record) {
this.editFormObj = { this.editFormObj = {
...@@ -206,5 +224,6 @@ export default { ...@@ -206,5 +224,6 @@ export default {
line-height: 52px; line-height: 52px;
color: #252631; color: #252631;
font-weight: bold; font-weight: bold;
justify-content: space-between;
} }
</style> </style>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<a-col :sm="24" class="none-label"> <a-col :sm="24" class="none-label">
<a-form-model-item label="button"> <a-form-model-item label="button">
<a-button type="primary" @click="handlerSava"> <a-button type="primary" @click="handlerSava">
<Icon name="ssiadd" :size="14" />新建 <Icon name="ssibaocun" :size="14" />保存
</a-button> </a-button>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -133,12 +133,12 @@ export default { ...@@ -133,12 +133,12 @@ export default {
methods: { methods: {
//新建保存 //新建保存
handlerSava(){ handlerSava(){
this.$apis.CREATEPAY({ this.$apis.PAYORUPDATE({
...this.detailObj ...this.detailObj
}) })
.then((res) => { .then((res) => {
if (res.returnCode == "0000") { if (res.returnCode == "0000") {
this.$message.success("新建成功"); this.$message.success("保存成功");
} else { } else {
this.$message.error(res.returnMsg); this.$message.error(res.returnMsg);
} }
......
...@@ -123,34 +123,11 @@ const columns = [ ...@@ -123,34 +123,11 @@ const columns = [
{ title: "序号", dataIndex: "id", ellipsis: true, width: 150 }, { title: "序号", dataIndex: "id", ellipsis: true, width: 150 },
{ title: "工号", dataIndex: "doctorCode", ellipsis: true, width: 95 }, { title: "工号", dataIndex: "doctorCode", ellipsis: true, width: 95 },
{ title: "医生姓名", dataIndex: "doctorDesc", ellipsis: true, width: 125 }, { title: "医生姓名", dataIndex: "doctorDesc", ellipsis: true, width: 125 },
{ { title: "医生英文名", dataIndex: "doctorDescLang1", ellipsis: true, width: 135,},
title: "医生英文名", { title: "科室", dataIndex: "specialtyList", ellipsis: true, scopedSlots: { customRender: "specialtyList" }, width: 155,},
dataIndex: "doctorDescLang1", { title: "国籍", dataIndex: "country", ellipsis: true, width: 110, },
ellipsis: true,
width: 135,
},
{
title: "科室",
dataIndex: "specialtyList",
ellipsis: true,
scopedSlots: { customRender: "specialtyList" },
width: 155,
},
{
title: "国籍",
dataIndex: "country",
ellipsis: true,
width: 110,
},
{ title: "语言", dataIndex: "language", ellipsis: true, width: 120 }, { title: "语言", dataIndex: "language", ellipsis: true, width: 120 },
{ { title: "操作", dataIndex: "operation", scopedSlots: { customRender: "operation" }, fixed: "right", width: "200px", align: "center", },
title: "操作",
dataIndex: "operation",
scopedSlots: { customRender: "operation" },
fixed: "right",
width: "120px",
align: "center",
},
]; ];
export default { export default {
data() { data() {
......
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
</a-col> </a-col>
<a-col :md="12" class="none-label"> <a-col :md="12" class="none-label">
<a-form-model-item label="button"> <a-form-model-item label="button">
<a-button class="mar-left10" type="primary" @click="addNewEvt"> <a-button class="mar-left10" type="primary" @click="handlerSearch">
<Icon name="ssiadd" :size="14" />新建回款 <Icon name="ssisearch_active" :size="14" />查询
</a-button> </a-button>
<a-button class="mar-left10" type="primary" @click.stop="handlerReset"> <a-button class="mar-left10" type="primary" @click.stop="handlerReset">
<Icon name="ssireset" :size="14" />重置 <Icon name="ssireset" :size="14" />重置
</a-button> </a-button>
<a-button class="mar-left10" type="primary" @click="handlerSearch"> <a-button class="mar-left10" type="primary" @click="addNewEvt">
<Icon name="ssisearch_active" :size="14" />查询 <Icon name="ssiadd" :size="14" />新建回款
</a-button> </a-button>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
......
...@@ -19,15 +19,15 @@ ...@@ -19,15 +19,15 @@
</a-col> </a-col>
<a-col :lg="12" :sm="24" class="none-label"> <a-col :lg="12" :sm="24" class="none-label">
<a-form-model-item label="button"> <a-form-model-item label="button">
<!-- <a-button type="primary">导出</a-button> --> <a-button class="mar-left10" type="primary" @click="handlerSearch">
<a-button class="mar-left10" type="primary" @click="addNewEvt"> <Icon name="ssisearch_active" :size="14" />查询
<Icon name="ssiadd" :size="14" />新建EOB
</a-button> </a-button>
<a-button class="mar-left10" type="primary" @click.stop="handlerReset"> <a-button class="mar-left10" type="primary" @click.stop="handlerReset">
<Icon name="ssireset" :size="14" />重置 <Icon name="ssireset" :size="14" />重置
</a-button> </a-button>
<a-button class="mar-left10" type="primary" @click="handlerSearch"> <!-- <a-button type="primary">导出</a-button> -->
<Icon name="ssisearch_active" :size="14" />查询 <a-button class="mar-left10" type="primary" @click="addNewEvt">
<Icon name="ssiadd" :size="14" />新建EOB
</a-button> </a-button>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
......
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