|
@@ -62,7 +62,7 @@
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
<a-input
|
|
|
- v-decorator="['positionNo']" />
|
|
|
+ v-decorator="['positionNo', {rules: [{required: true, message: '设备位号不能为空'}]}]" />
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<!-- <row-item>
|
|
@@ -128,7 +128,7 @@
|
|
|
<a-tree-select
|
|
|
tree-checkable
|
|
|
:show-checked-strategy="SHOW_PARENT"
|
|
|
- v-decorator="['repairProfessor', {initialValue: [1], rules: [{required: true, message: '检修专业不能为空'}]}]"
|
|
|
+ v-decorator="['repairProfessor', { rules: [{required: true, message: '检修专业不能为空'}]}]"
|
|
|
placeholder="请选择">
|
|
|
<a-tree-select-node
|
|
|
v-for="(label,value) in professorMap"
|
|
@@ -476,7 +476,7 @@
|
|
|
<script>
|
|
|
import pick from 'lodash.pick'
|
|
|
import BaseTool from '../../../../utils/tool'
|
|
|
-import { addRepairApplicationForm, updateRepairApplicationForm, getSbPositions, getDispatchUser } from '@/api/repair/application-form'
|
|
|
+import { addRepairApplicationForm, updateRepairApplicationForm, getSbPositions, getDispatchUser, receiveProfessor } from '@/api/repair/application-form'
|
|
|
import PartInfoSelectModal from '@/views/part/info/modules/PartInfoSelectModal'
|
|
|
import SbInfoSelectModal from '@/views/sb/info/modules/SbInfoSelectModal'
|
|
|
import { queryUser } from '@/api/upms/user'
|
|
@@ -760,13 +760,18 @@ export default {
|
|
|
const { form: { setFieldsValue } } = this
|
|
|
this.sbId = key
|
|
|
// 日期处理
|
|
|
- this.$nextTick(() => {
|
|
|
- setFieldsValue(Object.assign({
|
|
|
- 'sbId': key,
|
|
|
- 'sbName': row.name,
|
|
|
- 'sbCph': row.cph
|
|
|
+
|
|
|
+ receiveProfessor({ id: key }).then(res => {
|
|
|
+ const val = res.data ? res.data : 1
|
|
|
+ this.$nextTick(() => {
|
|
|
+ setFieldsValue(Object.assign({
|
|
|
+ 'sbId': key,
|
|
|
+ 'sbName': row.name,
|
|
|
+ 'sbCph': row.cph,
|
|
|
+ 'repairProfessor': [val]
|
|
|
// 'parentSbNo': row.ppNo
|
|
|
- }))
|
|
|
+ }))
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
handlePartSelect () {
|