【update 标准主计划】完善
This commit is contained in:
+8
-5
@@ -19,7 +19,6 @@
|
||||
<a-form-item :label="$t('standardSelect.standardName')">
|
||||
<standard-selection :placeholder="$t('pleaseSelect') + $t('standardSelect.standardNumber')"
|
||||
type="radio"
|
||||
:can-selected-source="[StandardSource.DOMESTIC.value, StandardSource.OVERSEAS.value]"
|
||||
@listChange="handleStandardNumberListChange"
|
||||
:select-only="true"
|
||||
:disabled="disableSubmit"
|
||||
@@ -591,7 +590,7 @@
|
||||
|
||||
<script>
|
||||
import StandardSelection from '@comp/selection/StandardSelection'
|
||||
import { StandardSource, YesOrNoEnum } from '@/enums/commonEnums'
|
||||
import { YesOrNoEnum } from '@/enums/commonEnums'
|
||||
import UserSelection from '@comp/selection/UserSelection'
|
||||
import {
|
||||
addStandardMasterPlan,
|
||||
@@ -604,7 +603,6 @@ export default {
|
||||
components: { UserSelection, StandardSelection },
|
||||
data () {
|
||||
return {
|
||||
StandardSource,
|
||||
title: '',
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
@@ -786,8 +784,13 @@ export default {
|
||||
* 选择标准编号,回显标准名称和标准状态
|
||||
*/
|
||||
handleStandardNumberListChange (list) {
|
||||
const { standardName, standardState } = list[0]
|
||||
this.form.setFieldsValue({ standardName, standardState })
|
||||
const { standardName, standardState, id } = list[0]
|
||||
console.log('选择标准', list, standardName, standardState)
|
||||
this.model.standardId = id
|
||||
this.form.setFieldsValue({
|
||||
'base.standardName': standardName,
|
||||
'base.standardState': standardState
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 选择用户得到用户名
|
||||
|
||||
Reference in New Issue
Block a user