Quellcode durchsuchen

Merge remote-tracking branch 'origin/demo_' into demo_

hfxc226 vor 2 Jahren
Ursprung
Commit
f7a9eb5f86

+ 15 - 0
src/api/customize/fieldTemplateData.js

@@ -111,6 +111,21 @@ export function fetchCustomDataForRepairRecord (parameter) {
   })
 }
 
+/**
+ * 获取报修的维修票证
+ * @param parameter
+ * @returns {AxiosPromise}
+ */
+export function fetchRepairTicketRecord (parameter) {
+  return axios({
+    url: '/customize/fieldTemplateData/repair/ticket/' + parameter.id,
+    method: 'get',
+    headers: {
+      'Content-Type': 'application/json;charset=UTF-8'
+    }
+  })
+}
+
 /**
  * fetch single func
  * parameter: { }

+ 1 - 1
src/api/repair/application-form.js

@@ -218,7 +218,7 @@ export function dispatchModelByDTO (parameter) {
  */
 export function transferApplyByDTO (parameter) {
   return axios({
-    url: '/repair/application-forms/personal/stop/' + parameter.id,
+    url: '/repair/application-forms/transfer/',
     method: 'PUT',
     data: parameter
   })

+ 5 - 1
src/utils/dict.js

@@ -860,7 +860,11 @@ DictCache.VALUE = {
     FINISHED: 6, // 已完成
     REFUSED_REPAIR: 7, // 报修被拒
     REPAIR_FAIL: 8, // 维修上报
-    RECEIVED: 9 // 维修失败,再次派工
+    RECEIVED: 9, // 维修失败,再次派工
+    HANG_UP: 10, // 维修失败,再次派工
+    DISPATCH_REPAIR: 11, // 维修失败,再次派工
+    MM_DISPATCH: 12, // 维修失败,再次派工
+    MM_REPAIR_FAIL: 13 // 维修失败,再次派工
   },
   /**
    * 维修状态

+ 2 - 2
src/views/part/info/modules/BaseForm.vue

@@ -72,7 +72,7 @@
             </a-select>
           </a-form-item>
         </a-col>
-        <a-col :lg="12" :md="24" :sm="24">
+<!--        <a-col :lg="12" :md="24" :sm="24">
           <a-form-item
             label="关联维修部门"
             :labelCol="BaseTool.Constant.labelCol"
@@ -87,7 +87,7 @@
               </a-select-option>
             </a-select>
           </a-form-item>
-        </a-col>
+        </a-col>-->
         <a-col :lg="12" :md="24" :sm="24">
           <a-form-item
             label="备注"

+ 37 - 13
src/views/repair/application-form/RepairForm.vue

@@ -98,6 +98,12 @@
         <span slot="action" slot-scope="record">
           <template>
             <a @click="handleView(record)">维修主页</a>
+            <operation-button
+              v-show="allocatedFlag"
+              v-if="(DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === record.status)"
+              :type="2"
+              title="是否要接单?"
+              @confirm="receiveRepair(record)">接单</operation-button>
 <!--            <operation-button
               v-show="editFlag"
               v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REFUSED_REPAIR === record.status && $auth('repair-application-forms-edit')"
@@ -154,7 +160,7 @@ import {
   deleteRepairApplicationForms,
   fetchRepairApplicationForm,
   exportRepairApplicationForm,
-  receive
+  receive, receiveRepair
 } from '@/api/repair/application-form'
 import DispatchBaseForm from '@/views/repair/application-form/modules/DispatchBaseForm'
 
@@ -221,16 +227,16 @@ export default {
           }
         },
         {
-          title: '报修人',
+          title: '使用位置',
           checked: true,
           width: '120px',
-          dataIndex: 'userName'
+          dataIndex: 'sbCph'
         },
         {
-          title: '维修人',
+          title: '故障描述',
           checked: true,
-          width: '120px',
-          dataIndex: 'repairUserName'
+          width: '150px',
+          dataIndex: 'content'
         },
         {
           title: '工单类型',
@@ -269,6 +275,18 @@ export default {
           width: '200px',
           dataIndex: 'createdTime'
         },
+        {
+          title: '报修人',
+          checked: true,
+          width: '120px',
+          dataIndex: 'userName'
+        },
+        {
+          title: '维修人',
+          checked: true,
+          width: '120px',
+          dataIndex: 'repairUserName'
+        },
         {
           title: '接收超时',
           checked: true,
@@ -308,7 +326,7 @@ export default {
           checked: true,
           fixed: 'right',
           key: 'action',
-          width: '120px',
+          width: '150px',
           align: 'center',
           scopedSlots: { customRender: 'action' }
         }
@@ -355,15 +373,9 @@ export default {
     this.allocatedFlag = false
     this.editFlag = false
     // const repairModel = this.DictCache.getConfigValueByType(this.DictCache.TYPE.REPAIR_STRATEGY_MODEL)
-    if (this.searchType === 4) {
-      this.dispatchFlag = true
-    }
     if (this.searchType === 3) {
       this.allocatedFlag = true
     }
-    if (this.searchType === 1 || this.searchType === -1) {
-      this.editFlag = true
-    }
     /* if (repairModel === this.DictCache.VALUE.REPAIR_MODEL_TYPE.BASE_MODEL) {
       this.dispatchFlag = false
     } */
@@ -423,6 +435,18 @@ export default {
         this.$refs.table.clearSelected()
       })
     },
+    receiveRepair (record) {
+      const params = {}
+      params.id = record.id
+      params.repairDeptId = record.repairDeptId
+      params.applyTime = record.applyTime
+      params.userId = record.userId
+      params.no = record.no
+      receiveRepair(params).then(() => {
+        this.$message.info('接单成功')
+        this.handleOk()
+      })
+    },
     handleEdit (record) {
       fetchRepairApplicationForm({ id: record.id }).then(res => {
         const type = res.data.type

+ 7 - 8
src/views/repair/application-form/modules/AssignForm.vue

@@ -10,7 +10,7 @@
       <row-list :col="1">
         <row-item v-show='transferFlag'>
           <a-form-item
-            label="二次派工原因"
+            label="转派备注"
             :labelCol="BaseTool.Constant.labelCol"
             :wrapperCol="BaseTool.Constant.wrapperCol"
           >
@@ -59,7 +59,7 @@
 
 <script>
 import { dispatchModelByDTO } from '@/api/repair/application-form'
-import { queryUserDept } from '@/api/upms/user-dept'
+import { queryRepairUser } from '@/api/upms/user-dept'
 
 export default {
   name: 'DispatchBaseForm',
@@ -85,21 +85,20 @@ export default {
     base (record) {
       this.visible = true
       // 如果是空标识添加
-      this.modalTitle = '派'
+      this.modalTitle = '派'
       this.record = record
       this.remarkTwo = record.remarkTwo
       this.transferFlag = false
       if (record.remarkTwo != null && record.remarkTwo !== '') {
         this.transferFlag = true
       }
-      this.getDeptUsers(record.repairDeptId)
+      const params = { roleType: 1, deptId: record.repairDeptId, queryType: 1 }
+      this.getDeptUsers(params)
     },
-    getDeptUsers (deptId) {
-      queryUserDept({ userStatus: 1, deptId: deptId }).then(res => {
+    getDeptUsers (params) {
+      queryRepairUser(params).then(res => {
         this.deptUserList = res.data
-        console.log(this.deptUserList)
       })
-      // })
     },
     save () {
       const { form: { validateFieldsAndScroll } } = this

+ 16 - 0
src/views/repair/application-form/modules/BaseForm.vue

@@ -50,6 +50,22 @@
             </a-select>-->
           </a-form-item>
         </row-item>
+        <row-item>
+          <a-form-item
+            label="送修部门"
+            :labelCol="BaseTool.Constant.labelCol"
+            :wrapperCol="BaseTool.Constant.wrapperCol"
+          >
+            <a-select v-decorator="['repairDeptId', {rules: [{required: true, message: '维修部门不能为空'}]}]" placeholder="请选择">
+              <a-select-option
+                v-for="(label,value) in repairDeptMap"
+                :key="value"
+                :label="label"
+                :value="value">{{ label }}
+              </a-select-option>
+            </a-select>
+          </a-form-item>
+        </row-item>
         <row-item>
           <a-form-item
             label="使用位置"

+ 28 - 3
src/views/repair/application-form/modules/CheckForm.vue

@@ -44,6 +44,23 @@
             </a-upload>
           </a-form-item>
         </row-item>
+        <row-item>
+          <a-form-item
+            label="文件"
+            :labelCol="BaseTool.Constant.labelCol2"
+            :wrapperCol="BaseTool.Constant.wrapperCol2"
+          >
+            <a-upload
+              :action="uploadUrl"
+              :multiple="true"
+              :file-list="defaultFileList"
+              @change="handleFileChange"
+              :headers="headers"
+            >
+              <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+            </a-upload>
+          </a-form-item>
+        </row-item>
       </row-list>
     </a-form>
     <template slot="footer">
@@ -75,7 +92,9 @@ export default {
       },
       uploadUrl: uploadUrl,
       defaultVerifyImages: [],
-      verifyImages: [] // 图片,
+      verifyImages: [], // 图片,
+      defaultFileList: [], // 维修文件
+      fileList: []
     }
   },
   components: {
@@ -91,6 +110,7 @@ export default {
       this.model = record
       this.verifyImages = []
       this.defaultVerifyImages = []
+      this.defaultFileList = []
       this.model.type = type
       const { form: { setFieldsValue } } = this
       // 日期处理
@@ -101,9 +121,9 @@ export default {
         ])))
       })
       if (type === 1) {
-        this.modalTitle = '报修审核驳回'
+        this.modalTitle = '生产审核驳回'
       } else if (type === 2) {
-        this.modalTitle = '提交报修审核'
+        this.modalTitle = '提交生产审核'
       }
     },
     handleRepairFileChange (info) {
@@ -122,6 +142,10 @@ export default {
         return []
       }
     },
+    handleFileChange (info) {
+      this.defaultFileList = info.fileList
+      this.fileList = this.setFileList(info, 19)
+    },
     save () {
       const { form: { validateFieldsAndScroll } } = this
       this.confirmLoading = true
@@ -131,6 +155,7 @@ export default {
           return
         }
         values.verifyImages = this.verifyImages
+        values.verifyFiles = this.fileList // 维修文件
         // 日期处理
         if (this.model.type === 1) {
           returnRepair(values)

+ 11 - 0
src/views/repair/application-form/modules/DetailCheckNew.vue

@@ -27,6 +27,17 @@
         暂无
       </detail-list-item>
     </detail-list>
+    <title-divider title="审核文件" width="90px"></title-divider>
+    <detail-list title="" :col="1">
+      <detail-list-item term="" v-if="model.opinionFiles != null && model.opinionFiles.length > 0">
+        <viewer :images="model.opinionFiles" @inited="inited" ref="viewer" :index="1" >
+          <img v-for="item in model.opinionFiles" :src="item.url" :key="item.id" class="image">
+        </viewer>
+      </detail-list-item>
+      <detail-list-item term="" v-if="model.opinionFiles == null || model.opinionFiles.length === 0">
+        暂无
+      </detail-list-item>
+    </detail-list>
   </a-card>
 </template>
 

+ 18 - 6
src/views/repair/application-form/modules/DetailRepair.vue

@@ -257,11 +257,12 @@
         <a-popconfirm v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === model.status " title="是否要接单?" @confirm="receiveRepair">
           <a-button style="margin-left: 8px" type="default">接单</a-button>
         </a-popconfirm>
-        <a-button v-if="$auth('repair-application-forms-dispatch') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.RECEIVED === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)" style="margin-left: 16px" type="default" @click="handleAssign">派单</a-button>
+        <a-button v-if="$auth('repair-application-forms-dispatch') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.RECEIVED === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.MM_DISPATCH === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.DISPATCH_REPAIR === model.status)" style="margin-left: 16px" type="default" @click="handleAssign">派单</a-button>
         <a-button v-if="(DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REPAIR_FAIL === model.status)" style="margin-left: 16px" type="default" @click="reportRepair">维修上报</a-button>
-        <a-button v-if="(DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REPAIR_FAIL === model.status)" style="margin-left: 16px" type="default" @click="handleReportRepair">处理维修上报</a-button>
+        <a-button v-if="(DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REPAIR_FAIL === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.MM_REPAIR_FAIL === model.status)" style="margin-left: 16px" type="default" @click="handleReportRepair">处理维修上报</a-button>
         <a-button v-if="$auth('repair-application-forms-finish') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.WAIT_SUBMIT === model.status)" style="margin-left: 8px" type="default" @click="handleTransfer()">转派</a-button>
         <a-button v-if="$auth('repair-application-forms-examine') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleFinish()">完成维修</a-button>
+        <a-button v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleViewTicket()">维修票证</a-button>
         <a-popconfirm v-if="$auth('repair-application-forms-finish') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.WAIT_SUBMIT === model.status)" title="是否要结单?" @confirm="handleExamine">
           <a-button style="margin-left: 8px" type="default">结单</a-button>
         </a-popconfirm>
@@ -298,6 +299,7 @@
     <detail-check-new ref='detailCheckNew' @ok='handleVerifyRecordOk'/>
     <repair-record-form ref='repairRecordForm' @ok='handleRepairRecordOk' />
     <report-up-form ref='reportUpForm' @ok='handleOk' />
+    <ticket-form ref='ticketForm' @ok='handleOk' />
   </div>
 </template>
 
@@ -324,11 +326,11 @@ import BaseTool from '@/utils/tool'
 import FeeBaseForm from '@/views/repair/fee/modules/BaseForm'
 import FeeDetail from '@/views/repair/fee/modules/Detail'
 import { deleteRepairFees, fetchRepairFee, queryRepairFee } from '@/api/repair/fee'
-import {getSelfRole } from '@/api/upms/role'
+import { getSelfRole } from '@/api/upms/role'
 import ReasonBaseForm from '@/views/repair/repair-reason/modules/BaseForm'
 import ReasonDetail from '@/views/repair/repair-reason/modules/Detail'
 import { deleteRepairReasons, fetchRepairReason, queryRepairReason } from '@/api/repair/repair-reason'
-import { queryRepairRecord, fetchCustomDataForRepairRecord } from '@/api/customize/fieldTemplateData'
+import { queryRepairRecord, fetchCustomDataForRepairRecord, fetchRepairTicketRecord } from '@/api/customize/fieldTemplateData'
 import DetailSbBom from '@/views/sb/modelbom/modules/DetailSbBom'
 import DetailSbCheck from '@/views/check/checkstandard/modules/DetailSbCheck'
 import { fetchSbInfo } from '@/api/sb/info'
@@ -342,6 +344,7 @@ import TransferForm from './TransferForm'
 import DetailCheckNew from './DetailCheckNew'
 import RepairRecordForm from './RepairRecordForm'
 import ReportUpForm from './ReportUpForm'
+import TicketForm from './TicketForm'
 const DetailListItem = DetailList.Item
 
 export default {
@@ -376,7 +379,8 @@ export default {
     TransferForm,
     DetailCheckNew,
     RepairRecordForm,
-    ReportUpForm
+    ReportUpForm,
+    TicketForm
   },
   data () {
     return {
@@ -746,7 +750,8 @@ export default {
         'repairDeptId': null,
         'userId': null,
         'sbCph': null,
-        'actualUser': null
+        'actualUser': null,
+        'dispatchUserId': null
       }
     }
   },
@@ -904,6 +909,13 @@ export default {
         modal.base(res.data)
       })
     },
+    handleViewTicket () {
+      this.visible = false
+      fetchRepairTicketRecord({ id: this.model.id }).then(res => {
+        const modal = this.$refs.ticketForm
+        modal.base(res.data)
+      })
+    },
     handleVerifyRecord (record) {
       this.visible = false
       fetchCustomDataForRepairRecord({ id: record.id }).then(res => {

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

@@ -157,7 +157,7 @@ export default {
         }
         // 日期处理
         this.model.reportLeaderId = values.reportLeaderId
-        if (this.model.reportHandleType === 2) { // 维修上报
+        if (this.model.reportHandleType === 1) { // 维修上报
           // 维修上报处理
           if (this.model.roleType === 2 || this.model.roleType === 3) {
             this.model.repairUserId = values.reportLeaderId

+ 28 - 12
src/views/repair/application-form/modules/TicketForm.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="main">
+  <div class="main" v-show='visible'>
     <div>
       <a-button type="primary" v-print="'#print-container2'" :disabled="disabled">打印</a-button>
       <a-button style="margin-left: 8px" @click="handleCancel()">返回</a-button>
@@ -58,9 +58,9 @@
           </tr>
           <tr>
             <td colspan="3">委修单编号</td>
-            <td colspan="12"></td>
+            <td colspan="12">{{ this.model.repairNo }}</td>
             <td colspan="3">委托时间</td>
-            <td colspan="12"> 2022 年 8 月 23 日</td>
+            <td colspan="12"> {{ this.model.callTime }}</td>
           </tr>
           <tr>
             <td colspan="3">工作优选权</td>
@@ -110,18 +110,18 @@
           </tr>
           <tr>
             <td colspan="3">设备位号</td>
-            <td colspan="9"></td>
+            <td colspan="9">{{ this.model.sbNo }}</td>
             <td colspan="3">设备名称</td>
-            <td colspan="7"> </td>
+            <td colspan="7"> {{ this.model.sbName }} </td>
             <td colspan="1">设备位置</td>
-            <td colspan="9"> </td>
+            <td colspan="9">{{ this.model.sbLocation }} </td>
           </tr>
           <tr >
             <td colspan="1" rowspan="11" style="width: 10px;">委<br/>托<br/>单<br/>位<br/>填<br/>写</td>
             <td colspan="14" >
               <div>
                 1、委托内容描述:<br/>
-                <a-textarea v-model="value5" style="resize:none;border:none;" :rows="4"/>
+                <a-textarea v-model="value5" disabled='disabled' style="resize:none;border:none;" :rows="4"/>
               </div>
             </td>
             <td colspan="1" rowspan="11" style="width: 10px;">检<br/>维<br/>修<br/>单<br/>位<br/>填<br/>写</td>
@@ -166,11 +166,11 @@
           </tr>
           <tr>
             <td colspan="3">委修人</td>
-            <td colspan="4"> </td>
+            <td colspan="4"> {{ this.model.caller }}</td>
             <td colspan="3">确认可施工</td>
             <td colspan="4"> </td>
             <td colspan="3">派工主管</td>
-            <td colspan="11"> </td>
+            <td colspan="11"> {{ this.model.dispatcher }}</td>
           </tr>
           <tr>
             <td colspan="3">委修主管</td>
@@ -178,7 +178,7 @@
             <td colspan="3">完工时间</td>
             <td colspan="4"> </td>
             <td colspan="3">检维修人</td>
-            <td colspan="11"> </td>
+            <td colspan="11">{{ this.model.repairMan }} </td>
           </tr>
           <tr>
             <td colspan="3"> </td>
@@ -222,16 +222,32 @@ export default {
       value5: null,
       value6: null,
       value7: null,
-      value8: []
-
+      value8: [],
+      model: {
+        'repairNo': null,
+        'callTime': null,
+        'sbNo': null,
+        'sbName': null,
+        'sbLocation': null,
+        'caller': null,
+        'dispatcher': null,
+        'repairMan': null,
+        'content': null
+      }
     }
   },
   methods: {
     onChange (checkedValues) {
       console.log(this.value8, this.value8.includes(1))
     },
+    base (record) {
+      this.visible = true
+      this.model = record
+      this.value5 = this.model.content
+    },
     handleCancel (values) {
       this.visible = false
+      this.$emit('ok')
     }
   }
 }

+ 32 - 3
src/views/repair/application-form/modules/TransferForm.vue

@@ -8,6 +8,24 @@
   >
     <a-form :form="form">
       <row-list :col="1">
+        <row-item>
+          <a-form-item
+            label="转派对象"
+            :labelCol="BaseTool.Constant.labelCol2"
+            :wrapperCol="BaseTool.Constant.wrapperCol2"
+          >
+            <a-select
+              v-decorator="['dispatchUserId']"
+              placeholder="请选择">
+              <a-select-option
+                v-for="item in roleUserMap"
+                :key="item.userId"
+                :label="item.realName"
+                :value="item.userId">{{ item.realName }}
+              </a-select-option>
+            </a-select>
+          </a-form-item>
+        </row-item>
         <row-item>
           <a-form-item
             label="转派理由"
@@ -16,7 +34,7 @@
           >
             <a-textarea
               :rows="4"
-              v-decorator="['remark', {rules: [{required: true, message: '转派理由不能为空'}]}]"/>
+              v-decorator="['repairDispatchRemark', {rules: [{required: true, message: '转派理由不能为空'}]}]"/>
           </a-form-item>
         </row-item>
       </row-list>
@@ -29,6 +47,7 @@
 
 <script>
 import { transferApplyByDTO } from '@/api/repair/application-form'
+import { queryRepairUser } from '@/api/upms/user-dept'
 
 export default {
   name: 'TransferForm',
@@ -39,7 +58,8 @@ export default {
       form: this.$form.createForm(this),
       visible: false,
       // 下拉框map
-      record: {}
+      record: {},
+      roleUserMap: []
     }
   },
   props: {
@@ -53,6 +73,9 @@ export default {
       // 如果是空标识添加
       this.modalTitle = '转派申请'
       this.record = record
+      // 转派工程师集合查询
+      const params = { roleType: 2, deptId: record.repairDeptId, queryType: 1 }
+      this.getUsers(params)
     },
     save () {
       const { form: { validateFieldsAndScroll } } = this
@@ -65,8 +88,9 @@ export default {
         values.id = this.record.id
         values.sbId = this.record.sbId
         values.no = this.record.no
-        values.dispatchUserId = this.record.dispatchUserId
+        // values.dispatchUserId = this.record.dispatchUserId
         values.sbCph = this.record.sbCph
+        values.status = this.record.status
         values.content = this.record.content
         values.actualUser = this.record.actualUser
         transferApplyByDTO(values)
@@ -77,6 +101,11 @@ export default {
           })
       })
     },
+    getUsers (params) {
+      queryRepairUser(params).then(res => {
+        this.roleUserMap = res.data
+      })
+    },
     handleCancel (values) {
       this.visible = false
       this.confirmLoading = false

+ 2 - 2
src/views/sb/info/modules/BaseForm.vue

@@ -521,7 +521,7 @@
               v-decorator="['workYear', {rules: [{required: true, message: '不能为空'}]}]" />
           </a-form-item>
         </a-col>
-        <a-col :lg="12" :md="24" :sm="24">
+<!--        <a-col :lg="12" :md="24" :sm="24">
           <a-form-item
             label="关联维修部门"
             :labelCol="BaseTool.Constant.labelCol"
@@ -536,7 +536,7 @@
               </a-select-option>
             </a-select>
           </a-form-item>
-        </a-col>
+        </a-col>-->
       </a-row>
       <title-divider title="自定义参数" width="120px"></title-divider>
       <div class="table-operator" style="margin-bottom: 8px;">

+ 11 - 2
src/views/upms/dept/modules/BaseForm.vue

@@ -1,8 +1,17 @@
 <template>
   <a-form @submit="handleSubmit" :form="form">
-    <a-form-item v-show="false" >
-      <a-input v-decorator="['deptId']" type="hidden"/>
+    <a-form-item
+      label="部门编码"
+      :labelCol="{lg: {span: 7}, sm: {span: 7}}"
+      :wrapperCol="{lg: {span: 10}, sm: {span: 17} }"
+    >
+      <a-input
+        disabled='disabled'
+        v-decorator="['deptId']"/>
     </a-form-item>
+<!--    <a-form-item v-show="false" >
+      <a-input v-decorator="['deptId']" type="hidden"/>
+    </a-form-item>-->
     <a-form-item v-show="false" >
       <a-input v-decorator="['parentId']" type="hidden"/>
     </a-form-item>