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) => { this.columns.forEach((col, colIndex) => {
const currentValue = row[col.prop]; const currentValue = row[col.prop];
const compareToValue = row[col.compareTo]; const compareToValue = row[col.compareTo];
if (col.compareTo && currentValue && compareToValue) {
if (col.compareTo && !this.isValueEmpty(currentValue) && !this.isValueEmpty(compareToValue)) {
// compareTo // compareTo
if (!isEqual(currentValue, compareToValue)) { if (!isEqual(currentValue, compareToValue)) {
this.setOrangeBg(rowIndex, colIndex, col.prop, true); this.setOrangeBg(rowIndex, colIndex, col.prop, true);
@ -624,7 +624,7 @@ export default {
const currentValue = row[col.bodySubKey]; const currentValue = row[col.bodySubKey];
const compareToValue = row[col.bodySubCompareTo]; const compareToValue = row[col.bodySubCompareTo];
if (!!currentValue && !!compareToValue) {
if (!this.isValueEmpty(currentValue) && !this.isValueEmpty(compareToValue)) {
// compareTo // compareTo
if (!isEqual(currentValue, compareToValue)) { if (!isEqual(currentValue, compareToValue)) {
this.setOrangeBg(rowIndex, colIndex, col.bodySubKey, true); 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", fillType: "preFill",
type: "select", type: "select",
options: this.getDictOptions('business_rqcz'), options: this.getDictOptions('business_rqcz'),
otherCode:"ytrqczOther",
}, },
sjrqcz: { sjrqcz: {
fillType: "actFill", fillType: "actFill",
type: "select", type: "select",
options: this.getDictOptions('business_rqcz'), options: this.getDictOptions('business_rqcz'),
otherCode:"sjrqczOther",
}, },
text2: { text2: {
label: "作为容器。", label: "作为容器。",

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

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

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

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

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

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

Loading…
Cancel
Save