[update] 修改bug87729
This commit is contained in:
@@ -74,6 +74,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import JMultipleDatePicker from '../../../../components/JMultipleDatePicker'
|
import JMultipleDatePicker from '../../../../components/JMultipleDatePicker'
|
||||||
|
import pick from 'lodash.pick'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ManualAddModal',
|
name: 'ManualAddModal',
|
||||||
@@ -136,7 +137,8 @@ export default {
|
|||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(this.model)
|
this.form.setFieldsValue(pick(this.model, 'standardNumber', 'standardName', 'standardState',
|
||||||
|
'newProductImplDate', 'newAuthImplDate', 'splitFile'))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 标准状态改变
|
// 标准状态改变
|
||||||
@@ -147,7 +149,11 @@ export default {
|
|||||||
},
|
},
|
||||||
// 上传拆解单文件改变
|
// 上传拆解单文件改变
|
||||||
splitFileChange (value) {
|
splitFileChange (value) {
|
||||||
this.model.splitFile_dictText = this.$refs.splitFileRef.fileList[0].name
|
if (this.$refs.splitFileRef.fileList[0]) {
|
||||||
|
this.model.splitFile_dictText = this.$refs.splitFileRef.fileList[0].name
|
||||||
|
} else {
|
||||||
|
this.model.splitFile_dictText = ''
|
||||||
|
}
|
||||||
},
|
},
|
||||||
close () {
|
close () {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
@@ -157,7 +163,8 @@ export default {
|
|||||||
if (!err) {
|
if (!err) {
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
const isEdit = this.model.standardNumber
|
const isEdit = this.model.standardNumber
|
||||||
const formData = Object.assign(this.model, values)
|
const formData = Object.assign(values)
|
||||||
|
formData.splitFile_dictText = this.model.splitFile_dictText
|
||||||
this.$emit('ok', formData, isEdit)
|
this.$emit('ok', formData, isEdit)
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
this.close()
|
this.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user