服务顾问选择短信或是直接拨打电话
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,23 +248,36 @@ export default {
|
|||||||
this.$refs.updateRepair.open(row)
|
this.$refs.updateRepair.open(row)
|
||||||
},
|
},
|
||||||
async noticeCus(row){
|
async noticeCus(row){
|
||||||
this.noticeData = {
|
this.$confirm('请选择使用什么方式通知客户?', '选择', {
|
||||||
time: [],
|
confirmButtonText: '短信通知',
|
||||||
name: null,
|
cancelButtonText: '拨打电话',
|
||||||
mobile: null,
|
type: 'info'
|
||||||
id: null,
|
}).then(async () => {
|
||||||
remark: null,
|
this.isNoticeChoose = false
|
||||||
}
|
this.noticeData = {
|
||||||
this.noticeDialog = true
|
time: [],
|
||||||
this.noticeData.id = row.id
|
name: null,
|
||||||
try {
|
mobile: null,
|
||||||
this.noticeLoading = true
|
id: null,
|
||||||
const res = await getUserProfile()
|
remark: null,
|
||||||
this.noticeData.name = res.data.nickname
|
}
|
||||||
this.noticeData.mobile = res.data.mobile
|
this.noticeDialog = true
|
||||||
}finally {
|
this.noticeData.id = row.id
|
||||||
this.noticeLoading = false
|
try {
|
||||||
}
|
this.noticeLoading = true
|
||||||
|
const res = await getUserProfile()
|
||||||
|
this.noticeData.name = res.data.nickname
|
||||||
|
this.noticeData.mobile = res.data.mobile
|
||||||
|
} finally {
|
||||||
|
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