master
zhangdi 11 months ago
parent fd1245b130
commit c8aa593660
  1. 2
      src/views/businessManagement/inspection/repair.vue
  2. 25
      src/views/businessManagement/ordinary.vue

@ -962,7 +962,7 @@ export default {
handleConfirm() { handleConfirm() {
if (this.errorForm.approveResult1 == 0) {// if (this.errorForm.approveResult1 == 0) {//
if(this.errorForm.approveRemark ==''){ if(this.errorForm.approveRemark ==''){
this.$message.success('请输入原因!') this.$message.error('请输入原因!')
return false return false
} }
let query = { let query = {

@ -12,7 +12,8 @@
</template> </template>
<template slot-scope="{row}" slot="overStatusSearch"> <template slot-scope="{row}" slot="overStatusSearch">
<el-select placeholder="请选择完成状态" v-model="searchForm.overStatus"> <el-select placeholder="请选择完成状态" v-model="searchForm.overStatus">
<el-option v-for="item in overStatusList" :key="item.value" :label="item.name" :value="item.value"></el-option> <el-option v-for="item in overStatusList" :key="item.value" :label="item.name"
:value="item.value"></el-option>
</el-select> </el-select>
</template> </template>
<template slot="fillingTimeSearch"> <template slot="fillingTimeSearch">
@ -594,7 +595,8 @@
</el-form-item> </el-form-item>
</div> </div>
<!-- 维修人员 上传维修完成图片列表 403 104 202 203 204 400--> <!-- 维修人员 上传维修完成图片列表 403 104 202 203 204 400-->
<div v-show="repairForm.status == 403 || repairForm.status == 103|| repairForm.status == 104 || repairForm.status == 202|| repairForm.status == 203|| repairForm.status == 204|| repairForm.status == 400"> <div
v-show="repairForm.status == 403 || repairForm.status == 103 || repairForm.status == 104 || repairForm.status == 202 || repairForm.status == 203 || repairForm.status == 204 || repairForm.status == 400">
<el-form-item label="维修完成图片" prop="signaturePerson" v-if="repairForm.status == 103"> <el-form-item label="维修完成图片" prop="signaturePerson" v-if="repairForm.status == 103">
<el-upload action="/api/blade-resource/oss/endpoint/put-file" list-type="picture-card" :headers="headers" <el-upload action="/api/blade-resource/oss/endpoint/put-file" list-type="picture-card" :headers="headers"
accept=".jpeg,.jpg,.png,.pdf" :file-list="completeImgList" :on-success="handleSuccess" accept=".jpeg,.jpg,.png,.pdf" :file-list="completeImgList" :on-success="handleSuccess"
@ -1744,6 +1746,16 @@ export default {
query.discount = 0 query.discount = 0
} }
let query1 = {
details: data,
applyUserId: this.userInfo.user_id, //Id
applyUser: this.userInfo.user_name, //
applyTime: moment().format('YYYY-MM-DD HH:mm:ss'), //(yyyy-MM-dd HH:mm:ss)
status: 0,
workId: this.addForm.id,
remark:'维修单申领'
}
editData(query).then(res => { editData(query).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
servicemanSubmit({ servicemanSubmit({
@ -1752,9 +1764,14 @@ export default {
deviceName: this.repairForm.deviceName, deviceName: this.repairForm.deviceName,
repairType: this.repairForm.repairType repairType: this.repairForm.repairType
}).then(res => { }).then(res => {
applyGoods(query1).then(res => {
if (res.data.code == 200) {
this.$message.success("提交成功") this.$message.success("提交成功")
this.repairVisible = false this.repairVisible = false
this.onLoad() this.onLoad()
}
})
}) })
} }
}) })
@ -1997,7 +2014,7 @@ export default {
status: 0, status: 0,
workId: this.addForm.id, workId: this.addForm.id,
} }
applyGoods(query1).then(res => { // applyGoods(query1).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
servicemanReceive({ id: this.addForm.id }).then(res => { servicemanReceive({ id: this.addForm.id }).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
@ -2007,7 +2024,7 @@ export default {
} }
}) })
} }
}) // })
} }
} else { } else {
// //

Loading…
Cancel
Save