Browse Source

feat: [模板管理] 选择溶液的clickable修改

lkf
memorylkf 2 months ago
parent
commit
c94a884471
12 changed files with 40 additions and 454 deletions
  1. +3
    -40
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP008.vue
  2. +8
    -62
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP009.vue
  3. +3
    -40
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP010.vue
  4. +3
    -40
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP011.vue
  5. +3
    -40
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP012.vue
  6. +2
    -29
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP013.vue
  7. +3
    -40
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP014.vue
  8. +3
    -40
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP015.vue
  9. +3
    -40
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP016.vue
  10. +3
    -40
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP017.vue
  11. +3
    -40
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP018.vue
  12. +3
    -3
      src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js

+ 3
- 40
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP008.vue View File

@ -16,7 +16,7 @@
<LineLabel label="template.common.operationSteps" /> <LineLabel label="template.common.operationSteps" />
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig"
:formData="formData" @clickable="handleJzClickable" />
:formData="formData" />
<CustomTable <CustomTable
@blur="onHandleTableBlur" @blur="onHandleTableBlur"
@ -24,7 +24,6 @@
:columns="tableStepColumns" :columns="tableStepColumns"
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
@clickable="handleClickable"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -49,11 +48,6 @@
</div> </div>
</div> </div>
<!-- <button @click = "onSave">保存</button> --> <!-- <button @click = "onSave">保存</button> -->
<SelectReagentDialog
@submit="onSelectReagentSubmit"
ref="selectReagentDialogRef" >
</SelectReagentDialog>
</div> </div>
</template> </template>
@ -67,14 +61,13 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template'; import { getLatestSnArr } from '@/api/template';
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js"; import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj';
import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools";
export default { export default {
name: "ZQDYJMD", name: "ZQDYJMD",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
fillType: { fillType: {
@ -218,7 +211,7 @@ export default {
label: 'template.sp.sp008.xzjz', label: 'template.sp.sp008.xzjz',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -250,36 +243,6 @@ export default {
}, },
methods: { methods: {
//
handleJzClickable(obj){
this.reagentType = 1//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show(this.formData.id)
},
//
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.formData.id)
}
},
// //
async getCode(v){ async getCode(v){
const {stepTableFormData = []} = v; const {stepTableFormData = []} = v;

+ 8
- 62
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP009.vue View File

@ -16,11 +16,10 @@
<div class="template-form-item"> <div class="template-form-item">
<span>基质</span> <span>基质</span>
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef"
:formConfig="stepFormConfig" @blur="onHandleBlur" :formData="formData"
@clickable="handleJzClickable" />
:formConfig="stepFormConfig" @blur="onHandleBlur" :formData="formData" />
<CustomTable @blur="onHandleTableBlur" :ref="`tableRef`" :columns="tableStepColumns" <CustomTable @blur="onHandleTableBlur" :ref="`tableRef`" :columns="tableStepColumns"
:formData="formData" :prefixKey="`table`" @clickable="handleClickable"
:formData="formData" :prefixKey="`table`"
fieldItemLabel="template.common.operationSteps"> fieldItemLabel="template.common.operationSteps">
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" :columns="columns" <TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" :columns="columns"
@ -37,9 +36,9 @@
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps"
ref="rongyeStepFormPackageRef" :formConfig="rongyeStepFormConfig" @blur="onHandleBlur" ref="rongyeStepFormPackageRef" :formConfig="rongyeStepFormConfig" @blur="onHandleBlur"
:formData="formData" @clickable="handleRongyeClickable" />
:formData="formData" />
<CustomTable @blur="onHandleTableBlur" :ref="`rongyeTableRef`" :columns="rongyeTableStepColumns" <CustomTable @blur="onHandleTableBlur" :ref="`rongyeTableRef`" :columns="rongyeTableStepColumns"
:formData="{stepTableFormData:formData.stepTableFormData_1,headerSelectFields:formData.headerSelectFields_1}" :prefixKey="`rongyeTable`" @clickable="handleRongyeTableClickable"
:formData="{stepTableFormData:formData.stepTableFormData_1,headerSelectFields:formData.headerSelectFields_1}" :prefixKey="`rongyeTable`"
fieldItemLabel="template.common.operationSteps"> fieldItemLabel="template.common.operationSteps">
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" :columns="columns" <TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" :columns="columns"
@ -59,8 +58,6 @@
</div> </div>
</div> </div>
<!-- <button @click = "onSave">保存</button> --> <!-- <button @click = "onSave">保存</button> -->
<SelectReagentDialog @submit="onSelectReagentSubmit" ref="selectReagentDialogRef">
</SelectReagentDialog>
</div> </div>
</template> </template>
@ -74,14 +71,13 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template'; import { getLatestSnArr } from '@/api/template';
import { getSWYPFXFFXYPZBBTableConfig, getSWYPFXFFXYPZBBTQHSLTableConfig } from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js"; import { getSWYPFXFFXYPZBBTableConfig, getSWYPFXFFXYPZBBTQHSLTableConfig } from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj';
import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools";
export default { export default {
name: "SWYPFXRYPZB", name: "SWYPFXRYPZB",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable, TableOpertaion, SelectReagentDialog },
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable, TableOpertaion },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
fillType: { fillType: {
@ -224,7 +220,7 @@ export default {
label: 'template.sp.sp008.xzjz', label: 'template.sp.sp008.xzjz',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -243,7 +239,7 @@ export default {
label: 'template.sp.sp009.xzgzy', label: 'template.sp.sp009.xzgzy',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subGzy", subKey: "subGzy",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -258,7 +254,7 @@ export default {
label: 'template.sp.sp009.xzxsy', label: 'template.sp.sp009.xzxsy',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subXsy", subKey: "subXsy",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -289,56 +285,6 @@ export default {
} }
}, },
methods: { methods: {
//
handleJzClickable(obj) {
this.reagentType = 1//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show(this.formData.id)
},
handleRongyeClickable(obj) {
this.reagentType = 2//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show(this.formData.id)
},
//
onSelectReagentSubmit(code, row) {
if (this.reagentType == 1) {
this.$refs.stepFormPackageRef.updateFormData(this.currentSubKey, code);
} else if(this.reagentType == 2){
this.$refs.rongyeStepFormPackageRef.updateFormData(this.currentSubKey, code);
} else if(this.reagentType == 3) {
this.$refs.tableRef.updateDataSourceByRowIndex(this.rowIndex,{
[this.currentSubKey]: code,
})
} else if(this.reagentType == 4) {
this.$refs.rongyeTableRef.updateDataSourceByRowIndex(this.rowIndex,{
[this.currentSubKey]: code,
})
}
this.$refs.selectReagentDialogRef.onCancel()
},
//
handleClickable(col, rowIndex) {
this.reagentType = 3
this.rowIndex = rowIndex
this.currentSubKey = col.prop;
console.log("clickable",rowIndex, col)
if(col.prop === "sjry"){
//-
this.$refs.selectReagentDialogRef.show(this.formData.id)
}
},
handleRongyeTableClickable(col, rowIndex) {
this.reagentType = 4
this.rowIndex = rowIndex
this.currentSubKey = col.prop;
console.log("clickable",rowIndex, col)
if(col.prop === "sjry"){
//-
this.$refs.selectReagentDialogRef.show(this.formData.id)
}
},
// //
async getCode(v) { async getCode(v) {
// //

+ 3
- 40
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP010.vue View File

@ -16,7 +16,7 @@
<LineLabel label="template.common.operationSteps" /> <LineLabel label="template.common.operationSteps" />
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig"
:formData="formData" @clickable="handleJzClickable" />
:formData="formData" />
<CustomTable <CustomTable
@blur="onHandleTableBlur" @blur="onHandleTableBlur"
@ -24,7 +24,6 @@
:columns="tableStepColumns" :columns="tableStepColumns"
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
@clickable="handleClickable"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -49,11 +48,6 @@
</div> </div>
</div> </div>
<!-- <button @click = "onSave">保存</button> --> <!-- <button @click = "onSave">保存</button> -->
<SelectReagentDialog
@submit="onSelectReagentSubmit"
ref="selectReagentDialogRef" >
</SelectReagentDialog>
</div> </div>
</template> </template>
@ -67,14 +61,13 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template'; import { getLatestSnArr } from '@/api/template';
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js"; import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj';
import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools";
export default { export default {
name: "QXWDX", name: "QXWDX",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
fillType: { fillType: {
@ -218,7 +211,7 @@ export default {
label: 'template.sp.sp008.xzjz', label: 'template.sp.sp008.xzjz',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -249,36 +242,6 @@ export default {
} }
}, },
methods: { methods: {
//
handleJzClickable(obj){
this.reagentType = 1//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show(this.formData.id)
},
//
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.formData.id)
}
},
// //
async getCode(v){ async getCode(v){
const {stepTableFormData = []} = v; const {stepTableFormData = []} = v;

+ 3
- 40
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP011.vue View File

@ -16,7 +16,7 @@
<LineLabel label="template.common.operationSteps" /> <LineLabel label="template.common.operationSteps" />
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig"
:formData="formData" @clickable="handleJzClickable" />
:formData="formData" />
<CustomTable <CustomTable
@blur="onHandleTableBlur" @blur="onHandleTableBlur"
@ -24,7 +24,6 @@
:columns="tableStepColumns" :columns="tableStepColumns"
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
@clickable="handleClickable"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -49,11 +48,6 @@
</div> </div>
</div> </div>
<!-- <button @click = "onSave">保存</button> --> <!-- <button @click = "onSave">保存</button> -->
<SelectReagentDialog
@submit="onSelectReagentSubmit"
ref="selectReagentDialogRef" >
</SelectReagentDialog>
</div> </div>
</template> </template>
@ -67,14 +61,13 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template'; import { getLatestSnArr } from '@/api/template';
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js"; import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj';
import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools";
export default { export default {
name: "CBYHGZYWDX", name: "CBYHGZYWDX",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
fillType: { fillType: {
@ -218,7 +211,7 @@ export default {
label: 'template.sp.sp011.xzxsy', label: 'template.sp.sp011.xzxsy',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -249,36 +242,6 @@ export default {
} }
}, },
methods: { methods: {
//
handleJzClickable(obj){
this.reagentType = 1//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show(this.formData.id)
},
//
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.formData.id)
}
},
// //
async getCode(v){ async getCode(v){
const {stepTableFormData = []} = v; const {stepTableFormData = []} = v;

+ 3
- 40
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP012.vue View File

@ -16,7 +16,7 @@
<LineLabel label="template.common.operationSteps" /> <LineLabel label="template.common.operationSteps" />
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig"
:formData="formData" @clickable="handleJzClickable" />
:formData="formData" />
<CustomTable <CustomTable
@blur="onHandleTableBlur" @blur="onHandleTableBlur"
@ -24,7 +24,6 @@
:columns="tableStepColumns" :columns="tableStepColumns"
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
@clickable="handleClickable"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -49,11 +48,6 @@
</div> </div>
</div> </div>
<!-- <button @click = "onSave">保存</button> --> <!-- <button @click = "onSave">保存</button> -->
<SelectReagentDialog
@submit="onSelectReagentSubmit"
ref="selectReagentDialogRef" >
</SelectReagentDialog>
</div> </div>
</template> </template>
@ -67,14 +61,13 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template'; import { getLatestSnArr } from '@/api/template';
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js"; import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj';
import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools";
export default { export default {
name: "RXJZXY", name: "RXJZXY",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
fillType: { fillType: {
@ -218,7 +211,7 @@ export default {
label: 'template.sp.sp011.xzxsy', label: 'template.sp.sp011.xzxsy',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -249,36 +242,6 @@ export default {
} }
}, },
methods: { methods: {
//
handleJzClickable(obj){
this.reagentType = 1//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show(this.formData.id)
},
//
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.formData.id)
}
},
// //
async getCode(v){ async getCode(v){
const {stepTableFormData = []} = v; const {stepTableFormData = []} = v;

+ 2
- 29
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP013.vue View File

@ -22,7 +22,6 @@
:columns="tableStepColumns" :columns="tableStepColumns"
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
@clickable="handleClickable"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -47,11 +46,6 @@
</div> </div>
</div> </div>
<!-- <button @click = "onSave">保存</button> --> <!-- <button @click = "onSave">保存</button> -->
<SelectReagentDialog
@submit="onSelectReagentSubmit"
ref="selectReagentDialogRef" >
</SelectReagentDialog>
</div> </div>
</template> </template>
@ -65,14 +59,13 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template'; import { getLatestSnArr } from '@/api/template';
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js"; import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj';
import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools";
export default { export default {
name: "JZXY", name: "JZXY",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
fillType: { fillType: {
@ -216,7 +209,7 @@ export default {
label: 'template.sp.sp011.xzxsy', label: 'template.sp.sp011.xzxsy',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -247,26 +240,6 @@ export default {
} }
}, },
methods: { methods: {
//
onSelectReagentSubmit(code,row){
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" || col.prop === "kbjzbh"){
//-
this.$refs.selectReagentDialogRef.show(this.formData.id)
}
},
// //
async getCode(v){ async getCode(v){
const {stepTableFormData = []} = v; const {stepTableFormData = []} = v;

+ 3
- 40
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP014.vue View File

@ -16,7 +16,7 @@
<LineLabel label="template.common.operationSteps" /> <LineLabel label="template.common.operationSteps" />
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig"
:formData="formData" @clickable="handleJzClickable" />
:formData="formData" />
<CustomTable <CustomTable
@blur="onHandleTableBlur" @blur="onHandleTableBlur"
@ -24,7 +24,6 @@
:columns="tableStepColumns" :columns="tableStepColumns"
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
@clickable="handleClickable"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -49,11 +48,6 @@
</div> </div>
</div> </div>
<!-- <button @click = "onSave">保存</button> --> <!-- <button @click = "onSave">保存</button> -->
<SelectReagentDialog
@submit="onSelectReagentSubmit"
ref="selectReagentDialogRef" >
</SelectReagentDialog>
</div> </div>
</template> </template>
@ -67,14 +61,13 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template'; import { getLatestSnArr } from '@/api/template';
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js"; import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj';
import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools";
export default { export default {
name: "XZXHTYX", name: "XZXHTYX",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
fillType: { fillType: {
@ -218,7 +211,7 @@ export default {
label: 'template.sp.sp011.xzxsy', label: 'template.sp.sp011.xzxsy',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -249,36 +242,6 @@ export default {
} }
}, },
methods: { methods: {
//
handleJzClickable(obj){
this.reagentType = 1//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show(this.formData.id)
},
//
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.formData.id)
}
},
// //
async getCode(v){ async getCode(v){
const {stepTableFormData = []} = v; const {stepTableFormData = []} = v;

+ 3
- 40
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP015.vue View File

@ -16,7 +16,7 @@
<LineLabel label="template.common.operationSteps" /> <LineLabel label="template.common.operationSteps" />
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig"
:formData="formData" @clickable="handleJzClickable" />
:formData="formData" />
<CustomTable <CustomTable
@blur="onHandleTableBlur" @blur="onHandleTableBlur"
@ -24,7 +24,6 @@
:columns="tableStepColumns" :columns="tableStepColumns"
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
@clickable="handleClickable"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -49,11 +48,6 @@
</div> </div>
</div> </div>
<!-- <button @click = "onSave">保存</button> --> <!-- <button @click = "onSave">保存</button> -->
<SelectReagentDialog
@submit="onSelectReagentSubmit"
ref="selectReagentDialogRef" >
</SelectReagentDialog>
</div> </div>
</template> </template>
@ -67,14 +61,13 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template'; import { getLatestSnArr } from '@/api/template';
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js"; import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj';
import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools";
export default { export default {
name: "ZDYBS", name: "ZDYBS",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
fillType: { fillType: {
@ -218,7 +211,7 @@ export default {
label: 'template.sp.sp008.xzjz', label: 'template.sp.sp008.xzjz',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -249,36 +242,6 @@ export default {
} }
}, },
methods: { methods: {
//
handleJzClickable(obj){
this.reagentType = 1//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show(this.formData.id)
},
//
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.formData.id)
}
},
// //
async getCode(v){ async getCode(v){
const {stepTableFormData = []} = v; const {stepTableFormData = []} = v;

+ 3
- 40
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP016.vue View File

@ -16,7 +16,7 @@
<LineLabel label="template.common.operationSteps" /> <LineLabel label="template.common.operationSteps" />
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig"
:formData="formData" @clickable="handleJzClickable" />
:formData="formData" />
<CustomTable <CustomTable
@blur="onHandleTableBlur" @blur="onHandleTableBlur"
@ -24,7 +24,6 @@
:columns="tableStepColumns" :columns="tableStepColumns"
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
@clickable="handleClickable"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -49,11 +48,6 @@
</div> </div>
</div> </div>
<!-- <button @click = "onSave">保存</button> --> <!-- <button @click = "onSave">保存</button> -->
<SelectReagentDialog
@submit="onSelectReagentSubmit"
ref="selectReagentDialogRef" >
</SelectReagentDialog>
</div> </div>
</template> </template>
@ -67,14 +61,13 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template'; import { getLatestSnArr } from '@/api/template';
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js"; import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj';
import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools";
export default { export default {
name: "XSKKX", name: "XSKKX",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
fillType: { fillType: {
@ -218,7 +211,7 @@ export default {
label: 'template.sp.sp008.xzjz', label: 'template.sp.sp008.xzjz',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -249,36 +242,6 @@ export default {
} }
}, },
methods: { methods: {
//
handleJzClickable(obj){
this.reagentType = 1//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show(this.formData.id)
},
//
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.formData.id)
}
},
// //
async getCode(v){ async getCode(v){
const {stepTableFormData = []} = v; const {stepTableFormData = []} = v;

+ 3
- 40
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP017.vue View File

@ -16,7 +16,7 @@
<LineLabel label="template.common.operationSteps" /> <LineLabel label="template.common.operationSteps" />
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig"
:formData="formData" @clickable="handleJzClickable" />
:formData="formData" />
<CustomTable <CustomTable
@blur="onHandleTableBlur" @blur="onHandleTableBlur"
@ -24,7 +24,6 @@
:columns="tableStepColumns" :columns="tableStepColumns"
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
@clickable="handleClickable"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -49,11 +48,6 @@
</div> </div>
</div> </div>
<!-- <button @click = "onSave">保存</button> --> <!-- <button @click = "onSave">保存</button> -->
<SelectReagentDialog
@submit="onSelectReagentSubmit"
ref="selectReagentDialogRef" >
</SelectReagentDialog>
</div> </div>
</template> </template>
@ -67,14 +61,13 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template'; import { getLatestSnArr } from '@/api/template';
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js"; import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj';
import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools";
export default { export default {
name: "CBYDB", name: "CBYDB",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
fillType: { fillType: {
@ -218,7 +211,7 @@ export default {
label: 'template.sp.sp008.xzjz', label: 'template.sp.sp008.xzjz',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -249,36 +242,6 @@ export default {
} }
}, },
methods: { methods: {
//
handleJzClickable(obj){
this.reagentType = 1//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show(this.formData.id)
},
//
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.formData.id)
}
},
// //
async getCode(v){ async getCode(v){
const {stepTableFormData = []} = v; const {stepTableFormData = []} = v;

+ 3
- 40
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP018.vue View File

@ -16,7 +16,7 @@
<LineLabel label="template.common.operationSteps" /> <LineLabel label="template.common.operationSteps" />
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig"
:formData="formData" @clickable="handleJzClickable" />
:formData="formData" />
<CustomTable <CustomTable
@blur="onHandleTableBlur" @blur="onHandleTableBlur"
@ -24,7 +24,6 @@
:columns="tableStepColumns" :columns="tableStepColumns"
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
@clickable="handleClickable"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -49,11 +48,6 @@
</div> </div>
</div> </div>
<!-- <button @click = "onSave">保存</button> --> <!-- <button @click = "onSave">保存</button> -->
<SelectReagentDialog
@submit="onSelectReagentSubmit"
ref="selectReagentDialogRef" >
</SelectReagentDialog>
</div> </div>
</template> </template>
@ -67,14 +61,13 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template'; import { getLatestSnArr } from '@/api/template';
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js"; import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import SelectReagentDialog from '../../../dialog/SelectReagentDialog.vue';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj'; import { sj_subpackage,sj_startConfiguration,sj_configurationCompleted } from '@/api/business/sj/sj';
import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools"; import { addTj,uniqeResource,uniqeResourceOne,addDecimals } from "@/utils/calUnitTools";
export default { export default {
name: "CBYDB", name: "CBYDB",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion,SelectReagentDialog },
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaion },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
fillType: { fillType: {
@ -218,7 +211,7 @@ export default {
label: 'template.sp.sp018.xzxsy', label: 'template.sp.sp018.xzxsy',
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
subType: "clickable",
subType: "sj",
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
@ -247,36 +240,6 @@ export default {
} }
}, },
methods: { methods: {
//
handleJzClickable(obj){
this.reagentType = 1//
this.currentSubKey = obj.subKey;
this.$refs.selectReagentDialogRef.show(this.formData.id)
},
//
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.formData.id)
}
},
// //
async getCode(v){ async getCode(v){
const {stepTableFormData = []} = v; const {stepTableFormData = []} = v;

+ 3
- 3
src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js View File

@ -34,7 +34,7 @@ export const getSWYPFXFFXYPZBBTableConfig = (
{ {
label: 'template.sp.sp008.sjry', label: 'template.sp.sp008.sjry',
prop: 'sjry', prop: 'sjry',
bodyType: 'clickable',
bodyType: 'sj',
bodyFillType: 'actFill', bodyFillType: 'actFill',
width: 280 width: 280
}, },
@ -104,7 +104,7 @@ export const getSWYPFXFFXYPZBBTableConfig = (
arr.splice(5, 0, { arr.splice(5, 0, {
label: 'template.sp.sp013.kbjzbh', label: 'template.sp.sp013.kbjzbh',
prop: 'kbjzbh', prop: 'kbjzbh',
bodyType: 'clickable',
bodyType: 'sj',
bodyFillType: 'actFill', bodyFillType: 'actFill',
width: 280 width: 280
}) })
@ -140,7 +140,7 @@ export const getSWYPFXFFXYPZBBTQHSLTableConfig = ($this, selectKey) => {
{ {
label: 'template.sp.sp008.sjry', label: 'template.sp.sp008.sjry',
prop: 'sjry', prop: 'sjry',
bodyType: 'clickable',
bodyType: 'sj',
bodyFillType: 'actFill', bodyFillType: 'actFill',
width: 280 width: 280
}, },

Loading…
Cancel
Save