|  | @@ -1797,59 +1797,44 @@ export default {
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  |      judgeNew(){
 | 
	
		
			
				|  |  |        if (!this.roleName.includes('salesman')){
 | 
	
		
			
				|  |  | -        for (let item of this.customerContact.column) {
 | 
	
		
			
				|  |  | -          if (item.prop === 'purchaseAmount') return false
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        this.customerContact.column.push({
 | 
	
		
			
				|  |  | -          "label": "采购价格",
 | 
	
		
			
				|  |  | -          "prop": "purchaseAmount",
 | 
	
		
			
				|  |  | -          "index": 11,
 | 
	
		
			
				|  |  | -          "width":100,
 | 
	
		
			
				|  |  | -          "cell": false,
 | 
	
		
			
				|  |  | -          "slot": true,
 | 
	
		
			
				|  |  | -          "overHidden": true,
 | 
	
		
			
				|  |  | -          "rules": [
 | 
	
		
			
				|  |  | -            {
 | 
	
		
			
				|  |  | -              "required": false,
 | 
	
		
			
				|  |  | -              "message": "请输入采购价格",
 | 
	
		
			
				|  |  | -              "trigger": "blur"
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          ]
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | +        // for (let item of this.customerContact.column) {
 | 
	
		
			
				|  |  | +        //   if (item.prop === 'purchaseAmount') return false
 | 
	
		
			
				|  |  | +        // }
 | 
	
		
			
				|  |  | +        // this.customerContact.column.push()
 | 
	
		
			
				|  |  |          for (let item of this.optionPolicy.column) {
 | 
	
		
			
				|  |  |            if (item.prop === 'purchasePrice') return false
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        this.optionPolicy.column.push({
 | 
	
		
			
				|  |  | -          "label": "采购价(元)",
 | 
	
		
			
				|  |  | -          "prop": "purchasePrice",
 | 
	
		
			
				|  |  | -          "index": 5,
 | 
	
		
			
				|  |  | -          "width":100,
 | 
	
		
			
				|  |  | -          "cell": true,
 | 
	
		
			
				|  |  | -          "rules": [
 | 
	
		
			
				|  |  | -            {
 | 
	
		
			
				|  |  | -              "required": false,
 | 
	
		
			
				|  |  | -              "message": " ",
 | 
	
		
			
				|  |  | -              "trigger": "blur"
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          ]
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | +        // this.optionPolicy.column.push({
 | 
	
		
			
				|  |  | +        //   "label": "采购价(元)",
 | 
	
		
			
				|  |  | +        //   "prop": "purchasePrice",
 | 
	
		
			
				|  |  | +        //   "index": 5,
 | 
	
		
			
				|  |  | +        //   "width":100,
 | 
	
		
			
				|  |  | +        //   "cell": true,
 | 
	
		
			
				|  |  | +        //   "rules": [
 | 
	
		
			
				|  |  | +        //     {
 | 
	
		
			
				|  |  | +        //       "required": false,
 | 
	
		
			
				|  |  | +        //       "message": " ",
 | 
	
		
			
				|  |  | +        //       "trigger": "blur"
 | 
	
		
			
				|  |  | +        //     }
 | 
	
		
			
				|  |  | +        //   ]
 | 
	
		
			
				|  |  | +        // })
 | 
	
		
			
				|  |  |          for (let item of this.customerBuyFree.column) {
 | 
	
		
			
				|  |  |            if (item.prop === 'purchasePrice') return false
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        this.customerBuyFree.column.push({
 | 
	
		
			
				|  |  | -              "label": "采购价(元)",
 | 
	
		
			
				|  |  | -              "prop": "purchasePrice",
 | 
	
		
			
				|  |  | -              "index": 4,
 | 
	
		
			
				|  |  | -              "width":100,
 | 
	
		
			
				|  |  | -              "cell": true,
 | 
	
		
			
				|  |  | -              "rules": [
 | 
	
		
			
				|  |  | -                {
 | 
	
		
			
				|  |  | -                  "required": false,
 | 
	
		
			
				|  |  | -                  "message": " ",
 | 
	
		
			
				|  |  | -                  "trigger": "blur"
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -              ]
 | 
	
		
			
				|  |  | -            })
 | 
	
		
			
				|  |  | +        // this.customerBuyFree.column.push({
 | 
	
		
			
				|  |  | +        //       "label": "采购价(元)",
 | 
	
		
			
				|  |  | +        //       "prop": "purchasePrice",
 | 
	
		
			
				|  |  | +        //       "index": 4,
 | 
	
		
			
				|  |  | +        //       "width":100,
 | 
	
		
			
				|  |  | +        //       "cell": true,
 | 
	
		
			
				|  |  | +        //       "rules": [
 | 
	
		
			
				|  |  | +        //         {
 | 
	
		
			
				|  |  | +        //           "required": false,
 | 
	
		
			
				|  |  | +        //           "message": " ",
 | 
	
		
			
				|  |  | +        //           "trigger": "blur"
 | 
	
		
			
				|  |  | +        //         }
 | 
	
		
			
				|  |  | +        //       ]
 | 
	
		
			
				|  |  | +        //     })
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getGoodsRow(event,row) {
 | 
	
	
		
			
				|  | @@ -3953,6 +3938,21 @@ export default {
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | +      if (this.roleName.includes('业务员')) {
 | 
	
		
			
				|  |  | +        oldVal.column.forEach(item => {
 | 
	
		
			
				|  |  | +          if (item.prop == 'purchaseAmount') {
 | 
	
		
			
				|  |  | +            item.hide = true;
 | 
	
		
			
				|  |  | +            item.showColumn = false;
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +      }else {
 | 
	
		
			
				|  |  | +        oldVal.column.forEach(item => {
 | 
	
		
			
				|  |  | +          if (item.prop == 'purchaseAmount') {
 | 
	
		
			
				|  |  | +            item.hide = false;
 | 
	
		
			
				|  |  | +            item.showColumn = true;
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  }
 |