|
|
@@ -24,7 +24,7 @@
|
|
|
size="mini"
|
|
|
@click="changeBill"
|
|
|
v-if="mainData.status == '审核' && ($route.query.type == '经销项目' || $route.query.type == '直销项目') && (tool.checkAuth($route.name,'changeBillMag') || tool.checkAuth($route.name,'changeBillSaler') || tool.checkAuth($route.name,'changeBillOrder'))"
|
|
|
- >一键转单</el-button>
|
|
|
+ >{{$t(`一键转单`)}}</el-button>
|
|
|
|
|
|
<revoke class="inline-16" @onSuccess="queryMainData($route.query.id)" :data="mainData" v-if="tool.checkAuth($route.name,'revoke') && mainData.status === '已提交' && isLeader" ></revoke>
|
|
|
<submit-check class="inline-16" :disabled="!isLeader" ref="submit" :data="mainData" @onSuccess="queryMainData($route.query.id)" />
|
|
|
@@ -41,24 +41,24 @@
|
|
|
<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-button :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productBillManage') && isLeader">{{$t(`同步合作协议`)}}</el-button>
|
|
|
+ <el-dialog :title="$t(`同步合作协议`)" :visible.sync="cooperateVisible" append-to-body width="703px">
|
|
|
+ <span style="color: #8C8C8C;font-size: 14px">{{$t(`请选择同步更新经销商/直销客户合作协议产品的方式`)}}:</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: 16px;color: #333333">{{$t(`同步添加合作协议产品`)}}</span><br><br>
|
|
|
<span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
- 将协议中所有产品添加到表体,若表体已存在产品,则协议中相同产品的信息及其折扣价格覆盖更新
|
|
|
+ {{$t(`将协议中所有产品添加到表体,若表体已存在产品,则协议中相同产品的信息及其折扣价格覆盖更新`)}}
|
|
|
</span><br><br>
|
|
|
<span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
- 到表体。
|
|
|
+ {{$t(`到表体。`)}}
|
|
|
</span> <br><br>
|
|
|
</el-radio>
|
|
|
|
|
|
<el-radio v-model="cooperateForm.isadd" label="0">
|
|
|
- <span style="font-size: 16px;color: #333333">仅更新合作协议的产品折扣价格</span><br><br>
|
|
|
+ <span style="font-size: 16px;color: #333333">{{$t(`仅更新合作协议的产品折扣价格`)}}</span><br><br>
|
|
|
<span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
- 将协议中与表体相同的产品信息及其折扣价格覆盖更新到表体,不添加协议产品。
|
|
|
+ {{$t(`将协议中与表体相同的产品信息及其折扣价格覆盖更新到表体,不添加协议产品。`)}}
|
|
|
</span>
|
|
|
</el-radio>
|
|
|
</el-form>
|
|
|
@@ -82,10 +82,10 @@
|
|
|
@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,'productBillManage') && isLeader && mainData.type == '居间'">同步协议</el-button>
|
|
|
- <el-dialog title="同步协议" :visible.sync="cooperateVisible" append-to-body width="703px" center>
|
|
|
+ <el-button class="inline-16" :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productBillManage') && isLeader && mainData.type == '居间'">{{$t(`同步协议`)}}</el-button>
|
|
|
+ <el-dialog :title="$t(`同步协议`)" :visible.sync="cooperateVisible" append-to-body width="703px" center>
|
|
|
<span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
- 是否添加关联的项目或客户合同中的产品明细同步更新到列表
|
|
|
+ {{$t(`是否添加关联的项目或客户合同中的产品明细同步更新到列表`)}}
|
|
|
</span>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">{{$t('取 消')}}</el-button>
|
|
|
@@ -107,10 +107,10 @@
|
|
|
<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,'productBillManage') && isLeader && mainData.type == '居间'">同步协议</el-button>
|
|
|
- <el-dialog title="同步协议" :visible.sync="cooperateVisible" append-to-body width="703px" center>
|
|
|
+ <el-button class="inline-16" :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productBillManage') && isLeader && mainData.type == '居间'">{{$t(`同步协议`)}}</el-button>
|
|
|
+ <el-dialog :title="$t(`同步协议`)" :visible.sync="cooperateVisible" append-to-body width="703px" center>
|
|
|
<span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
- 是否添加关联的项目或客户合同中的产品类别同步更新到列表
|
|
|
+ {{$t(`是否添加关联的项目或客户合同中的产品类别同步更新到列表`)}}
|
|
|
</span>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="cooperateVisible = false" class="normal-btn-width">{{$t('取 消')}}</el-button>
|
|
|
@@ -122,24 +122,24 @@
|
|
|
<!-- 产品类别折扣 -->
|
|
|
<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,'productBillManage') && isLeader">同步合作协议</el-button>
|
|
|
- <el-dialog title="同步合作协议" :visible.sync="cooperateVisible" append-to-body width="703px">
|
|
|
- <span style="color: #8C8C8C;font-size: 14px">请选择同步更新经销商/直销客户合作协议产品类别的方式:</span>
|
|
|
+ <el-button :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productBillManage') && isLeader">{{$t(`同步合作协议`)}}</el-button>
|
|
|
+ <el-dialog :title="$t(`同步合作协议`)" :visible.sync="cooperateVisible" append-to-body width="703px">
|
|
|
+ <span style="color: #8C8C8C;font-size: 14px">{{$t(`请选择同步更新经销商/直销客户合作协议产品类别的方式`)}}:</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: 16px;color: #333333">{{$t(`同步添加合作协议产品类别及其折扣`)}}</span><br><br>
|
|
|
<span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
- 将协议中所有产品类别及其折扣添加到表体,若表体已存在产品类别,则协议中相同产品类别的折扣
|
|
|
+ {{$t(`将协议中所有产品类别及其折扣添加到表体,若表体已存在产品类别,则协议中相同产品类别的折扣`)}}
|
|
|
</span><br><br>
|
|
|
<span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
- 覆盖更新到表体。
|
|
|
+ {{$t(`覆盖更新到表体。`)}}
|
|
|
</span> <br><br>
|
|
|
</el-radio>
|
|
|
|
|
|
<el-radio v-model="cooperateForm.isadd" label="0">
|
|
|
- <span style="font-size: 16px;color: #333333">仅更新合作协议的产品类别折扣</span><br><br>
|
|
|
+ <span style="font-size: 16px;color: #333333">{{$t(`仅更新合作协议的产品类别折扣`)}}</span><br><br>
|
|
|
<span style="font-size: 14px;color: #8C8C8C;margin: 20px 0 0 22px;padding-top: 20px">
|
|
|
- 将协议中与表体相同的产品类别的折扣价格覆盖更新到表体,不添加协议的产品类别。
|
|
|
+ {{$t(`将协议中与表体相同的产品类别的折扣价格覆盖更新到表体,不添加协议的产品类别。`)}}
|
|
|
</span>
|
|
|
</el-radio>
|
|
|
</el-form>
|
|
|
@@ -1482,12 +1482,12 @@ export default {
|
|
|
|
|
|
},
|
|
|
changeBill (data) {
|
|
|
- this.$confirm('确定把当前合同转为订单吗?',this.$t('提示'),{
|
|
|
+ this.$confirm(this.$t('确定把当前合同转为订单吗')+'?',this.$t('提示'),{
|
|
|
confirmButtonText:this.$t('确定'),
|
|
|
cancelButtonText:this.$t('取消'),
|
|
|
type:'warning'
|
|
|
}).then(() => {
|
|
|
- Loading.service({ fullscreen: true ,text:'刷新中...'});
|
|
|
+ Loading.service({ fullscreen: true ,text:this.$t('刷新中...')});
|
|
|
this.$axios({
|
|
|
method:'POST',
|
|
|
url:'/yos/rest/index',
|