|
|
@@ -1231,6 +1231,19 @@
|
|
|
type: Number,
|
|
|
default: 1
|
|
|
},
|
|
|
+ // 是否显示「生产要求」列:只有后端明细表会持久化该字段的单据才需要传 true。
|
|
|
+ // 必须在这里声明:Vue 2 不代理未声明的属性,漏声明会让父组件传入的值落到 $attrs,
|
|
|
+ // 列的显隐退化成只由 quoteType 决定。仅补声明,不改变任何现有单据的显隐。
|
|
|
+ isProductionRequirements: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ },
|
|
|
+ // 强制隐藏「生产要求」列:用于后端明细表没有该字段、填了也会被服务端丢弃的单据(如报价单)。
|
|
|
+ // 与 isProductionRequirements 分开,避免改动其它单据当前的显隐行为。
|
|
|
+ isHideProductionRequirements: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ },
|
|
|
isGuaranteePeriod: {
|
|
|
default: true,
|
|
|
type: Boolean
|
|
|
@@ -1694,7 +1707,9 @@
|
|
|
label: '生产要求',
|
|
|
align: 'center',
|
|
|
slot: 'productionRequirements',
|
|
|
- isNone: !this.isProductionRequirements && this.quoteType === 2
|
|
|
+ isNone:
|
|
|
+ this.isHideProductionRequirements ||
|
|
|
+ (!this.isProductionRequirements && this.quoteType === 2)
|
|
|
},
|
|
|
{
|
|
|
minWidth: 280,
|