打印工单
This commit is contained in:
parent
fcbc03396b
commit
5071dfff93
@ -158,3 +158,12 @@ export function addItems(data){
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改工单主表,只是主表
|
||||
export function updateTicket(data){
|
||||
return request({
|
||||
url: preUrl + '/updateTicket',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ export default {
|
||||
formData: {
|
||||
id: null,
|
||||
ticketsStatus: null,
|
||||
remark: null,
|
||||
billingRemark: null,
|
||||
payType: null
|
||||
},
|
||||
formRules:{
|
||||
@ -226,7 +226,7 @@ export default {
|
||||
cancelButtonText: '取消',
|
||||
}).then(({value}) => {
|
||||
this.formData.id = row.id
|
||||
this.formData.remark = value
|
||||
this.formData['remark'] = value
|
||||
this.formData.ticketsStatus = "03"
|
||||
this.doVoid()
|
||||
}).catch(() => {
|
||||
@ -260,7 +260,7 @@ export default {
|
||||
this.formData = {
|
||||
id: null,
|
||||
ticketsStatus: null,
|
||||
remark: null,
|
||||
billingRemark: null,
|
||||
payType: null
|
||||
}
|
||||
this.formData['id'] = row.id
|
||||
|
@ -58,6 +58,48 @@
|
||||
</template>
|
||||
{{ parseTime(info.createTime, '{y}-{m}-{d}') }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">
|
||||
已行里程
|
||||
</template>
|
||||
{{ info.mileageTraveled }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">
|
||||
三包单位
|
||||
</template>
|
||||
{{ info.threePackUnits }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">
|
||||
保险名称
|
||||
</template>
|
||||
{{ info.insuranceName }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">
|
||||
管理费
|
||||
</template>
|
||||
{{ info.managerMoney }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">
|
||||
救援费
|
||||
</template>
|
||||
{{ info.rescueMoney }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">
|
||||
三包费
|
||||
</template>
|
||||
{{ info.threePackMoney }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">
|
||||
定损费
|
||||
</template>
|
||||
{{ info.confirmFaultMoney }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">
|
||||
预计完工
|
||||
|
@ -393,10 +393,10 @@ export default {
|
||||
mileageTraveled: null,
|
||||
threePackUnits: null,
|
||||
insuranceName: null,
|
||||
managerMoney: null,
|
||||
rescueMoney: null,
|
||||
threePackMoney: null,
|
||||
confirmFaultMoney: null,
|
||||
managerMoney: 0,
|
||||
rescueMoney: 0,
|
||||
threePackMoney: 0,
|
||||
confirmFaultMoney: 0,
|
||||
},
|
||||
selectUser: {},
|
||||
selectCar: {},
|
||||
@ -535,10 +535,10 @@ export default {
|
||||
mileageTraveled: null,
|
||||
threePackUnits: null,
|
||||
insuranceName: null,
|
||||
managerMoney: null,
|
||||
rescueMoney: null,
|
||||
threePackMoney: null,
|
||||
confirmFaultMoney: null,
|
||||
managerMoney: 0,
|
||||
rescueMoney: 0,
|
||||
threePackMoney: 0,
|
||||
confirmFaultMoney: 0,
|
||||
}
|
||||
this.selectUser = {}
|
||||
this.selectCar = {}
|
||||
|
@ -234,11 +234,63 @@
|
||||
<el-button @click="addDialog = false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog title="信息修改" :visible.sync="infoDialog" width="60%" v-dialogDrag append-to-body ref="infoDialog">
|
||||
<el-form :model="infoFormData" :inline="true" ref="infoForm" label-width="10rem">
|
||||
<el-row :gutter="2">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="已行里程" prop="mileageTraveled">
|
||||
<el-input v-model="infoFormData.mileageTraveled" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="三包单位" prop="threePackUnits">
|
||||
<el-input v-model="infoFormData.threePackUnits" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="2">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="保险名称" prop="insuranceName">
|
||||
<el-input v-model="infoFormData.insuranceName" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="管理费" prop="managerMoney">
|
||||
<el-input v-model="infoFormData.managerMoney" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="2">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="救援费" prop="rescueMoney">
|
||||
<el-input v-model="infoFormData.rescueMoney" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="三包费" prop="threePackMoney">
|
||||
<el-input v-model="infoFormData.threePackMoney" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="2">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="定损费" prop="confirmFaultMoney">
|
||||
<el-input v-model="infoFormData.confirmFaultMoney" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="handleUpdate">确 定</el-button>
|
||||
<el-button @click="infoDialog = false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getTicketsById, updateShow, addItems} from "@/api/repair/tickets/Tickets";
|
||||
import {getTicketsById, updateShow, addItems, updateTicket} from "@/api/repair/tickets/Tickets";
|
||||
import {removeItemById} from "@/api/repair/tickets/TicketsItem";
|
||||
import TicketItemShow from "@/views/repair/tickets/Components/TicketItemShow.vue";
|
||||
import other from "@/views/repair/other/index.vue";
|
||||
@ -270,6 +322,17 @@ export default {
|
||||
projectList: [],
|
||||
waresList: [],
|
||||
otherList: [],
|
||||
infoDialog: false,
|
||||
infoFormData: {
|
||||
id: null,
|
||||
mileageTraveled: null,
|
||||
threePackUnits: null,
|
||||
insuranceName: null,
|
||||
managerMoney: 0,
|
||||
rescueMoney: 0,
|
||||
threePackMoney: 0,
|
||||
confirmFaultMoney: 0,
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -395,7 +458,28 @@ export default {
|
||||
this.dialogVisible = false
|
||||
},
|
||||
handleEditInfo(){
|
||||
// todo
|
||||
this.infoFormData = {
|
||||
id: this.info.id,
|
||||
mileageTraveled: this.info.mileageTraveled,
|
||||
threePackUnits: this.info.threePackUnits,
|
||||
insuranceName: this.info.insuranceName,
|
||||
managerMoney: this.info.managerMoney | 0,
|
||||
rescueMoney: this.info.rescueMoney | 0,
|
||||
threePackMoney: this.info.threePackMoney | 0,
|
||||
confirmFaultMoney: this.info.confirmFaultMoney | 0,
|
||||
}
|
||||
this.infoDialog = true
|
||||
},
|
||||
async handleUpdate(){
|
||||
try{
|
||||
this.loadingInstance.$loading({
|
||||
target: this.$refs.infoDialog.$el
|
||||
})
|
||||
await updateTicket(this.infoFormData)
|
||||
this.infoDialog = false
|
||||
this.$modal.msgSuccess("修改成功")
|
||||
await this.open(this.infoFormData.id)
|
||||
}catch{}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user