From a349ab51b37ed52fae879ee463096b0971ccfd45 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Mon, 20 Jan 2025 14:16:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../child/dispatch_input_detail.js | 4 ++-- .../child/emerg_internal_car_detail.js | 1 - js/car_demand_plan/dispatch_car_list.js | 22 +++++++++---------- js/car_demand_plan/dispatch_input_list.js | 7 ++---- .../child/branch_settlement_detail.js | 8 +++---- .../child/branch_settlement_pro_detail.js | 6 ++--- .../child/choose_plan_code_list.js | 21 +++++++++++++++--- .../child/payment_detail_list.js | 14 ++++++------ js/car_settlement/sup_settlement_list.js | 11 +++++++++- js/welcome/data_datail_plan_list.js | 16 ++++++++++++++ .../child/branch_settlement_detail.html | 4 ++-- .../child/payment_detail_list.html | 4 ++-- page/car_settlement/child/payment_form.html | 10 ++++----- 13 files changed, 82 insertions(+), 46 deletions(-) diff --git a/js/car_demand_plan/child/dispatch_input_detail.js b/js/car_demand_plan/child/dispatch_input_detail.js index d8f3030..47d44eb 100644 --- a/js/car_demand_plan/child/dispatch_input_detail.js +++ b/js/car_demand_plan/child/dispatch_input_detail.js @@ -26,7 +26,7 @@ function setParams(params) { let value = $(this).attr('value'); let status = $(this).attr('status'); let type = $(this).attr('type'); - if (parseInt(status) === 2 && isPage) { + if (parseInt(status) === 2 && !isPage) { $('#updateData').remove(); $('#print').before(''); } @@ -84,7 +84,7 @@ function getAllOutList() { // 设置新的滚动位置 scrollableElement.scrollLeft += delta; }); - if (parseInt(status) === 2 && isPage) { + if (parseInt(status) === 2 && !isPage) { $('#print').before(''); } checkNowValue = id; diff --git a/js/car_demand_plan/child/emerg_internal_car_detail.js b/js/car_demand_plan/child/emerg_internal_car_detail.js index 583ba5a..39557fc 100644 --- a/js/car_demand_plan/child/emerg_internal_car_detail.js +++ b/js/car_demand_plan/child/emerg_internal_car_detail.js @@ -41,7 +41,6 @@ function getDetailById() { // 基本信息 function setPlanBasicTableInfo(obj) { - console.error(obj); $('#typeName').html(obj.typeName); $('#code').html(obj.code); diff --git a/js/car_demand_plan/dispatch_car_list.js b/js/car_demand_plan/dispatch_car_list.js index 4dcc6b4..7c4e46a 100644 --- a/js/car_demand_plan/dispatch_car_list.js +++ b/js/car_demand_plan/dispatch_car_list.js @@ -156,7 +156,7 @@ function initTable() { title: "工程名称", unresize: true, align: "center", - sort:true, + sort: true, }, { field: "planNum", @@ -164,7 +164,7 @@ function initTable() { title: "计划数", unresize: true, align: "center", - sort:true, + sort: true, templet: function (d) { return '' + d.planNum + ''; }, @@ -175,7 +175,7 @@ function initTable() { title: "已派车", unresize: true, align: "center", - sort:true, + sort: true, templet: function (d) { return '' + d.ypcNum + ''; }, @@ -186,7 +186,7 @@ function initTable() { title: "待派车", unresize: true, align: "center", - sort:true, + sort: true, templet: function (d) { return '' + d.dpcNum + ''; }, @@ -197,7 +197,7 @@ function initTable() { width: '8%', unresize: true, align: "center", - sort:true, + sort: true, templet: function (d) { return setStatusColor(d.planStatus); }, @@ -208,9 +208,9 @@ function initTable() { title: "最后派车时间", unresize: true, align: "center", - sort:true, + sort: true, templet: function (d) { - return d.lastDay ? d.lastDay:''; + return d.lastDay ? d.lastDay : '--'; }, }, { @@ -220,7 +220,7 @@ function initTable() { unresize: true, align: "center", templet: schedule, - sort:true, + sort: true, }, { field: "needNum", @@ -228,7 +228,7 @@ function initTable() { width: '10%', unresize: true, align: "center", - sort:true, + sort: true, }, { field: "dispatchNum", @@ -236,7 +236,7 @@ function initTable() { width: '9%', unresize: true, align: "center", - sort:true, + sort: true, }, { field: "noDispatchNum", @@ -244,7 +244,7 @@ function initTable() { width: '9%', unresize: true, align: "center", - sort:true, + sort: true, }, { title: "操作", diff --git a/js/car_demand_plan/dispatch_input_list.js b/js/car_demand_plan/dispatch_input_list.js index 6c954dd..d47a496 100644 --- a/js/car_demand_plan/dispatch_input_list.js +++ b/js/car_demand_plan/dispatch_input_list.js @@ -200,7 +200,7 @@ function initTable() { }, { field: "status", - width: '7%', + width: '8%', title: "审核状态", sort: true, unresize: true, @@ -211,7 +211,7 @@ function initTable() { }, { title: "操作", - width: '10%', + width: '9%', align: "center", unresize: true, templet: function (d) { @@ -221,12 +221,9 @@ function initTable() { let html = ""; html += "详情"; if (parseInt(dispatchNum) > 0 && parseInt(noDispatchNum) > 0) { - html += "
未付
'; + return '待付
'; } }, @@ -199,7 +199,7 @@ function initTable() { function exportExcel() { let params = { 'keyWord': $('#keyWord').val(), - 'isPay': $('#isPay').val(), + 'status': $('#status').val(), } let url = dataUrl + "backstage/carBalance/export2"; exportExcelUtil(url, '付款单录入详情', JSON.stringify(params)); diff --git a/js/car_settlement/sup_settlement_list.js b/js/car_settlement/sup_settlement_list.js index 3a488e5..f014b24 100644 --- a/js/car_settlement/sup_settlement_list.js +++ b/js/car_settlement/sup_settlement_list.js @@ -185,6 +185,9 @@ function initTable() { unresize: true, align: "center", sort:true, + templet: function (d) { + return d.manager ? d.manager : '--'; + }, }, { field: "jbTime", @@ -193,9 +196,12 @@ function initTable() { unresize: true, align: "center", sort:true, + templet: function (d) { + return d.jbTime ? d.jbTime : '--'; + }, }, { - field: "fkTime", + field: "status", width: '8%', title: "是否已付款", unresize: true, @@ -216,6 +222,9 @@ function initTable() { unresize: true, align: "center", sort:true, + templet: function (d) { + return d.fkTime ? d.fkTime : '--'; + }, }, { title: "操作", diff --git a/js/welcome/data_datail_plan_list.js b/js/welcome/data_datail_plan_list.js index fd83c26..69338a7 100644 --- a/js/welcome/data_datail_plan_list.js +++ b/js/welcome/data_datail_plan_list.js @@ -179,6 +179,9 @@ function initTable() { unresize: true, align: "center", sort: true, + templet: function (d) { + return d.supName ? d.supName : '--' + }, }, { field: "payStatus", @@ -187,6 +190,19 @@ function initTable() { unresize: true, align: "center", sort: true, + templet: function (d) { + let color = "",name = ""; + if (d.payStatus === '1') { + color = "#f56c6c"; + name = '待付款'; + } else if (d.payStatus === '2') { + color = "#19be6b"; + name = '已付款' + }else{ + return '--' + } + return ' ● ' + name + ""; + } }, { field: "companyName", diff --git a/page/car_settlement/child/branch_settlement_detail.html b/page/car_settlement/child/branch_settlement_detail.html index a47cee3..f5b31f8 100644 --- a/page/car_settlement/child/branch_settlement_detail.html +++ b/page/car_settlement/child/branch_settlement_detail.html @@ -62,7 +62,7 @@ lay-affix="clear" placeholder="输入工程名称" maxlength="30"> -