From 6a4bdd9bd5125d1f0adcbf4c1464b3616c1188b6 Mon Sep 17 00:00:00 2001 From: "HDM58\\hdm58" Date: Mon, 9 Oct 2023 11:12:19 +0800 Subject: [PATCH] =?UTF-8?q?1=E4=BC=98=E5=8C=96=EF=BC=9A=E8=B4=A2=E5=8A=A1?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E3=80=81=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=90=84=E4=B8=AA=E6=95=B0=E6=8D=AE=E5=88=97=E8=A1=A8=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=8C=BA=E9=97=B4=E7=9A=84=E7=AD=9B=E9=80=89=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=202=E4=BF=AE=E5=A4=8D=EF=BC=9A=E8=B4=A2=E5=8A=A1?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=AD=E7=9A=84=E5=8F=91=E7=A5=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=9A=84=E6=8A=84=E9=80=81=E7=BB=99=E6=88=91=E7=9A=84?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=90=9C=E7=B4=A2=E6=97=B6=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/customer/controller/Chance.php | 8 ++-- app/customer/view/chance/index.html | 33 +++---------- app/finance/controller/Expense.php | 31 ++++++------ app/finance/controller/Income.php | 11 ++--- app/finance/controller/Invoice.php | 29 ++++++------ app/finance/view/expense/checkedlist.html | 28 ++++------- app/finance/view/expense/copy.html | 29 ++++-------- app/finance/view/expense/index.html | 29 ++++-------- app/finance/view/income/index.html | 28 ++++------- app/finance/view/invoice/checkedlist.html | 28 ++++------- app/finance/view/invoice/copy.html | 28 ++++------- app/finance/view/invoice/index.html | 28 ++++------- app/project/controller/Task.php | 9 ++-- app/project/view/task/task_time.html | 57 ++++++----------------- 14 files changed, 133 insertions(+), 243 deletions(-) diff --git a/app/customer/controller/Chance.php b/app/customer/controller/Chance.php index 8d356b9..8cdd272 100644 --- a/app/customer/controller/Chance.php +++ b/app/customer/controller/Chance.php @@ -31,9 +31,11 @@ class Chance extends BaseController if (!empty($param['stage'])) { $where[] = ['a.stage', '=', $param['stage']]; } - if (!empty($param['start_date']) && !empty($param['end_date'])) { - $where[] = ['a.expected_time', 'BETWEEN', [strtotime($param['start_date']),strtotime($param['end_date'])]]; - } + //按时间检索 + if (!empty($param['diff_time'])) { + $diff_time =explode('~', $param['diff_time']); + $where[] = ['a.expected_time', 'between', [strtotime(urldecode($diff_time[0])),strtotime(urldecode($diff_time[1]))]]; + } $where[] = ['a.delete_time', '=', 0]; $uid = $this->uid; diff --git a/app/customer/view/chance/index.html b/app/customer/view/chance/index.html index 20ce6fd..25b3050 100644 --- a/app/customer/view/chance/index.html +++ b/app/customer/view/chance/index.html @@ -14,14 +14,8 @@ {/volist} -
-
- -
-
-
-
- -
+
+
@@ -40,16 +34,11 @@ {block name="script"}