交车按钮控制
This commit is contained in:
parent
feb09d681f
commit
287d393c05
@ -70,7 +70,7 @@
|
||||
通知客户取车
|
||||
</el-dropdown-item>
|
||||
<!-- 服务顾问才有 -->
|
||||
<el-dropdown-item command="carToCus" type="text" icon="el-icon-circle-check" v-if="userRole === 'service_advisor' && scope.row.ticketsWorkStatus === '03'">
|
||||
<el-dropdown-item command="carToCus" type="text" icon="el-icon-circle-check" v-if="userRole === 'service_advisor' && scope.row.ticketsStatus === '02' ">
|
||||
交车
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
@ -139,7 +139,7 @@
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="doNotice" v-if="!isNoticeChoose">确定</el-button>
|
||||
<el-button type="primary" @click="doNotice">{{ !isNoticeChoose ? '发送通知' : '我已拨打电话' }}</el-button>
|
||||
<el-button @click="noticeDialog = false">取消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -226,7 +226,8 @@ export default {
|
||||
id: null,
|
||||
remark: null,
|
||||
image: null
|
||||
}
|
||||
},
|
||||
ticketId: null
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@ -297,6 +298,7 @@ export default {
|
||||
async noticeCus(row){
|
||||
// 在下面的代码执行之前,先去判断是否有项目或配件没有价格或为0
|
||||
const flag = await hasPrice(row.id)
|
||||
this.ticketId = row.id
|
||||
let choose = true
|
||||
if (!flag.data){
|
||||
await this.$confirm('有项目或配件的价格为0,是否确认通知客户?', '选择', {
|
||||
@ -343,12 +345,14 @@ export default {
|
||||
},
|
||||
async doNotice(){
|
||||
try {
|
||||
this.noticeData.id = this.ticketId
|
||||
await this.$refs.noticeRef.validate()
|
||||
this.noticeLoading = true
|
||||
await noticeCus(this.noticeData)
|
||||
this.noticeDialog = false
|
||||
this.$modal.msgSuccess("操作成功")
|
||||
await this.getList()
|
||||
this.ticketId = null
|
||||
}catch {}
|
||||
},
|
||||
handleEdit(row){
|
||||
|
Loading…
Reference in New Issue
Block a user