|
@@ -10,6 +10,18 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
+ <el-form-item label="有效状态" prop="effectiveState">
|
|
|
+ <el-select v-model="queryParams.effectiveState" placeholder="" clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.mk_bo_effectivestate"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
<el-form-item label="产线" prop="productionLineName">
|
|
|
<el-popover-tree-select v-model="queryParams.productionLineName" valueKey='name' title="产线"
|
|
|
referName="PRODUCTLINE" :dataMapping="{ productionLine: 'id', productionLineName: 'name'}"
|
|
@@ -40,7 +52,7 @@
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8" style="float: right">
|
|
|
- <el-col :span="1.5">
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
@@ -58,7 +70,7 @@
|
|
|
<el-col :span="1.5">
|
|
|
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete">删除
|
|
|
</el-button>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<el-col :span="1.5">
|
|
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport">导出</el-button>
|
|
|
</el-col>
|
|
@@ -67,24 +79,20 @@
|
|
|
<el-table v-loading="loading" :data="gatherList" @selection-change="handleSelectionChange" size="mini" >
|
|
|
<el-table-column type="selection" align="center" />
|
|
|
<el-table-column label="序号" type="index" align="center" />
|
|
|
+ <el-table-column label="有效状态" width="150" align="center" prop="boState">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag
|
|
|
+ :options="dict.type.mk_bo_effectivestate"
|
|
|
+ :value="scope.row.effectiveState"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="医院名称" align="center" prop="customerName" width="220" />
|
|
|
<el-table-column label="产线" align="center" prop="productionLineName" width="150" />
|
|
|
- <el-table-column label="供应商名称" align="center" prop="rivalName" width="220" />
|
|
|
+ <el-table-column label="供应商" align="center" prop="rivalName" width="220" />
|
|
|
<el-table-column label="医院营收总额/年(万元)" align="center" prop="customerBulk" width="160" />
|
|
|
<el-table-column label="供应商体量/年(万元)" align="center" prop="rivalBulk" width="160" />
|
|
|
<el-table-column label="耗材体量/年(万元)" align="center" prop="consumableBulk" width="160" />
|
|
|
- <el-table-column label="品牌" align="center" prop="brand" width="220" />
|
|
|
- <el-table-column label="品牌份额(万元)" align="center" prop="brandPortion" width="140" />
|
|
|
- <el-table-column label="合同开始时间" align="center" prop="cooperationStart" width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.cooperationStart, '{y}-{m}-{d}') }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="合同结束时间" align="center" prop="cooperationEnd" width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.cooperationEnd, '{y}-{m}-{d}') }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column label="科室" align="center" prop="sectionName" width="90" />
|
|
|
<el-table-column label="科室关键人姓名" align="center" prop="sectionKeyPsnname" width="90" />
|
|
|
<el-table-column label="科室关键人联系电话" align="center" prop="sectionKeyPsnphone" width="120" />
|
|
@@ -101,9 +109,11 @@
|
|
|
<el-table-column label="最后修改时间" align="center" prop="updateTime" width="180" />
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180px" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="mini" type="text" icon="el-icon-search" @click="handleSee(scope.row)">查看</el-button>
|
|
|
- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
|
|
|
- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="handleSee(scope.row)">查看</el-button>
|
|
|
+ <!-- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button> -->
|
|
|
+ <el-button size="mini" type="text" @click="effectiveBtn(scope.row)">有效</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="loseEffectiveBtn(scope.row)">失效</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -154,31 +164,6 @@
|
|
|
</el-row>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="品牌" prop="brand">
|
|
|
- <el-popover-select-v2 v-model="form.brand" title="品牌" valueKey="name" referName="SUPPLIER_PARAM"
|
|
|
- :dataMapping="{ brandId: 'id', brand: 'name'}" :source.sync="form" placeholder="请输入品牌" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="品牌份额(万元)" prop="brandPortion" label-width="140px">
|
|
|
- <el-input-number v-model="form.brandPortion" :precision="2" :step="1"></el-input-number>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="合同开始时间" prop="cooperationStart" label-width="100px">
|
|
|
- <el-date-picker clearable v-model="form.cooperationStart" type="date" value-format="yyyy-MM-dd"
|
|
|
- placeholder="请选择合同开始时间">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="合同结束时间" prop="cooperationEnd" label-width="100px">
|
|
|
- <el-date-picker clearable v-model="form.cooperationEnd" type="date" value-format="yyyy-MM-dd"
|
|
|
- placeholder="请选择合同结束时间">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
<el-form-item label="科室" prop="section">
|
|
|
<el-popover-select-v2 v-model="form.sectionName" title="科室" valueKey="name" referName="MkCustomersDepartmentRule"
|
|
|
:dataMapping="{ section: 'id', sectionName: 'name'}" :source.sync="form" :queryParams="additionalCondition" placeholder="请选择科室" />
|
|
@@ -242,11 +227,14 @@
|
|
|
delGather,
|
|
|
addGather,
|
|
|
updateGather,
|
|
|
- upload
|
|
|
+ upload,
|
|
|
+ effective,
|
|
|
+ loseEffective
|
|
|
} from "@/api/business/spd/bo/gather";
|
|
|
|
|
|
export default {
|
|
|
name: "Gather",
|
|
|
+ dicts: ["mk_bo_effectivestate"],
|
|
|
components: {
|
|
|
ElPopoverSelectV2: () =>
|
|
|
import("@/components/popover-select-v2"),
|
|
@@ -579,6 +567,22 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ effectiveBtn(row){
|
|
|
+ this.$modal.loading("保存中");
|
|
|
+ effective(row.id).then(response => {
|
|
|
+ this.$modal.msgSuccess("设置成功");
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ loseEffectiveBtn(row){
|
|
|
+ this.$modal.loading("保存中");
|
|
|
+ loseEffective(row.id).then(response => {
|
|
|
+ this.$modal.msgSuccess("设置成功");
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
|