Commit abd54b65 by zhangquan

需求开发

1 parent 095cb680
...@@ -1833,7 +1833,11 @@ export default { ...@@ -1833,7 +1833,11 @@ export default {
if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) { if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) {
this.leftDisable = true this.leftDisable = true
this.customProductList.map(c => { 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 => { c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.routeInfo.addOrEdit > 2) { if (ele.attributeName == 'service_period' && this.routeInfo.addOrEdit > 2) {
ele.disabled = true ele.disabled = true
...@@ -1850,7 +1854,11 @@ export default { ...@@ -1850,7 +1854,11 @@ export default {
} }
if (this.routeInfo.addOrEdit == 2) { if (this.routeInfo.addOrEdit == 2) {
this.customProductList.map(c => { this.customProductList.map(c => {
c.disabled = true if (this.editForm.dataSource == 'car') {
c.disabled = true
} else {
this.dataSourceDisable = false
}
c.groupAttributeList.map(ele => { c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.dataSourceDisable) { if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
ele.disabled = true ele.disabled = true
...@@ -1881,7 +1889,11 @@ export default { ...@@ -1881,7 +1889,11 @@ export default {
if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) { if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) {
this.rightDisable = true this.rightDisable = true
this.productList.map(d => { this.productList.map(d => {
d.disabled = true if (this.editForm.dataSource != 'car' && this.editForm.orderStatus == 4) {
this.dataSourceDisable = false
} else {
d.disabled = true
}
d.groupAttributeList.map(elee => { d.groupAttributeList.map(elee => {
if (elee.attributeName == 'service_period' && this.routeInfo.addOrEdit > 2) { if (elee.attributeName == 'service_period' && this.routeInfo.addOrEdit > 2) {
elee.disabled = true elee.disabled = true
...@@ -1901,7 +1913,11 @@ export default { ...@@ -1901,7 +1913,11 @@ export default {
} }
if (this.routeInfo.addOrEdit == 2) { if (this.routeInfo.addOrEdit == 2) {
this.productList.map(c => { this.productList.map(c => {
c.disabled = true if (this.editForm.dataSource == 'car') {
c.disabled = true
} else {
this.dataSourceDisable = false
}
c.groupAttributeList.map(ele => { c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.dataSourceDisable) { if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
ele.disabled = true ele.disabled = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!