|
|
|
|
@ -11,7 +11,7 @@ |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="menuLeft"> |
|
|
|
|
<el-button size="small" type="primary" @click="handleAdd">确认</el-button> |
|
|
|
|
<!-- <el-button size="small" type="primary" @click="handleAdd">确认</el-button> --> |
|
|
|
|
<!-- <el-button size="small" @click="clickInvoice">开具发票</el-button> --> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="{ row }" slot="menu"> |
|
|
|
|
@ -524,7 +524,6 @@ export default { |
|
|
|
|
this.isClear = true |
|
|
|
|
}, |
|
|
|
|
confirmName() { |
|
|
|
|
console.log('name===========>', this.nameImg) |
|
|
|
|
if (this.isClear) { |
|
|
|
|
this.nameImg = '' |
|
|
|
|
} else { |
|
|
|
|
@ -537,10 +536,8 @@ export default { |
|
|
|
|
this.assignVisible = true |
|
|
|
|
}, |
|
|
|
|
setMaterial(row) { |
|
|
|
|
console.log('物料配置按钮 row===============>', row) |
|
|
|
|
this.materialId = row.id |
|
|
|
|
this.getProductLists() |
|
|
|
|
// console.log('materialData=============>',this.materialData) |
|
|
|
|
this.materialData = row.detailGoodsList |
|
|
|
|
this.materialVisible = true |
|
|
|
|
}, |
|
|
|
|
@ -550,7 +547,6 @@ export default { |
|
|
|
|
this.materialData = arr |
|
|
|
|
}, |
|
|
|
|
handleCloneSub() { |
|
|
|
|
console.log('选中物料列表 materialData=============>', this.materialData, this.materialId, this.errorForm.tableData) |
|
|
|
|
let data = [] |
|
|
|
|
|
|
|
|
|
this.materialData.forEach(item => { |
|
|
|
|
@ -607,8 +603,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
changeNumber(val, row) { |
|
|
|
|
console.log('val------------->', val) |
|
|
|
|
console.log('row------------->', row) |
|
|
|
|
|
|
|
|
|
// row.price = row.price * val |
|
|
|
|
// row.price = row.unifiedQuotation * val |
|
|
|
|
if (row.unifiedQuotation) { |
|
|
|
|
@ -619,7 +614,6 @@ export default { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
loadmoreProduct() { |
|
|
|
|
console.log('this.goodsCurrent0', this.productCurrent, this.productSize, this.productTotals) |
|
|
|
|
if (this.productCurrent * this.productSize >= this.productTotals) return |
|
|
|
|
this.productCurrent++ |
|
|
|
|
this.getProductLists('more') |
|
|
|
|
@ -636,7 +630,6 @@ export default { |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getSpanArr(data) { |
|
|
|
|
console.log('data==========>', data) |
|
|
|
|
for (var i = 0; i < data.length; i++) { |
|
|
|
|
if (i === 0) { |
|
|
|
|
this.spanArr.push(1); |
|
|
|
|
@ -652,7 +645,6 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
console.log('spanArr==========>', this.spanArr) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
errorSpanMethod({ row, column, rowIndex, columnIndex }) { |
|
|
|
|
@ -730,7 +722,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.errorForm.tableData=[] |
|
|
|
|
this.errorForm.tableData = data |
|
|
|
|
this.errorForm.tableData.map(item => { |
|
|
|
|
item.price = item.price == -1 ? '' : item.price |
|
|
|
|
@ -770,7 +762,6 @@ export default { |
|
|
|
|
// 客户选择是否维修完成 |
|
|
|
|
changeResult(val) { |
|
|
|
|
this.isFinish = val |
|
|
|
|
console.log(this.isFinish) |
|
|
|
|
}, |
|
|
|
|
clickQualityYes() { |
|
|
|
|
if (this.viewType == 'evaluate') { |
|
|
|
|
@ -817,7 +808,6 @@ export default { |
|
|
|
|
this.errorForm = res.data.data |
|
|
|
|
this.dialogerror = true |
|
|
|
|
let data = this.checkDeepData(res.data.data.details) |
|
|
|
|
console.log('获取详情数据', data) |
|
|
|
|
this.errorForm.tableData = data |
|
|
|
|
this.errorForm.tableData.map(item => { |
|
|
|
|
item.price = item.price == -1 ? '' : item.price |
|
|
|
|
@ -870,7 +860,6 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 评价并签字提交 |
|
|
|
|
handleConfirm() { |
|
|
|
|
console.log('this.detailForm.approveResult1', this.errorForm.approveResult1) |
|
|
|
|
if (this.errorForm.approveResult1 == 0) {//否 |
|
|
|
|
let query = { |
|
|
|
|
id: this.errorForm.id, |
|
|
|
|
@ -891,7 +880,6 @@ export default { |
|
|
|
|
const formData = new FormData(); |
|
|
|
|
formData.append('file', this.base64toFile(this.nameImg)); |
|
|
|
|
addFile(formData).then(res => { |
|
|
|
|
console.log('res----------->', res) |
|
|
|
|
let query = { |
|
|
|
|
id: this.errorForm.id, |
|
|
|
|
isOkValidity: this.errorForm.isOkValidity, |
|
|
|
|
@ -902,7 +890,6 @@ export default { |
|
|
|
|
signatureTime: this.errorForm.signatureTime, |
|
|
|
|
} |
|
|
|
|
customerConfirmFinish(query).then(res => { |
|
|
|
|
console.log('res ========>', res) |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.$message.success('评价成功') |
|
|
|
|
this.dialogerror = false |
|
|
|
|
@ -948,7 +935,6 @@ export default { |
|
|
|
|
let file = new File([u8arr], `${filename}.${suffix}`, { |
|
|
|
|
type: mime |
|
|
|
|
}) |
|
|
|
|
console.log(file) |
|
|
|
|
return file |
|
|
|
|
}, |
|
|
|
|
// 确认付款是否完成 |
|
|
|
|
@ -1038,7 +1024,6 @@ export default { |
|
|
|
|
}, |
|
|
|
|
detailList: query |
|
|
|
|
} |
|
|
|
|
console.log('params==========>', params) |
|
|
|
|
solutionSave(params).then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
solutionSubmit({ id: this.errorForm.id }).then(res => { |
|
|
|
|
@ -1129,7 +1114,6 @@ export default { |
|
|
|
|
} else if (this.viewType == 'evaluate') { |
|
|
|
|
this.handleConfirm() |
|
|
|
|
} |
|
|
|
|
// console.log('errorForm--------------->',this.errorForm) |
|
|
|
|
// this.$confirm('请确认提交保存当前数据?', '提示', { |
|
|
|
|
// confirmButtonText: '确定', |
|
|
|
|
// cancelButtonText: '取消', |
|
|
|
|
@ -1143,8 +1127,7 @@ export default { |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
console.log('query',this.errorForm.deptName,params) |
|
|
|
|
getRepairPage({ current: this.page.currentPage, size: this.page.pageSize,deptName:params.deptName }).then(res => { |
|
|
|
|
getRepairPage({ current: this.page.currentPage, size: this.page.pageSize,deptName:params.deptName,taskStatus:4 }).then(res => { |
|
|
|
|
this.data = res.data.data.records |
|
|
|
|
this.page.total = res.data.data.total |
|
|
|
|
}) |
|
|
|
|
|