Compare commits
2 Commits
784f706932
...
287d393c05
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
287d393c05 | ||
|
|
feb09d681f |
@ -59,46 +59,48 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="订单编号" align="center" prop="ticketNo" width="200"/>
|
||||
<el-table-column label="维修类别" align="center" prop="repairType" width="180">
|
||||
<el-table-column label="维修类别" align="center" prop="repairType" width="100">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :type="DICT_TYPE.REPAIR_TYPE" v-model="scope.row.repairType"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" align="center" prop="ticketsWorkStatus" width="180">
|
||||
<el-table-column label="状态" align="center" prop="ticketsWorkStatus" width="80">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :type="DICT_TYPE.REPAIR_TICKETS_WORK_STATUS" v-model="scope.row.ticketsWorkStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="客户名称" align="center" prop="userName" width="180"/>
|
||||
<el-table-column label="车牌号" align="center" prop="carNo" width="180"/>
|
||||
<el-table-column label="车系" align="center" prop="carBrandName" width="180"/>
|
||||
<el-table-column label="手机号" align="center" prop="userMobile" width="180"/>
|
||||
<el-table-column label="客户信息" align="center">
|
||||
<el-table-column label="客户名称" align="center" prop="userName" width="100"/>
|
||||
<el-table-column label="车牌号" align="center" prop="carNo" width="100"/>
|
||||
<el-table-column label="车系" align="center" prop="carBrandName" width="100"/>
|
||||
<el-table-column label="手机号" align="center" prop="userMobile" width="110"/>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="预计完工" align="center" prop="outTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
{{ parseTime(scope.row.outTime, '{y}-{m}-{d}') }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="合计金额" align="center" prop="totalPrice" width="180"/>
|
||||
<el-table-column label="参考成本" align="center" prop="cost" width="180"/>
|
||||
<el-table-column label="参考毛利" align="center" prop="profit" width="180"/>
|
||||
<el-table-column label="领料状态" align="center" prop="partStatus" width="180">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :type="DICT_TYPE.REPAIR_PART_STATUS" v-model="scope.row.partStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="服务顾问" align="center" prop="adviserName" width="180"/>
|
||||
<!-- <el-table-column label="预计完工" align="center" prop="outTime" width="180">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ parseTime(scope.row.outTime, '{y}-{m}-{d}') }}-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column label="合计金额" align="center" prop="totalPrice" width="80"/>
|
||||
<el-table-column label="参考成本" align="center" prop="cost" width="80"/>
|
||||
<el-table-column label="参考毛利" align="center" prop="profit" width="80"/>
|
||||
<!-- <el-table-column label="领料状态" align="center" prop="partStatus" width="80">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <dict-tag :type="DICT_TYPE.REPAIR_PART_STATUS" v-model="scope.row.partStatus"/>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column label="服务顾问" align="center" prop="adviserName" width="100"/>
|
||||
<el-table-column label="备注" align="center" prop="remark" width="180"/>
|
||||
<el-table-column label="所属门店" align="center" prop="corpId" width="180"/>
|
||||
<el-table-column label="工单状态" align="center" prop="ticketsStatus" width="180">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :type="DICT_TYPE.REPAIR_TICKETS_STATUS" v-model="scope.row.ticketsStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="工单状态" align="center" prop="ticketsStatus" width="180">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <dict-tag :type="DICT_TYPE.REPAIR_TICKETS_STATUS" v-model="scope.row.ticketsStatus"/>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column label="操作" fixed="right" align="center" width="230">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" icon="el-icon-view" @click="handleShow(scope.row)"
|
||||
@ -282,7 +284,7 @@ export default {
|
||||
try {
|
||||
await this.$refs['formRef'].validate()
|
||||
await setTicketsPaid(this.formData)
|
||||
this.$modal.msgSuccess("结算成功")
|
||||
this.$modal.msgSuccess(this.formData.payType === '01' ? "等待客户支付" : "结算成功")
|
||||
this.dialogVisible = false
|
||||
this.$emit("setVoid")
|
||||
}catch{}
|
||||
|
||||
@ -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