Browse Source

feat:[模板管理][update]

lkf
luojie 2 months ago
parent
commit
331f106156
5 changed files with 11 additions and 5 deletions
  1. +2
    -2
      src/components/Template/CustomTable.vue
  2. +2
    -0
      src/components/Template/StepComponents/ry/xzrq.vue
  3. +3
    -1
      src/views/business/comps/template/comps/sp/SP003.vue
  4. +2
    -1
      src/views/business/comps/template/dialog/SubPackageDialog.vue
  5. +2
    -1
      src/views/business/comps/template/formConfig/paralleAndLadderConfig.js

+ 2
- 2
src/components/Template/CustomTable.vue View File

@ -609,7 +609,7 @@ export default {
this.columns.forEach((col, colIndex) => {
const currentValue = row[col.prop];
const compareToValue = row[col.compareTo];
if (col.compareTo && currentValue && compareToValue) {
if (col.compareTo && !this.isValueEmpty(currentValue) && !this.isValueEmpty(compareToValue)) {
// compareTo
if (!isEqual(currentValue, compareToValue)) {
this.setOrangeBg(rowIndex, colIndex, col.prop, true);
@ -624,7 +624,7 @@ export default {
const currentValue = row[col.bodySubKey];
const compareToValue = row[col.bodySubCompareTo];
if (!!currentValue && !!compareToValue) {
if (!this.isValueEmpty(currentValue) && !this.isValueEmpty(compareToValue)) {
// compareTo
if (!isEqual(currentValue, compareToValue)) {
this.setOrangeBg(rowIndex, colIndex, col.bodySubKey, true);

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

@ -24,11 +24,13 @@ export default {
fillType: "preFill",
type: "select",
options: this.getDictOptions('business_rqcz'),
otherCode:"ytrqczOther",
},
sjrqcz: {
fillType: "actFill",
type: "select",
options: this.getDictOptions('business_rqcz'),
otherCode:"sjrqczOther",
},
text2: {
label: "作为容器。",

+ 3
- 1
src/views/business/comps/template/comps/sp/SP003.vue View File

@ -163,7 +163,8 @@ export default {
fillType: "actFill",
otherCode: "actOther",
multiple: true,
options: this.getDictOptions('business_pztj')
options: this.getDictOptions('business_pztj'),
compareTo: "pre"
}
}
},
@ -225,6 +226,7 @@ export default {
fillType: "actFill",
disabled: true,
maxlength: 10,
compareTo: "targetStartSolution",
},
solution: {
label: "template.sp.sp003.xsy",

+ 2
- 1
src/views/business/comps/template/dialog/SubPackageDialog.vue View File

@ -9,7 +9,7 @@
</div>
<div class="header-item">
<div class="header-title">分装数量</div>
<HandleFormItem :isFieldsRecord="false" @blur="onBlurFzsl" :item="integerInputNumberItem"
<HandleFormItem :fieldKey = "formData.mybh+'_fzsl'" @blur="onBlurFzsl" :item="integerInputNumberItem"
type = "inputNumber"
:error="formErrors.fzsl" v-model="formData.fzsl" />
</div>
@ -70,6 +70,7 @@ export default {
type: "inputNumber",
fillType: "actFill",
precision: 0,
label:"分装数量",
maxlength: 3
},
inputNumberItem: {

+ 2
- 1
src/views/business/comps/template/formConfig/paralleAndLadderConfig.js View File

@ -472,7 +472,8 @@ export const getBaseInfoFormConfig = ($this) => {
fillType: 'actFill',
otherCode: 'actOther',
multiple: true,
options: $this.getDictOptions('business_pztj')
options: $this.getDictOptions('business_pztj'),
compareTo: 'pre'
}
}
},

Loading…
Cancel
Save