Commit 493c43e6 by zhangquan

提单需求开发

1 parent eec36a76
......@@ -1791,7 +1791,11 @@ export default {
if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) {
this.leftDisable = true
this.customProductList.map(c => {
c.disabled = true
if (this.editForm.dataSource != 'car' && this.editForm.orderStatus == 4) {
this.dataSourceDisable = false
} else {
c.disabled = true
}
c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.routeInfo.addOrEdit == 4) {
ele.disabled = true
......@@ -1799,7 +1803,7 @@ export default {
if (ele.attributeName == 'card' && this.routeInfo.addOrEdit == 4) {
ele.disabled = true
}
if (ele.attributeName == 'effective_date' && this.routeInfo.addOrEdit == 4) {
if (ele.attributeName == 'effective_date' && this.routeInfo.addOrEdit == 3) {
ele.disabled = true
}
})
......@@ -1808,7 +1812,11 @@ export default {
}
if (this.routeInfo.addOrEdit == 2) {
this.customProductList.map(c => {
c.disabled = true
if (this.editForm.dataSource == 'car') {
c.disabled = true
} else {
this.dataSourceDisable = false
}
c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
ele.disabled = true
......@@ -1839,6 +1847,11 @@ export default {
if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) {
this.rightDisable = true
this.productList.map(d => {
if (this.editForm.dataSource != 'car' && this.editForm.orderStatus == 4) {
this.dataSourceDisable = false
} else {
d.disabled = true
}
d.disabled = true
d.groupAttributeList.map(elee => {
if (elee.attributeName == 'service_period' && this.routeInfo.addOrEdit == 4) {
......@@ -1847,7 +1860,7 @@ export default {
if (elee.attributeName == 'card' && this.routeInfo.addOrEdit == 4) {
elee.disabled = true
}
if (elee.attributeName == 'effective_date' && this.routeInfo.addOrEdit == 4) {
if (elee.attributeName == 'effective_date' && this.routeInfo.addOrEdit == 3) {
elee.disabled = true
}
if (elee.attributeName == 'buy_car_type' && elee.attributeValue == 1) {
......@@ -1859,7 +1872,11 @@ export default {
}
if (this.routeInfo.addOrEdit == 2) {
this.productList.map(c => {
c.disabled = true
if (this.editForm.dataSource == 'car') {
c.disabled = true
} else {
this.dataSourceDisable = false
}
c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
ele.disabled = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!