| 
					
				 | 
			
			
				@@ -28,18 +28,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-col :md="6" :sm="8"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <a-form-model-item label="品名" prop="name"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  <a-input placeholder="请输入品名" v-model="addAdpacking.name"></a-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <a-form-model-item label="品名" prop="productName"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <a-input placeholder="请输入品名" v-model="addAdpacking.productName"></a-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-col :md="6" :sm="8"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a-form-model-item label="尺码范围" prop="sizeRange"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   <a-input placeholder="请输入尺码范围" v-model="addAdpacking.sizeRange"></a-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  <!-- <a-select placeholder="请选择尺码范围"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <a-select-option value="">请选择</a-select-option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <a-select-option value="0">客户1</a-select-option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              </a-select> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -98,68 +94,75 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @change="handleTableChange" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <!-- 结束箱号 输入框--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <template slot="endBoxNo" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <a-form-model-item prop="endBoxNo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  <a-input style="width:100%" type="text" v-model="record.endBoxNo" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot="endCaseNumberSlot" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <a-form-model-item prop="endCaseNumber"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <a-input style="width:100%" type="text" v-model="record.endCaseNumber" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <!-- 颜色(中英文) --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <template slot="color" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <a-form-model-item prop="color"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  <a-input style="width:100%" type="text" v-model="record.color" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot="colourSlot" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <a-form-model-item prop="colour"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <a-input style="width:100%" type="text" v-model="record.colour" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <!-- 箱数  --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <template slot="boxNumber" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot="boxNumberSlot" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a-form-model-item prop="boxNumber"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   <a-input style="width:100%" type="text" v-model="record.boxNumber" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <!-- 总件数 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <template slot="totalPackagesNum" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <a-form-model-item prop="totalPackagesNum"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  <a-input style="width:100%" type="text" v-model="record.totalPackagesNum" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot="totalSlot" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <a-form-model-item prop="total"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <a-input style="width:100%" type="text" v-model="record.total" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <!-- 总净重 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <template slot="totalNetWeight" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot="totalNetWeightSlot" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a-form-model-item prop="totalNetWeight"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   <a-input style="width:100%" type="text" v-model="record.totalNetWeight" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <!-- 总毛重 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <template slot="totalGrossWeight" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot="totalGrossWeightSlot" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a-form-model-item prop="totalGrossWeight"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   <a-input style="width:100%" type="text" v-model="record.totalGrossWeight" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <!-- 外箱宽度 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <template slot="boxWidth" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <a-form-model-item prop="boxWidth"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  <a-input style="width:100%" type="text" v-model="record.boxWidth" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot="outerBoxWidthSlot" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <a-form-model-item prop="outerBoxWidth"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <a-input style="width:100%" type="text" v-model="record.outerBoxWidth" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <!-- 外箱高度 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <template slot="boxHeight" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <a-form-model-item prop="boxHeight"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  <a-input style="width:100%" type="text" v-model="record.boxHeight" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot="outerBoxHeightSlot" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <a-form-model-item prop="outerBoxHeight"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <a-input style="width:100%" type="text" v-model="record.outerBoxHeight" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <!-- 总体积 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <template slot="totalVolume" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot="totalVolumeSlot" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a-form-model-item prop="totalVolume"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   <a-input style="width:100%" type="text" v-model="record.totalVolume" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <!-- 总价 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot="totalPriceSlot" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <a-form-model-item prop="totalPrice"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <a-input style="width:100%" type="text" v-model="record.totalPrice" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <!-- 操作 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <span slot="operationSlot" slot-scope="text, record"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(record.id)"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -199,7 +202,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 参照发运明细弹框 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <referShipmentDetails-modal 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ref="referShipmentDetailsModal" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      :father="aa" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @bao="getSon" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       @ok="modalFormOk" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ></referShipmentDetails-modal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -212,7 +215,7 @@ import moment from 'moment' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import ReferShipmentDetailsModal from '@views/advance-packingList/referShipmentDetailsModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// import {} from '@api/reportForms/advance-packingList.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { addAdvPac } from '@api/document/advance-packingList.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'AddAdvancePacking', // 新增预装箱单 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -323,7 +326,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '结束箱号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          dataIndex: 'endCaseNumber.', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          dataIndex: 'endCaseNumber', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          scopedSlots: { customRender: 'endCaseNumberSlot' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width: 140, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -331,14 +335,15 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '颜色(中英文)', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dataIndex: 'colour', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          scopedSlots: { customRender: 'colourSlot' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width: 140, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          customRender: t => ellipsis(t), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // customRender: t => ellipsis(t), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '配码--根据U8订单来显示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dataIndex: 'withCode', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          width: 140, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          width: 240, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -350,6 +355,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '箱数', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dataIndex: 'boxNumber', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          scopedSlots: { customRender: 'boxNumberSlot' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width: 140, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -357,6 +363,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '总件数', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dataIndex: 'total', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          scopedSlots: { customRender: 'totalSlot' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width: 140, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -369,6 +376,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '总净重', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dataIndex: 'totalNetWeight', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          scopedSlots: { customRender: 'totalNetWeightSlot' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width: 140, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -382,6 +390,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '总毛重', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dataIndex: 'totalGrossWeight', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          scopedSlots: { customRender: 'totalGrossWeightSlot' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width: 140, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -395,12 +404,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '外箱宽度', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dataIndex: 'outerBoxWidth', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          scopedSlots: { customRender: 'outerBoxWidthSlot' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width: 140, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '外箱高度', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dataIndex: 'outerBoxHeight', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          scopedSlots: { customRender: 'outerBoxHeightSlot' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width: 140, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -408,6 +419,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '总体积', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dataIndex: 'totalVolume', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          scopedSlots: { customRender: 'totalVolumeSlot' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width: 140, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -426,6 +438,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '总价', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dataIndex: 'totalPrice', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          scopedSlots: { customRender: 'totalPriceSlot' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width: 120, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -436,27 +449,98 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fixed: 'right', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           customRender: t => ellipsis(t), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          title: '操作', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          dataIndex: 'operation', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          scopedSlots: { customRender: 'operationSlot' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          width: 160, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fixed: 'right', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      data: [{}, {}, {}, {}, {}], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      data: [], //子表数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       loading: false, // 表格加载 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       visible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // 待确定还有哪些必填信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      dateFormat: 'YYYY-MM-DD', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      addAdpacking: {}, //主表信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      confirmLoading: false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // state: '0', // 单据状态初始未【仅保存】 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // pushState: '0' // 推送状态初始未【仅保存】 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 待确定还有哪些必填信息 ---------------------------- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // validatorRules: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //   orderNumber: [{ required: true, message: '订单号不能为空', trigger: 'blur' }], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //   styleNum: [{ required: true, message: '款号不能为空', trigger: 'blur' }], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //   name: [{ required: true, message: '品名不能为空', trigger: 'blur' }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      addAdpacking: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      confirmLoading: false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  created() {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  // 接收父组件查询方法 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  props: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    fatherList: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      type: Function, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      default: null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getSon(val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // console.log('勾选发运明细数据', val) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // for (var i in val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   val[i]['orderQuantity'] = val[i].quantity 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   val[i]['orderRemainingQuantity'] = val[i].surplusNum 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   val[i]['salesUnitPrice'] = val[i].unitPriceIncludingTax 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   val[i]['customerOrder'] = val[i].customerOrderNumber 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   val[i]['shipmentQuantity'] = val[i].surplusNum //订单剩余数量 赋值给发货数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.msgFormSon = val 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.data = this.msgFormSon 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log('新增页 子表信息', this.data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 参照发运明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    referShipmentDetails() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // console.log('打开参照发运明细') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$refs.referShipmentDetailsModal.referShipDetModVis = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  保存 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     saveAdd() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log('保存新增、刷新预装箱单-成衣') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      var newObj = {} // 新增对象 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      newObj.orderNumber = this.addAdpacking.orderNumber 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      newObj.styleNum = this.addAdpacking.styleNum 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      newObj.productName = this.addAdpacking.productName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      newObj.sizeRange = this.addAdpacking.sizeRange 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      newObj.customer = this.addAdpacking.customer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      newObj.containerCode = this.addAdpacking.containerCode 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      newObj.containerNumber = this.addAdpacking.containerNumber 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      newObj.memo = this.addAdpacking.memo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      newObj.garmentFactory = this.addAdpacking.garmentFactory 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      newObj.data = this.data // 子表信息赋值 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 必须选择子表 --- 参照订单数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (newObj.data.length == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$message.error('请选择参照发运明细') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        addAdvPac(newObj).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (res.success) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.success('新增成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log('新增的对象', newObj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.close() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //清空信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            newObj = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            newObj.data = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.fatherList() // 调用父组件 查询方法 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // this.msgFormSon = {}  清空子表信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // const that = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // // 触发表单验证 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // this.$refs.form.validate(valid => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -464,13 +548,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //     that.confirmLoading = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.close() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // this.getShipmentList() // 刷新 预装箱单-成衣列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 参照发运明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    referShipmentDetails() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log('打开参照订单数据') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$refs.referShipmentDetailsModal.referShipmentDetailsModVis = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 増行 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -500,7 +577,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         total: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         netWeight: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         totalNetWeight: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         roughWeight: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         totalGrossWeight: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         outerBoxLength: '', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -515,27 +591,31 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.data.push(addrow) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // ---------------------------------------- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  操作按钮 删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    handleDelete(record) {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 操作按钮 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    copy(record) {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // ---------------------------------------- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    handleDelete(index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return this.data.splice(index, 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 复制 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    copy(record) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.data.push(record) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 抽屉 取消 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleCancel() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log('点击抽屉取消') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.close() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // ------------------------------------- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     close() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$emit('close') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.visible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$refs.form.resetFields() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.addAdpacking = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.data = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     aa() {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    modalFormOk() {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    modalFormOk() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$refs.referShipmentDetailsModal.referShipmentDetailsModVis = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   computed: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   mounted() {} 
			 |