服务顾问选择短信或是直接拨打电话
This commit is contained in:
parent
916bb23ff2
commit
e00de3a897
@ -56,7 +56,7 @@
|
|||||||
@click="handleVoid(scope.row)">
|
@click="handleVoid(scope.row)">
|
||||||
作废
|
作废
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="userRole === 'service_advisor' && isFinish" size="mini" type="text" icon="el-icon-refresh"
|
<el-button size="mini" type="text" icon="el-icon-refresh" v-hasPermi="['repair:tkm:editRecord']"
|
||||||
@click="handleEditRecord(scope.row)">
|
@click="handleEditRecord(scope.row)">
|
||||||
维修记录设置
|
维修记录设置
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -114,11 +114,6 @@
|
|||||||
command="handleReTake" size="mini" type="text" icon="el-icon-refresh"
|
command="handleReTake" size="mini" type="text" icon="el-icon-refresh"
|
||||||
>重新指派
|
>重新指派
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item
|
|
||||||
v-if="userRole === 'service_advisor' && !isFinish && scope.row.ticketsWorkStatus !== '01'"
|
|
||||||
command="handleEditRecord" size="mini" type="text" icon="el-icon-refresh"
|
|
||||||
>维修记录设置
|
|
||||||
</el-dropdown-item>
|
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</template>
|
</template>
|
||||||
|
@ -23,6 +23,11 @@
|
|||||||
<span>{{ scope.$index + 1 }}</span>
|
<span>{{ scope.$index + 1 }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="操作人" align="center" prop="dealUserName">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{scope.row.dealUserName}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="记录类型" align="center" prop="type" width="180">
|
<el-table-column label="记录类型" align="center" prop="type" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :type="DICT_TYPE.REPAIR_RECORDS_TYPE" :value="scope.row.type" />
|
<dict-tag :type="DICT_TYPE.REPAIR_RECORDS_TYPE" :value="scope.row.type" />
|
||||||
|
@ -102,19 +102,19 @@
|
|||||||
<el-form :model="noticeData" ref="noticeRef" :rules="noticeRules" v-loading="noticeLoading" :inline="true" label-width="20rem">
|
<el-form :model="noticeData" ref="noticeRef" :rules="noticeRules" v-loading="noticeLoading" :inline="true" label-width="20rem">
|
||||||
<el-row :gutter="1">
|
<el-row :gutter="1">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="联系人" prop="name">
|
<el-form-item :label="isNoticeChoose ? '客户姓名' : '联系人'" prop="name">
|
||||||
<el-input v-model="noticeData.name" style="width: 20rem"/>
|
<el-input :disabled="isNoticeChoose" v-model="noticeData.name" style="width: 20rem"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="1">
|
<el-row :gutter="1">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="联系电话" prop="mobile">
|
<el-form-item label="联系电话" prop="mobile">
|
||||||
<el-input v-model="noticeData.mobile" style="width: 20rem"/>
|
<el-input :disabled="isNoticeChoose" v-model="noticeData.mobile" style="width: 20rem"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="1">
|
<el-row :gutter="1" v-if="!isNoticeChoose">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="备注" prop="remark">
|
||||||
<el-input type="textarea" style="width: 35rem" :autosize="{ minRows: 2, maxRows: 4}" v-model="noticeData.remark" />
|
<el-input type="textarea" style="width: 35rem" :autosize="{ minRows: 2, maxRows: 4}" v-model="noticeData.remark" />
|
||||||
@ -123,7 +123,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="doNotice">确定</el-button>
|
<el-button type="primary" @click="doNotice" v-if="!isNoticeChoose">确定</el-button>
|
||||||
<el-button @click="noticeDialog = false">取消</el-button>
|
<el-button @click="noticeDialog = false">取消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -179,6 +179,7 @@ export default {
|
|||||||
},
|
},
|
||||||
noticeLoading: false,
|
noticeLoading: false,
|
||||||
noticeDialog: false,
|
noticeDialog: false,
|
||||||
|
isNoticeChoose: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -247,6 +248,12 @@ export default {
|
|||||||
this.$refs.updateRepair.open(row)
|
this.$refs.updateRepair.open(row)
|
||||||
},
|
},
|
||||||
async noticeCus(row){
|
async noticeCus(row){
|
||||||
|
this.$confirm('请选择使用什么方式通知客户?', '选择', {
|
||||||
|
confirmButtonText: '短信通知',
|
||||||
|
cancelButtonText: '拨打电话',
|
||||||
|
type: 'info'
|
||||||
|
}).then(async () => {
|
||||||
|
this.isNoticeChoose = false
|
||||||
this.noticeData = {
|
this.noticeData = {
|
||||||
time: [],
|
time: [],
|
||||||
name: null,
|
name: null,
|
||||||
@ -264,6 +271,13 @@ export default {
|
|||||||
} finally {
|
} finally {
|
||||||
this.noticeLoading = false
|
this.noticeLoading = false
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.isNoticeChoose = true
|
||||||
|
this.noticeDialog = true
|
||||||
|
this.noticeData.name = row.userName
|
||||||
|
this.noticeData.mobile = row.userMobile
|
||||||
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
async doNotice(){
|
async doNotice(){
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user