|
@@ -11,7 +11,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="商机类型" prop="boType">
|
|
|
- <el-select v-model="form.boType" placeholder="请输入商机类型">
|
|
|
+ <el-select v-model="form.boType" placeholder="请输入商机类型" clearable>
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.mk_bo_type"
|
|
|
:key="dict.value"
|
|
@@ -20,8 +20,8 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="商机状态" prop="boState">
|
|
|
- <el-select v-model="queryParams.boState" placeholder="请输入商机状态">
|
|
|
+ <el-form-item label="商机状态" prop="boState" clearable>
|
|
|
+ <el-select v-model="queryParams.boState" placeholder="请输入商机状态" clearable>
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.mk_bo_state"
|
|
|
:key="dict.value"
|
|
@@ -31,7 +31,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="商机来源" prop="boSource">
|
|
|
- <el-select v-model="queryParams.boSource" placeholder="请输入商机来源">
|
|
|
+ <el-select v-model="queryParams.boSource" placeholder="请输入商机来源" clearable>
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.mk_bo_source"
|
|
|
:key="dict.value"
|
|
@@ -41,7 +41,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="商机阶段" prop="boStage">
|
|
|
- <el-select v-model="queryParams.boStage" placeholder="请输入商机阶段">
|
|
|
+ <el-select v-model="queryParams.boStage" placeholder="请输入商机阶段" clearable>
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.mk_bo_stage"
|
|
|
:key="dict.value"
|
|
@@ -134,7 +134,7 @@
|
|
|
<el-table-column label="客户名称" align="center" prop="customerName" />
|
|
|
<el-table-column label="医院耗材预估值(万元)" align="center" prop="hosDiscreetValue" />
|
|
|
<el-table-column label="赢单率" align="center" prop="winningRate" />
|
|
|
- <el-table-column label="销售区域" align="center" prop="marketingArea" />
|
|
|
+ <el-table-column label="销售区域" align="center" prop="marketingAreaName" />
|
|
|
<el-table-column label="销售组织" align="center" prop="marketingOrganizingName" />
|
|
|
<el-table-column label="部门" align="center" prop="deptName" />
|
|
|
<el-table-column label="商机负责人" align="center" prop="principalName" />
|
|
@@ -259,8 +259,10 @@
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="销售区域" prop="marketingArea">
|
|
|
- <el-input v-model="form.marketingArea" placeholder="请输入销售区域" />
|
|
|
+ <el-form-item label="销售区域" prop="marketingAreaName">
|
|
|
+ <el-input v-model="form.marketingAreaName" placeholder="请输入销售区域">
|
|
|
+ <el-button slot="append" icon="el-icon-more" @click="refereSaleaea"></el-button>
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
@@ -297,6 +299,12 @@
|
|
|
@doSubmit="customerSelectionsToInput"
|
|
|
:single="true"
|
|
|
/>
|
|
|
+ <!-- 销售区域参照 -->
|
|
|
+ <SaleaeaRef
|
|
|
+ ref="saleaeaSelect"
|
|
|
+ @doSubmit="saleaeaSelectionsToInput"
|
|
|
+ :single="true"
|
|
|
+ />
|
|
|
<!-- 组织参照 -->
|
|
|
<OrgRef
|
|
|
ref="orgSelect"
|
|
@@ -321,6 +329,7 @@
|
|
|
<script>
|
|
|
import { listBasic, getBasic, addBasic, updateBasic, delBasic } from "@/api/business/spd/bo/basic";
|
|
|
import CustomerRef from '@/views/business/spd/bo/refer/customer/index.vue';
|
|
|
+import SaleaeaRef from '@/views/business/spd/bo/refer/saleaea/index.vue';
|
|
|
import OrgRef from '@/views/business/spd/bo/refer/org/index.vue';
|
|
|
import DeptRef from '@/views/business/spd/bo/refer/dept/index.vue';
|
|
|
import StaffRef from '@/views/business/spd/bo/refer/staff/index.vue';
|
|
@@ -328,7 +337,7 @@ import StaffRef from '@/views/business/spd/bo/refer/staff/index.vue';
|
|
|
export default {
|
|
|
name: "Basic",
|
|
|
dicts: ['mk_bo_type','mk_bo_state','mk_bo_stage','mk_bo_source','mk_bo_total_revenue'],
|
|
|
- components: {CustomerRef,OrgRef,DeptRef,StaffRef},
|
|
|
+ components: {CustomerRef,SaleaeaRef,OrgRef,DeptRef,StaffRef},
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
@@ -354,25 +363,33 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
id: null,
|
|
|
- boName: null,
|
|
|
- boType: null,
|
|
|
- boState: null,
|
|
|
boSource: null,
|
|
|
+ boState: null,
|
|
|
boStage: null,
|
|
|
+ boName: null,
|
|
|
+ referrer: null,
|
|
|
+ referrerName: null,
|
|
|
+ boType: null,
|
|
|
+ customerName: null,
|
|
|
totalHosRevenue: null,
|
|
|
- projectApproval: null,
|
|
|
- startWinningRate: null,
|
|
|
- endWinningRate: null,
|
|
|
- biddingDocumentsPass: null,
|
|
|
- startConSignTime: null,
|
|
|
- endConSignTime: null,
|
|
|
+ hosDiscreetValue: null,
|
|
|
boContent: null,
|
|
|
+ marketingArea: null,
|
|
|
+ marketingAreaName: null,
|
|
|
+ marketingOrganizing: null,
|
|
|
marketingOrganizingName: null,
|
|
|
marketingArea: null,
|
|
|
+ dept: null,
|
|
|
deptName: null,
|
|
|
+ principal: null,
|
|
|
+ principalName: null,
|
|
|
+ delFlag: null,
|
|
|
+ tenantId: null,
|
|
|
+ revision: null,
|
|
|
createBy: null,
|
|
|
- startCreateTime: null,
|
|
|
- endCreateTime: null,
|
|
|
+ createTime: null,
|
|
|
+ updateBy: null,
|
|
|
+ updateTime: null
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
@@ -471,6 +488,8 @@ export default {
|
|
|
totalHosRevenue: null,
|
|
|
hosDiscreetValue: null,
|
|
|
boContent: null,
|
|
|
+ marketingArea: null,
|
|
|
+ marketingAreaName: null,
|
|
|
marketingOrganizing: null,
|
|
|
marketingOrganizingName: null,
|
|
|
marketingArea: null,
|
|
@@ -576,6 +595,15 @@ export default {
|
|
|
this.form.customer = selections[0].id;
|
|
|
this.form.customerName = selections[0].name;
|
|
|
},
|
|
|
+ // 触发销售区域参照列表
|
|
|
+ refereSaleaea() {
|
|
|
+ this.$refs.saleaeaSelect.init()
|
|
|
+ },
|
|
|
+ //销售区域参照列表选择后
|
|
|
+ saleaeaSelectionsToInput (selections) {
|
|
|
+ this.form.marketingArea = selections[0].id;
|
|
|
+ this.form.marketingAreaName = selections[0].name;
|
|
|
+ },
|
|
|
// 触发组织参照列表
|
|
|
refereOrg() {
|
|
|
this.$refs.orgSelect.init()
|