luojie 3 weeks ago
parent
commit
d9d0ac3417
10 changed files with 127 additions and 62 deletions
  1. +1
    -1
      src/lang/en/template/bl.js
  2. +1
    -1
      src/lang/zh/template/bl.js
  3. +20
    -20
      src/views/business/comps/template/comps/bl/BL001.vue
  4. +0
    -16
      src/views/business/comps/template/comps/bl/BL002.vue
  5. +2
    -2
      src/views/business/comps/template/comps/dj/DJ002.vue
  6. +2
    -2
      src/views/business/comps/template/comps/dj/DJ003.vue
  7. +5
    -4
      src/views/business/comps/template/comps/dl/DL003.vue
  8. +3
    -3
      src/views/business/comps/template/comps/dl/DL004.vue
  9. +1
    -8
      src/views/business/comps/template/comps/dl/DL005.vue
  10. +92
    -5
      src/views/business/comps/template/comps/dl/DL006.vue

+ 1
- 1
src/lang/en/template/bl.js View File

@ -4,7 +4,7 @@ export default {
fhsj: '复核时间',
ybsm: '样本说明',
smybh: '扫描仪编号',
dwypbh: '动物/样编号',
dwypbh: '动物/样编号',
qprsbh: '切片/染色编号',
smryqrxx: '扫描人员确认信息',
ztblxjqrxx: '专题病理学家确认信息',

+ 1
- 1
src/lang/zh/template/bl.js View File

@ -4,7 +4,7 @@ export default {
fhsj: '复核时间',
ybsm: '样本说明',
smybh: '扫描仪编号',
dwypbh: '动物/样编号',
dwypbh: '动物/样编号',
qprsbh: '切片/染色编号',
smryqrxx: '扫描人员确认信息',
ztblxjqrxx: '专题病理学家确认信息',

+ 20
- 20
src/views/business/comps/template/comps/bl/BL001.vue View File

@ -253,24 +253,24 @@ export default {
width: 280,
bodyOptions: this.ypmcTaOptions,
},
{
label: 'template.dj.dj003.cysj',
prop: "cysj",
bodyType: 'dateTimeRange',
width: 450,
bodyFillType: 'actFill'
},
{
label: 'template.dj.dj003.sjbd',
prop: "sjbd",
bodyType: 'select',
bodyOptions: [
{value:1,label:'正常'},
{value:0,label:'偏离'},
],
bodyFillType: 'actFill',
width: 180,
},
// {
// label: 'template.dj.dj003.cysj',
// prop: "cysj",
// bodyType: 'dateTimeRange',
// width: 450,
// bodyFillType: 'actFill'
// },
// {
// label: 'template.dj.dj003.sjbd',
// prop: "sjbd",
// bodyType: 'select',
// bodyOptions: [
// {value:1,label:''},
// {value:0,label:''},
// ],
// bodyFillType: 'actFill',
// width: 180,
// },
{
label: 'template.dj.dj003.yps',
prop: "yps",
@ -293,7 +293,7 @@ export default {
fillType: 'actFill',
maxlength: 200,
subType: 'button',
subKey: 'yjsj',
subKey: 'yjsjButton',
buttonName: 'template.dj.dj003.hqsj',
},
dsfs: {
@ -351,7 +351,7 @@ export default {
//
handleClickButton(_item, signData) {
this.$refs.yjczxxRef.updateFormData(
_item.subKey,
_item?.subKey?.replace("Button", ""),
moment().format('YYYY/MM/DD HH:mm'),
{ isUpdateRecord: true, signData }
)

+ 0
- 16
src/views/business/comps/template/comps/bl/BL002.vue View File

@ -158,22 +158,6 @@ export default {
}
}
},
{
type: 'cellItem',
label: 'template.bl.bl002.fhsj',
config: {
startDate: {
label: 'template.common.startTime',
type: 'input',
disabled: true
},
endDate: {
label: 'template.common.endTime',
type: 'input',
disabled: true
}
}
}
]
},

+ 2
- 2
src/views/business/comps/template/comps/dj/DJ002.vue View File

@ -277,7 +277,7 @@ export default {
fillType: 'actFill',
maxlength: 200,
subType: 'button',
subKey: 'yjsj',
subKey: 'yjsjButton',
buttonName: 'template.dj.dj003.hqsj',
},
dsfs: {
@ -335,7 +335,7 @@ export default {
//
handleClickButton(_item, signData) {
this.$refs.yjczxxRef.updateFormData(
_item.subKey,
_item?.subKey?.replace("Button", ""),
moment().format('YYYY/MM/DD HH:mm'),
{ isUpdateRecord: true, signData }
)

+ 2
- 2
src/views/business/comps/template/comps/dj/DJ003.vue View File

@ -233,7 +233,7 @@ export default {
fillType: 'actFill',
maxlength: 200,
subType: 'button',
subKey: 'yjsj',
subKey: 'yjsjButton',
buttonName: 'template.dj.dj003.hqsj',
},
dsfs: {
@ -287,7 +287,7 @@ export default {
//
handleClickButton(_item, signData) {
this.$refs.yjczxxRef.updateFormData(
_item.subKey,
_item?.subKey?.replace("Button", ""),
moment().format('YYYY/MM/DD HH:mm'),
{ isUpdateRecord: true, signData }
)

+ 5
- 4
src/views/business/comps/template/comps/dl/DL003.vue View File

@ -224,7 +224,8 @@ export default {
fillType: 'actFill',
maxlength: 200,
subType: 'button',
subKey: 'jzkssj',
subKey: 'jzkssjButton',
subDisabled: this.fillType !== 'actFill',
buttonName: 'template.dl.dl003.ksButton',
},
jzjssj: {
@ -233,7 +234,7 @@ export default {
fillType: 'actFill',
maxlength: 200,
subType: 'button',
subKey: 'jzjssj',
subKey: 'jzjssjButton',
buttonName: 'template.dl.dl003.jsButton',
},
fssygbh: {
@ -271,7 +272,7 @@ export default {
fillType: 'actFill',
type: 'input',
subType: 'button',
subKey: 'pykssj',
subKey: 'pykssjButton',
buttonName: 'template.dl.dl003.ksButton',
},
@ -343,7 +344,7 @@ export default {
//
handleClickButton(_item, signData) {
this.$refs.czInfoRef.updateFormData(
_item.subKey,
_item?.subKey?.replace("Button", ""),
moment().format('YYYY/MM/DD HH:mm'),
{ isUpdateRecord: true, signData }
)

+ 3
- 3
src/views/business/comps/template/comps/dl/DL004.vue View File

@ -196,7 +196,7 @@ export default {
fillType: 'actFill',
maxlength: 200,
subType: 'button',
subKey: 'pykssj',
subKey: 'pykssjButton',
buttonName: 'template.dl.dl003.ksButton',
},
pyjssj: {
@ -205,7 +205,7 @@ export default {
fillType: 'actFill',
maxlength: 200,
subType: 'button',
subKey: 'pyjssj',
subKey: 'pyjssjButton',
buttonName: 'template.dl.dl003.jsButton',
},
}
@ -259,7 +259,7 @@ export default {
//
handleClickButton(_item, signData) {
this.$refs.czInfoRef.updateFormData(
_item.subKey,
_item?.subKey?.replace("Button", ""),
moment().format('YYYY/MM/DD HH:mm'),
{ isUpdateRecord: true, signData }
)

+ 1
- 8
src/views/business/comps/template/comps/dl/DL005.vue View File

@ -25,7 +25,7 @@
:formConfig="czInfoFormConfig"
:formData="formData"
/>
<StepFormPackage @onRegentSubmit="onRegentSubmit" class="mt20" ref="stepFormPackageRef" prefixKey="dl_step1" :form-config="stepConfig" :formData = "formData" />
<StepFormPackage class="mt20" ref="stepFormPackageRef" prefixKey="dl_step1" :form-config="stepConfig" :formData = "formData" />
</div>
<BaseInfoFormPackage
@ -247,13 +247,6 @@ export default {
const formData = this.getStepResource()
console.log(formData, 'formData')
},
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
console.log(key,111)
},
}
}
</script>

+ 92
- 5
src/views/business/comps/template/comps/dl/DL006.vue View File

@ -68,6 +68,7 @@
class="mt20"
fieldItemLabel="template.dl.dl006.czxx"
ref="czFormRef"
@onRegentSubmit="onRegentSubmit"
:formConfig="czFormConfig"
:formData="formData"
/>
@ -96,6 +97,7 @@ import TableList from '@/components/Template/Table'
import Step from '@/components/Template/Step'
import templateMixin from '../../mixins/templateMixin'
import { formatNumberByDigits,justUpdateFilledFormData } from '@/utils/index.js'
import { uniqeYqOne, uniqeResourceOne } from "@/utils/calUnitTools";
const refConf = {
base: 'baseInfoRef',
@ -140,6 +142,7 @@ export default {
if(stepTableFormData_1.length>0){
this.clickFinish()
}
console.log(this.getFilledFormData())
},
computed: {
czxxColumns: {
@ -287,7 +290,7 @@ export default {
fillType: 'preFill',
subType: 'button',
isClearForm: true,
subKey: 'jlzsl',
subKey: 'jlzslButton',
buttonName: 'form.saveConfirm',
maxlength: 2,
},
@ -472,17 +475,101 @@ export default {
return await this.validFormFields(refNames)
},
getResource() {
let content = this.getFilledFormData();
let tmpResource = []
let tmpYq = []
let addYq = []
let addResource = []
if (this.fillType === "actFill") {
let header1 = content.headerSelectFields
let table1 = content.stepTableFormData
// S9S9
if (content.sftjs9 === 1 && content.s9hhybh) {
console.log('sbdhau1')
tmpResource.push({
mc: 'S9混合液',
bh: content.s9hhybh,
ph: null,
nd: null,
nddw: null,
ndz: null,
ly: null,
sxrq: null,
kc: null,
kcdw: null,
type: 1,
syl: content.s9hhyyjjrl || null,
syldw: content.s9hhyyjjrldw || null,
yxzq: null,
yxzqdw: null
})
}
//PBSPBS
if (content.sftjs9 === 0 && content.pbsbh) {
tmpResource.push({
mc: 'PBS',
bh: content.pbsbh,
ph: null,
nd: null,
nddw: null,
ndz: null,
ly: null,
sxrq: null,
kc: null,
kcdw: null,
type: 1,
syl: content.pbsryyjrl || null,
syldw: content.pbsryyjrldw || null,
yxzq: null,
yxzqdw: null
})
}
if (table1 && table1.length > 0) {
for (let i = 0; i < table1.length; i++) {
tmpResource.push({
mc: '加液编号',
bh: table1[i].jybh,
ph: null,
nd: null,
nddw: null,
ndz: null,
ly: null,
sxrq: null,
kc: null,
kcdw: null,
type: 1,
syl: table1[i].ysjytj || null,
syldw: header1.ysjytjDw || null,
yxzq: null,
yxzqdw: null
})
}
}
tmpYq.push({
mc: content.pyxbhmc,
xh: content.pyxbhxh,
bh: content.pyxbh,
jzrq: content.pyxbhjzrq,
})
}
const stepResource = this.$refs.stepRef.getStepResource()
// 使
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
addYq = [...stepResource.yqResource,...tmpYq]
addResource = [...stepResource.sjResource,...tmpResource]
this.resourceTmp = uniqeResourceOne(addResource) || []
this.yqResourceTmp = uniqeYqOne(addYq) || []
return this.resourceTmp
},
onRegentSubmit(e) {
console.log(e,909090)
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
if (key == 'pyxbh') {
this.$refs.czFormRef.updateFormData('pyxbhmc', row.mc)
this.$refs.czFormRef.updateFormData('pyxbhxh', row.xh)
this.$refs.czFormRef.updateFormData('pyxbhjzrq', row.jzrq)
}
if (key === 'qxbd') {
this.$refs.czInfoRef.updateFormData('pykssj', row.startDate)
}

Loading…
Cancel
Save