| 
					
				 | 
			
			
				@@ -4,6 +4,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!-- 自定义的二级文字标题 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <template slot="subTitle"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <a id="warehouseAllocationEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <span style="margin: 0 15px;color: #666;">调出仓库:{{ (warehouse&&warehouse.outWarehouseName) || '--' }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <span style="margin: 0 15px;color: #666;">调入仓库:{{ (warehouse&&warehouse.putWarehouseName) || '--' }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <!-- <a-button id="warehouseAllocationEdit-edit-btn" size="small" @click="handleEditInfo" style="margin-left:10px" key="0">编辑</a-button> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!-- 操作区,位于 title 行的行尾 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <template slot="extra"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -11,23 +14,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <a-button key="1" type="primary" id="warehouseAllocationEdit-print-btn">快速打印</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </a-page-header> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <!-- 基础信息 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <a-card size="small" :bordered="false" class="warehouseAllocationEdit-cont"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <a-collapse :activeKey="['1']"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <a-collapse-panel key="1"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <template slot="header"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            基础信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <!-- <a-button type="primary" shape="circle" size="small" icon="edit" class="edit-circle-btn" id="warehouseAllocationEdit-circle-btn" @click.stop="handleEditInfo" /> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <a-descriptions :column="3"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-descriptions-item label="调出仓库">{{ warehouse?warehouse.outWarehouseName:'' }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-descriptions-item label="调入仓库">{{ warehouse?warehouse.putWarehouseName:'' }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </a-descriptions> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </a-collapse-panel> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </a-collapse> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    </a-card> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 选择产品 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <a-card size="small" :bordered="false" class="warehouseAllocationEdit-cont"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <a-collapse :activeKey="['1']"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -327,7 +313,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   components: { STable, VSelect, basicInfoModal }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      id: this.$route.params.id, // 单据id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       typeName: [], // 分类 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       queryParam: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         outWarehouseSn: '', // 调出仓库sn 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -455,9 +440,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 获取仓库仓位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getWarehouseLoc (sn, type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      warehouseLocAllList({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        warehouseSn: sn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      warehouseLocAllList({ warehouseSn: sn }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (type == 'put') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.warehousePutLocData = res.data || [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -467,9 +450,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 查询基础信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getHouse () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      allocWarehouseFind({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        id: this.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      allocWarehouseFind({ id: this.$route.params.id }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.warehouse = res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.queryParam.outWarehouseSn = res.data.outWarehouseSn 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -483,7 +464,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 产品查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getProductList (pagination) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log(pagination, 'pagination-------') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.loading = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.pageNo = pagination && pagination.current ? pagination.current : this.pageNo 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -536,10 +516,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return this.$message.error('请输入调出数量!') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       row.addLoading = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      const params = Object.assign(row, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        allocationWarehouseSn: this.chooseParam.allocationWarehouseSn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const params = Object.assign(row, { allocationWarehouseSn: this.chooseParam.allocationWarehouseSn }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       params.allocationCost = params.putCost 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      params.outWarehouseLocationSn = row.warehouseLocationSn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       allocWarehouseDetailSave(params).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$message.success(res.message) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -588,7 +567,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  提交 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleSubmit () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.submitLoading = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      allocWarehouseSubmit({ id: this.id }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      allocWarehouseSubmit({ id: this.$route.params.id }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$message.success(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.handleBack() 
			 |