[update] 修改UAT问题:市场法规清单发布流程,增加附件字段
This commit is contained in:
@@ -113,6 +113,15 @@
|
|||||||
placeholder=""/>
|
placeholder=""/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<!-- 附件 -->
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item
|
||||||
|
:labelCol="$i18n.locale === EN ? longLabelColEn : longLabelCol"
|
||||||
|
:wrapperCol="$i18n.locale === EN ? longWrapperColEn : longWrapperCol"
|
||||||
|
:label="$t('attach')" :colon="formItemColon">
|
||||||
|
<j-upload v-decorator="['file']" disabled />
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
</template>
|
</template>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
@@ -202,10 +211,12 @@ import pick from 'lodash.pick'
|
|||||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||||
import { getFormDictTreeList } from '../../../api/api'
|
import { getFormDictTreeList } from '../../../api/api'
|
||||||
import STreeSelect from '../../../components/STreeSelect'
|
import STreeSelect from '../../../components/STreeSelect'
|
||||||
|
import FileEcho from '../../../components/FileEcho'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'MarketListReleaseProcess',
|
name: 'MarketListReleaseProcess',
|
||||||
components: {
|
components: {
|
||||||
|
FileEcho,
|
||||||
BaseInfoForm,
|
BaseInfoForm,
|
||||||
InternalDetailPage,
|
InternalDetailPage,
|
||||||
ProcessDetailList,
|
ProcessDetailList,
|
||||||
@@ -398,7 +409,9 @@ export default {
|
|||||||
processInfo.country = this.model.businessInfoDTO.country.split(',').map(item => {
|
processInfo.country = this.model.businessInfoDTO.country.split(',').map(item => {
|
||||||
return { value: item }
|
return { value: item }
|
||||||
})
|
})
|
||||||
this.processInfoForm.setFieldsValue(pick(processInfo, 'processName', 'processDueDate', 'processDescription', 'manifestNo', 'manifestName', 'country', 'manifestDesc'))
|
// 附件
|
||||||
|
processInfo.file = this.model.businessInfoDTO.file
|
||||||
|
this.processInfoForm.setFieldsValue(pick(processInfo, 'processName', 'processDueDate', 'processDescription', 'manifestNo', 'manifestName', 'country', 'manifestDesc', 'file'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 有草稿json按草稿进来的回显
|
// 有草稿json按草稿进来的回显
|
||||||
@@ -419,7 +432,9 @@ export default {
|
|||||||
processInfo.country = this.draftModel.businessInfoDTO.country.split(',').map(item => {
|
processInfo.country = this.draftModel.businessInfoDTO.country.split(',').map(item => {
|
||||||
return { value: item }
|
return { value: item }
|
||||||
})
|
})
|
||||||
this.processInfoForm.setFieldsValue(pick(processInfo, 'processName', 'processDueDate', 'processDescription', 'manifestNo', 'manifestName', 'country', 'manifestDesc'))
|
// 附件
|
||||||
|
processInfo.file = this.draftModel.businessInfoDTO.file
|
||||||
|
this.processInfoForm.setFieldsValue(pick(processInfo, 'processName', 'processDueDate', 'processDescription', 'manifestNo', 'manifestName', 'country', 'manifestDesc', 'file'))
|
||||||
}
|
}
|
||||||
// 初始化流程审批信息
|
// 初始化流程审批信息
|
||||||
this.approvalInfoForm.setFieldsValue(pick(this.draftModel.basicTaskInfoDTO, 'handleText', 'handleFile'))
|
this.approvalInfoForm.setFieldsValue(pick(this.draftModel.basicTaskInfoDTO, 'handleText', 'handleFile'))
|
||||||
|
|||||||
@@ -71,6 +71,20 @@
|
|||||||
:placeholder="disabled ? '' : $t('autoTakeout')" />
|
:placeholder="disabled ? '' : $t('autoTakeout')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 附件 -->
|
||||||
|
<div class="box-title-text form-flex-item form-flex-item-half form-flex-item-all">
|
||||||
|
<div class="title-text title-text-long">
|
||||||
|
<span class="title-text-text" :title="$t('attach')">
|
||||||
|
{{ $t('attach') }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="item-model" prop="file">
|
||||||
|
<j-upload v-model="formInline.file"
|
||||||
|
return-id
|
||||||
|
multiple
|
||||||
|
disabled/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
|
|
||||||
@@ -347,6 +361,8 @@ export default {
|
|||||||
formInline.manifestName = result.manifestName
|
formInline.manifestName = result.manifestName
|
||||||
// 清单说明
|
// 清单说明
|
||||||
formInline.manifestDesc = result.manifestDesc
|
formInline.manifestDesc = result.manifestDesc
|
||||||
|
// 附件
|
||||||
|
formInline.file = result.file
|
||||||
// 版本号
|
// 版本号
|
||||||
formInline.manifestVersion = result.manifestVersion
|
formInline.manifestVersion = result.manifestVersion
|
||||||
// 国家/地区
|
// 国家/地区
|
||||||
@@ -458,6 +474,8 @@ export default {
|
|||||||
formInline.manifestName = result.manifestName
|
formInline.manifestName = result.manifestName
|
||||||
// 清单说明
|
// 清单说明
|
||||||
formInline.manifestDesc = result.manifestDesc
|
formInline.manifestDesc = result.manifestDesc
|
||||||
|
// 清单说明
|
||||||
|
formInline.file = result.file
|
||||||
// 版本号
|
// 版本号
|
||||||
formInline.manifestVersion = result.manifestVersion
|
formInline.manifestVersion = result.manifestVersion
|
||||||
// 国家/地区
|
// 国家/地区
|
||||||
|
|||||||
Reference in New Issue
Block a user