|
@@ -948,22 +948,22 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.goodsOptionCrud = await this.getColumnData(this.getColumnName(88.3), this.optionList);
|
|
|
- if (this.roleName.indexOf('admin') !== -1 || this.roleName.indexOf('总调度') !== -1){
|
|
|
- this.goodsOptionCrud.column.push({
|
|
|
- label: '利润',
|
|
|
- width: 80,
|
|
|
- precision: 2,
|
|
|
- index: 17,
|
|
|
- type: 'number',
|
|
|
- prop: 'profit'
|
|
|
- })
|
|
|
- }else {
|
|
|
- for (let item in this.goodsOptionCrud.column){
|
|
|
- if (this.goodsOptionCrud.column[item].prop == 'profit'){
|
|
|
- this.goodsOptionCrud.column.splice(item, 1);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (this.roleName.indexOf('admin') !== -1 || this.roleName.indexOf('总调度') !== -1){
|
|
|
+ // this.goodsOptionCrud.column.push({
|
|
|
+ // label: '利润',
|
|
|
+ // width: 80,
|
|
|
+ // precision: 2,
|
|
|
+ // index: 17,
|
|
|
+ // type: 'number',
|
|
|
+ // prop: 'profit'
|
|
|
+ // })
|
|
|
+ // }else {
|
|
|
+ // for (let item in this.goodsOptionCrud.column){
|
|
|
+ // if (this.goodsOptionCrud.column[item].prop == 'profit'){
|
|
|
+ // this.goodsOptionCrud.column.splice(item, 1);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
this.collectionOption = await this.getColumnData(this.getColumnName(88.2), this.collectionOptionBackup);
|
|
|
getSalesman().then(res=>{
|
|
|
this.findObject(this.goodsOptionCrud.column, "salesmanName").dicData = res.data.data
|