|
@@ -88,6 +88,7 @@
|
|
|
<a-descriptions-item v-else label="计划性维修级别">{{ model.repairPlanLevel }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="送修部门">{{ model.name }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="维修工程师" >{{ model.checkUserName }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item v-if="model.category===2" label="报修审批人" >{{ userRepairList.find(item=>item.userId==model.verifyRepairUserId).realName }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="报修类型" >{{ repairFormTypeMap[model.repairFormType] }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="委托内容描述" :span="3"> <span v-html="model.content "></span><a-divider type="vertical" /><a @click="handleEdit(model)">编辑</a> </a-descriptions-item>
|
|
|
<a-descriptions-item label="报修图片" :span="3">
|
|
@@ -324,6 +325,8 @@
|
|
|
>
|
|
|
<a-button type="primary" >撤回</a-button>
|
|
|
</a-popconfirm>
|
|
|
+ <a-button v-show=" model.status===24" style="margin-left: 8px" type="primary" @click="repairCheck">报修审核</a-button>
|
|
|
+
|
|
|
<a-button style="margin-left: 8px" type="primary" @click="handleCancel">返回</a-button>
|
|
|
</div>
|
|
|
<div class="btn" v-else>
|
|
@@ -375,6 +378,7 @@
|
|
|
<CheckBigRepairForm ref="checkBigRepairForm" @ok="handleOk" />
|
|
|
<ToPlanForm ref="toPlanForm" @ok="handleOk" />
|
|
|
<AddForm ref="addForm" @ok="handleOk"/>
|
|
|
+ <AuditFrom2 ref="auditFrom2" @ok="handleOk"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -428,8 +432,10 @@ import LongYanSelectSpareForm from './LongYanSelectSpareForm'
|
|
|
import ReportPauseForm from './ReportPauseForm'
|
|
|
import BigRepairForm from './BigRepairForm'
|
|
|
import { startSbInfoScrap } from '@/api/activiti/activiti-sb-scrap'
|
|
|
+import AuditFrom2 from './AuditFrom2.vue'
|
|
|
import AddForm from './BaseForm.vue'
|
|
|
import OutStroeForm from '@/views/store/outstoreform/modules/BaseFormYY.vue'
|
|
|
+import { queryRepairUser } from '@/api/upms/user'
|
|
|
const DetailListItem = DetailList.Item
|
|
|
|
|
|
export default {
|
|
@@ -474,7 +480,8 @@ export default {
|
|
|
BigRepairForm,
|
|
|
CheckBigRepairForm,
|
|
|
ToPlanForm,
|
|
|
- AddForm
|
|
|
+ AddForm,
|
|
|
+ AuditFrom2
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -494,6 +501,7 @@ export default {
|
|
|
typeMap: {},
|
|
|
outStoreMap: {},
|
|
|
repairStatus: [],
|
|
|
+ userRepairList: [],
|
|
|
levelMap: {},
|
|
|
descripitionMap: {},
|
|
|
repairFormTypeMap: {},
|
|
@@ -944,6 +952,9 @@ export default {
|
|
|
this.planFlagMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_CATEGORY)
|
|
|
this.outStoreMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.OUT_STORE_FORM_TYPE)
|
|
|
this.outStoreStatusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.OUT_STORE_FORM_STATUS)
|
|
|
+ queryRepairUser({ roleType: 3 }).then(res => {
|
|
|
+ this.userRepairList = res.data
|
|
|
+ })
|
|
|
this.tableOption()
|
|
|
},
|
|
|
methods: {
|
|
@@ -954,6 +965,7 @@ export default {
|
|
|
this.model = record
|
|
|
this.activeKey = 'a'
|
|
|
const sbId = record.sbId
|
|
|
+ console.log(2222222, this.userRepairList)
|
|
|
if (sbId) {
|
|
|
fetchSbInfo({ id: sbId }).then(res => {
|
|
|
this.sbInfo = res.data
|
|
@@ -1515,6 +1527,9 @@ export default {
|
|
|
},
|
|
|
handleAgain () {
|
|
|
this.$refs.addForm.base(this.model)
|
|
|
+ },
|
|
|
+ repairCheck () {
|
|
|
+ this.$refs.auditFrom2.base(this.model)
|
|
|
}
|
|
|
}
|
|
|
}
|