Commit 59b03b61 by 张权

服务中心UI改版,售前和数字化不改

1 parent 7b0562ef
......@@ -31,13 +31,14 @@
<div>
<GLTable :noDataImg="url" :class="[{ hasDataTable: !hasData }]" ref="expertTable" :hasNum="false" :pageConf="batchPageConf" :searchForm="batchListSearch" :tableParams="batchTableParams" :getListApi="getListApi">
<span slot="status" slot-scope="scope">
<!-- <el-switch :value="scope.scope.status == 0" active-color="#5850ff" inactive-color="#eee" @change="changStatus(scope.scope.status, scope.scope.id)"></el-switch>
{{ scope.scope.status == 0 ? '启用' : '停用' }} -->
<GLButton v-if="userType != 2" class="switch" mode="el-switch" fn="禁用" :value="scope.scope.status == 0" active-color="#5850ff" inactive-color="#eee" :active-text="scope.scope.status == 0 ? '启用' : '停用'" @change="changStatus(scope.scope.status, scope.scope.id)">{{ scope.scope.status == 0 ? '启用' : '停用' }}</GLButton>
</span>
<div class="table-btns" slot="table-btns" slot-scope="scope">
<!-- <div class="table-btns" slot="table-btns" slot-scope="scope">
<GLButton v-if="userType != 2" fn="编辑" type="text" @click="selectClientType(scope.scope.businessTypeName, scope.scope.id)">编辑</GLButton>
<GLButton v-if="userType != 2" fn="删除" type="text" @click="handleDel(scope.scope)">删除</GLButton>
</div> -->
<div class="table-btns" slot="table-btns" slot-scope="scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</div>
</GLTable>
<div v-if="!hasData" class="default-box">
......@@ -91,6 +92,40 @@ export default {
staffName: '',
businessType: ''
},
buttonList: [
{
type: 'GLButton',
name: row => {
return '编辑'
},
condition: row => {
return this.userType != 2
},
attrs: {
type: 'text',
fn:'编辑'
},
listeners: {
click: row => this.selectClientType(row.scope.businessTypeName, row.scope.id)
}
},
{
type: 'GLButton',
name: row => {
return '删除'
},
condition: row => {
return this.userType != 2
},
attrs: {
type: 'text',
fn:'删除'
},
listeners: {
click: row => this.handleDel(row.scope)
}
}
],
expertForm: [
{
label: '门店',
......@@ -128,7 +163,6 @@ export default {
{
label: '所属门店/部门',
prop: 'departmentName',
width: '200',
formatter: cellValue => {
return cellValue.departmentName || '-'
}
......@@ -143,7 +177,6 @@ export default {
{
label: '客户类型',
prop: 'businessTypeName',
width: 200,
formatter: cellValue => {
return cellValue.businessTypeName || '-'
}
......@@ -151,7 +184,6 @@ export default {
{
label: '欢迎语',
prop: 'isWelcomeWord',
width: 200,
formatter: cellValue => {
return cellValue.isWelcomeWord == -1 ? '无' : '有'
}
......@@ -160,12 +192,10 @@ export default {
label: '状态',
prop: 'status',
addHtml: 'status',
width: '100'
},
{
label: '操作',
prop: '',
width: '100px',
fixed: 'right',
addHtml: 'table-btns'
}
......
......@@ -25,18 +25,15 @@
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<GLButton v-if="[2, 4, 5,7,8,9,10,11,12].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton>
<!-- <el-button v-if="[2, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(5, scope.scope)">查看</el-button> -->
<el-button v-if="[2,8,10,11,12].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button>
<el-button v-if="[2,7,8,9,10,11,12].includes(scope.scope.orderStatus)" style="position: relative;" type="text" @click="handleUpload(scope.scope)">上传资料<span v-show="scope.scope.dataPerfection == 0" class="circule-tips"></span></el-button>
<!-- <el-button v-if="[0].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<!-- <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(3, scope.scope)">修改</el-button> -->
<GLButton v-if="[0].includes(scope.scope.orderStatus)" fn="编辑" type="text" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<GLButton v-if="[2,8,10,11].includes(scope.scope.orderStatus)&&(!scope.scope.hasPrint || userInfo.admin)" fn="修改" type="text" @click="handleEdit(3, scope.scope)">修改</GLButton>
<el-button v-if="[2,8,10,11].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button>
<GLButton v-if="[1,3, 4, 5].includes(scope.scope.orderStatus)" fn="重新提单" type="text" @click="handleEdit(4, scope.scope)">重新提单</GLButton>
<el-button v-if="userInfo.admin" type="text" @click="showFailModal(scope.scope)">失败</el-button>
<el-button v-if="[2,8,10,11,12].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button>
<el-button v-if="[2,7,8,9,10,11,12].includes(scope.scope.orderStatus)" style="position: relative;" type="text" @click="handleUpload(scope.scope)">上传资料<span v-show="scope.scope.dataPerfection == 0" class="circule-tips"></span></el-button>
<GLButton v-if="[0].includes(scope.scope.orderStatus)" fn="编辑" type="text" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<GLButton v-if="[2,8,10,11].includes(scope.scope.orderStatus)&&(!scope.scope.hasPrint || userInfo.admin)" fn="修改" type="text" @click="handleEdit(3, scope.scope)">修改</GLButton>
<el-button v-if="[2,8,10,11].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button>
<GLButton v-if="[1,3, 4, 5].includes(scope.scope.orderStatus)" fn="重新提单" type="text" @click="handleEdit(4, scope.scope)">重新提单</GLButton>
<el-button v-if="userInfo.admin" type="text" @click="showFailModal(scope.scope)">失败</el-button>
</div>
<!-- s -->
</GLTable>
<!-- 表格区域 end -->
</div>
......@@ -111,6 +108,135 @@ export default {
value: 3,
label: 'ERP退单失败'
},],
buttonList: [
{
type: 'GLButton',
name: row => {
return '查看'
},
condition: row => {
return [2, 4, 5,7,8,9,10,11,12].includes(row.scope.orderStatus)
},
attrs: {
type: 'text',
fn:'查看'
},
listeners: {
click: row => this.handleEdit(5, row.scope)
}
},
{
type: 'el-button',
name: row => {
return '打印'
},
condition: row => {
return [2,8,10,11,12].includes(row.scope.orderStatus)
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.handlePdf(row.scope)
}
},
{
type: 'el-button',
name: row => {
return '上传资料'
},
condition: row => {
return [2,7,8,9,10,11,12].includes(row.scope.orderStatus)
},
attrs: {
type: 'text',
class: row=>{
return row.scope.dataPerfection == 0 ? 'el-button el-button--text circule-tips' : 'el-button el-button--text'
}
},
listeners: {
click: row => this.handleUpload(row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '编辑'
},
condition: row => {
return [0].includes(row.scope.orderStatus)
},
attrs: {
type: 'text',
fn:'编辑'
},
listeners: {
click: row => this.handleEdit(2, row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '修改'
},
condition: row => {
return [2,8,10,11].includes(row.scope.orderStatus)&&(!row.scope.hasPrint || this.userInfo.admin)
},
attrs: {
type: 'text',
fn:'修改'
},
listeners: {
click: row => this.handleEdit(3, row.scope)
}
},
{
type: 'el-button',
name: row => {
return '退单'
},
condition: row => {
return [2,8,10,11].includes(row.scope.orderStatus)
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.handleBack(row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '重新提单'
},
condition: row => {
return [1,3, 4, 5].includes(row.scope.orderStatus)
},
attrs: {
type: 'text',
fn:'重新提单'
},
listeners: {
click: row => this.handleEdit(4, row.scope)
}
},
{
type: 'el-button',
name: row => {
return '失败'
},
condition: row => {
return this.userInfo.admin
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.showFailModal(row.scope)
}
},
],
isShowFail:false,
showPage:0,
openCostPrice:0,//是否展示门店成本
......@@ -1424,6 +1550,20 @@ export default {
margin-right: 8px;
}
// /deep/ .circule-tips{
// position: relative!important;
// }
// /deep/ .circule-tips::before {
// position: absolute;
// top: 0;
// right: -6px;
// display: inline-block;
// height: 6px;
// width: 6px;
// content: '';
// border-radius: 100%;
// background-color: red;
// }
.before-sale .circule-tips {
position: absolute;
top: 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!