|  | @@ -1321,14 +1321,12 @@ export default {
 | 
	
		
			
				|  |  |            if (this.contentList.length === 0) {
 | 
	
		
			
				|  |  |              this.$message.error("请维护明细")
 | 
	
		
			
				|  |  |            } else {
 | 
	
		
			
				|  |  | -            if (!this.$refs.avatar.form.fId) {
 | 
	
		
			
				|  |  |                let formData = new window.FormData()
 | 
	
		
			
				|  |  |                formData.append('tWarehousebills', JSON.stringify(Object.assign({},this.$refs.avatar.form, this.formOut, this.formIn)))
 | 
	
		
			
				|  |  |                formData.append('tWarehousebillsfees', JSON.stringify(this.contentList))
 | 
	
		
			
				|  |  |                formData.append('fBilltype', 'DB')
 | 
	
		
			
				|  |  |                submit(formData).then(res => {
 | 
	
		
			
				|  |  |                  if (res.code == 200) {
 | 
	
		
			
				|  |  | -                  console.log(res)
 | 
	
		
			
				|  |  |                    if(res){
 | 
	
		
			
				|  |  |                      this.$refs.avatar.form = res.data.warehouseBills
 | 
	
		
			
				|  |  |                    }
 | 
	
	
		
			
				|  | @@ -1398,74 +1396,6 @@ export default {
 | 
	
		
			
				|  |  |                    })
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                })
 | 
	
		
			
				|  |  | -            } else {
 | 
	
		
			
				|  |  | -              let pass = false;
 | 
	
		
			
				|  |  | -              this.contentList.forEach(item => {
 | 
	
		
			
				|  |  | -                if (item.fGrossweightblc === 0) {
 | 
	
		
			
				|  |  | -                  pass = true
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -              })
 | 
	
		
			
				|  |  | -              if (pass) {
 | 
	
		
			
				|  |  | -                this.$message.error('当前库存数量为0,请修改调拨信息')
 | 
	
		
			
				|  |  | -                return
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | -              for(let item in this.contentList) {
 | 
	
		
			
				|  |  | -                let num = Number(item) + 1
 | 
	
		
			
				|  |  | -                if (!this.contentList[item].fUnitprice) {
 | 
	
		
			
				|  |  | -                  this.$message.error("请维护第" + num + "行单价")
 | 
	
		
			
				|  |  | -                  return false
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -                if(!this.contentList[item].fQty){
 | 
	
		
			
				|  |  | -                  this.$message.error("请维护第" + num + "数量")
 | 
	
		
			
				|  |  | -                  return false
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -                if (!this.contentList[item].fFeeunitid) {
 | 
	
		
			
				|  |  | -                  this.$message.error("请维护第" + num + "行计量单位")
 | 
	
		
			
				|  |  | -                  return false
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -                if (!this.contentList[item].fAmount) {
 | 
	
		
			
				|  |  | -                  this.$message.error("请维护第" + num + "行金额")
 | 
	
		
			
				|  |  | -                  return false
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | -              // fTypeid 1确认 2撤销
 | 
	
		
			
				|  |  | -              let data = {
 | 
	
		
			
				|  |  | -                fId: this.$refs.avatar.form.fId,
 | 
	
		
			
				|  |  | -                fTypeid: 1
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | -              isAllocation(data).then(res => {
 | 
	
		
			
				|  |  | -                this.contentButton.forEach(item => {
 | 
	
		
			
				|  |  | -                  if (item.name === '撤销调拨') {
 | 
	
		
			
				|  |  | -                    item.disabled = false
 | 
	
		
			
				|  |  | -                  }
 | 
	
		
			
				|  |  | -                  if (item.name === '调拨确认' || item.name === '修改' || item.name === '录入明细' || item.name === '保存') {
 | 
	
		
			
				|  |  | -                    item.disabled = true
 | 
	
		
			
				|  |  | -                  }
 | 
	
		
			
				|  |  | -                })
 | 
	
		
			
				|  |  | -                selectMessage(this.$refs.avatar.form.fId).then(res => {
 | 
	
		
			
				|  |  | -                  this.contentList = res.data.tWarehousebillsfees
 | 
	
		
			
				|  |  | -                  this.$refs.avatar.form = res.data.warehouseBills
 | 
	
		
			
				|  |  | -                  let data = {
 | 
	
		
			
				|  |  | -                    tableName: this.purchaseList.tableName,
 | 
	
		
			
				|  |  | -                    userId: Cookies.get('userName')
 | 
	
		
			
				|  |  | -                  }
 | 
	
		
			
				|  |  | -                  let list = {
 | 
	
		
			
				|  |  | -                    warehouseBills:res.data.warehouseBills,
 | 
	
		
			
				|  |  | -                    tWarehousebillsfees:res.data.tWarehousebillsfees
 | 
	
		
			
				|  |  | -                  }
 | 
	
		
			
				|  |  | -                  this.contentOption.forEach(item => {
 | 
	
		
			
				|  |  | -                    item.disabled = true
 | 
	
		
			
				|  |  | -                  })
 | 
	
		
			
				|  |  | -                  this.formDisabled = true
 | 
	
		
			
				|  |  | -                  this.getRow(data, list)
 | 
	
		
			
				|  |  | -                })
 | 
	
		
			
				|  |  | -                this.$message({
 | 
	
		
			
				|  |  | -                  message: '调拨成功',
 | 
	
		
			
				|  |  | -                  type: 'success',
 | 
	
		
			
				|  |  | -                  showClose:true
 | 
	
		
			
				|  |  | -                });
 | 
	
		
			
				|  |  | -              })
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            break
 | 
	
		
			
				|  |  |          case '撤销调拨':
 |