|
|
@ -18,6 +18,7 @@ |
|
|
|
|
|
|
|
|
<LineLabel label="template.dl.dl007.yqsyxx" /> |
|
|
<LineLabel label="template.dl.dl007.yqsyxx" /> |
|
|
<CustomTable |
|
|
<CustomTable |
|
|
|
|
|
fieldItemLabel="template.dl.dl007.yqsyxx" |
|
|
:columns="yqsyColumns" |
|
|
:columns="yqsyColumns" |
|
|
:ref="refConf.yqsy" |
|
|
:ref="refConf.yqsy" |
|
|
@onRegentSubmit="(e) => onRegentSubmit(e)" |
|
|
@onRegentSubmit="(e) => onRegentSubmit(e)" |
|
|
@ -40,7 +41,7 @@ |
|
|
<LineLabel label="template.dl.dl013.xbxx" /> |
|
|
<LineLabel label="template.dl.dl013.xbxx" /> |
|
|
<div class="template-form-item"> |
|
|
<div class="template-form-item"> |
|
|
<BaseInfoFormPackage |
|
|
<BaseInfoFormPackage |
|
|
fieldItemLabel="" |
|
|
|
|
|
|
|
|
fieldItemLabel="template.dl.dl013.xbxx" |
|
|
label="" |
|
|
label="" |
|
|
:ref="refConf.xbxx" |
|
|
:ref="refConf.xbxx" |
|
|
:formConfig="xbxxConfig" |
|
|
:formConfig="xbxxConfig" |
|
|
@ -52,7 +53,7 @@ |
|
|
<LineLabel label="template.dl.dl013.cdxx" /> |
|
|
<LineLabel label="template.dl.dl013.cdxx" /> |
|
|
<div class="template-form-item"> |
|
|
<div class="template-form-item"> |
|
|
<BaseInfoFormPackage |
|
|
<BaseInfoFormPackage |
|
|
fieldItemLabel="" |
|
|
|
|
|
|
|
|
fieldItemLabel="template.dl.dl013.cdxx" |
|
|
label="" |
|
|
label="" |
|
|
:ref="refConf.cdxx" |
|
|
:ref="refConf.cdxx" |
|
|
:formConfig="cdxxConfig" |
|
|
:formConfig="cdxxConfig" |
|
|
@ -81,12 +82,13 @@ |
|
|
> |
|
|
> |
|
|
</div> |
|
|
</div> |
|
|
<BaseInfoFormPackage |
|
|
<BaseInfoFormPackage |
|
|
fieldItemLabel="" |
|
|
|
|
|
|
|
|
fieldItemLabel="template.dl.dl013.cdxx" |
|
|
label="" |
|
|
label="" |
|
|
:ref="`cdxx${index}Ref`" |
|
|
:ref="`cdxx${index}Ref`" |
|
|
:formConfig="getCdxxTimeConfig(index)" |
|
|
:formConfig="getCdxxTimeConfig(index)" |
|
|
:formData="cdxxItem" |
|
|
:formData="cdxxItem" |
|
|
@blur="(e) => onBlur(e, index)" |
|
|
@blur="(e) => onBlur(e, index)" |
|
|
|
|
|
:prefixKey="'paralle' + cdxxItem.id" |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
@ -100,10 +102,12 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<EditSign ref="editSignDL013Ref" @cancel="signCancel" @callback="signCallback" /> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import EditSign from "../../dialog/EditSign.vue";//电子签名弹窗 |
|
|
import BaseInfoFormPackage from '@/components/Template/BaseInfoFormPackage' |
|
|
import BaseInfoFormPackage from '@/components/Template/BaseInfoFormPackage' |
|
|
import TableOpertaionDelete from '@/components/Template/operation/TableOpertaionDelete.vue' |
|
|
import TableOpertaionDelete from '@/components/Template/operation/TableOpertaionDelete.vue' |
|
|
import CustomTable from '@/components/Template/CustomTable.vue' |
|
|
import CustomTable from '@/components/Template/CustomTable.vue' |
|
|
@ -113,6 +117,7 @@ import Step from '@/components/Template/Step' |
|
|
import templateMixin from '../../mixins/templateMixin' |
|
|
import templateMixin from '../../mixins/templateMixin' |
|
|
import { getuuid } from '@/utils/index.js' |
|
|
import { getuuid } from '@/utils/index.js' |
|
|
import { EventBus } from '@/utils/eventBus' |
|
|
import { EventBus } from '@/utils/eventBus' |
|
|
|
|
|
import moment from "moment"; |
|
|
|
|
|
|
|
|
const refConf = { |
|
|
const refConf = { |
|
|
base: 'baseInfoRef', |
|
|
base: 'baseInfoRef', |
|
|
@ -131,7 +136,8 @@ export default { |
|
|
TableList, |
|
|
TableList, |
|
|
Step, |
|
|
Step, |
|
|
CustomTable, |
|
|
CustomTable, |
|
|
TableOpertaionDelete |
|
|
|
|
|
|
|
|
TableOpertaionDelete, |
|
|
|
|
|
EditSign |
|
|
}, |
|
|
}, |
|
|
mixins: [templateMixin], |
|
|
mixins: [templateMixin], |
|
|
props: { |
|
|
props: { |
|
|
@ -306,7 +312,8 @@ export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
formData: {}, |
|
|
formData: {}, |
|
|
refConf |
|
|
|
|
|
|
|
|
refConf, |
|
|
|
|
|
deleteIndex:-1 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
@ -427,27 +434,15 @@ export default { |
|
|
(config) => config.id === cdxxItem.id |
|
|
(config) => config.id === cdxxItem.id |
|
|
) |
|
|
) |
|
|
if (configIndex !== -1) { |
|
|
if (configIndex !== -1) { |
|
|
// 创建新数组,确保响应式更新 |
|
|
|
|
|
const newConfigs = [...this.formData.cdxxConfigs] |
|
|
|
|
|
newConfigs.splice(configIndex, 1) |
|
|
|
|
|
this.$set(this.formData, 'cdxxConfigs', newConfigs) |
|
|
|
|
|
|
|
|
|
|
|
// 更新测定次数 |
|
|
|
|
|
this.$refs[refConf.cdxx]?.updateFormData('cdcs', newConfigs.length, { |
|
|
|
|
|
isUpdateRecord: false, |
|
|
|
|
|
signData: null |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
// 更新平均细胞密度 |
|
|
|
|
|
this.updatePjxbmd() |
|
|
|
|
|
// 通知后端保存数据 |
|
|
|
|
|
EventBus.$emit('onModifyRecord', { |
|
|
|
|
|
type: 'fieldChanged', |
|
|
|
|
|
newRecord: null, |
|
|
|
|
|
resourceList: null |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
let content = this.getFilledFormData() |
|
|
|
|
|
let thisItem = content.cdxxConfigs[configIndex] |
|
|
|
|
|
if(!thisItem.xsbs && !thisItem.zsg && !thisItem.ysg && !thisItem.zxg && !thisItem.yxg){ |
|
|
|
|
|
this.doDeleteParalleConfig(configIndex,null) |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.deleteIndex = configIndex |
|
|
|
|
|
this.$refs.editSignDL013Ref.show(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 新增测定信息 |
|
|
// 新增测定信息 |
|
|
@ -635,7 +630,65 @@ export default { |
|
|
async onSave() { |
|
|
async onSave() { |
|
|
const formData = this.getStepResource() |
|
|
const formData = this.getStepResource() |
|
|
console.log(formData, 'formData') |
|
|
console.log(formData, 'formData') |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkDelete(index){ |
|
|
|
|
|
let content = this.getFilledFormData() |
|
|
|
|
|
let thisItem = content.paralleConfigs[index] |
|
|
|
|
|
if(!thisItem.jcb && !thisItem.jg && !thisItem.sjwjm){ |
|
|
|
|
|
this.doDeleteParalleConfig(index,null) |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.deleteIndex = index |
|
|
|
|
|
this.$refs.editSignLAB006Ref.show(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 处理电子签名取消事件 |
|
|
|
|
|
signCancel() { |
|
|
|
|
|
}, |
|
|
|
|
|
// 处理电子签名确认回调事件 |
|
|
|
|
|
signCallback(data) { |
|
|
|
|
|
let content = this.getFilledFormData() |
|
|
|
|
|
let record = [ |
|
|
|
|
|
{ |
|
|
|
|
|
"userNameCn": data.qmrMc, |
|
|
|
|
|
"userNameEn": data.qmrMcEn, |
|
|
|
|
|
"key": "paralle", |
|
|
|
|
|
"fieldCn": this.$t('template.dl.dl013.cdxx','zh_CN'), |
|
|
|
|
|
"fieldEn": this.$t('template.dl.dl013.cdxx','en_US'), |
|
|
|
|
|
// "oldValue": content.paralleConfigs[this.deleteIndex].jcb+";"+content.paralleConfigs[this.deleteIndex].jg+";"+(content.paralleConfigs[this.deleteIndex].jg==='接受'?''(content.paralleConfigs[this.deleteIndex].jgOther+";"))+content.paralleConfigs[this.deleteIndex].sjwjm, |
|
|
|
|
|
"oldValue": '稀释倍数:'+content.cdxxConfigs[this.deleteIndex].xsbs+";左上格(个):"+content.cdxxConfigs[this.deleteIndex].zsg+";右上格(个):"+content.cdxxConfigs[this.deleteIndex].ysg+";左下格(个):"+content.cdxxConfigs[this.deleteIndex].zxg+";右下格(个):"+content.cdxxConfigs[this.deleteIndex].yxg, |
|
|
|
|
|
"value": "", |
|
|
|
|
|
"title": "修改", |
|
|
|
|
|
"time": moment().format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
|
|
"reason": data.remark |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
this.doDeleteParalleConfig(this.deleteIndex,record) |
|
|
|
|
|
}, |
|
|
|
|
|
doDeleteParalleConfig(configIndex,newRecord){ |
|
|
|
|
|
// 创建新数组,确保响应式更新 |
|
|
|
|
|
const newConfigs = [...this.formData.cdxxConfigs] |
|
|
|
|
|
newConfigs.splice(configIndex, 1) |
|
|
|
|
|
this.$set(this.formData, 'cdxxConfigs', newConfigs) |
|
|
|
|
|
|
|
|
|
|
|
// 更新测定次数 |
|
|
|
|
|
this.$refs[refConf.cdxx]?.updateFormData('cdcs', newConfigs.length, { |
|
|
|
|
|
isUpdateRecord: false, |
|
|
|
|
|
signData: null |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
// 更新平均细胞密度 |
|
|
|
|
|
this.updatePjxbmd() |
|
|
|
|
|
// 通知后端保存数据 |
|
|
|
|
|
EventBus.$emit('onModifyRecord', { |
|
|
|
|
|
type: 'fieldChanged', |
|
|
|
|
|
newRecord: newRecord, |
|
|
|
|
|
resourceList: null |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|