|
@@ -33,160 +33,228 @@
|
|
|
<Del class="inline-16" :idName="20221121202502" :id="mainData.sa_contractid" idKey="sa_contractids" v-if="tool.checkAuth($route.name,'toVoid') && (mainData.status == '新建' || mainData.status == '已终止' || mainData.status == '已过期') && isLeader"/>
|
|
|
</div>
|
|
|
<div slot="slot0" >
|
|
|
- <!--项目产品明细折扣表-->
|
|
|
- <productBillno :data="mainData" :isLeader="isLeader" ref="billno" @priceChange="queryMainData($route.query.id)" @delSuccess="queryMainData" @onSuccess="productAdd" v-if="mainData.type == '项目'">
|
|
|
- <template v-slot:edit="scope">
|
|
|
- </template>
|
|
|
- <template v-slot:del="scope">
|
|
|
- </template>
|
|
|
- <template v-slot:cooperate="scope">
|
|
|
- <el-button :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productBillManage') && isLeader">同步合作协议</el-button>
|
|
|
- <el-dialog title="同步合作协议" :visible.sync="cooperateVisible" append-to-body width="703px">
|
|
|
- <span style="color: #8C8C8C;font-size: 14px">请选择同步更新经销商/直销客户合作协议产品的方式:</span>
|
|
|
- <el-form :model="cooperateForm" style="margin-top: 20px">
|
|
|
- <el-radio v-model="cooperateForm.isadd" label="1" style="margin-bottom: 20px">
|
|
|
- <span style="font-size: 16px;color: #333333">同步添加合作协议产品</span><br><br>
|
|
|
- <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
+ <div v-if="mainData.type == '项目'">
|
|
|
+ <!--项目产品明细折扣表-->
|
|
|
+ <productBillno :data="mainData" :isLeader="isLeader" ref="billno" @priceChange="queryMainData($route.query.id)" @delSuccess="queryMainData" @onSuccess="productAdd" >
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ </template>
|
|
|
+ <template v-slot:del="scope">
|
|
|
+ </template>
|
|
|
+ <template v-slot:cooperate="scope">
|
|
|
+ <el-button :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productBillManage') && isLeader">同步合作协议</el-button>
|
|
|
+ <el-dialog title="同步合作协议" :visible.sync="cooperateVisible" append-to-body width="703px">
|
|
|
+ <span style="color: #8C8C8C;font-size: 14px">请选择同步更新经销商/直销客户合作协议产品的方式:</span>
|
|
|
+ <el-form :model="cooperateForm" style="margin-top: 20px">
|
|
|
+ <el-radio v-model="cooperateForm.isadd" label="1" style="margin-bottom: 20px">
|
|
|
+ <span style="font-size: 16px;color: #333333">同步添加合作协议产品</span><br><br>
|
|
|
+ <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
将协议中所有产品添加到表体,若表体已存在产品,则协议中相同产品的信息及其折扣价格覆盖更新
|
|
|
</span><br><br>
|
|
|
- <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
+ <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
到表体。
|
|
|
</span> <br><br>
|
|
|
- </el-radio>
|
|
|
+ </el-radio>
|
|
|
|
|
|
- <el-radio v-model="cooperateForm.isadd" label="0">
|
|
|
- <span style="font-size: 16px;color: #333333">仅更新合作协议的产品折扣价格</span><br><br>
|
|
|
- <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
+ <el-radio v-model="cooperateForm.isadd" label="0">
|
|
|
+ <span style="font-size: 16px;color: #333333">仅更新合作协议的产品折扣价格</span><br><br>
|
|
|
+ <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
将协议中与表体相同的产品信息及其折扣价格覆盖更新到表体,不添加协议产品。
|
|
|
</span>
|
|
|
- </el-radio>
|
|
|
- </el-form>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">取 消</el-button>
|
|
|
- <el-button size="small" type="primary" @click="onCooperate" class="normal-btn-width">确 定</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
- </template>
|
|
|
- </productBillno>
|
|
|
- <!--产品明细折扣表-->
|
|
|
- <productDetailList :data="mainData" :isLeader="isLeader" ref="productDetailList" v-if="mainData.type == '框架' || mainData.type == '直销' || (mainData.type == '居间' && siteid !== 'HY')" @priceChange="queryMainData($route.query.id)" @closeDrawer="queryMainData($route.query.id)">
|
|
|
- <importFile
|
|
|
- v-if="tool.checkAuth($route.name,'exportProduct') && isLeader && mainData.status === '新建'"
|
|
|
- slot="export"
|
|
|
- ref="importFile"
|
|
|
- class="inline-16"
|
|
|
- :bindData="{ownertable:'sa_contract',ownerid:$route.query.id,usetype:'default'}"
|
|
|
- :errorUrl="errorUrl"
|
|
|
- @clearUrl="errorUrl = null"
|
|
|
- @onSuccess="bindImportOrder"
|
|
|
- ></importFile>
|
|
|
- <template v-slot:cooperate="scope">
|
|
|
- <el-button class="inline-16" :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productDetailManage') && isLeader && mainData.type == '居间'">同步协议</el-button>
|
|
|
- <el-dialog title="同步协议" :visible.sync="cooperateVisible" append-to-body width="703px" center>
|
|
|
+ </el-radio>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="onCooperate" class="normal-btn-width">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </template>
|
|
|
+ </productBillno>
|
|
|
+ </div>
|
|
|
+ <div v-if="mainData.type == '框架' || mainData.type == '直销' ">
|
|
|
+ <!--产品明细折扣表-->
|
|
|
+ <productDetailList :data="mainData" :isLeader="isLeader" ref="productDetailList" @priceChange="queryMainData($route.query.id)" @closeDrawer="queryMainData($route.query.id)">
|
|
|
+ <importFile
|
|
|
+ v-if="tool.checkAuth($route.name,'exportProduct') && isLeader && mainData.status === '新建'"
|
|
|
+ slot="export"
|
|
|
+ ref="importFile"
|
|
|
+ class="inline-16"
|
|
|
+ :bindData="{ownertable:'sa_contract',ownerid:$route.query.id,usetype:'default'}"
|
|
|
+ :errorUrl="errorUrl"
|
|
|
+ @clearUrl="errorUrl = null"
|
|
|
+ @onSuccess="bindImportOrder"
|
|
|
+ ></importFile>
|
|
|
+ <template v-slot:cooperate="scope">
|
|
|
+ <el-button class="inline-16" :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productDetailManage') && isLeader && mainData.type == '居间'">同步协议</el-button>
|
|
|
+ <el-dialog title="同步协议" :visible.sync="cooperateVisible" append-to-body width="703px" center>
|
|
|
+ <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
+ 是否添加关联的项目或客户合同中的产品明细同步更新到列表
|
|
|
+ </span>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="onCooperate" class="normal-btn-width">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </template>
|
|
|
+ </productDetailList>
|
|
|
+ </div>
|
|
|
+ <div v-if="mainData.type == '居间'">
|
|
|
+ <!-- 详细信息 -->
|
|
|
+ <BaseInfo v-if="siteid === 'HY'" :detailInfo="detailInfo"/>
|
|
|
+ <!--产品明细折扣表-->
|
|
|
+ <productDetailList v-else :data="mainData" :isLeader="isLeader" ref="productDetailList" @priceChange="queryMainData($route.query.id)" @closeDrawer="queryMainData($route.query.id)">
|
|
|
+ <importFile
|
|
|
+ v-if="tool.checkAuth($route.name,'exportProduct') && isLeader && mainData.status === '新建'"
|
|
|
+ slot="export"
|
|
|
+ ref="importFile"
|
|
|
+ class="inline-16"
|
|
|
+ :bindData="{ownertable:'sa_contract',ownerid:$route.query.id,usetype:'default'}"
|
|
|
+ :errorUrl="errorUrl"
|
|
|
+ @clearUrl="errorUrl = null"
|
|
|
+ @onSuccess="bindImportOrder"
|
|
|
+ ></importFile>
|
|
|
+ <template v-slot:cooperate="scope">
|
|
|
+ <el-button class="inline-16" :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productDetailManage') && isLeader && mainData.type == '居间'">同步协议</el-button>
|
|
|
+ <el-dialog title="同步协议" :visible.sync="cooperateVisible" append-to-body width="703px" center>
|
|
|
<span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
是否添加关联的项目或客户合同中的产品明细同步更新到列表
|
|
|
</span>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">取 消</el-button>
|
|
|
- <el-button size="small" type="primary" @click="onCooperate" class="normal-btn-width">确 定</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
- </template>
|
|
|
- </productDetailList>
|
|
|
- <!--工具清单-->
|
|
|
- <toolList :data="mainData" :isLeader="isLeader" ref="toolList" v-if="mainData.type == '工具借用'" @priceChange="queryMainData($route.query.id)">
|
|
|
- <template v-slot:edit="scope">
|
|
|
- </template>
|
|
|
- </toolList>
|
|
|
- <!-- 详细信息 -->
|
|
|
- <BaseInfo v-if="mainData.type === '居间' && siteid === 'HY'" :detailInfo="detailInfo"/>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="onCooperate" class="normal-btn-width">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </template>
|
|
|
+ </productDetailList>
|
|
|
+ </div>
|
|
|
+ <div v-if="mainData.type == '工具借用'">
|
|
|
+ <!--工具清单-->
|
|
|
+ <toolList :data="mainData" :isLeader="isLeader" ref="toolList" v-if="mainData.type == '工具借用'" @priceChange="queryMainData($route.query.id)">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ </template>
|
|
|
+ </toolList>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
<div slot="slot1" >
|
|
|
- <!--产品类别折扣表-->
|
|
|
- <productClassList :data="mainData" :isLeader="isLeader" ref="classList" @priceChange="queryMainData($route.query.id)" v-if="mainData.type == '框架' || mainData.type == '直销' || mainData.type == '居间'">
|
|
|
- <addClass class="inline-16" v-if="tool.checkAuth($route.name,'productClassManage')" :disabled="mainData.status != '新建' || !isLeader" :typeName="mainData.type" slot="addProduct" @onSuccess="$refs.classList.listData()" ref="addProduct" @closeDrawer="closeDrawer"/>
|
|
|
- <template v-slot:edit="scope">
|
|
|
- </template>
|
|
|
- <template v-slot:cooperate="scope">
|
|
|
- <el-button class="inline-16" :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productClassManage') && isLeader && mainData.type == '居间'">同步协议</el-button>
|
|
|
- <el-dialog title="同步协议" :visible.sync="cooperateVisible" append-to-body width="703px" center>
|
|
|
+ <!-- 居间 -->
|
|
|
+ <div v-if="mainData.type === '居间'">
|
|
|
+ <contactList v-if="siteid === 'HY' && mainData && tool.checkAuth($route.name,'contact')" :data="mainData"></contactList>
|
|
|
+ <productClassList v-else :data="mainData" :isLeader="isLeader" ref="classList" @priceChange="queryMainData($route.query.id)">
|
|
|
+ <addClass class="inline-16" v-if="tool.checkAuth($route.name,'productClassManage')" :disabled="mainData.status != '新建' || !isLeader" :typeName="mainData.type" slot="addProduct" @onSuccess="$refs.classList.listData()" ref="addProduct" @closeDrawer="closeDrawer"/>
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ </template>
|
|
|
+ <template v-slot:cooperate="scope">
|
|
|
+ <el-button class="inline-16" :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productClassManage') && isLeader && mainData.type == '居间'">同步协议</el-button>
|
|
|
+ <el-dialog title="同步协议" :visible.sync="cooperateVisible" append-to-body width="703px" center>
|
|
|
+ <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
+ 是否添加关联的项目或客户合同中的产品类别同步更新到列表
|
|
|
+ </span>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="onCooperateItem" class="normal-btn-width">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </template>
|
|
|
+ </productClassList>
|
|
|
+ </div>
|
|
|
+ <div v-if="mainData.type == '框架' || mainData.type == '直销' ">
|
|
|
+ <!--产品类别折扣表-->
|
|
|
+ <productClassList :data="mainData" :isLeader="isLeader" ref="classList" @priceChange="queryMainData($route.query.id)" >
|
|
|
+ <addClass class="inline-16" v-if="tool.checkAuth($route.name,'productClassManage')" :disabled="mainData.status != '新建' || !isLeader" :typeName="mainData.type" slot="addProduct" @onSuccess="$refs.classList.listData()" ref="addProduct" @closeDrawer="closeDrawer"/>
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ </template>
|
|
|
+ <template v-slot:cooperate="scope">
|
|
|
+ <el-button class="inline-16" :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productClassManage') && isLeader && mainData.type == '居间'">同步协议</el-button>
|
|
|
+ <el-dialog title="同步协议" :visible.sync="cooperateVisible" append-to-body width="703px" center>
|
|
|
<span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
是否添加关联的项目或客户合同中的产品类别同步更新到列表
|
|
|
</span>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">取 消</el-button>
|
|
|
- <el-button size="small" type="primary" @click="onCooperateItem" class="normal-btn-width">确 定</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
- </template>
|
|
|
- </productClassList>
|
|
|
- <!-- 产品类别折扣 -->
|
|
|
- <itemClass ref="itemClass" :data="mainData" v-if="mainData.type == '项目'" :isLeader="isLeader" >
|
|
|
- <template v-slot:cooperate="scope">
|
|
|
- <el-button :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productClassManage') && isLeader">同步合作协议</el-button>
|
|
|
- <el-dialog title="同步合作协议" :visible.sync="cooperateVisible" append-to-body width="703px">
|
|
|
- <span style="color: #8C8C8C;font-size: 14px">请选择同步更新经销商/直销客户合作协议产品类别的方式:</span>
|
|
|
- <el-form :model="cooperateForm" style="margin-top: 20px">
|
|
|
- <el-radio v-model="cooperateForm.isadd" label="1" style="margin-bottom: 20px">
|
|
|
- <span style="font-size: 16px;color: #333333">同步添加合作协议产品类别及其折扣</span><br><br>
|
|
|
- <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="onCooperateItem" class="normal-btn-width">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </template>
|
|
|
+ </productClassList>
|
|
|
+ </div>
|
|
|
+ <div v-if="mainData.type == '项目'">
|
|
|
+ <!-- 产品类别折扣 -->
|
|
|
+ <itemClass ref="itemClass" :data="mainData" :isLeader="isLeader" >
|
|
|
+ <template v-slot:cooperate="scope">
|
|
|
+ <el-button :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productClassManage') && isLeader">同步合作协议</el-button>
|
|
|
+ <el-dialog title="同步合作协议" :visible.sync="cooperateVisible" append-to-body width="703px">
|
|
|
+ <span style="color: #8C8C8C;font-size: 14px">请选择同步更新经销商/直销客户合作协议产品类别的方式:</span>
|
|
|
+ <el-form :model="cooperateForm" style="margin-top: 20px">
|
|
|
+ <el-radio v-model="cooperateForm.isadd" label="1" style="margin-bottom: 20px">
|
|
|
+ <span style="font-size: 16px;color: #333333">同步添加合作协议产品类别及其折扣</span><br><br>
|
|
|
+ <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
将协议中所有产品类别及其折扣添加到表体,若表体已存在产品类别,则协议中相同产品类别的折扣
|
|
|
</span><br><br>
|
|
|
- <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
+ <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
覆盖更新到表体。
|
|
|
</span> <br><br>
|
|
|
- </el-radio>
|
|
|
+ </el-radio>
|
|
|
|
|
|
- <el-radio v-model="cooperateForm.isadd" label="0">
|
|
|
- <span style="font-size: 16px;color: #333333">仅更新合作协议的产品类别折扣</span><br><br>
|
|
|
- <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
+ <el-radio v-model="cooperateForm.isadd" label="0">
|
|
|
+ <span style="font-size: 16px;color: #333333">仅更新合作协议的产品类别折扣</span><br><br>
|
|
|
+ <span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
将协议中与表体相同的产品类别的折扣价格覆盖更新到表体,不添加协议的产品类别。
|
|
|
</span>
|
|
|
- </el-radio>
|
|
|
- </el-form>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">取 消</el-button>
|
|
|
- <el-button size="small" type="primary" @click="onCooperateItem" class="normal-btn-width">确 定</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
- </template>
|
|
|
- </itemClass>
|
|
|
- <BaseInfo v-if="mainData.type === '工具借用'" :detailInfo="detailInfo"/>
|
|
|
+ </el-radio>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="onCooperateItem" class="normal-btn-width">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </template>
|
|
|
+ </itemClass>
|
|
|
+ </div>
|
|
|
+ <div v-if="mainData.type === '工具借用'">
|
|
|
+ <BaseInfo :detailInfo="detailInfo"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div slot="slot2">
|
|
|
- <!--业绩目标-->
|
|
|
- <taskTarget ref="taskTarget" v-if="Object.keys(mainData).length > 0 && (mainData.type == '框架' || mainData.type == '直销')" :data="mainData">
|
|
|
- <template v-slot:addTarget="scope">
|
|
|
+ <div v-if="Object.keys(mainData).length > 0 && (mainData.type == '框架' || mainData.type == '直销')" >
|
|
|
+ <!--业绩目标-->
|
|
|
+ <taskTarget ref="taskTarget" :data="mainData">
|
|
|
+ <template v-slot:addTarget="scope">
|
|
|
<add-target :disabled="mainData.status != '新建' || !isLeader" v-if="tool.checkAuth($route.name,'taskTargetManage')" :data="mainData" @onSuccess="successYear"></add-target>
|
|
|
- </template>
|
|
|
- <template v-slot:edit="scope">
|
|
|
- <edit-target class="inline-16" :disabled="mainData.status != '新建' || !isLeader" v-if="tool.checkAuth($route.name,'taskTargetManage')" :data="scope.data" :salerId="mainData" @onSuccess="$refs.taskTarget.queryData()"/>
|
|
|
- </template>
|
|
|
- <template v-slot:delete="scope">
|
|
|
- <del-target @onSuccess="$refs.taskTarget.queryData()" class="inline-16" :disabled="mainData.status != '新建' || !isLeader" v-if="tool.checkAuth($route.name,'taskTargetManage')" :id="scope.data.sa_salestargetbillid"></del-target>
|
|
|
- </template>
|
|
|
- </taskTarget>
|
|
|
- <div>
|
|
|
+ </template>
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <edit-target class="inline-16" :disabled="mainData.status != '新建' || !isLeader" v-if="tool.checkAuth($route.name,'taskTargetManage')" :data="scope.data" :salerId="mainData" @onSuccess="$refs.taskTarget.queryData()"/>
|
|
|
+ </template>
|
|
|
+ <template v-slot:delete="scope">
|
|
|
+ <del-target @onSuccess="$refs.taskTarget.queryData()" class="inline-16" :disabled="mainData.status != '新建' || !isLeader" v-if="tool.checkAuth($route.name,'taskTargetManage')" :id="scope.data.sa_salestargetbillid"></del-target>
|
|
|
+ </template>
|
|
|
+ </taskTarget>
|
|
|
+ </div>
|
|
|
+ <div v-if="mainData.type == '项目'">
|
|
|
<!-- 差价 -->
|
|
|
- <priceDifference v-if="mainData.type == '项目' && siteid == 'HY' && tool.checkAuth($route.name,'brokerageFeeEntrySet')" :data="mainData"></priceDifference>
|
|
|
-
|
|
|
+ <priceDifference v-if="siteid == 'HY' && tool.checkAuth($route.name,'brokerageFeeEntrySet')" :data="mainData"></priceDifference>
|
|
|
<!-- 详细信息 -->
|
|
|
<BaseInfo v-else :detailInfo="detailInfo"/>
|
|
|
</div>
|
|
|
-
|
|
|
- <!-- 详细信息 -->
|
|
|
- <BaseInfo v-if="(mainData.type !== '框架' && mainData.type !== '直销' && mainData.type !== '项目')" :detailInfo="detailInfo"/>
|
|
|
+ <div v-if="mainData.type == '居间'">
|
|
|
+ <BaseInfo v-if="siteid !== 'HY'" :detailInfo="detailInfo"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div slot="slot3">
|
|
|
- <BaseInfo v-if="mainData.type !== '居间' && mainData.type !== '框架' && mainData.type !== '直销' " :detailInfo="detailInfo"/>
|
|
|
- <div>
|
|
|
- <!-- 差价 -->
|
|
|
- <priceDifference v-if="(mainData.type == '框架' || mainData.type == '直销') && siteid == 'HY' && tool.checkAuth($route.name,'brokerageFeeEntrySet')" :data="mainData"></priceDifference>
|
|
|
+ <div v-if="mainData.type === '居间' && siteid !== 'HY'">
|
|
|
+ <contactList v-if="mainData && tool.checkAuth($route.name,'contact')" :data="mainData"></contactList>
|
|
|
+ </div>
|
|
|
+ <div v-if="mainData.type == '框架' || mainData.type == '直销'">
|
|
|
+ <priceDifference v-if="siteid == 'HY' && tool.checkAuth($route.name,'brokerageFeeEntrySet')" :data="mainData"></priceDifference>
|
|
|
<BaseInfo v-else :detailInfo="detailInfo"/>
|
|
|
</div>
|
|
|
+ <div v-if="mainData.type == '项目'">
|
|
|
+ <BaseInfo :detailInfo="detailInfo"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div slot="slot4">
|
|
|
- <BaseInfo :detailInfo="detailInfo"/>
|
|
|
+ <div v-if="mainData.type == '框架' || mainData.type == '直销'">
|
|
|
+ <BaseInfo :detailInfo="detailInfo"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</basicDetails>
|
|
|
</div>
|
|
@@ -217,6 +285,7 @@ import itemClass from '../components/itemClass/index.vue'
|
|
|
import importFile from '../components/importFile'
|
|
|
import copyTo from '../components/copyTo'
|
|
|
import priceDifference from '../components/priceDifference/index'
|
|
|
+import contactList from '../components/contactList/index'
|
|
|
import { Loading } from 'element-ui';
|
|
|
export default {
|
|
|
name: "detail",
|
|
@@ -262,7 +331,8 @@ export default {
|
|
|
itemClass,
|
|
|
importFile,
|
|
|
copyTo,
|
|
|
- priceDifference
|
|
|
+ priceDifference,
|
|
|
+ contactList
|
|
|
},
|
|
|
provide () {
|
|
|
return {
|
|
@@ -323,7 +393,7 @@ export default {
|
|
|
this.tabs = this.siteid == 'HY'?this.tool.checkAuth(this.$route.name,'brokerageFeeEntrySet')?['产品明细折扣','产品类别折扣','业绩目标','差价','详细信息']:['产品明细折扣','产品类别折扣','业绩目标','详细信息']:['产品明细折扣','产品类别折扣','业绩目标','详细信息']
|
|
|
break
|
|
|
case '居间':
|
|
|
- this.tabs = this.siteid == 'HY'?['详细信息']:['产品明细折扣','产品类别折扣','详细信息']
|
|
|
+ this.tabs = this.siteid == 'HY'?this.tool.checkAuth(this.$route.name,'contact')?['详细信息','联系人']:['详细信息']:this.tool.checkAuth(this.$route.name,'contact')?['产品明细折扣','产品类别折扣','详细信息','联系人']:['产品明细折扣','产品类别折扣','详细信息']
|
|
|
break
|
|
|
case '直销':
|
|
|
this.tabs = this.siteid == 'HY'?this.tool.checkAuth(this.$route.name,'brokerageFeeEntrySet')?['产品明细折扣','产品类别折扣','业绩目标','差价','详细信息']:['产品明细折扣','产品类别折扣','业绩目标','详细信息']:['产品明细折扣','产品类别折扣','业绩目标','详细信息']
|