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); this.$emit('row-delete', rowIndex);
}, },
// formData // formData
updateDataSource(dataSource = [],autoUpdateRecord = true) {
updateDataSource(dataSource = []) {
this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource)); this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource));
if(autoUpdateRecord){
this.showEditSignDialog();
}
console.log(this.oldLocalDataSource, "oldLocalDataSource")
// //
this.localDataSource = JSON.parse(JSON.stringify(dataSource || [])); this.localDataSource = JSON.parse(JSON.stringify(dataSource || []));
}, },
// autoUpdateRecord // autoUpdateRecord
updateDataSourceByRowIndex(rowIndex, data,autoUpdateRecord = true) { updateDataSourceByRowIndex(rowIndex, data,autoUpdateRecord = true) {
this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource)); 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[rowIndex] = { ...this.localDataSource[rowIndex], ...data };
this.localDataSource = [...this.localDataSource]; 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), }, 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() { onAddRow() {
this.addRow({ this.addRow({
actSolutionVolumePrecision: 3,//3 actSolutionVolumePrecision: 3,//3

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

@ -1,6 +1,6 @@
<!-- 标定(体积) --> <!-- 标定(体积) -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 标定(质量) --> <!-- 标定(质量) -->
<template> <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> </template>
<script> <script>

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

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

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

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

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

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

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

@ -1,6 +1,6 @@
<!-- 操作地点 --> <!-- 操作地点 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 操作环境 --> <!-- 操作环境 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 氮吹 --> <!-- 氮吹 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 颠倒混匀 --> <!-- 颠倒混匀 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 封板 --> <!-- 封板 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 复溶 --> <!-- 复溶 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 复溶(多容器) --> <!-- 复溶(多容器) -->
<template> <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> </template>
<script> <script>

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

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

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

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

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

@ -1,6 +1,6 @@
<!-- 过滤(手动) --> <!-- 过滤(手动) -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 过滤(自动) --> <!-- 过滤(自动) -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 合并 --> <!-- 合并 -->
<template> <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> </template>
<script> <script>

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

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

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

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

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

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

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

@ -1,6 +1,6 @@
<!-- 加热搅拌 --> <!-- 加热搅拌 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 加入溶液 --> <!-- 加入溶液 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 计数 --> <!-- 计数 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 静置 --> <!-- 静置 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 离心 --> <!-- 离心 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 灭菌 --> <!-- 灭菌 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 取出原药 --> <!-- 取出原药 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 取用物质 --> <!-- 取用物质 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 染色 --> <!-- 染色 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 水浴 --> <!-- 水浴 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 调节PH(传值) --> <!-- 调节PH(传值) -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 调节PH(非传值) --> <!-- 调节PH(非传值) -->
<template> <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> </template>
<script> <script>

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

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

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

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

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

@ -1,6 +1,6 @@
<!-- 涡旋混匀 --> <!-- 涡旋混匀 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 选择容器 --> <!-- 选择容器 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 研磨 --> <!-- 研磨 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 正压 --> <!-- 正压 -->
<template> <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> </template>
<script> <script>

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

@ -1,6 +1,6 @@
<!-- 振摇混匀 --> <!-- 振摇混匀 -->
<template> <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> </template>
<script> <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)); 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; newStepTableData[i].startSolutionCode = newStepTableData[i - 1].targetSolutionCode;
} }
const { actVol, actNd } = this.updateSjmbrynd(item, row.nd); 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 // stepTableRef
this.$refs.stepTableRef.updateDataSource(newStepTableData);
}, },
async getFormData() { async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]); 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") console.log(actNd, "actNd")
item.actSolutionVolume = actVol; item.actSolutionVolume = actVol;
item.actSolutionConcentration = actNd; 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() { async validFields() {

Loading…
Cancel
Save