Browse Source

feat:[模板管理][update]

lkf
luojie 2 months ago
parent
commit
eb1b391c80
43 changed files with 90 additions and 56 deletions
  1. +38
    -9
      src/components/Template/CustomTable.vue
  2. +1
    -1
      src/components/Template/StepComponents/ry/bdtj.vue
  3. +1
    -1
      src/components/Template/StepComponents/ry/bdzl.vue
  4. +1
    -1
      src/components/Template/StepComponents/ry/clcz.vue
  5. +1
    -1
      src/components/Template/StepComponents/ry/clfcz.vue
  6. +1
    -1
      src/components/Template/StepComponents/ry/cs.vue
  7. +1
    -1
      src/components/Template/StepComponents/ry/czdd.vue
  8. +1
    -1
      src/components/Template/StepComponents/ry/czhj.vue
  9. +1
    -1
      src/components/Template/StepComponents/ry/dc.vue
  10. +1
    -1
      src/components/Template/StepComponents/ry/ddhy.vue
  11. +1
    -1
      src/components/Template/StepComponents/ry/fb.vue
  12. +1
    -1
      src/components/Template/StepComponents/ry/fr.vue
  13. +1
    -1
      src/components/Template/StepComponents/ry/frdrq.vue
  14. +1
    -1
      src/components/Template/StepComponents/ry/fs.vue
  15. +1
    -1
      src/components/Template/StepComponents/ry/fy.vue
  16. +1
    -1
      src/components/Template/StepComponents/ry/glsd.vue
  17. +1
    -1
      src/components/Template/StepComponents/ry/glzd.vue
  18. +1
    -1
      src/components/Template/StepComponents/ry/hb.vue
  19. +1
    -1
      src/components/Template/StepComponents/ry/hwhy.vue
  20. +1
    -1
      src/components/Template/StepComponents/ry/jb.vue
  21. +1
    -1
      src/components/Template/StepComponents/ry/jd.vue
  22. +1
    -1
      src/components/Template/StepComponents/ry/jrjb.vue
  23. +1
    -1
      src/components/Template/StepComponents/ry/jrry.vue
  24. +1
    -1
      src/components/Template/StepComponents/ry/js.vue
  25. +1
    -1
      src/components/Template/StepComponents/ry/jz.vue
  26. +1
    -1
      src/components/Template/StepComponents/ry/lx.vue
  27. +1
    -1
      src/components/Template/StepComponents/ry/mj.vue
  28. +1
    -1
      src/components/Template/StepComponents/ry/qcyy.vue
  29. +1
    -1
      src/components/Template/StepComponents/ry/qywz.vue
  30. +1
    -1
      src/components/Template/StepComponents/ry/rs.vue
  31. +1
    -1
      src/components/Template/StepComponents/ry/sy.vue
  32. +1
    -1
      src/components/Template/StepComponents/ry/tjphcz.vue
  33. +1
    -1
      src/components/Template/StepComponents/ry/tjphfcz.vue
  34. +1
    -1
      src/components/Template/StepComponents/ry/tpjydd.vue
  35. +1
    -1
      src/components/Template/StepComponents/ry/tpjysd.vue
  36. +1
    -1
      src/components/Template/StepComponents/ry/wxhy.vue
  37. +1
    -1
      src/components/Template/StepComponents/ry/xzrq.vue
  38. +1
    -1
      src/components/Template/StepComponents/ry/ym.vue
  39. +1
    -1
      src/components/Template/StepComponents/ry/zy.vue
  40. +1
    -1
      src/components/Template/StepComponents/ry/zyhy.vue
  41. +1
    -1
      src/components/Template/mixins/formPackageMixins.js
  42. +6
    -4
      src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue
  43. +6
    -3
      src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue

+ 38
- 9
src/components/Template/CustomTable.vue View File

@ -713,27 +713,56 @@ export default {
this.$emit('row-delete', rowIndex);
},
// formData
updateDataSource(dataSource = [],autoUpdateRecord = true) {
updateDataSource(dataSource = []) {
this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource));
if(autoUpdateRecord){
this.showEditSignDialog();
}
console.log(this.oldLocalDataSource, "oldLocalDataSource")
//
this.localDataSource = JSON.parse(JSON.stringify(dataSource || []));
},
// autoUpdateRecord
updateDataSourceByRowIndex(rowIndex, data,autoUpdateRecord = true) {
this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource));
if(autoUpdateRecord){
this.showEditSignDialog();
}
if(autoUpdateRecord){//formpackagetable
this.showEditSignDialog(rowIndex,data);
}
this.localDataSource[rowIndex] = { ...this.localDataSource[rowIndex], ...data };
this.localDataSource = [...this.localDataSource];
},
showEditSignDialog: _.debounce(()=>{
showEditSignDialog: _.debounce(function(rowIndex,data){
const oldData = this.oldLocalDataSource[rowIndex];
let isFirst = false;//,
const isSame = this.compareOldAndCurrentFormFields(data,oldData);
// dataoldDatadatakeyoldData
for(const key in data) {
if(!oldData[key]&&oldData[key]!=0){
isFirst = true;
break;
}
}
if(!isFirst &&!isSame && this.templateFillType === "actFill"){
console.log("showww")
setTimeout(() => {
EventBus.$emit('showEditSignDialog', { uuid: this.uuid });
}, 100);
}else{
this.updateRecord(rowIndex,data);
}
}, 100),
// newDataoldDatafalse
compareOldAndCurrentFormFields(newData,oldData) {
for (const key in newData) {
const oldValue = newData[key];
const currentValue = oldData[key];
if (JSON.stringify(oldValue) !== JSON.stringify(currentValue)) {
return false;
} else {
return false;
}
}
return true;
},
onAddRow() {
this.addRow({
actSolutionVolumePrecision: 3,//3

+ 1
- 1
src/components/Template/StepComponents/ry/bdtj.vue View File

@ -1,6 +1,6 @@
<!-- 标定(体积) -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_bdtj" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/bdzl.vue View File

@ -1,6 +1,6 @@
<!-- 标定(质量) -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_bdzl" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/clcz.vue View File

@ -1,6 +1,6 @@
<!-- 称量非传值 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord="resetRecord" :form-config="formConfig"
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_clcz" @resetRecord="resetRecord" :form-config="formConfig"
:formData="formData" />
</template>

+ 1
- 1
src/components/Template/StepComponents/ry/clfcz.vue View File

@ -1,6 +1,6 @@
<!-- 称量传值 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord="resetRecord" :form-config="formConfig"
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_clfcz" @resetRecord="resetRecord" :form-config="formConfig"
:formData="formData" />
</template>

+ 1
- 1
src/components/Template/StepComponents/ry/cs.vue View File

@ -1,6 +1,6 @@
<!-- 超声 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord="resetRecord" :form-config="formConfig"
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_cs" @resetRecord="resetRecord" :form-config="formConfig"
:formData="formData" />
</template>

+ 1
- 1
src/components/Template/StepComponents/ry/czdd.vue View File

@ -1,6 +1,6 @@
<!-- 操作地点 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_czdd" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/czhj.vue View File

@ -1,6 +1,6 @@
<!-- 操作环境 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_czhj" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/dc.vue View File

@ -1,6 +1,6 @@
<!-- 氮吹 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_dc" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/ddhy.vue View File

@ -1,6 +1,6 @@
<!-- 颠倒混匀 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_ddhy" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/fb.vue View File

@ -1,6 +1,6 @@
<!-- 封板 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_fb" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/fr.vue View File

@ -1,6 +1,6 @@
<!-- 复溶 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_fr" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/frdrq.vue View File

@ -1,6 +1,6 @@
<!-- 复溶(多容器) -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_frdrq" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/fs.vue View File

@ -1,6 +1,6 @@
<!-- 复苏 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord="resetRecord" :form-config="formConfig"
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_fs" @resetRecord="resetRecord" :form-config="formConfig"
:formData="formData" />
</template>

+ 1
- 1
src/components/Template/StepComponents/ry/fy.vue View File

@ -1,6 +1,6 @@
<!-- 孵育 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord="resetRecord" :form-config="formConfig"
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_fy" @resetRecord="resetRecord" :form-config="formConfig"
:formData="formData" />
</template>

+ 1
- 1
src/components/Template/StepComponents/ry/glsd.vue View File

@ -1,6 +1,6 @@
<!-- 过滤(手动) -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_glsd" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/glzd.vue View File

@ -1,6 +1,6 @@
<!-- 过滤(自动) -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_glzd" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/hb.vue View File

@ -1,6 +1,6 @@
<!-- 合并 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_hb" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/hwhy.vue View File

@ -1,6 +1,6 @@
<!-- 恒温混匀 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord="resetRecord" :form-config="formConfig"
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_hwhy" @resetRecord="resetRecord" :form-config="formConfig"
:formData="formData" />
</template>

+ 1
- 1
src/components/Template/StepComponents/ry/jb.vue View File

@ -1,6 +1,6 @@
<!-- 搅拌 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord="resetRecord" :form-config="formConfig"
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_jb" @resetRecord="resetRecord" :form-config="formConfig"
:formData="formData" />
</template>

+ 1
- 1
src/components/Template/StepComponents/ry/jd.vue View File

@ -1,6 +1,6 @@
<!-- 解冻 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord="resetRecord" :form-config="formConfig"
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_jd" @resetRecord="resetRecord" :form-config="formConfig"
:formData="formData" />
</template>

+ 1
- 1
src/components/Template/StepComponents/ry/jrjb.vue View File

@ -1,6 +1,6 @@
<!-- 加热搅拌 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_jrjb" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/jrry.vue View File

@ -1,6 +1,6 @@
<!-- 加入溶液 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_jrry" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/js.vue View File

@ -1,6 +1,6 @@
<!-- 计数 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_js" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/jz.vue View File

@ -1,6 +1,6 @@
<!-- 静置 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_jz" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/lx.vue View File

@ -1,6 +1,6 @@
<!-- 离心 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_lx" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/mj.vue View File

@ -1,6 +1,6 @@
<!-- 灭菌 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_mj" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/qcyy.vue View File

@ -1,6 +1,6 @@
<!-- 取出原药 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_qcyy" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/qywz.vue View File

@ -1,6 +1,6 @@
<!-- 取用物质 -->
<template>
<StepFormPackage @onDialogSubmit="onDialogSubmit" ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage @onDialogSubmit="onDialogSubmit" prefixKey="ry_qywz" ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/rs.vue View File

@ -1,6 +1,6 @@
<!-- 染色 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_rs" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/sy.vue View File

@ -1,6 +1,6 @@
<!-- 水浴 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_sy" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/tjphcz.vue View File

@ -1,6 +1,6 @@
<!-- 调节PH(传值) -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_tjphcz" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/tjphfcz.vue View File

@ -1,6 +1,6 @@
<!-- 调节PH(非传值) -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_tjphfcz" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/tpjydd.vue View File

@ -1,7 +1,7 @@
<!-- 天平校验(单点) -->
<template>
<StepFormPackage
ref = "stepFormPackageRef" @resetRecord = "resetRecord"
ref = "stepFormPackageRef" prefixKey="ry_tpjydd" @resetRecord = "resetRecord"
@clickButton="handleClickButton"
:form-config="formConfig" :formData = "formData" />
</template>

+ 1
- 1
src/components/Template/StepComponents/ry/tpjysd.vue View File

@ -1,7 +1,7 @@
<!-- 天平校验(双点) -->
<template>
<StepFormPackage
ref = "stepFormPackageRef" @resetRecord = "resetRecord"
ref = "stepFormPackageRef" prefixKey="ry_tpjysd" @resetRecord = "resetRecord"
@clickButton="handleClickButton"
:form-config="formConfig" :formData = "formData" />
</template>

+ 1
- 1
src/components/Template/StepComponents/ry/wxhy.vue View File

@ -1,6 +1,6 @@
<!-- 涡旋混匀 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_wxhy" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/xzrq.vue View File

@ -1,6 +1,6 @@
<!-- 选择容器 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_xzrq" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/ym.vue View File

@ -1,6 +1,6 @@
<!-- 研磨 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_ym" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/zy.vue View File

@ -1,6 +1,6 @@
<!-- 正压 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_zy" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/StepComponents/ry/zyhy.vue View File

@ -1,6 +1,6 @@
<!-- 振摇混匀 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_zyhy" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 1
- 1
src/components/Template/mixins/formPackageMixins.js View File

@ -120,7 +120,7 @@ export default {
},
//更新表单数据
updateFormData(key, value) {
updateFormData(key, value,autoUpdateRecord = true) {
// 深拷贝当前表单数据,避免直接修改原数据
const cloneFormFields = JSON.parse(JSON.stringify(this.formFields));

+ 6
- 4
src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue View File

@ -543,13 +543,15 @@ export default {
newStepTableData[i].startSolutionCode = newStepTableData[i - 1].targetSolutionCode;
}
const { actVol, actNd } = this.updateSjmbrynd(item, row.nd);
item.actSolutionVolume = actVol;
item.actSolutionConcentration = actNd;
item.actSolutionExpire = row.sxr;
var o = {
actSolutionVolume: actVol,
actSolutionConcentration: actNd,
actSolutionExpire: row.sxr,
}
this.$refs.stepTableRef.updateDataSourceByRowIndex(i, o);
}
// stepTableRef
this.$refs.stepTableRef.updateDataSource(newStepTableData);
},
async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]);

+ 6
- 3
src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue View File

@ -489,10 +489,13 @@ export default {
console.log(actNd, "actNd")
item.actSolutionVolume = actVol;
item.actSolutionConcentration = actNd;
const o = {
actSolutionVolume: actVol,
actSolutionConcentration: actNd,
}
// stepTableRef
this.$refs[`ladderStepTableRef_${this.currentRowIndex}`][0].updateDataSourceByRowIndex(index, o);
})
// stepTableRef
this.$refs[`ladderStepTableRef_${this.currentRowIndex}`][0].updateDataSource(newData);
// this.updateRecord();
},
//
async validFields() {

Loading…
Cancel
Save