| 
					
				 | 
			
			
				@@ -69,7 +69,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <a-table 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         bordered 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         v-if="preBookListData" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        rowKey="id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        :rowKey=" (row, index) => {return index;}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :columns="preBookListColumns" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :data-source="preBookListData" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :loading="loading" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -77,12 +77,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         @change="handleTableChange" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :scroll="{ x: 1500 }" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <!-- 金额 输入框--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <template slot="money" slot-scope="text, record, index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <a-form-model-item prop="money" :rules="rules.money" required> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-input style="width:100%" type="text" v-model="record.money" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <!-- 单据状态 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <span slot="documentStateSlot" slot-scope="text, record"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -111,8 +105,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-menu-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(record)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   <a href="javascript:void(0);" style="color:red;">删除</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                </a-popconfirm></a-menu-item 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </a-popconfirm></a-menu-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </a-menu> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <!-- 已提交 --> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -130,9 +123,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </a-card> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 抽屉 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <addPreBook-drawer ref="addPreBookDrawer" :father="aa" @ok="modalFormOk"></addPreBook-drawer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <detailsPreBook-drawer ref="detailsPreBookDrawer" :father="bb" @ok="modalFormOk"></detailsPreBook-drawer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <editPreBook-drawer ref="editPreBookDrawer" :father="cc" @ok="modalFormOk"></editPreBook-drawer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <addPreBook-drawer ref="addPreBookDrawer" :fatherList="getPreBookData" @ok="modalFormOk"></addPreBook-drawer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <detailsPreBook-drawer ref="detailsPreBookDrawer" @ok="modalFormOk"></detailsPreBook-drawer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -145,7 +137,7 @@ import addPreBookDrawer from '@views/pre-book/addPreBookDrawer.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import detailsPreBookDrawer from '@views/pre-book/detailsPreBookDrawer.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import editPreBookDrawer from '@views/pre-book/editPreBookDrawer.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { preBookList, addPreBook, preBookById, editById } from '@api/document/pre-book.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { preBookList, addPreBook, preBookById, editById,deletePreBook,submit,cancelSubmit } from '@api/document/pre-book.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'PreBookList', // 预托书列表 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -184,11 +176,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '总箱数', dataIndex: 'boxNumber', width: 120, className: 'replacecolor' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '总毛重', dataIndex: 'totalGrossWeight', width: 120, className: 'replacecolor' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '总体积', dataIndex: 'totalVolume', width: 100, className: 'replacecolor' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '总体积', dataIndex: 'totalVolume', width: 150, className: 'replacecolor' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           title: '金额', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dataIndex: 'money', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          scopedSlots: { customRender: 'money' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width: 140, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className: 'replacecolor' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -287,13 +278,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         preBookList(this.queryParam).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (res.success) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.preBookListData = res.result.records 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            console.log('预托书列表', this.preBookListData) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.preBookListData = res.result.records; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.pagination = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               total: res.result.total, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               current: res.result.current, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               pageSize: res.result.size 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.error(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -308,7 +300,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  详情 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     details(record) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // console.log('点击项的ID', record.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       preBookById({ id: record.id }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.success) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // 把通过id查询到的对象,赋值给子组件 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -326,9 +317,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       preBookById({ id: record.id }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.success) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          res.result.consigneeAll = res.result.consignee+"+"+res.result.consigneeAddress+"+"+res.result.notifyParty+"+"+res.result.notifyPartyAddress; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$refs.addPreBookDrawer.addPreBook = res.result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$refs.addPreBookDrawer.data = res.result.syLetterDepositItemList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.$refs.editPreBookDrawer.visible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$refs.addPreBookDrawer.visible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$message.error(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -337,40 +329,42 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 操作 提交 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     submit(record) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log('点击id:', record.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         submit({ id: record.id, type: '1' }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (res.success) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            console.log('提交成功,单据状态改为【已提交】') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.preBookListData.theDocumentsState == '1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.getPreBookData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$message.success('提交成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.error(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 取消提交 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     cancel(record) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log('取消订单id:', record.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         cancelSubmit({ id: record.id, type: '2' }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (res.success) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            console.log('取消提交成功,单据状态改为【仅保存】') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.preBookListData.theDocumentsState == '0' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.getPreBookData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$message.success('取消提交成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.error(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleDelete(record) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log('点击删除项id:', record.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         deletePreBook({ id: record.id }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          console.log('res:', res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (res.success) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.getPreBookData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$message.success('删除成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.error(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 |