edit-liche-order

This commit is contained in:
lccsw
2022-09-19 20:43:27 +08:00
parent cf98a1e59f
commit 932b0524a3
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -216,7 +216,7 @@ class Order extends Wxapp{
$agree = $this->receiver_order_contracts_model->count(['o_id'=>$val['o_id'],'status'=>1]) ? true : false;
$contract_list = [];
if($agree){
$contracts = $this->receiver_order_contracts_model->select(['o_id'=>$val['o_id'],'status'=>1],'','','','id,type,file');
$contracts = $this->receiver_order_contracts_model->select(['o_id'=>$val['o_id'],'status'=>1,'type <> 6' => null],'','','','id,type,file');
foreach ($contracts as $item) {
$contract_list[] = [
'title' => $contract_type_arr[$item['type']],
+1 -1
View File
@@ -380,7 +380,7 @@ class User extends Wxapp{
$mobile = $this->session['mobile'];
$where = [
"(mobile={$mobile} or owner_name={$mobile})" => null,
"(mobile={$mobile} or owner_mobile={$mobile})" => null,
"status" => 1,
];
$count = $this->receiver_orders_v2_model->count($where);
@@ -12,7 +12,7 @@ class Receiver_order_contracts_model extends HD_Model
{
private $table_name = 'lc_receiver_order_contracts';
private $type_arr = [ 0 => '整车合同',1 => '代理协议',2 => '车辆信息确定',3 => '交接信息', 4 => '合同补充协议', 5 => '委托服务补充协议'];
private $type_arr = [ 0 => '整车合同',1 => '代理协议',2 => '车辆信息确定',3 => '交接信息', 4 => '合同补充协议', 5 => '委托服务补充协议', 6 => '车辆信息确定'];
private $type_arr_new = [ 0 => '购车协议',1 => '服务协议',3=>'车辆确认'];