Commit b64f31e7 by 杨北旺

服务期限禁止

1 parent be3d2ec2
......@@ -1332,12 +1332,12 @@ export default {
if ([2, 4].includes(this.routeInfo.addOrEdit)) {
this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1))
}
this.dataSourceDisable = res.dataSource == 'car'
this.editForm.packageCode && this.packageAttr(true, productArrData, res)
const spaItem = this.baseData.agreeList.find(item => item.id == this.editForm.specialAppointId)
if (spaItem) {
this.editForm.specialAppoint = spaItem.spaContent
}
this.dataSourceDisable = res.dataSource == 'car'
})
},
getPackageList() {
......@@ -1416,10 +1416,22 @@ export default {
return c
})
}
if (this.routeInfo.addOrEdit == 2) {
this.customProductList.map(c => {
c.disabled = true
c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
ele.disabled = true
this.leftDisable = true
}
})
return c
})
}
} else {
this.equityRadio = 1
this.curSelectPro.push(targetItem.packageName)
this.curSelectPro = Array.from(new Set(this.curSelectPro))
this.curSelectPro = Array.from(new Set(this.curSelectPro))
item.attributeDTOList.forEach(b => {
if (b.attributeName.includes('price')) {
b.attributeValue = b.attributeValue / 100
......@@ -1455,6 +1467,18 @@ export default {
return d
})
}
if (this.routeInfo.addOrEdit == 2) {
this.productList.map(c => {
c.disabled = true
c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
ele.disabled = true
this.rightDisable = true
}
})
return c
})
}
}
packCode.push(item.packageCode)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!