|
@@ -12,20 +12,6 @@
|
|
label-width="100px" @submit.native.prevent>
|
|
label-width="100px" @submit.native.prevent>
|
|
<el-row :gutter="15">
|
|
<el-row :gutter="15">
|
|
<el-col :span="21">
|
|
<el-col :span="21">
|
|
- <el-form-item label="业务类型" prop="businessType"
|
|
|
|
- :rules="[{required: true, message: '业务类型不能为空', trigger: 'blur'}
|
|
|
|
- ]">
|
|
|
|
- <el-select :disabled="this.inputForm.businessType !== '' & method !== 'edit'" v-model="inputForm.businessType" placeholder="请选择业务类型" style="width:100%;">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in $dictUtils.getDictList('business_type')"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="21">
|
|
|
|
<el-form-item label="上级节点" prop="parentId">
|
|
<el-form-item label="上级节点" prop="parentId">
|
|
<SelectTree
|
|
<SelectTree
|
|
ref="areaTree"
|
|
ref="areaTree"
|
|
@@ -50,6 +36,18 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="21">
|
|
<el-col :span="21">
|
|
|
|
+ <el-form-item label="关联部门" prop="officeIdList">
|
|
|
|
+ <el-select v-model="inputForm.officeIdList" style="width:100%" multiple placeholder="请选择">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in officeList"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="21">
|
|
<el-form-item label="序号" prop="no">
|
|
<el-form-item label="序号" prop="no">
|
|
<el-input v-model="inputForm.no" :disabled="true" show-word-limit></el-input>
|
|
<el-input v-model="inputForm.no" :disabled="true" show-word-limit></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -68,6 +66,7 @@
|
|
// import ReimbursementTypeService from '@/api/sys/ReimbursementTypeService'
|
|
// import ReimbursementTypeService from '@/api/sys/ReimbursementTypeService'
|
|
import ReimbursementApprovalTypeService from '@/api/cw/reimbursementApproval/ReimbursementApprovalTypeService'
|
|
import ReimbursementApprovalTypeService from '@/api/cw/reimbursementApproval/ReimbursementApprovalTypeService'
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
|
|
+ import OfficeService from '@/api/sys/OfficeService'
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -76,19 +75,23 @@
|
|
method: '',
|
|
method: '',
|
|
visible: false,
|
|
visible: false,
|
|
loading: false,
|
|
loading: false,
|
|
|
|
+ officeList: [],
|
|
inputForm: {
|
|
inputForm: {
|
|
businessType: '',
|
|
businessType: '',
|
|
name: '',
|
|
name: '',
|
|
no: '',
|
|
no: '',
|
|
- parentId: ''
|
|
|
|
|
|
+ parentId: '',
|
|
|
|
+ officeIdList: []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// reimbursementTypeService: null,
|
|
// reimbursementTypeService: null,
|
|
reimbursementApprovalTypeService: null,
|
|
reimbursementApprovalTypeService: null,
|
|
|
|
+ OfficeService: null,
|
|
created () {
|
|
created () {
|
|
// this.reimbursementTypeService = new ReimbursementTypeService()
|
|
// this.reimbursementTypeService = new ReimbursementTypeService()
|
|
this.reimbursementApprovalTypeService = new ReimbursementApprovalTypeService()
|
|
this.reimbursementApprovalTypeService = new ReimbursementApprovalTypeService()
|
|
|
|
+ this.officeService = new OfficeService()
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
SelectTree
|
|
SelectTree
|
|
@@ -132,6 +135,9 @@
|
|
// this.loading = false
|
|
// this.loading = false
|
|
// })
|
|
// })
|
|
}
|
|
}
|
|
|
|
+ this.officeService.getSecondLevelData().then(({data}) => {
|
|
|
|
+ this.officeList = data
|
|
|
|
+ })
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 表单提交
|
|
// 表单提交
|