guarantee-lsq 2 gadi atpakaļ
vecāks
revīzija
cf17dccfba

+ 4 - 2
src/views/repair/application-form/modules/DetailRepair.vue

@@ -925,7 +925,6 @@ export default {
         return
       }
       const params = { id: this.model.id, category: this.model.category }
-      alert(this.model.id + this.model.category)
       closeRepair(params).then(res => {
         this.$message.info('操作成功')
         this.handleOk()
@@ -982,7 +981,10 @@ export default {
       modal.base({ repairId: this.model.id, repairNo: this.model.no, errorContent: this.model.content, sbId: this.model.sbId })
     },
     recoverPause () {
-      this.$refs.reportPauseForm.base(this.model)
+      getSelfRole().then(res => {
+        const modal = this.$refs.reportPauseForm
+        modal.base(this.model, res.data)
+      })
     },
     handleAddRepairResolves () {
       const modal = this.$refs.schemeLibrary

+ 3 - 1
src/views/repair/application-form/modules/RefusedForm.vue

@@ -11,6 +11,7 @@
         <a-input v-decorator="['id']" type='hidden' />
         <a-input v-decorator="['userId']" type='hidden' />
         <a-input v-decorator="['no']" type='hidden' />
+        <a-input v-decorator="['category']" type='hidden' />
         <a-input v-decorator="['repairStartTime']" type='hidden' />
       </a-form-item>
       <row-list :col="1">
@@ -62,7 +63,8 @@ export default {
           'id',
           'no',
           'userId',
-          'repairStartTime'
+          'repairStartTime',
+          'category'
         ])))
       })
       this.modalTitle = '驳回'

+ 5 - 3
src/views/repair/application-form/modules/ReportPauseForm.vue

@@ -10,6 +10,7 @@
     <a-form :form="form">
       <a-form-item v-show="false" >
         <a-input v-decorator="['id']" type="hidden"/>
+        <a-input v-decorator="['category']" type="hidden"/>
       </a-form-item>
       <row-item>
         <a-form-item
@@ -65,17 +66,18 @@ export default {
     // 下拉框map
   },
   methods: {
-    base (record) {
+    base (record, roleType) {
       this.visible = true
       this.model = record
-      const params = { roleType: record.roleType, deptId: record.repairDeptId, queryType: 2 }
+      const params = { roleType: roleType, deptId: record.repairDeptId, queryType: 2 }
       this.getUsers(params)
       const { form: { setFieldsValue } } = this
       this.$nextTick(() => {
         setFieldsValue(Object.assign(pick(record, [
           'id',
           'remark',
-          'repairUserId'
+          'repairUserId',
+          'category'
         ])))
       })
     },