|  |  |  | @ -1,22 +1,20 @@ | 
			
		
	
		
			
				
					|  |  |  |  | <template> | 
			
		
	
		
			
				
					|  |  |  |  |     <div> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-card class="el-card"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form :inline="true" :model="filterQuery" | 
			
		
	
		
			
				
					|  |  |  |  |                      class="query-form" size="mini"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-card> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form  :model="filterQuery" class="query-form" label-width="100px"  size="mini"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-row> | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-input | 
			
		
	
		
			
				
					|  |  |  |  |                             v-model="filterQuery.billNo" | 
			
		
	
		
			
				
					|  |  |  |  |                             placeholder="单据号" | 
			
		
	
		
			
				
					|  |  |  |  |                             clearable | 
			
		
	
		
			
				
					|  |  |  |  |                         ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |                   <el-col :span="6"> | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item label="单据号"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-input v-model="filterQuery.billNo" style="width: 90%" placeholder="请输入单据号" clearable></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |                     </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <span style="color: #000; margin-left: 10px; margin-right: 6px">单据日期:</span> | 
			
		
	
		
			
				
					|  |  |  |  |                   </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |                   <el-col :span="6"> | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item label="单据日期"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-date-picker | 
			
		
	
		
			
				
					|  |  |  |  |                             :picker-options="pickerOptions" | 
			
		
	
		
			
				
					|  |  |  |  |                             v-model="actDateRange" | 
			
		
	
		
			
				
					|  |  |  |  |                             type="daterange" | 
			
		
	
		
			
				
					|  |  |  |  |                             style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                             format="yyyy 年 MM 月 dd 日" | 
			
		
	
		
			
				
					|  |  |  |  |                             value-format="yyyy-MM-dd" | 
			
		
	
		
			
				
					|  |  |  |  |                             range-separator="至" | 
			
		
	
	
		
			
				
					|  |  |  | @ -25,16 +23,16 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                         > | 
			
		
	
		
			
				
					|  |  |  |  |                         </el-date-picker> | 
			
		
	
		
			
				
					|  |  |  |  |                     </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |                   </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-button-group style="display:flex;"> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-button type="primary" icon="search" @click="onSubmitFind">查询</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |                         </el-button-group> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                     </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-row> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row="true" | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row="true" | 
			
		
	
		
			
				
					|  |  |  |  |                       @current-change="handleDetail"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="序号" type="index" width="60"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="单据号" prop="billNo"></el-table-column> | 
			
		
	
	
		
			
				
					|  |  |  | @ -57,31 +55,28 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="操作" fixed="right"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="操作" > | 
			
		
	
		
			
				
					|  |  |  |  |                     <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                        <el-button--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                            type="text"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                            size="small"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                            @click.native="newDistributionForm(scope.$index, scope.row)"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                        >审核--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                        </el-button--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                        >--> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)" | 
			
		
	
		
			
				
					|  |  |  |  |                         >删除 | 
			
		
	
		
			
				
					|  |  |  |  |                         </el-button> | 
			
		
	
		
			
				
					|  |  |  |  |                     </template> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-table> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-pagination | 
			
		
	
		
			
				
					|  |  |  |  |                 :page-size="filterQuery.limit" | 
			
		
	
		
			
				
					|  |  |  |  |                 @current-change="handleCurrentChange" | 
			
		
	
		
			
				
					|  |  |  |  |                 layout="prev, pager, next" | 
			
		
	
		
			
				
					|  |  |  |  |                 :total="total" | 
			
		
	
		
			
				
					|  |  |  |  |                 :current-page="filterQuery.page" | 
			
		
	
		
			
				
					|  |  |  |  |             ></el-pagination> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <pagination | 
			
		
	
		
			
				
					|  |  |  |  |             v-show="total>0" | 
			
		
	
		
			
				
					|  |  |  |  |             :total="total" | 
			
		
	
		
			
				
					|  |  |  |  |             :page.sync="filterQuery.page" | 
			
		
	
		
			
				
					|  |  |  |  |             :limit.sync="filterQuery.limit" | 
			
		
	
		
			
				
					|  |  |  |  |             @pagination="handleCurrentChange" | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           ></pagination> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         </el-card> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-card class="el-card"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table v-loading="loading" :data="detailList" style="width: 100%"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table v-loading="loading" :data="detailList" style="width: 100%" border highlight-current-row="true"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="序号" type="index" width="120"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                 <!-- <el-table-column label="产品编码" prop="productId"></el-table-column> --> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="产品通用名" prop="productName" show-overflow-tooltip="true"></el-table-column> | 
			
		
	
	
		
			
				
					|  |  |  | @ -108,12 +103,14 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                 :idQuery="idQuery" | 
			
		
	
		
			
				
					|  |  |  |  |                 :editType="editType" | 
			
		
	
		
			
				
					|  |  |  |  |             ></purPlanEdit> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         </el-dialog> | 
			
		
	
		
			
				
					|  |  |  |  |     </div> | 
			
		
	
		
			
				
					|  |  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  |  | import purPlanEdit from "./purPlanDetailDialog"; | 
			
		
	
		
			
				
					|  |  |  |  | import {delApply, listPlan, listApplyDetail} from "@/api/purchase/purPlan"; | 
			
		
	
		
			
				
					|  |  |  |  | import {delApply, listPlan, listApplyDetail, delPlanDetailAll} from "@/api/purchase/purPlan"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  |     data() { | 
			
		
	
	
		
			
				
					|  |  |  | @ -260,7 +257,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 type: "warning", | 
			
		
	
		
			
				
					|  |  |  |  |             }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .then(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                     delApply(row.id) | 
			
		
	
		
			
				
					|  |  |  |  |                   delPlanDetailAll(row.id) | 
			
		
	
		
			
				
					|  |  |  |  |                         .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                             this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                             if (response.code == 20000) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -279,7 +276,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         handleCurrentChange(val) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.filterQuery.page = val; | 
			
		
	
		
			
				
					|  |  |  |  |             this.filterQuery.page = val.page; | 
			
		
	
		
			
				
					|  |  |  |  |             this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -334,32 +331,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  | ; | 
			
		
	
		
			
				
					|  |  |  |  | </script> | 
			
		
	
		
			
				
					|  |  |  |  | <style scoped> | 
			
		
	
		
			
				
					|  |  |  |  | .itemTag { | 
			
		
	
		
			
				
					|  |  |  |  |     float: left; | 
			
		
	
		
			
				
					|  |  |  |  |     text-align: left; | 
			
		
	
		
			
				
					|  |  |  |  |     margin-top: 10px; | 
			
		
	
		
			
				
					|  |  |  |  |     width: 25%; | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | .text { | 
			
		
	
		
			
				
					|  |  |  |  |     font-size: 13px; | 
			
		
	
		
			
				
					|  |  |  |  |     font-family: "Microsoft YaHei"; | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | .query-form-item { | 
			
		
	
		
			
				
					|  |  |  |  |     display: block !important; | 
			
		
	
		
			
				
					|  |  |  |  |     margin-right: 10px; | 
			
		
	
		
			
				
					|  |  |  |  |     margin-bottom: 5px; | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | .el-row { | 
			
		
	
		
			
				
					|  |  |  |  |     display: flex; | 
			
		
	
		
			
				
					|  |  |  |  |     flex-wrap: wrap; | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | .el-col { | 
			
		
	
		
			
				
					|  |  |  |  |     border-radius: 4px; | 
			
		
	
		
			
				
					|  |  |  |  |     flex-wrap: wrap; | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | </style> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |