|  | @@ -79,9 +79,9 @@
 | 
	
		
			
				|  |  |            <el-button type="info" size="small" icon="el-icon-download" @click="exportHandle">库 存</el-button>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <template slot-scope="scope" slot="menu">
 | 
	
		
			
				|  |  | -          <el-button type="text" size="small" @click="saveSell(scope.row)"
 | 
	
		
			
				|  |  | +          <el-button type="text" size="small" v-debounce @click="saveSell(scope.row)"
 | 
	
		
			
				|  |  |              :disabled="scope.row.status < 3 || scope.row.createPurchase == 1">生成采购</el-button>
 | 
	
		
			
				|  |  | -          <el-button type="text" size="small" @click="customerReceipt(scope.row)" :disabled="
 | 
	
		
			
				|  |  | +          <el-button type="text" size="small" v-debounce @click="customerReceipt(scope.row)" :disabled="
 | 
	
		
			
				|  |  |              !scope.row.status ||
 | 
	
		
			
				|  |  |              scope.row.status < 3 ||
 | 
	
		
			
				|  |  |              scope.row.createFreight == 1
 | 
	
	
		
			
				|  | @@ -150,8 +150,8 @@ export default {
 | 
	
		
			
				|  |  |        selection: [],
 | 
	
		
			
				|  |  |        isShow: true,
 | 
	
		
			
				|  |  |        detailData: {},
 | 
	
		
			
				|  |  | -      warehouseTypeOption:[],
 | 
	
		
			
				|  |  | -      warehouseList:[]
 | 
	
		
			
				|  |  | +      warehouseTypeOption: [],
 | 
	
		
			
				|  |  | +      warehouseList: []
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    async created() {
 | 
	
	
		
			
				|  | @@ -605,12 +605,15 @@ export default {
 | 
	
		
			
				|  |  |          cancelButtonText: "取消",
 | 
	
		
			
				|  |  |          type: "warning"
 | 
	
		
			
				|  |  |        }).then(() => {
 | 
	
		
			
				|  |  | +        this.loading = true
 | 
	
		
			
				|  |  |          saveSell(row.id).then(res => {
 | 
	
		
			
				|  |  |            if (res.data.code == 200) {
 | 
	
		
			
				|  |  |              this.$message.success("生成成功");
 | 
	
		
			
				|  |  | -            this.onLoad(this.page, this.search);
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | +        }).finally(() => {
 | 
	
		
			
				|  |  | +          this.loading = false;
 | 
	
		
			
				|  |  | +          this.onLoad(this.page, this.search);
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      customerReceipt(row) {
 | 
	
	
		
			
				|  | @@ -651,7 +654,7 @@ export default {
 | 
	
		
			
				|  |  |                res.data.data.totalQuantity = 0
 | 
	
		
			
				|  |  |                res.data.data.totalCost = 0
 | 
	
		
			
				|  |  |                res.data.data.billType = 'FH'
 | 
	
		
			
				|  |  | -              res.data.data.saleman=res.data.data.chargeMember
 | 
	
		
			
				|  |  | +              res.data.data.saleman = res.data.data.chargeMember
 | 
	
		
			
				|  |  |                res.data.data.orderItemsList.forEach(item => {
 | 
	
		
			
				|  |  |                  item.containerVolume = item.cntrVolumn
 | 
	
		
			
				|  |  |                  item.actualWeight = item.cartonWeight
 | 
	
	
		
			
				|  | @@ -688,17 +691,17 @@ export default {
 | 
	
		
			
				|  |  |                  delete item.updateTime
 | 
	
		
			
				|  |  |                  delete item.updateUser
 | 
	
		
			
				|  |  |                })
 | 
	
		
			
				|  |  | -              this.warehouseTypeOption.forEach((item,index)=>{
 | 
	
		
			
				|  |  | -                if(index==0){
 | 
	
		
			
				|  |  | -                  res.data.data.warehouseType=item.dictValue
 | 
	
		
			
				|  |  | +              this.warehouseTypeOption.forEach((item, index) => {
 | 
	
		
			
				|  |  | +                if (index == 0) {
 | 
	
		
			
				|  |  | +                  res.data.data.warehouseType = item.dictValue
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                })
 | 
	
		
			
				|  |  | -              this.warehouseList.forEach((item,index)=>{
 | 
	
		
			
				|  |  | -                if(index==0){
 | 
	
		
			
				|  |  | -                  res.data.data.storageId=item.id
 | 
	
		
			
				|  |  | +              this.warehouseList.forEach((item, index) => {
 | 
	
		
			
				|  |  | +                if (index == 0) {
 | 
	
		
			
				|  |  | +                  res.data.data.storageId = item.id
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                })
 | 
	
		
			
				|  |  | -              res.data.data.businessDate=getCurrentDate()
 | 
	
		
			
				|  |  | +              res.data.data.businessDate = getCurrentDate()
 | 
	
		
			
				|  |  |                delete res.data.data.createTime
 | 
	
		
			
				|  |  |                delete res.data.data.id
 | 
	
		
			
				|  |  |                delete res.data.data.sysNo
 |