From f02f35db75208667d174e84ffc480aaa274b1111 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Sat, 16 Nov 2024 17:06:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/accessory/child/accessory_store_form.js | 2 +- js/accessory/child/choose_fit_type_list.js | 2 +- js/accessory/inventory_statistics_list.js | 4 ++-- page/accessory/inventory_statistics_list.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/accessory/child/accessory_store_form.js b/js/accessory/child/accessory_store_form.js index 49763c2..f783192 100644 --- a/js/accessory/child/accessory_store_form.js +++ b/js/accessory/child/accessory_store_form.js @@ -424,7 +424,7 @@ function checkValue(that, type) { const regex = /^(?:1(?:\d{0,8}|[0-9]*\.\d{1,2})|(?:[1-9]\d{0,7}|[1-9]\d{0,6}\.\d{1,2}|[1-9]\d{1,7}\.\d{2}|100000000(?:\.00)?))$/; if (!regex.test(value) && value) { $(that).val(0); - return layer.msg('单价输入不合法,请重新输入!', { icon: 5 }) + return layer.msg('单价格式不正确(提示:最多保留两位小数)!', { icon: 5 }) } } } diff --git a/js/accessory/child/choose_fit_type_list.js b/js/accessory/child/choose_fit_type_list.js index 4a2cc82..3c4648a 100644 --- a/js/accessory/child/choose_fit_type_list.js +++ b/js/accessory/child/choose_fit_type_list.js @@ -243,7 +243,7 @@ function initTable() { const regex = /^(?:1(?:\d{0,8}|[0-9]*\.\d{1,2})|(?:[1-9]\d{0,7}|[1-9]\d{0,6}\.\d{1,2}|[1-9]\d{1,7}\.\d{2}|100000000(?:\.00)?))$/; if (!regex.test(value)) { obj.reedit(); - return layer.msg('单价格式不正确!', { icon: 7 }) + return layer.msg('单价格式不正确(提示:最多保留两位小数)!', { icon: 7 }) } } else if (field === 'remarks') { // 备注 if (value) { diff --git a/js/accessory/inventory_statistics_list.js b/js/accessory/inventory_statistics_list.js index edb9025..54b8b99 100644 --- a/js/accessory/inventory_statistics_list.js +++ b/js/accessory/inventory_statistics_list.js @@ -25,7 +25,7 @@ function getStatistics() { function setNum(obj) { $('#warn').html(parseInt(obj.warn)); $('#money').html(obj.money); - $('#type').html(parseInt(obj.type)); + $('#type2').html(parseInt(obj.type)); $('#kcNum').html(parseInt(obj.kcNum)); } } @@ -179,5 +179,5 @@ function exportExcel() { 'isWarn': $('#isWarn').val() } let url = dataUrl + "backstage/statistic/exportPaTypeList"; - exportExcelUtil(url, '机具公司发货数据', JSON.stringify(params)); + exportExcelUtil(url, '库存统计', JSON.stringify(params)); } \ No newline at end of file diff --git a/page/accessory/inventory_statistics_list.html b/page/accessory/inventory_statistics_list.html index e18c353..f7cf51f 100644 --- a/page/accessory/inventory_statistics_list.html +++ b/page/accessory/inventory_statistics_list.html @@ -40,7 +40,7 @@

配件类型

-

0

+

0