【update 标准主计划】完善

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