-

{{ formData.bdmc ||
- $t('template.sp.sp008.title') }}

+

{{ formData.templateMc ||
+ '生物样品分析方法学样品制备表-准确度与精密度' }}

@@ -64,11 +59,10 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSn } from '@/api/template';
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
-import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
export default {
- name: "ZQDYJMD",
- components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
+ name: "SWYPFXRYPZB",
+ components: { BaseInfoFormPcakge, LineLabel, TableList, Step, CustomTable,TableOpertaion },
mixins: [templateMixin],
props: {
fillType: {
@@ -112,7 +106,7 @@ export default {
}
]
},
-
+
baseInfoFormConfig() {
return [
{
@@ -142,7 +136,7 @@ export default {
},
//处理批编号
clpbg: {
- label: 'template.sp.sp008.clpbh',
+ label: 'template.common.clpbh',
type: "input",
fillType: "actFill",
maxlength: 50
@@ -174,20 +168,18 @@ export default {
},
{
type: "cellItem",
- label: 'template.sp.sp008.rqcz',
+ label: 'template.common.rqcz',
config: {
rqcz: {
- type: "select",
- multiple: true,
+ type: "input",
fillType: "actFill",
- options: this.getDictOptions('business_rqcz'),
- otherCode: "rqczOther",
+ maxlength: 50
},
}
},
{
type: "cellItem",
- label: 'template.sp.sp008.clsj',
+ label: 'template.common.clsj',
config: {
startDate: {
label: 'template.common.startTime',
@@ -207,37 +199,32 @@ export default {
type: "step",
config: {
jz: {
- label: 'template.sp.sp008.xzjz',
+ label: 'template.common.xzjz',
type: "input",
fillType: "preFill",
subType: "clickable",
- subKey: "subJz",
+ subKey: "subSolution",
subFillType: "actFill",
maxlength: 20,
- labelWidth: 80,
},
}
}
]
},
tableStepColumns() {
- return getSWYPFXFFXYPZBBTableConfig(this,'business_sp_jmdyzqdyp');
+ return getSWYPFXFFXYPZBBTableConfig(this);
},
},
data() {
return {
- reagentType: "",//本表单特殊字段:选择试剂的类型1选择基质,2表格里面选择试剂
-
- currentSubKey: "",//当前点击的子项key
- rowIndex:0,//当前表格点击的行数
-
resource: [],
+ resourceData1: [],
sysjColumns: [
{ label: 'template.common.reagentName', prop: "mc" },//名称
{ label: 'template.common.reagentCode', prop: "bh" },//编号
{ label: 'template.common.reagentNo', prop: "ph" },//批号 试剂,供试品才有
{ label: 'template.common.concentration', prop: "nd" },//浓度
- { label: 'template.common.source', prop: "source" },//来源
+ { label: 'template.common.source', prop: "source" },//来源
{ label: 'template.common.reagentExpireDate', prop: "sxrq" },//失效日期
],
yqsColumns: [
@@ -256,63 +243,30 @@ export default {
formData: {
immediate: true,
handler(v) {
- if(this.fillType === "actFill"){
- this.getCode(v);
+ if(!v.targetCodeSn && this.fillType === "actFill"){
+ this.getCode();
}
}
}
},
methods: {
- //点击基质选择
- handleJzClickable(obj){
- this.reagentType = 1//本表单特殊字段
- this.currentSubKey = obj.subKey;
- this.$refs.selectReagentDialogRef.show()
- },
- //选择试剂提交事件
- onSelectReagentSubmit(code,row){
- if(this.reagentType===1){
- this.$refs.stepFormPackageRef.updateFormData(this.currentSubKey, code);
- }else{
- this.$refs.tableRef.updateDataSourceByRowIndex(this.rowIndex,{
- [this.currentSubKey]: code,
- })
- }
- this.$refs.selectReagentDialogRef.onCancel()
- },
//点击表格单元格
handleClickable(col, rowIndex) {
- //本表单特殊字段
- this.reagentType = 2
-
- this.rowIndex = rowIndex
- this.currentSubKey = col.prop;
console.log("clickable",rowIndex, col)
if(col.prop === "sjry"){
- //调用对应弹窗的方法-多个点击的需要判断是哪个字段点击
- this.$refs.selectReagentDialogRef.show()
+ //调用对应弹窗的方法;
}
+ this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{
+ sjry: "我是填充进来的数据",
+ })
},
//获取目标溶液编号
- async getCode(v){
- const {stepTableFormData = []} = v;
- if(stepTableFormData && stepTableFormData.length>0 && !stepTableFormData[0].bhCode){
- const result = await getLatestSn({
- count: stepTableFormData.length,
- })
- if(result.code == 200){
- if(stepTableFormData.length===1){
- this.$refs.tableRef.updateDataSourceByRowIndex(0,{
- bhCode: result.data,
- })
- }else{
- for(let i=0;i