| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  | <!-- 收银台订单--> | 
					
						
							|  |  |  |  | <template> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |   <div class="container"> | 
					
						
							|  |  |  |  |     <div class="new-top" > | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |       <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px"> | 
					
						
							|  |  |  |  |         <el-form-item label=""> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |           <el-input style="width: 215px;" v-model="queryParams.orderNo" placeholder="请输入订单号"></el-input> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |         </el-form-item> | 
					
						
							|  |  |  |  |         <el-form-item label="" prop="payChannel"> | 
					
						
							|  |  |  |  |           <el-select | 
					
						
							|  |  |  |  |             v-model="queryParams.payChannel" | 
					
						
							|  |  |  |  |             clearable | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |             placeholder="请选择订单类型" | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |           > | 
					
						
							|  |  |  |  |             <el-option label="小程序" value="applet"/> | 
					
						
							|  |  |  |  |             <el-option label="收银台" value="cashier"/> | 
					
						
							|  |  |  |  |             <el-option label="POS端" value="POS"/> | 
					
						
							|  |  |  |  |           </el-select> | 
					
						
							|  |  |  |  |         </el-form-item> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |         <el-form-item label="" prop="payChannel"> | 
					
						
							|  |  |  |  |           <el-select | 
					
						
							|  |  |  |  |             v-model="queryParams.payChannel" | 
					
						
							|  |  |  |  |             clearable | 
					
						
							|  |  |  |  |             placeholder="请选择订单分类" | 
					
						
							|  |  |  |  |           > | 
					
						
							|  |  |  |  |             <el-option label="小程序" value="applet"/> | 
					
						
							|  |  |  |  |             <el-option label="收银台" value="cashier"/> | 
					
						
							|  |  |  |  |             <el-option label="POS端" value="POS"/> | 
					
						
							|  |  |  |  |           </el-select> | 
					
						
							|  |  |  |  |         </el-form-item> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |         <el-form-item label="" prop="payType"> | 
					
						
							|  |  |  |  |           <el-select | 
					
						
							|  |  |  |  |             v-model="queryParams.payType" | 
					
						
							|  |  |  |  |             clearable | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |             placeholder="请选择支付方式" | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |           > | 
					
						
							|  |  |  |  |             <el-option label="现金" value="CASH"/> | 
					
						
							|  |  |  |  |             <el-option label="微信" value="WECHAT"/> | 
					
						
							|  |  |  |  |             <el-option label="支付宝" value="ALIPAY"/> | 
					
						
							|  |  |  |  |             <el-option label="余额" value="balance"/> | 
					
						
							|  |  |  |  |           </el-select> | 
					
						
							|  |  |  |  |         </el-form-item> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |         <el-form-item label="" prop="status"> | 
					
						
							|  |  |  |  |           <el-select | 
					
						
							|  |  |  |  |             v-model="queryParams.status" | 
					
						
							|  |  |  |  |             clearable | 
					
						
							|  |  |  |  |             placeholder="请选择订单状态" | 
					
						
							|  |  |  |  |           > | 
					
						
							|  |  |  |  |             <el-option label="已支付" value="paid"/> | 
					
						
							|  |  |  |  |             <el-option label="未支付" value="unpaid"/> | 
					
						
							|  |  |  |  |             <el-option label="已退款" value="refund"/> | 
					
						
							|  |  |  |  |           </el-select> | 
					
						
							|  |  |  |  |         </el-form-item> | 
					
						
							|  |  |  |  |         <el-form-item label=""  style="margin-right:22px" prop="status"> | 
					
						
							|  |  |  |  |           <el-select | 
					
						
							|  |  |  |  |             v-model="queryParams.status" | 
					
						
							|  |  |  |  |             clearable | 
					
						
							|  |  |  |  |             placeholder="请选择员工" | 
					
						
							|  |  |  |  |           > | 
					
						
							|  |  |  |  |             <el-option label="已支付" value="paid"/> | 
					
						
							|  |  |  |  |             <el-option label="未支付" value="unpaid"/> | 
					
						
							|  |  |  |  |             <el-option label="已退款" value="refund"/> | 
					
						
							|  |  |  |  |           </el-select> | 
					
						
							|  |  |  |  |         </el-form-item> | 
					
						
							|  |  |  |  |         <el-form-item label="" style="margin-right: 0px" prop="status"> | 
					
						
							|  |  |  |  |           <el-select | 
					
						
							|  |  |  |  |             v-model="queryParams.status" | 
					
						
							|  |  |  |  |             clearable | 
					
						
							|  |  |  |  |             placeholder="请输入付款用户" | 
					
						
							|  |  |  |  |           > | 
					
						
							|  |  |  |  |             <el-option label="已支付" value="paid"/> | 
					
						
							|  |  |  |  |             <el-option label="未支付" value="unpaid"/> | 
					
						
							|  |  |  |  |             <el-option label="已退款" value="refund"/> | 
					
						
							|  |  |  |  |           </el-select> | 
					
						
							|  |  |  |  |         </el-form-item> | 
					
						
							|  |  |  |  |         <el-form-item label=""> | 
					
						
							|  |  |  |  |           <el-date-picker | 
					
						
							|  |  |  |  |             v-model="beginTime" | 
					
						
							|  |  |  |  |             style="width: 140px" | 
					
						
							|  |  |  |  |             type="date" | 
					
						
							|  |  |  |  |             placeholder="交易开始日期"> | 
					
						
							|  |  |  |  |           </el-date-picker> | 
					
						
							|  |  |  |  |           至 | 
					
						
							|  |  |  |  |           <el-date-picker | 
					
						
							|  |  |  |  |             v-model="endTime" | 
					
						
							|  |  |  |  |             style="width: 140px" | 
					
						
							|  |  |  |  |             type="date" | 
					
						
							|  |  |  |  |             placeholder="交易结束日期"> | 
					
						
							|  |  |  |  |           </el-date-picker> | 
					
						
							|  |  |  |  |         </el-form-item> | 
					
						
							|  |  |  |  |         <el-form-item  style="float: right; margin-right: 0px "> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |           <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button> | 
					
						
							|  |  |  |  |           <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |           <el-button type="primary" >导出</el-button> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |         </el-form-item> | 
					
						
							|  |  |  |  |       </el-form> | 
					
						
							|  |  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |     <div class="wit_box" > | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |       <div class="box-gang"> | 
					
						
							|  |  |  |  |         <div class="box"> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |           <el-tooltip class="item" effect="dark" content="999999/999999999999" placement="top-start"> | 
					
						
							|  |  |  |  |             <div class="size-bole">{{ orderStatistics.wechat?orderStatistics.wechat:0 }}/0</div> | 
					
						
							|  |  |  |  |           </el-tooltip> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |           <div class="size-hui"> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |             <div class="dian" style="background: #0DC291"></div> | 
					
						
							|  |  |  |  |             <div class="nei">退款金额(元)/笔数</div> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |           </div> | 
					
						
							|  |  |  |  |         </div> | 
					
						
							|  |  |  |  |         <div class="box"> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |           <el-tooltip class="item" effect="dark" content="999999/999999999999" placement="top-start"> | 
					
						
							|  |  |  |  |             <div class="size-bole" style="color:#00CAFF;">{{ orderStatistics.alipay?orderStatistics.alipay:0 }}/0</div> | 
					
						
							|  |  |  |  |           </el-tooltip> | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |           <div class="size-hui"> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |             <div class="dian" style="background: #00CAFF"></div> | 
					
						
							|  |  |  |  |             <div class="nei">油品订单退款金额(元)/笔数</div> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |           </div> | 
					
						
							|  |  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |         <div class="box"> | 
					
						
							|  |  |  |  |           <el-tooltip class="item" effect="dark" content="999999/999999999999" placement="top-start"> | 
					
						
							|  |  |  |  |             <div class="size-bole" style="color:#F44522;" >{{ orderStatistics.balance?orderStatistics.balance:0 }}/0</div> | 
					
						
							|  |  |  |  |           </el-tooltip> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |           <div class="size-hui"> | 
					
						
							|  |  |  |  |             <div class="dian" style="background: #F44522"></div> | 
					
						
							|  |  |  |  |             <div class="nei">便利店订单退款金额(元)/笔数</div> | 
					
						
							|  |  |  |  |           </div> | 
					
						
							|  |  |  |  |         </div> | 
					
						
							|  |  |  |  |         <div class="box"> | 
					
						
							|  |  |  |  |           <el-tooltip class="item" effect="dark" content="999999/999999999999" placement="top-start"> | 
					
						
							|  |  |  |  |             <div class="size-bole"  style="color:#FF7E00;" >{{orderStatistics.balanceCount?orderStatistics.balanceCount:0}}/0</div> | 
					
						
							|  |  |  |  |           </el-tooltip> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |           <div class="size-hui"> | 
					
						
							|  |  |  |  |             <div class="dian" style="background: #FF7E00"></div> | 
					
						
							|  |  |  |  |             <div class="nei">积分商城订单退款金额(元)/笔数</div> | 
					
						
							|  |  |  |  |           </div> | 
					
						
							|  |  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2024-08-27 10:18:27 +08:00
										 |  |  |  |       <div class="table-box" style="margin-top: 15px"> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |         <el-table | 
					
						
							|  |  |  |  |           :data="orderList" | 
					
						
							|  |  |  |  |           border | 
					
						
							|  |  |  |  |           style="width: 100%"> | 
					
						
							|  |  |  |  |           <el-table-column type="index" width="50" align="center" label="序号"/> | 
					
						
							|  |  |  |  |           <el-table-column prop="orderNo" align="center" label="订单号" width="220"> </el-table-column> | 
					
						
							|  |  |  |  |           <el-table-column prop="payChannel" align="center" label="订单类型"> | 
					
						
							|  |  |  |  |             <template slot-scope="scope"> | 
					
						
							|  |  |  |  |               <span v-if="scope.row.payChannel=='cashier'">收银台</span> | 
					
						
							|  |  |  |  |               <span v-else-if="scope.row.payChannel=='POS'">POS机</span> | 
					
						
							|  |  |  |  |               <span v-else-if="scope.row.payChannel=='PC'">平台</span> | 
					
						
							|  |  |  |  |               <span v-else-if="scope.row.payChannel=='applet'">小程序</span> | 
					
						
							|  |  |  |  |               <span v-else>其他</span> | 
					
						
							|  |  |  |  |             </template> | 
					
						
							|  |  |  |  |           </el-table-column> | 
					
						
							|  |  |  |  |           <el-table-column prop="type" align="center" label="订单分类"> | 
					
						
							|  |  |  |  |             <template slot-scope="scope"> | 
					
						
							|  |  |  |  |               <span v-if="scope.row.type=='1'">油品</span> | 
					
						
							|  |  |  |  |               <span v-else-if="scope.row.type=='2'">商品</span> | 
					
						
							|  |  |  |  |               <span v-else-if="scope.row.type=='3'">储值卡</span> | 
					
						
							|  |  |  |  |               <span v-else-if="scope.row.type=='4'">积分</span> | 
					
						
							|  |  |  |  |               <span v-else-if="scope.row.type=='5'">囤油卡</span> | 
					
						
							|  |  |  |  |               <span v-else-if="scope.row.type=='6'">油品加商品(收银台订单)</span> | 
					
						
							|  |  |  |  |               <span v-else-if="scope.row.type=='7'">挂账订单</span> | 
					
						
							|  |  |  |  |               <span v-else="">其他</span> | 
					
						
							|  |  |  |  |             </template> | 
					
						
							|  |  |  |  |           </el-table-column> | 
					
						
							| 
									
										
										
										
											2024-10-23 17:56:17 +08:00
										 |  |  |  |           <el-table-column prop="goodsMoney" align="center" label="订单金额(元)"> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |             <template slot-scope="scope"> | 
					
						
							|  |  |  |  |               <span v-if="scope.row.type=='3'">{{scope.row.goodsMoney + scope.row.payMoney}}</span> | 
					
						
							|  |  |  |  |               <span v-else>{{scope.row.goodsMoney}}</span> | 
					
						
							|  |  |  |  |             </template> | 
					
						
							|  |  |  |  |           </el-table-column> | 
					
						
							| 
									
										
										
										
											2024-10-23 17:56:17 +08:00
										 |  |  |  |           <el-table-column prop="payMoney" align="center" label="实收金额(元)"> </el-table-column> | 
					
						
							|  |  |  |  |           <el-table-column prop="payMoney" align="center" label="会员付款金额(元)"> </el-table-column> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-23 17:56:17 +08:00
										 |  |  |  |           <el-table-column prop="refMoney" align="center" label="退款金额(元)"> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |             <template slot-scope="scope"> | 
					
						
							|  |  |  |  |               <span v-if="scope.row.status == 'refund'">{{scope.row.payMoney}}</span> | 
					
						
							|  |  |  |  |               <span type="danger" v-else>--</span> | 
					
						
							|  |  |  |  |             </template> | 
					
						
							|  |  |  |  |           </el-table-column> | 
					
						
							|  |  |  |  |           <el-table-column prop="userName" align="center" label="付款用户" > </el-table-column> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |           <el-table-column prop="payType" align="center" label="支付方式"> | 
					
						
							|  |  |  |  |             <template slot-scope="scope"> | 
					
						
							|  |  |  |  |               <span v-if="scope.row.payType=='CASH'">现金</span> | 
					
						
							|  |  |  |  |               <span v-else-if="scope.row.payType=='WECHAT'">微信</span> | 
					
						
							|  |  |  |  |               <span v-else-if="scope.row.payType=='ALIPAY'">支付宝</span> | 
					
						
							|  |  |  |  |               <span v-else="">余额</span> | 
					
						
							|  |  |  |  |             </template> | 
					
						
							|  |  |  |  |           </el-table-column> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |           <el-table-column prop="status" align="center" label="支付状态"> | 
					
						
							|  |  |  |  |             <template slot-scope="scope"> | 
					
						
							| 
									
										
										
										
											2024-10-23 17:56:17 +08:00
										 |  |  |  |               <div v-if="scope.row.status == 'unpaid'"  style="color: #F44522">未支付</div> | 
					
						
							|  |  |  |  |               <div v-else-if="scope.row.status == 'paid'" style="color: #0DC291">已支付</div> | 
					
						
							|  |  |  |  |               <div v-else-if="scope.row.status == 'refund'" style="color: #FF7E00">已退款</div> | 
					
						
							|  |  |  |  |               <div v-else  style="color: #F44522">支付失败</div> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |             </template> | 
					
						
							|  |  |  |  |           </el-table-column> | 
					
						
							| 
									
										
										
										
											2024-10-23 17:56:17 +08:00
										 |  |  |  |           <el-table-column prop="mchntCd" align="center" label="支付渠道"> </el-table-column> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |           <el-table-column prop="mchntCd" align="center" label="商户号"> </el-table-column> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |           <el-table-column prop="createBy" align="center" label="关联员工"> </el-table-column> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |           <el-table-column prop="updateTime" align="center" label="退款时间" width="220"> </el-table-column> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |         </el-table> | 
					
						
							|  |  |  |  |       </div> | 
					
						
							|  |  |  |  |       <pagination | 
					
						
							|  |  |  |  |         v-show="total>0" | 
					
						
							|  |  |  |  |         :total="total" | 
					
						
							|  |  |  |  |         :page.sync="queryParams.page" | 
					
						
							|  |  |  |  |         :limit.sync="queryParams.pageSize" | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |         @pagination="getDeptList" | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |       /> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |     <el-dialog | 
					
						
							|  |  |  |  |       title="订单信息" | 
					
						
							|  |  |  |  |       :visible.sync="dialogVisible"> | 
					
						
							|  |  |  |  |       <el-descriptions :title="'订单号:'+ordersInfo.orderNo"> | 
					
						
							|  |  |  |  |         <el-descriptions-item label="门店">{{ordersInfo.storeName}}</el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item label="收银员">{{ordersInfo.createBy}}</el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item label="支付渠道">{{ordersInfo.payChannel}}</el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item label="商户号">{{ordersInfo.mchntCd}}</el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item label="费率">{{ordersInfo.amount}}</el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item label="订单来源">{{ordersInfo.type}}</el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item label="所属模块">{{ordersInfo.amount}}</el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item label="支付方式">{{ordersInfo.payType}}</el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item label="付款用户">{{ordersInfo.userName}}</el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item label="支付状态">{{ordersInfo.status}}</el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item label="备注">{{ordersInfo.content}}</el-descriptions-item> | 
					
						
							|  |  |  |  |         <!--        <el-descriptions-item label="备注">--> | 
					
						
							|  |  |  |  |         <!--          <el-tag size="small">学校</el-tag>--> | 
					
						
							|  |  |  |  |         <!--        </el-descriptions-item>--> | 
					
						
							|  |  |  |  |       </el-descriptions> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |       <el-descriptions class="margin-top" title="金额详情" :column="3" border> | 
					
						
							|  |  |  |  |         <el-descriptions-item> | 
					
						
							|  |  |  |  |           <template slot="label"> | 
					
						
							|  |  |  |  |             订单金额 | 
					
						
							|  |  |  |  |           </template> | 
					
						
							|  |  |  |  |           {{ordersInfo.goodsMoney?ordersInfo.goodsMoney:"--"}} | 
					
						
							|  |  |  |  |         </el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item> | 
					
						
							|  |  |  |  |           <template slot="label"> | 
					
						
							|  |  |  |  |             优惠后应付金额 | 
					
						
							|  |  |  |  |           </template> | 
					
						
							|  |  |  |  |           {{ordersInfo.payMoney?ordersInfo.payMoney:"--"}} | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         </el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item> | 
					
						
							|  |  |  |  |           <template slot="label"> | 
					
						
							|  |  |  |  |             退款金额 | 
					
						
							|  |  |  |  |           </template> | 
					
						
							|  |  |  |  |           {{ordersInfo.refMoney?ordersInfo.refMoney:"--"}} | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         </el-descriptions-item> | 
					
						
							|  |  |  |  |         <el-descriptions-item> | 
					
						
							|  |  |  |  |           <template slot="label"> | 
					
						
							|  |  |  |  |             实收金额 | 
					
						
							|  |  |  |  |           </template> | 
					
						
							|  |  |  |  |           {{ordersInfo.payMoney?ordersInfo.payMoney:"--"}} | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         </el-descriptions-item> | 
					
						
							|  |  |  |  |       </el-descriptions> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     </el-dialog> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |   </div> | 
					
						
							|  |  |  |  | </template> | 
					
						
							|  |  |  |  | <script> | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  | import { | 
					
						
							|  |  |  |  |   exportExcelTradingApi, getmyDataApi, | 
					
						
							|  |  |  |  |   getRunningWaterByTissueApi, | 
					
						
							|  |  |  |  |   getTissueByDataApi, | 
					
						
							|  |  |  |  |   getTradingPageApi | 
					
						
							|  |  |  |  | } from "@/api/allOrder"; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | export default { | 
					
						
							|  |  |  |  |   name: "reconciliation-trading", | 
					
						
							|  |  |  |  |   data(){ | 
					
						
							|  |  |  |  |     return{ | 
					
						
							|  |  |  |  |       radio1:"油号选错", | 
					
						
							|  |  |  |  |       loading:false, | 
					
						
							|  |  |  |  |       dialogVisible:false, | 
					
						
							|  |  |  |  |       // 员工列表
 | 
					
						
							|  |  |  |  |       staffList:[], | 
					
						
							|  |  |  |  |       ordersInfo:{}, | 
					
						
							|  |  |  |  |       // 日期范围
 | 
					
						
							|  |  |  |  |       dateRange: [], | 
					
						
							|  |  |  |  |       beginTime:"", | 
					
						
							|  |  |  |  |       endTime:"", | 
					
						
							|  |  |  |  |       // 是否为当天时间
 | 
					
						
							|  |  |  |  |       isSysDate:false, | 
					
						
							|  |  |  |  |       // 收银台订单列表
 | 
					
						
							|  |  |  |  |       orderList:[], | 
					
						
							|  |  |  |  |       deptList:[], | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |       // 查询参数
 | 
					
						
							|  |  |  |  |       queryParams: { | 
					
						
							|  |  |  |  |         page: 1, | 
					
						
							|  |  |  |  |         pageSize: 10, | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |         beginTime:"", | 
					
						
							|  |  |  |  |         endTime:"", | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |         orderNo:"", | 
					
						
							|  |  |  |  |         status:"", | 
					
						
							|  |  |  |  |         payType:"", | 
					
						
							|  |  |  |  |         payChannel:"", | 
					
						
							|  |  |  |  |         deptType:"3", | 
					
						
							|  |  |  |  |         storeId:"", | 
					
						
							|  |  |  |  |         deptId:"", | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |       }, | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |       orderStatistics:{ | 
					
						
							|  |  |  |  |         CASH:"0", | 
					
						
							|  |  |  |  |         WECHAT:"0", | 
					
						
							|  |  |  |  |         ALIPAY:"0", | 
					
						
							|  |  |  |  |         balance:"0", | 
					
						
							|  |  |  |  |         CASHCount:"0", | 
					
						
							|  |  |  |  |         WECHATCount:"0", | 
					
						
							|  |  |  |  |         ALIPAYCount:"0", | 
					
						
							|  |  |  |  |         balanceCount:"0", | 
					
						
							|  |  |  |  |         refBalance:"0", | 
					
						
							|  |  |  |  |         refBalanceCount:"0", | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |       }, | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |       total:0, | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  |   }, | 
					
						
							|  |  |  |  |   async created() { | 
					
						
							|  |  |  |  |     let start = new Date(); | 
					
						
							|  |  |  |  |     start.setHours(0) | 
					
						
							|  |  |  |  |     start.setMinutes(0) | 
					
						
							|  |  |  |  |     start.setSeconds(0) | 
					
						
							|  |  |  |  |     start.setMilliseconds(0) | 
					
						
							|  |  |  |  |     this.dateRange = [start,new Date()]; | 
					
						
							|  |  |  |  |     this.beginTime = start | 
					
						
							|  |  |  |  |     this.endTime = new Date() | 
					
						
							|  |  |  |  |     this.isSysDate = true | 
					
						
							|  |  |  |  |     await this.getDeptList(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     // this.getList();
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |   }, | 
					
						
							|  |  |  |  |   methods:{ | 
					
						
							|  |  |  |  |     async getDeptList() { | 
					
						
							|  |  |  |  |       // getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then( response => {
 | 
					
						
							|  |  |  |  |       //   this.deptList = response.data.records;
 | 
					
						
							|  |  |  |  |       // })
 | 
					
						
							|  |  |  |  |       await getmyDataApi(this.addDateRange(this.queryParams)).then( response => { | 
					
						
							|  |  |  |  |         this.queryParams.deptId = response.data.deptId; | 
					
						
							|  |  |  |  |         this.getList() | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |       }) | 
					
						
							|  |  |  |  |     }, | 
					
						
							|  |  |  |  |     exportExcelCashier() { | 
					
						
							|  |  |  |  |       let dateRange = [] | 
					
						
							|  |  |  |  |       if (this.beginTime && this.endTime) { | 
					
						
							|  |  |  |  |         dateRange.push(this.beginTime.toLocaleDateString()) | 
					
						
							|  |  |  |  |         dateRange.push(this.endTime.toLocaleDateString()) | 
					
						
							|  |  |  |  |       } | 
					
						
							|  |  |  |  |       exportExcelTradingApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{ | 
					
						
							|  |  |  |  |         const blob = new Blob([res], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }); | 
					
						
							|  |  |  |  |         this.$download.saveAs(blob,'交易明细统计.xLsx') | 
					
						
							|  |  |  |  |       }) | 
					
						
							|  |  |  |  |     }, | 
					
						
							|  |  |  |  |     // 获取订单统计信息
 | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |     async getOrderStatistics() { | 
					
						
							|  |  |  |  |       // await this.getDeptList()
 | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |       let dateRange = [] | 
					
						
							|  |  |  |  |       if (this.beginTime && this.endTime) { | 
					
						
							|  |  |  |  |         dateRange.push(this.beginTime.toLocaleDateString()) | 
					
						
							|  |  |  |  |         dateRange.push(this.endTime.toLocaleDateString()) | 
					
						
							|  |  |  |  |       } | 
					
						
							|  |  |  |  |       getTissueByDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{ | 
					
						
							|  |  |  |  |         this.orderStatistics = res.data | 
					
						
							|  |  |  |  |       }) | 
					
						
							|  |  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |     // 获取列表信息
 | 
					
						
							|  |  |  |  |     async getList(val){ | 
					
						
							|  |  |  |  |       // await this.getDeptList()
 | 
					
						
							|  |  |  |  |       let dateRange = [] | 
					
						
							|  |  |  |  |       if (this.beginTime && this.endTime) { | 
					
						
							|  |  |  |  |         dateRange.push(this.beginTime.toLocaleDateString()) | 
					
						
							|  |  |  |  |         dateRange.push(this.endTime.toLocaleDateString()) | 
					
						
							|  |  |  |  |       } | 
					
						
							|  |  |  |  |       getTradingPageApi(this.addDateRange(this.queryParams,dateRange)).then( response => { | 
					
						
							|  |  |  |  |         this.orderList = response.data.records; | 
					
						
							|  |  |  |  |         this.total = response.data.total; | 
					
						
							|  |  |  |  |         this.isSysDate = false | 
					
						
							|  |  |  |  |         // this.getDeptList()
 | 
					
						
							|  |  |  |  |         this.getOrderStatistics() | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |       }) | 
					
						
							|  |  |  |  |     }, | 
					
						
							|  |  |  |  |     getOrdersInfo(data) { | 
					
						
							|  |  |  |  |       this.dialogVisible = true; | 
					
						
							|  |  |  |  |       this.ordersInfo = data | 
					
						
							|  |  |  |  |     }, | 
					
						
							|  |  |  |  |     // 搜索按钮操作
 | 
					
						
							|  |  |  |  |     handleQuery() { | 
					
						
							|  |  |  |  |       this.queryParams.page = 1; | 
					
						
							|  |  |  |  |       this.getDeptList() | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |       // this.getList();
 | 
					
						
							|  |  |  |  |     }, | 
					
						
							|  |  |  |  |     // 重置按钮操作
 | 
					
						
							|  |  |  |  |     resetQuery() { | 
					
						
							|  |  |  |  |       this.dateRange = []; | 
					
						
							|  |  |  |  |       this.queryParams = { | 
					
						
							|  |  |  |  |         page: 1, | 
					
						
							|  |  |  |  |         pageSize: 10, | 
					
						
							|  |  |  |  |         deptType:"3", | 
					
						
							|  |  |  |  |       } | 
					
						
							|  |  |  |  |       this.beginTime = "" | 
					
						
							|  |  |  |  |       this.endTime = "" | 
					
						
							|  |  |  |  |       this.getDeptList() | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  |       this.handleQuery(); | 
					
						
							|  |  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  | } | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  | </script> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | <style scoped lang="scss"> | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  | .container{ | 
					
						
							|  |  |  |  |   background: #f4f5f9; | 
					
						
							|  |  |  |  |   box-sizing: border-box; | 
					
						
							|  |  |  |  |   padding-bottom: 8px; | 
					
						
							|  |  |  |  |   //height: 87.5vh;
 | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .app-top{ | 
					
						
							|  |  |  |  |   width: 100%; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |   height: 60px; | 
					
						
							|  |  |  |  |   box-sizing: border-box; | 
					
						
							|  |  |  |  |   padding: 10px; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .clearfix{ | 
					
						
							|  |  |  |  |   width: 100%; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .box-card{ | 
					
						
							|  |  |  |  |   width: 100%; | 
					
						
							|  |  |  |  |   margin-bottom: 15px; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .box-gang{ | 
					
						
							|  |  |  |  |   width: 100%; | 
					
						
							|  |  |  |  |   display: flex; | 
					
						
							|  |  |  |  |   align-items: center; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .box{ | 
					
						
							|  |  |  |  |   padding: 5px; | 
					
						
							|  |  |  |  |   padding-left: 20px; | 
					
						
							|  |  |  |  |   width: 280px; | 
					
						
							|  |  |  |  |   height: 60px; | 
					
						
							|  |  |  |  |   background:#fff; | 
					
						
							|  |  |  |  |   border-radius: 10px; | 
					
						
							|  |  |  |  |   border: 1px solid #FF9655; | 
					
						
							|  |  |  |  |   margin-right: 15px; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .size-hui{ | 
					
						
							|  |  |  |  |   display: flex; | 
					
						
							|  |  |  |  |   align-items: center; | 
					
						
							|  |  |  |  |   font-family: Source Han Sans CN, Source Han Sans CN; | 
					
						
							|  |  |  |  |   font-weight: 400; | 
					
						
							|  |  |  |  |   font-size: 13px; | 
					
						
							|  |  |  |  |   color: #888888; | 
					
						
							|  |  |  |  |   text-align: left; | 
					
						
							|  |  |  |  |   font-style: normal; | 
					
						
							|  |  |  |  |   text-transform: none; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |   .nei { | 
					
						
							|  |  |  |  |     color: #333333; | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |     width: 100%; | 
					
						
							|  |  |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  | } | 
					
						
							|  |  |  |  | .dian{ | 
					
						
							|  |  |  |  |   width: 6px; | 
					
						
							|  |  |  |  |   height: 6px; | 
					
						
							|  |  |  |  |   border-radius: 50%; | 
					
						
							|  |  |  |  |   margin-right: 5px; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | .el-form--inline .el-form-item { | 
					
						
							|  |  |  |  |   margin-bottom: 15px; | 
					
						
							|  |  |  |  |   margin-right: 20px; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .icon-img{ | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |   //margin-left: 110px;
 | 
					
						
							|  |  |  |  |   width: 100%; | 
					
						
							|  |  |  |  |   height: 20px; | 
					
						
							|  |  |  |  |   margin-right: 5px; | 
					
						
							|  |  |  |  |   img{ | 
					
						
							|  |  |  |  |     float: right; | 
					
						
							|  |  |  |  |     //width: 100%;
 | 
					
						
							|  |  |  |  |     width: 20px; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     height: 100%; | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-10-16 20:00:39 +08:00
										 |  |  |  | } | 
					
						
							|  |  |  |  | .f-button{ | 
					
						
							|  |  |  |  |   width: 100%; | 
					
						
							|  |  |  |  |   float: right ; | 
					
						
							|  |  |  |  |   text-align: right; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .size-bole{ | 
					
						
							|  |  |  |  |   height: 31px; | 
					
						
							|  |  |  |  |   font-size: 24px; | 
					
						
							|  |  |  |  |   color: #0DC291; | 
					
						
							|  |  |  |  |   font-weight: 600; | 
					
						
							|  |  |  |  |   font-size: 24px; | 
					
						
							|  |  |  |  |   text-align: left; | 
					
						
							|  |  |  |  |   font-style: normal; | 
					
						
							|  |  |  |  |   text-transform: none; | 
					
						
							|  |  |  |  |   white-space: nowrap; | 
					
						
							|  |  |  |  |   overflow: hidden; | 
					
						
							|  |  |  |  |   text-overflow: ellipsis; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .wgang{ | 
					
						
							|  |  |  |  |   width: 100%; | 
					
						
							|  |  |  |  |   display: flex; | 
					
						
							|  |  |  |  |   align-items: center; | 
					
						
							|  |  |  |  |   justify-content: space-between; | 
					
						
							|  |  |  |  |   margin-bottom: 20px; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .table-box{ | 
					
						
							|  |  |  |  |   width: 100%; | 
					
						
							|  |  |  |  |   height: 58vh; | 
					
						
							|  |  |  |  |   overflow: auto; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .pagination-box{ | 
					
						
							|  |  |  |  |   width: 100%; | 
					
						
							|  |  |  |  |   margin: 10px auto; | 
					
						
							|  |  |  |  |   display: flex; | 
					
						
							|  |  |  |  |   align-items: center; | 
					
						
							|  |  |  |  |   justify-content: center; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .top-app-sou{ | 
					
						
							|  |  |  |  |   width: 20%; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .tk{ | 
					
						
							|  |  |  |  |   text-align: center; | 
					
						
							|  |  |  |  |   color: grey; | 
					
						
							|  |  |  |  |   margin: 10px 0; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .new-top{ | 
					
						
							|  |  |  |  |   width: 98%; | 
					
						
							|  |  |  |  |   background: #FFFFFF; | 
					
						
							|  |  |  |  |   margin: 15px auto; | 
					
						
							|  |  |  |  |   height: 115px; | 
					
						
							|  |  |  |  |   box-sizing: border-box; | 
					
						
							|  |  |  |  |   padding: 15px; | 
					
						
							|  |  |  |  |   border-radius: 4px; | 
					
						
							|  |  |  |  |   margin-bottom: 5px; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .wit_box{ | 
					
						
							|  |  |  |  |   width: 98%; | 
					
						
							|  |  |  |  |   background: #FFFFFF; | 
					
						
							|  |  |  |  |   margin: 5px auto; | 
					
						
							|  |  |  |  |   box-sizing: border-box; | 
					
						
							|  |  |  |  |   padding: 15px; | 
					
						
							|  |  |  |  |   border-radius: 4px; | 
					
						
							|  |  |  |  |   height: 74vh; | 
					
						
							|  |  |  |  | } | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | </style> |