|  | @@ -163,6 +163,7 @@ export default {
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        total:0,
 | 
	
		
			
				|  |  | +      selection:[],
 | 
	
		
			
				|  |  |        formDataList:{
 | 
	
		
			
				|  |  |          fBilltype: 'SQ',
 | 
	
		
			
				|  |  |          pageSize:10,
 | 
	
	
		
			
				|  | @@ -870,11 +871,24 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //选择框
 | 
	
		
			
				|  |  |      selectionbox(selection) {
 | 
	
		
			
				|  |  | -      console.log(selection)
 | 
	
		
			
				|  |  | +      if (selection.length > 1){
 | 
	
		
			
				|  |  | +        this.customButton.forEach(item =>{
 | 
	
		
			
				|  |  | +          if (item.name === '复制新增'){
 | 
	
		
			
				|  |  | +            item.disabled = true
 | 
	
		
			
				|  |  | +          }else {
 | 
	
		
			
				|  |  | +            item.disabled = false
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +      }else {
 | 
	
		
			
				|  |  | +        this.customButton.forEach(item => item.disabled = false)
 | 
	
		
			
				|  |  | +        this.selection = selection
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //详情内容保存
 | 
	
		
			
				|  |  |      submitAndSave(item) {
 | 
	
		
			
				|  |  |        let formData = new window.FormData()
 | 
	
		
			
				|  |  | +      this.$refs.avatar.form.fMoney = 0
 | 
	
		
			
				|  |  | +      this.contentList.forEach(item => this.$refs.avatar.form.fMoney += Number(item.fAmount))
 | 
	
		
			
				|  |  |        formData.append('tWarehousebills', JSON.stringify(this.$refs.avatar.form))
 | 
	
		
			
				|  |  |        formData.append('tWarehousebillsfees', JSON.stringify(this.contentList))
 | 
	
		
			
				|  |  |        formData.append('fBilltype', 'SQ')
 | 
	
	
		
			
				|  | @@ -919,7 +933,6 @@ export default {
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            this.$refs.avatar.form = {}
 | 
	
		
			
				|  |  |            this.getRow(data)
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |            this.contentOption.forEach(item => {
 | 
	
		
			
				|  |  |              if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy') {
 | 
	
		
			
				|  |  |                item.disabled = true
 | 
	
	
		
			
				|  | @@ -944,7 +957,7 @@ export default {
 | 
	
		
			
				|  |  |          case '修改':
 | 
	
		
			
				|  |  |            this.contentButton.forEach(item =>{
 | 
	
		
			
				|  |  |              if (this.$refs.avatar.form.fBillstatus > 4){
 | 
	
		
			
				|  |  | -              if (item.name === '返回列表' || item.name === '修改' || item.name === '生成入库单' || item.name === '生成销售单'){
 | 
	
		
			
				|  |  | +              if (item.name === '返回列表' || item.name === '修改' || item.name === '保存' || item.name === '生成入库单' || item.name === '生成销售单'){
 | 
	
		
			
				|  |  |                  item.disabled = false
 | 
	
		
			
				|  |  |                }else {
 | 
	
		
			
				|  |  |                  item.disabled = true
 | 
	
	
		
			
				|  | @@ -1015,7 +1028,38 @@ export default {
 | 
	
		
			
				|  |  |              fBilltype:'RK'
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            copyNew(listData).then(res=>{
 | 
	
		
			
				|  |  | -            console.log(res)
 | 
	
		
			
				|  |  | +            this.$message({
 | 
	
		
			
				|  |  | +              message: '生成成功',
 | 
	
		
			
				|  |  | +              type: 'success',
 | 
	
		
			
				|  |  | +              showClose:true
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +          break
 | 
	
		
			
				|  |  | +        case '生成销售单':
 | 
	
		
			
				|  |  | +          let liste = {
 | 
	
		
			
				|  |  | +            fId:this.$refs.avatar.form.fId,
 | 
	
		
			
				|  |  | +            fBilltype:'XS'
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          copyNew(liste).then(res=>{
 | 
	
		
			
				|  |  | +            this.$message({
 | 
	
		
			
				|  |  | +              message: '生成成功',
 | 
	
		
			
				|  |  | +              type: 'success',
 | 
	
		
			
				|  |  | +              showClose:true
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +          break
 | 
	
		
			
				|  |  | +        case '复制新增':
 | 
	
		
			
				|  |  | +          let datae = {
 | 
	
		
			
				|  |  | +            fId:this.selection[0].fId,
 | 
	
		
			
				|  |  | +            fBilltype:'SQ'
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          copyNew(datae).then(res=>{
 | 
	
		
			
				|  |  | +            this.$message({
 | 
	
		
			
				|  |  | +              message: '复制新增成功',
 | 
	
		
			
				|  |  | +              type: 'success',
 | 
	
		
			
				|  |  | +              showClose:true
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            this.query(this.formDataList)
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |            break
 | 
	
		
			
				|  |  |          default:
 |