|
@@ -5,74 +5,42 @@
|
|
|
<el-row type="flex" class="row-bg" justify="space-around">
|
|
|
<el-col :span="4">
|
|
|
<div class="grid-content bg-purple">
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- plain
|
|
|
- icon="el-icon-back"
|
|
|
- size="small"
|
|
|
- @click="handleBack"
|
|
|
- >返回</el-button
|
|
|
- >
|
|
|
+ <el-button type="info" plain icon="el-icon-back" size="small" @click="handleBack">返回</el-button>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="16">
|
|
|
<div class="grid-content bg-purple-light">
|
|
|
<el-descriptions :colon="false" :size="medium">
|
|
|
<el-descriptions-item>
|
|
|
- <dev style="width: 200px; height: 60px; font-size: 18px" v-show="!showCustomer">{{form.basic.boName.split('-')[0] + '-' + form.basic.boName.split('-')[1].substring(0,2) + '******' + form.basic.boName.split('-')[1].substring(form.basic.boName.split('-')[1].length - 2,form.basic.boName.split('-')[1].length) + '-' + form.basic.boName.split('-')[2]}}</dev>
|
|
|
- <dev style="width: 200px; height: 60px; font-size: 18px" v-show="showCustomer">{{form.basic.boName}}</dev>
|
|
|
- <el-button size="mini" type="text" icon="el-icon-view" @click="customerButton"/>
|
|
|
+ <dev style="width: 200px; height: 60px; font-size: 18px" v-show="!showCustomer">
|
|
|
+ {{ form.basic.boName.split('-')[0] + '-' + form.basic.boName.split('-')[1].substring(0, 2) + '******' +
|
|
|
+ form.basic.boName.split('-')[1].substring(form.basic.boName.split('-')[1].length -
|
|
|
+ 2, form.basic.boName.split('-')[1].length) + '-' + form.basic.boName.split('-')[2] }}</dev>
|
|
|
+ <dev style="width: 200px; height: 60px; font-size: 18px" v-show="showCustomer">{{ form.basic.boName }}</dev>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-view" @click="customerButton" />
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="商机状态:" style="margin-left:27px">
|
|
|
<div v-for="dict in dict.type.mk_bo_state" v-if="form.basic.boState == dict.value">
|
|
|
- <div>{{dict.label}}</div>
|
|
|
+ <div>{{ dict.label }}</div>
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="赢丢单状态:">
|
|
|
<div v-for="dict in dict.type.mk_bo_winstate" v-if="form.basic.winningState == dict.value">
|
|
|
- {{dict.label}}
|
|
|
+ {{ dict.label }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- plain
|
|
|
- icon="el-icon-delete-solid"
|
|
|
- size="small"
|
|
|
- @click="handleWinningState('1','关闭')"
|
|
|
- v-if="(showClose && this.form.basic.winningState == 0) && this.boAuthority.boAuthority.boClose"
|
|
|
- >关闭</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- plain
|
|
|
- icon="el-icon-close"
|
|
|
- size="small"
|
|
|
- @click="handleWinningState('2','丢单')"
|
|
|
- v-if="(showLose && this.form.basic.winningState == 0) && this.boAuthority.boAuthority.boLose"
|
|
|
- >丢单</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- plain
|
|
|
- icon="el-icon-check"
|
|
|
- size="small"
|
|
|
- @click="handleWinningState('3','赢单')"
|
|
|
- v-if="(showWin && this.form.basic.winningState == 0) && this.boAuthority.boAuthority.boWin"
|
|
|
- >赢单</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- plain
|
|
|
- icon="el-icon-user"
|
|
|
- size="small"
|
|
|
- @click="allocation()"
|
|
|
- v-if="this.boAuthority.post == 0 && this.form.basic.winningState == 0"
|
|
|
- >分配</el-button
|
|
|
- >
|
|
|
+ <el-button type="info" plain icon="el-icon-delete-solid" size="small" @click="handleWinningState('1', '关闭')"
|
|
|
+ v-if="(showClose && this.form.basic.winningState == 0) && this.boAuthority.boAuthority.boClose">关闭</el-button>
|
|
|
+ <el-button type="info" plain icon="el-icon-close" size="small" @click="handleWinningState('2', '丢单')"
|
|
|
+ v-if="(showLose && this.form.basic.winningState == 0) && this.boAuthority.boAuthority.boLose">丢单</el-button>
|
|
|
+ <el-button type="info" plain icon="el-icon-check" size="small" @click="handleWinningState('3', '赢单')"
|
|
|
+ v-if="(showWin && this.form.basic.winningState == 0) && this.boAuthority.boAuthority.boWin">赢单</el-button>
|
|
|
+ <el-button type="info" plain icon="el-icon-user" size="small" @click="allocation()"
|
|
|
+ v-if="this.boAuthority.post == 0 && this.form.basic.winningState == 0">分配</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<!-- 主多页签 -->
|
|
@@ -82,7 +50,8 @@
|
|
|
<el-divider content-position="left" style="font-size: 30px">
|
|
|
<dev style="width: 50px; height: 40px; font-size: 18px">项目流程</dev>
|
|
|
</el-divider>
|
|
|
- <Process :key="timer" :form="form.basic" :boAuthority="boAuthority" :boStage="boStage" :dict="dict" @reload="reload"/>
|
|
|
+ <Process :key="timer" :form="form.basic" :boAuthority="boAuthority" :boStage="boStage" :dict="dict"
|
|
|
+ @reload="reload" />
|
|
|
<!-- 基本信息 -->
|
|
|
<el-divider content-position="left">
|
|
|
<dev style="width: 50px; height: 40px; font-size: 18px">基本信息</dev>
|
|
@@ -90,36 +59,37 @@
|
|
|
<el-descriptions>
|
|
|
<el-descriptions-item label="商机来源">
|
|
|
<div v-for="dict in dict.type.mk_bo_source" v-if="form.basic.boSource == dict.value">
|
|
|
- {{dict.label}}
|
|
|
+ {{ dict.label }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="商机类型">
|
|
|
<div v-for="dict in dict.type.mk_bo_type" v-if="form.basic.boType == dict.value">
|
|
|
- {{dict.label}}
|
|
|
+ {{ dict.label }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="客户">
|
|
|
<dev v-show="!showCustomer">
|
|
|
- {{form.basic.customerName.substring(0,2) + '******' + form.basic.customerName.substring(form.basic.customerName.length - 2,form.basic.customerName.length)}}
|
|
|
+ {{ form.basic.customerName.substring(0, 2) + '******' +
|
|
|
+ form.basic.customerName.substring(form.basic.customerName.length - 2, form.basic.customerName.length) }}
|
|
|
</dev>
|
|
|
<dev v-show="showCustomer">
|
|
|
- {{form.basic.customerName}}
|
|
|
+ {{ form.basic.customerName }}
|
|
|
</dev>
|
|
|
- <el-button size="mini" type="text" icon="el-icon-view" @click="customerButton"/>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-view" @click="customerButton" />
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item :label="totalRevenue">
|
|
|
<div v-for="dict in dict.type.mk_bo_total_revenue" v-if="form.basic.totalHosRevenue == dict.value">
|
|
|
- {{dict.label}}
|
|
|
+ {{ dict.label }}
|
|
|
</div>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item :label="estimate">
|
|
|
- {{form.basic.hosDiscreetValue}}
|
|
|
+ {{ form.basic.hosDiscreetValue }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="赢单率">
|
|
|
- {{form.basic.winningRate}}
|
|
|
+ {{ form.basic.winningRate }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="商机内容">
|
|
|
- {{form.basic.boContent}}
|
|
|
+ {{ form.basic.boContent }}
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
<!-- 其它信息 -->
|
|
@@ -128,58 +98,43 @@
|
|
|
</el-divider>
|
|
|
<el-descriptions>
|
|
|
<el-descriptions-item label="销售组织">
|
|
|
- {{form.basic.marketingOrganizingName}}
|
|
|
+ {{ form.basic.marketingOrganizingName }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="销售区域">
|
|
|
- {{form.basic.marketingAreaName}}
|
|
|
+ {{ form.basic.marketingAreaName }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="部门">
|
|
|
- {{form.basic.deptName}}
|
|
|
+ {{ form.basic.deptName }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="商机负责人">
|
|
|
- {{form.basic.principalName}}
|
|
|
+ {{ form.basic.principalName }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="创建人">
|
|
|
- {{form.basic.creatorName}}
|
|
|
+ {{ form.basic.creatorName }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="创建时间">
|
|
|
- {{form.basic.createTime}}
|
|
|
+ {{ form.basic.createTime }}
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</el-tab-pane>
|
|
|
<!-- 商机任务页签 -->
|
|
|
<el-tab-pane label="商机任务" name="second">
|
|
|
- <TaskList
|
|
|
- :source="'BoDetails'"
|
|
|
- :bo="this.form.basic"
|
|
|
- :boAuthority="this.boAuthority"
|
|
|
- v-if="masterTabs == 'second'"
|
|
|
- />
|
|
|
+ <TaskList :source="'BoDetails'" :bo="this.form.basic" :boAuthority="this.boAuthority"
|
|
|
+ v-if="masterTabs == 'second'" />
|
|
|
</el-tab-pane>
|
|
|
<!-- 联系人页签 -->
|
|
|
<el-tab-pane label="商机联系人" name="third">
|
|
|
- <ContactList
|
|
|
- :source="'BoDetails'"
|
|
|
- :bo="this.form.basic"
|
|
|
- :boAuthority="this.boAuthority"
|
|
|
- v-if="masterTabs == 'third'"
|
|
|
- />
|
|
|
+ <ContactList :source="'BoDetails'" :bo="this.form.basic" :boAuthority="this.boAuthority"
|
|
|
+ v-if="masterTabs == 'third'" />
|
|
|
</el-tab-pane>
|
|
|
<!-- 附件页签 -->
|
|
|
<el-tab-pane label="附件信息" name="fourth">
|
|
|
- <AccessoryList
|
|
|
- :source="'BoDetails'"
|
|
|
- :bo="this.form.basic"
|
|
|
- :boAuthority="this.boAuthority"
|
|
|
- v-if="masterTabs == 'fourth'"
|
|
|
- />
|
|
|
+ <AccessoryList :source="'BoDetails'" :bo="this.form.basic" :boAuthority="this.boAuthority"
|
|
|
+ v-if="masterTabs == 'fourth'" />
|
|
|
</el-tab-pane>
|
|
|
<!-- 模板文件页签 -->
|
|
|
<el-tab-pane label="模板文件下载" name="five">
|
|
|
- <FileTemplate
|
|
|
- :botype="form.basic.boType"
|
|
|
- v-if="masterTabs == 'five'"
|
|
|
- />
|
|
|
+ <FileTemplate :botype="form.basic.boType" v-if="masterTabs == 'five'" />
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
|
|
@@ -188,64 +143,46 @@
|
|
|
<el-form ref="wsform" :model="winningStateData" :rules="winningStateDataRules" label-width="140px">
|
|
|
<!-- 赢单 -->
|
|
|
<el-form-item label="赢单日期" prop="winningStateDate" v-if="this.winningStateData.winningState == '3'">
|
|
|
- <el-date-picker clearable
|
|
|
- v-model="winningStateData.winningStateDate"
|
|
|
- type="date"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="请选择赢单日期"
|
|
|
- style="width:220px"
|
|
|
- >
|
|
|
+ <el-date-picker clearable v-model="winningStateData.winningStateDate" type="date" value-format="yyyy-MM-dd"
|
|
|
+ placeholder="请选择赢单日期" style="width:220px">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="赢单金额(万元)" prop="winningStateMoney" v-if="this.winningStateData.winningState == '3'">
|
|
|
- <el-input type="number" v-model="winningStateData.winningStateMoney" style="width:220px" placeholder="赢单金额"/>
|
|
|
+ <el-input type="number" v-model="winningStateData.winningStateMoney" style="width:220px" placeholder="赢单金额" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="赢单原因" prop="winningStateCause" v-if="this.winningStateData.winningState == '3'">
|
|
|
+ <el-form-item label="赢单原因" prop="winningStateCause" v-if="this.winningStateData.winningState == '3'">
|
|
|
<el-select v-model="winningStateData.winningStateCause" placeholder="请输入">
|
|
|
- <el-option
|
|
|
- v-for="dict in dict.type.mk_bo_wincause"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.label"
|
|
|
- ></el-option>
|
|
|
+ <el-option v-for="dict in dict.type.mk_bo_wincause" :key="dict.value" :label="dict.label"
|
|
|
+ :value="dict.label"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="赢单备注" prop="winningStateRemark" v-if="this.winningStateData.winningState == '3'">
|
|
|
- <el-input v-model="winningStateData.winningStateRemark" style="width:220px" placeholder="请输入赢单备注"/>
|
|
|
+ <el-input v-model="winningStateData.winningStateRemark" style="width:220px" placeholder="请输入赢单备注" />
|
|
|
</el-form-item>
|
|
|
<!-- 丢单 -->
|
|
|
<el-form-item label="丢单日期" prop="winningStateDate" v-if="this.winningStateData.winningState == '2'">
|
|
|
- <el-date-picker clearable
|
|
|
- v-model="winningStateData.winningStateDate"
|
|
|
- type="date"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="丢单日期"
|
|
|
- style="width:220px"
|
|
|
- >
|
|
|
+ <el-date-picker clearable v-model="winningStateData.winningStateDate" type="date" value-format="yyyy-MM-dd"
|
|
|
+ placeholder="丢单日期" style="width:220px">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="丢单金额(万元)" prop="winningStateMoney" v-if="this.winningStateData.winningState == '2'">
|
|
|
- <el-input type="number" v-model="winningStateData.winningStateMoney" style="width:220px" placeholder="丢单金额"/>
|
|
|
+ <el-input type="number" v-model="winningStateData.winningStateMoney" style="width:220px" placeholder="丢单金额" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="丢单原因" prop="winningStateCause" v-if="this.winningStateData.winningState == '2'">
|
|
|
+ <el-form-item label="丢单原因" prop="winningStateCause" v-if="this.winningStateData.winningState == '2'">
|
|
|
<el-select v-model="winningStateData.winningStateCause" placeholder="请输入">
|
|
|
- <el-option
|
|
|
- v-for="dict in dict.type.mk_bo_losecause"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.label"
|
|
|
- ></el-option>
|
|
|
+ <el-option v-for="dict in dict.type.mk_bo_losecause" :key="dict.value" :label="dict.label"
|
|
|
+ :value="dict.label"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="丢单备注" prop="winningStateRemark" v-if="this.winningStateData.winningState == '2'">
|
|
|
- <el-input v-model="winningStateData.winningStateRemark" style="width:220px" placeholder="请输入丢单备注"/>
|
|
|
+ <el-input v-model="winningStateData.winningStateRemark" style="width:220px" placeholder="请输入丢单备注" />
|
|
|
</el-form-item>
|
|
|
<!-- 关闭 -->
|
|
|
<el-form-item label="关闭原因" prop="winningStateCause" v-if="this.winningStateData.winningState == '1'">
|
|
|
- <el-input v-model="winningStateData.winningStateCause" style="width:220px" placeholder="关闭原因"/>
|
|
|
+ <el-input v-model="winningStateData.winningStateCause" style="width:220px" placeholder="关闭原因" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="关闭备注" prop="winningStateRemark" v-if="this.winningStateData.winningState == '1'">
|
|
|
- <el-input v-model="winningStateData.winningStateRemark" style="width:220px" placeholder="关闭备注"/>
|
|
|
+ <el-input v-model="winningStateData.winningStateRemark" style="width:220px" placeholder="关闭备注" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -255,38 +192,21 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 分配商机负责人对话框 -->
|
|
|
- <el-dialog
|
|
|
- title="分配商机负责人"
|
|
|
- :visible.sync="allocationPopover"
|
|
|
- width="500px"
|
|
|
- append-to-body
|
|
|
- >
|
|
|
+ <el-dialog title="分配商机负责人" :visible.sync="allocationPopover" width="500px" append-to-body>
|
|
|
<el-form ref="afform" :model="allocationForm" :rules="allocationFormRules" label-width="140px">
|
|
|
<el-form-item label="新负责人" prop="allocationStaff">
|
|
|
- <dr-input-dialog
|
|
|
- v-model="allocationForm.allocationStaffName"
|
|
|
- title="员工"
|
|
|
- type="CONTACTS_PARAM"
|
|
|
- :dataMapping="{
|
|
|
- allocationStaff: 'id',
|
|
|
- allocationStaffName: 'name',
|
|
|
- }"
|
|
|
- :source.sync="allocationForm"
|
|
|
- ></dr-input-dialog>
|
|
|
+ <dr-popover-select v-model="allocationForm.allocationStaffName" title="员工" type="CONTACTS_PARAM" :dataMapping="{
|
|
|
+ allocationStaff: 'id',
|
|
|
+ allocationStaffName: 'name',
|
|
|
+ }" :source.sync="allocationForm"></dr-popover-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="是否将您作为参与人" prop="isParticipant">
|
|
|
- <el-radio v-model="allocationForm.isParticipant" :label='true'
|
|
|
- >是</el-radio
|
|
|
- >
|
|
|
- <el-radio v-model="allocationForm.isParticipant" :label='false'
|
|
|
- >否</el-radio
|
|
|
- >
|
|
|
+ <el-radio v-model="allocationForm.isParticipant" :label='true'>是</el-radio>
|
|
|
+ <el-radio v-model="allocationForm.isParticipant" :label='false'>否</el-radio>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitAllocationForm"
|
|
|
- >确 定</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" @click="submitAllocationForm">确 定</el-button>
|
|
|
<el-button @click="cancelAllocation">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -306,14 +226,13 @@ import ContactList from "../contact/contactList.vue";
|
|
|
import AccessoryList from "../basic/accessoryList.vue";
|
|
|
import FileTemplate from "../filetemplate/botabs.vue";
|
|
|
import Process from '../basic/process.vue';
|
|
|
-import DrInputDialog from "@/components/input-dialog/index.vue";
|
|
|
|
|
|
|
|
|
export default {
|
|
|
//名称
|
|
|
name: "BoDetails",
|
|
|
//注册引入的组件
|
|
|
- components: { TaskList, ContactList,AccessoryList,FileTemplate, Process,DrInputDialog,},
|
|
|
+ components: { TaskList, ContactList, AccessoryList, FileTemplate, Process, DrInputDialog, },
|
|
|
//平台枚举
|
|
|
dicts: [
|
|
|
"mk_bo_type",
|
|
@@ -336,7 +255,7 @@ export default {
|
|
|
//赢单状态
|
|
|
winningState: null,
|
|
|
//赢单状态数据
|
|
|
- winningStateData:{},
|
|
|
+ winningStateData: {},
|
|
|
//赢单状态表单校验
|
|
|
// 赢单表单校验
|
|
|
winningStateDataRules: {
|
|
@@ -358,15 +277,15 @@ export default {
|
|
|
accessory: [],
|
|
|
},
|
|
|
//权限数据
|
|
|
- boAuthority:{},
|
|
|
+ boAuthority: {},
|
|
|
//流程节点数据
|
|
|
- boStage:[],
|
|
|
+ boStage: [],
|
|
|
//关单按钮是否显示
|
|
|
- showClose:false,
|
|
|
+ showClose: false,
|
|
|
//赢单按钮是否显示
|
|
|
- showWin:false,
|
|
|
+ showWin: false,
|
|
|
//丢单按钮是否显示
|
|
|
- showLose:false,
|
|
|
+ showLose: false,
|
|
|
//重新加载子组件参数
|
|
|
timer: "",
|
|
|
//是否显示客户
|
|
@@ -387,16 +306,16 @@ export default {
|
|
|
//分配弹窗
|
|
|
allocationPopover: false,
|
|
|
//营收总额
|
|
|
- totalRevenue:"***营收总额",
|
|
|
+ totalRevenue: "***营收总额",
|
|
|
//预估额
|
|
|
- estimate:"***预估额(万元)",
|
|
|
+ estimate: "***预估额(万元)",
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
'form.basic.boType': {
|
|
|
handler(newVal, oldVal) {
|
|
|
- console.log('newVal',newVal);
|
|
|
- switch(newVal) {
|
|
|
+ console.log('newVal', newVal);
|
|
|
+ switch (newVal) {
|
|
|
case '0':
|
|
|
this.totalRevenue = "医院营收总额";
|
|
|
this.estimate = "医院耗材预估值(万元)"
|
|
@@ -422,7 +341,7 @@ export default {
|
|
|
this.estimate = "工程预估额(万元)"
|
|
|
break;
|
|
|
default:
|
|
|
- break;
|
|
|
+ break;
|
|
|
}
|
|
|
},
|
|
|
immediate: true,
|
|
@@ -455,7 +374,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//赢单状态按钮
|
|
|
- handleWinningState(winningState,title){
|
|
|
+ handleWinningState(winningState, title) {
|
|
|
this.resetWinningStateData();
|
|
|
this.winningStateOpen = true;
|
|
|
this.winningStateTitle = title;
|
|
@@ -463,7 +382,7 @@ export default {
|
|
|
this.winningStateData.boId = this.form.basic.id;
|
|
|
this.winningStateData.winningStateDate = new Date();
|
|
|
},
|
|
|
- resetWinningStateData(){
|
|
|
+ resetWinningStateData() {
|
|
|
this.winningStateData = {
|
|
|
boId: null,
|
|
|
winningState: null,
|
|
@@ -497,11 +416,11 @@ export default {
|
|
|
// this.allocationForm.boId = parseInt(this.form.basic.id);
|
|
|
// this.allocationForm.allocationStaff = parseInt(this.allocationForm.allocationStaff);
|
|
|
this.allocationForm.boId = this.form.basic.id;
|
|
|
- console.log('this.allocationForm',this.allocationForm);
|
|
|
+ console.log('this.allocationForm', this.allocationForm);
|
|
|
this.$refs["afform"].validate(valid => {
|
|
|
if (valid) {
|
|
|
allocationParticipant(this.allocationForm).then(response => {
|
|
|
- console.log('response',response);
|
|
|
+ console.log('response', response);
|
|
|
this.$modal.msgSuccess("分配成功");
|
|
|
this.allocationPopover = false;
|
|
|
this.reload();
|
|
@@ -514,7 +433,7 @@ export default {
|
|
|
this.allocationPopover = false;
|
|
|
},
|
|
|
//重新加载数据
|
|
|
- reload(){
|
|
|
+ reload() {
|
|
|
//加载基础数据
|
|
|
getBasic(this.$route.params.id).then((response) => {
|
|
|
this.form.basic = response.data;
|
|
@@ -530,27 +449,27 @@ export default {
|
|
|
var curNode = 0;
|
|
|
var signContract = 999;
|
|
|
for (var i = 0; i < this.boStage.length; i++) {
|
|
|
- if(this.boStage[i].code == this.form.basic.boStage){
|
|
|
+ if (this.boStage[i].code == this.form.basic.boStage) {
|
|
|
curNode = i;
|
|
|
}
|
|
|
- if(this.boStage[i].name.toString().includes('审核')){
|
|
|
+ if (this.boStage[i].name.toString().includes('审核')) {
|
|
|
auditNode = i;
|
|
|
}
|
|
|
- if(this.boStage[i].name.toString().includes('合同')){
|
|
|
+ if (this.boStage[i].name.toString().includes('合同')) {
|
|
|
signContract = i;
|
|
|
}
|
|
|
}
|
|
|
- this.showClose=false;
|
|
|
- this.showLose=false;
|
|
|
- this.showWin=false;
|
|
|
- if(curNode < auditNode){
|
|
|
- this.showClose=true;
|
|
|
+ this.showClose = false;
|
|
|
+ this.showLose = false;
|
|
|
+ this.showWin = false;
|
|
|
+ if (curNode < auditNode) {
|
|
|
+ this.showClose = true;
|
|
|
}
|
|
|
- if(curNode > auditNode){
|
|
|
- this.showLose=true;
|
|
|
+ if (curNode > auditNode) {
|
|
|
+ this.showLose = true;
|
|
|
}
|
|
|
- if(curNode >= signContract){
|
|
|
- this.showWin=true;
|
|
|
+ if (curNode >= signContract) {
|
|
|
+ this.showWin = true;
|
|
|
}
|
|
|
//确定数据加载完成,子组件可以开始展示
|
|
|
this.timer = new Date().getTime();
|
|
@@ -558,7 +477,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//是否显示客户
|
|
|
- customerButton(){
|
|
|
+ customerButton() {
|
|
|
this.showCustomer = !this.showCustomer;
|
|
|
},
|
|
|
},
|
|
@@ -574,33 +493,33 @@ export default {
|
|
|
//加载流程节点数据
|
|
|
getBoNodeListByType(this.form.basic.boType).then(response => {
|
|
|
this.boStage = response.rows;
|
|
|
- console.log('this.boStage',this.boStage);
|
|
|
+ console.log('this.boStage', this.boStage);
|
|
|
//赢丢单按钮显示逻辑
|
|
|
var auditNode = 999;
|
|
|
var curNode = 0;
|
|
|
var signContract = 999;
|
|
|
for (var i = 0; i < this.boStage.length; i++) {
|
|
|
- if(this.boStage[i].code == this.form.basic.boStage){
|
|
|
+ if (this.boStage[i].code == this.form.basic.boStage) {
|
|
|
curNode = i;
|
|
|
}
|
|
|
- if(this.boStage[i].name.toString().includes('审核')){
|
|
|
+ if (this.boStage[i].name.toString().includes('审核')) {
|
|
|
auditNode = i;
|
|
|
}
|
|
|
- if(this.boStage[i].name.toString().includes('合同')){
|
|
|
+ if (this.boStage[i].name.toString().includes('合同')) {
|
|
|
signContract = i;
|
|
|
}
|
|
|
}
|
|
|
- this.showClose=false;
|
|
|
- this.showLose=false;
|
|
|
- this.showWin=false;
|
|
|
- if(curNode < auditNode){
|
|
|
- this.showClose=true;
|
|
|
+ this.showClose = false;
|
|
|
+ this.showLose = false;
|
|
|
+ this.showWin = false;
|
|
|
+ if (curNode < auditNode) {
|
|
|
+ this.showClose = true;
|
|
|
}
|
|
|
- if(curNode > auditNode){
|
|
|
- this.showLose=true;
|
|
|
+ if (curNode > auditNode) {
|
|
|
+ this.showLose = true;
|
|
|
}
|
|
|
- if(curNode >= signContract){
|
|
|
- this.showWin=true;
|
|
|
+ if (curNode >= signContract) {
|
|
|
+ this.showWin = true;
|
|
|
}
|
|
|
//确定数据加载完成,子组件可以开始展示
|
|
|
this.timer = new Date().getTime();
|
|
@@ -612,35 +531,35 @@ export default {
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
-.md-content >>> .el-form-item {
|
|
|
+.md-content>>>.el-form-item {
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
|
|
|
-.md-content >>> .el-tabs--border-card > .el-tabs__content {
|
|
|
+.md-content>>>.el-tabs--border-card>.el-tabs__content {
|
|
|
padding-bottom: 8px;
|
|
|
}
|
|
|
|
|
|
-.md-content .md-auditInfo >>> .el-form-item {
|
|
|
+.md-content .md-auditInfo>>>.el-form-item {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
-.md-main >>> .el-form-item,
|
|
|
-.md-vice >>> .el-form-item {
|
|
|
+.md-main>>>.el-form-item,
|
|
|
+.md-vice>>>.el-form-item {
|
|
|
width: 100%;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
-.md-main >>> .el-form-item__label,
|
|
|
-.md-vice >>> .el-form-item__label {
|
|
|
+.md-main>>>.el-form-item__label,
|
|
|
+.md-vice>>>.el-form-item__label {
|
|
|
width: 40%;
|
|
|
}
|
|
|
|
|
|
-.md-main >>> .el-form-item__content,
|
|
|
-.md-md-vice >>> .el-form-item__content {
|
|
|
+.md-main>>>.el-form-item__content,
|
|
|
+.md-md-vice>>>.el-form-item__content {
|
|
|
width: 60%;
|
|
|
}
|
|
|
|
|
|
-.md-content >>> .el-form-item__label {
|
|
|
+.md-content>>>.el-form-item__label {
|
|
|
font-weight: normal;
|
|
|
/* text-align: left;
|
|
|
width: 28%; */
|
|
@@ -656,11 +575,11 @@ export default {
|
|
|
/* Firefox */
|
|
|
}
|
|
|
|
|
|
-.md-main >>> .material-table {
|
|
|
+.md-main>>>.material-table {
|
|
|
height: 100%;
|
|
|
}
|
|
|
|
|
|
-.md-vice >>> .material-table {
|
|
|
+.md-vice>>>.material-table {
|
|
|
height: 140px;
|
|
|
overflow-y: auto;
|
|
|
overflow-x: auto;
|