Browse Source

fix:[填报表单]优化

lkf
15881625488@163.com 2 months ago
parent
commit
da9fd2a3fd
2 changed files with 5 additions and 2 deletions
  1. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue
  2. +4
    -2
      src/views/business/comps/template/mixins/templateMixin.js

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue View File

@ -304,6 +304,7 @@ export default {
kcdw: content.targetActVolumeUnit, kcdw: content.targetActVolumeUnit,
syl: null, syl: null,
type: null, type: null,
elnType:this.product,
syldw: content.targetActVolumeUnit, syldw: content.targetActVolumeUnit,
yxzq: content.effectivePeriod, yxzq: content.effectivePeriod,
yxzqdw: content.effectivePeriodUnit, yxzqdw: content.effectivePeriodUnit,

+ 4
- 2
src/views/business/comps/template/mixins/templateMixin.js View File

@ -55,16 +55,17 @@ export default {
// 试验试剂:试剂 // 试验试剂:试剂
//试验试剂信息 type 类型:1:试剂;3:给药制剂;5:麻精药;7:供试品 //试验试剂信息 type 类型:1:试剂;3:给药制剂;5:麻精药;7:供试品
this.resource = _.filter(JSON.parse(v.resource),function(o){ this.resource = _.filter(JSON.parse(v.resource),function(o){
return o.type==1
return o.type==1||o.elnType==1
}) })
this.resourceWz =_.filter(JSON.parse(v.resource),function(o){ this.resourceWz =_.filter(JSON.parse(v.resource),function(o){
return o.type==3||o.type==7
return o.type==3||o.type==7||o.elnType==3||o.elnType==7
}) })
} }
if (v.yqResource) { if (v.yqResource) {
//仪器信息 //仪器信息
this.yqResource = JSON.parse(v.yqResource) this.yqResource = JSON.parse(v.yqResource)
} }
this.product=v.product||null
if (v.bdnr) { if (v.bdnr) {
this.formData = { this.formData = {
...JSON.parse(v.bdnr), ...JSON.parse(v.bdnr),
@ -122,6 +123,7 @@ export default {
return { return {
formData: {}, formData: {},
templateDetail: {}, templateDetail: {},
product:null,//产物:1:试剂;3:给药制剂;5:麻精药
resource: [], //试验试剂信息 resource: [], //试验试剂信息
wzResource: [], //物资信息 wzResource: [], //物资信息
yqResource: [], //仪器信息 yqResource: [], //仪器信息

Loading…
Cancel
Save