Browse Source

Merge remote-tracking branch 'origin/master' into master

dev
xubinxcode 3 years ago
parent
commit
d0f8b1566c
5 changed files with 20 additions and 13 deletions
  1. +1
    -1
      application/admin/dao/PurchasePriceDao.php
  2. +8
    -4
      application/admin/service/PaymentOrderService.php
  3. +1
    -1
      application/admin/service/ReceiptOrderService.php
  4. +7
    -4
      application/admin/view/payment_order/index.html
  5. +3
    -3
      application/admin/view/receipt_order/index.html

+ 1
- 1
application/admin/dao/PurchasePriceDao.php View File

@@ -29,7 +29,7 @@ class PurchasePriceDao
{ {
try { try {
//删除记录 //删除记录
$this->delete($order_detail_id);
$this->delete($purchase_id);
//循环添加 //循环添加
foreach ($param as $value) { foreach ($param as $value) {
$data = [ $data = [


+ 8
- 4
application/admin/service/PaymentOrderService.php View File

@@ -155,9 +155,13 @@ class PaymentOrderService
}else{ }else{
$hotel_where_arr[]=" b.id = 0 "; $hotel_where_arr[]=" b.id = 0 ";
} }
if (!empty($param['sub_order_id'])) {
$item_where_arr[] = " a.id = {$param["sub_order_id"]} ";
$hotel_where_arr[]=" b.id = {$param['sub_order_id']} ";
}
if (!empty($param['order_id'])) { if (!empty($param['order_id'])) {
$item_where_arr[] = " a.id = {$param["order_id"]} ";
$hotel_where_arr[]=" b.id = {$param['order_id']} ";
$item_where_arr[] = " a.order_id = {$param["order_id"]} ";
$hotel_where_arr[]=" b.order_id = {$param['order_id']} ";
} }
if (!empty($param['supplier_id'])) { if (!empty($param['supplier_id'])) {
$item_where_arr[] = " d.supplier_id = {$param["supplier_id"]} "; $item_where_arr[] = " d.supplier_id = {$param["supplier_id"]} ";
@@ -168,8 +172,8 @@ class PaymentOrderService
$hotel_where_arr[]=" b.confirm_status = {$param['confirm_status']} "; $hotel_where_arr[]=" b.confirm_status = {$param['confirm_status']} ";
} }
if (!empty($param['customer_name'])) { if (!empty($param['customer_name'])) {
$item_where_arr[] = " a.customer_name like %{$param["customer_name"]}% ";
$hotel_where_arr[]=" b.customer_name like %{$param['customer_name']}% ";
$item_where_arr[] = " a.customer_name like '%{$param["customer_name"]}%' ";
$hotel_where_arr[]=" b.customer_name like '%{$param['customer_name']}%' ";
} }
if (!empty($param['item_id'])) { if (!empty($param['item_id'])) {
$item_where_arr[] = " a.item_id = {$param["item_id"]} "; $item_where_arr[] = " a.item_id = {$param["item_id"]} ";


+ 1
- 1
application/admin/service/ReceiptOrderService.php View File

@@ -133,7 +133,7 @@ class ReceiptOrderService
$where['commissioner_id'] = $param['commissioner_id']; $where['commissioner_id'] = $param['commissioner_id'];
} }
if (!empty($param['user_name'])) { if (!empty($param['user_name'])) {
$where['user_name'] = ["like","%".$param['user_name']."%"];
$where['user_name'] = ["like","'%".$param['user_name']."%'"];
} }
if (!empty($param['user_phone'])) { if (!empty($param['user_phone'])) {
$where['user_phone'] = $param['user_phone']; $where['user_phone'] = $param['user_phone'];


+ 7
- 4
application/admin/view/payment_order/index.html View File

@@ -126,6 +126,8 @@
</el-form> </el-form>
<div> <div>
<div class="header-search" style="width: 100%;margin-bottom: 10px"> <div class="header-search" style="width: 100%;margin-bottom: 10px">
<span>子订单ID:</span>
<el-input v-model="orderMainListSearch.sub_order_id" style="width: 120px;" placeholder="请输入内容"></el-input>
<span>订单类型:</span> <span>订单类型:</span>
<el-select v-model="orderMainListSearch.prod_type" style="width: 120px;" placeholder="请选择" > <el-select v-model="orderMainListSearch.prod_type" style="width: 120px;" placeholder="请选择" >
<el-option <el-option
@@ -135,8 +137,6 @@
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
<span>子订单ID:</span>
<el-input v-model="orderMainListSearch.order_id" style="width: 120px;" placeholder="请输入内容"></el-input>
<span>用户名</span> <span>用户名</span>
<el-input v-model="orderMainListSearch.customer_name" style="width: 120px;" placeholder="请输入内容" clearable></el-input> <el-input v-model="orderMainListSearch.customer_name" style="width: 120px;" placeholder="请输入内容" clearable></el-input>


@@ -170,10 +170,12 @@
</el-select> </el-select>
</div> </div>
<div class="header-search" style="width: 100%;margin-bottom: 10px"> <div class="header-search" style="width: 100%;margin-bottom: 10px">
<span>主订单ID:</span>
<el-input v-model="orderMainListSearch.order_id" style="width: 120px;" placeholder="请输入内容"></el-input>
<span>成本</span> <span>成本</span>
<el-input-number v-model="orderMainListSearch.startMoney" style="width: 120px;" placeholder="请输入内容" clearable></el-input-number>
<el-input-number v-model="orderMainListSearch.startMoney" style="width: 170px;" placeholder="请输入内容" clearable></el-input-number>
~ ~
<el-input-number v-model="orderMainListSearch.endMoney" style="width: 120px;" placeholder="请输入内容" clearable></el-input-number>
<el-input-number v-model="orderMainListSearch.endMoney" style="width: 170px;" placeholder="请输入内容" clearable></el-input-number>
<span>时间</span> <span>时间</span>
<el-date-picker <el-date-picker
style="width: 120px;" style="width: 120px;"
@@ -308,6 +310,7 @@
orderMainListSearch:{ orderMainListSearch:{
"payment_order_id":"", "payment_order_id":"",
"order_id":"", "order_id":"",
"sub_order_id":"",
"prod_type":"hotel", "prod_type":"hotel",
"supplier_id":"", "supplier_id":"",
"inPayment":"", "inPayment":"",


+ 3
- 3
application/admin/view/receipt_order/index.html View File

@@ -172,9 +172,9 @@
<span>手机号</span> <span>手机号</span>
<el-input v-model="orderMainListSearch.user_phone" style="width: 150px;" placeholder="请输入内容" clearable></el-input> <el-input v-model="orderMainListSearch.user_phone" style="width: 150px;" placeholder="请输入内容" clearable></el-input>
<span>金额</span> <span>金额</span>
<el-input-number v-model="orderMainListSearch.startMoney" style="width: 150px;" placeholder="请输入内容" clearable></el-input-number>
<el-input-number v-model="orderMainListSearch.startMoney" style="width: 170px;" placeholder="请输入内容" clearable></el-input-number>
~ ~
<el-input-number v-model="orderMainListSearch.endMoney" style="width: 150px;" placeholder="请输入内容" clearable></el-input-number>
<el-input-number v-model="orderMainListSearch.endMoney" style="width: 170px;" placeholder="请输入内容" clearable></el-input-number>
<span>时间</span> <span>时间</span>
<el-date-picker <el-date-picker
style="width: 150px;" style="width: 150px;"
@@ -197,7 +197,7 @@
<el-table ref="multipleTable" :data="orderMainList" border tooltip-effect="dark" style="font-size:12px;width: 100%;margin-top: 12px" @selection-change="handleSelectionChange"> <el-table ref="multipleTable" :data="orderMainList" border tooltip-effect="dark" style="font-size:12px;width: 100%;margin-top: 12px" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="30" :selectable="checkSelect"></el-table-column> <el-table-column type="selection" width="30" :selectable="checkSelect"></el-table-column>
<el-table-column prop="id" label="订单ID" min-width="40" ></el-table-column> <el-table-column prop="id" label="订单ID" min-width="40" ></el-table-column>
<el-table-column prop="commissioner_id" label="专员" min-width="40" :formatter="getUserName"></el-table-column>
<el-table-column prop="commissioner" label="专员" min-width="40" ></el-table-column>
<el-table-column prop="channel_name" label="渠道" min-width="80" ></el-table-column> <el-table-column prop="channel_name" label="渠道" min-width="80" ></el-table-column>
<el-table-column prop="channel_order_no" label="渠道订单号" min-width="90" ></el-table-column> <el-table-column prop="channel_order_no" label="渠道订单号" min-width="90" ></el-table-column>
<el-table-column prop="create_id" label="下单人" min-width="50" :formatter="getUserName"></el-table-column> <el-table-column prop="create_id" label="下单人" min-width="50" :formatter="getUserName"></el-table-column>


Loading…
Cancel
Save