实际进货金额* |
-
+ |
+
|
执行单有效截止时间* |
@@ -274,14 +291,16 @@
配置信息
- 软件
-
+
+ 软件产品
+
+
序号 |
- 产品编号 |
- 产品型号 |
+ 产品编码 |
+ 产品型号 |
描述 |
数量 |
目录单价(RMB) |
@@ -297,13 +316,16 @@
- 硬件
-
+
+ 终端产品
+
+
+
序号 |
- 产品编号 |
+ 产品编码 |
产品型号 |
描述 |
数量 |
@@ -320,13 +342,16 @@
- 维保
-
+
+ 服务产品
+
+
+
序号 |
- 产品编号 |
+ 产品编码 |
产品型号 |
描述 |
数量 |
@@ -423,6 +448,24 @@
}
+ function updateShipmentAmountValue(key) {
+ // 获取显示用的输入框
+ const displayInput = document.getElementById('display'+key);
+ // 获取隐藏字段
+ const rawInput = document.getElementById(key);
+ // 去除逗号并过滤非数字字符
+ let rawValue = displayInput.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');
+
+ // 更新隐藏字段的值
+ rawInput.value = rawValue;
+
+ // 格式化显示(可选)
+ if (rawValue) {
+ displayInput.value = Number(rawValue).toLocaleString('en-US');
+ } else {
+ displayInput.value = "";
+ }
+ }
function saveSelect() {
var options = {
title: "确认并提交订单",
@@ -487,6 +530,9 @@
$('[name="bgProperty"]').val(data.bgProperty);
$('[name="agentName"]').val(data.agentName);
$('[name="agentCode"]').val(data.agentCode);
+ $('[name="businessPerson"]').val(data.contactPerson);
+ $('[name="businessEmail"]').val(data.contactEmail);
+ $('[name="businessPhone"]').val(data.contactPhone);
changeBg()
$('[name="industryType"]').val(data.industryType);
initProjectList(data)
@@ -584,6 +630,10 @@
$('[name="agentCode"]').val(rows[0].agentCode);
changeBg()
$('[name="industryType"]').val(rows[0].industryType);
+
+ $('[name="businessPerson"]').val(rows[0].contactPerson);
+ $('[name="businessEmail"]').val(rows[0].contactEmail);
+ $('[name="businessPhone"]').val(rows[0].contactPhone);
initProjectList()
$.modal.close(index);
}
@@ -620,7 +670,6 @@
}
- // 添加软件
function addProduct(data) {
let length = $('#productTable tbody').find('tr').length
let tr = $(`
@@ -628,23 +677,25 @@
${length + 1} |
|
|
- |
|
|
|
|
|
- |
- |
- |
+
+
+
+ |
+
+
+
+ |
+
+
+
+ |
|
-
-删除 |
+删除 |
`)
$('#productTable tbody').append(tr)
@@ -664,12 +715,20 @@ ${softwareProjectProductInfoList.map((ele) => {
|
|
|
- |
- |
- |
+
+
+
+ |
+
+
+
+ |
+
+
+
+ |
|
-
-删除 |
+删除 |
`)
$('#productTable2 tbody').append(tr)
@@ -685,16 +744,24 @@ ${softwareProjectProductInfoList.map((ele) => {
|
|
|
- |
+ |
|
|
|
- |
- |
- |
+
+
+
+ |
+
+
+
+ |
+
+
+
+ |
|
-
-删除 |
+删除 |
`)
$('#productTable3 tbody').append(tr)
@@ -741,9 +808,11 @@ ${softwareProjectProductInfoList.map((ele) => {
let cateVal = $(this).parent().parent().find('.cataloguePrice').val()
if (priceVal && num) {
$(this).parent().parent().find('.allPrice').val((num * priceVal).toFixed(2))
+ $(this).parent().parent().find('.allPrice-formmat').val(Number((num * priceVal).toFixed(2)).toLocaleString("en-US"))
}
if (cateVal && num) {
$(this).parent().parent().find('.catalogueAllPrice').val((num * cateVal).toFixed(2))
+ $(this).parent().parent().find('.catalogueAllPrice-formmat').val(Number((num * cateVal).toFixed(2)).toLocaleString("en-US"))
}
})
$('.productTable .cataloguePrice').on('input', function () {
@@ -752,6 +821,7 @@ ${softwareProjectProductInfoList.map((ele) => {
let quantity = $(this).parent().parent().find('.quantity').val()
if (quantity && val)
$(this).parent().parent().find('.catalogueAllPrice').val((val * quantity).toFixed(2))
+ $(this).parent().parent().find('.catalogueAllPrice-formmat').val(Number((val * quantity).toFixed(2)).toLocaleString("en-US"))
})
$('.productTable .guidanceDiscount').on('input', function () {
let val = $(this).val()
@@ -762,17 +832,25 @@ ${softwareProjectProductInfoList.map((ele) => {
let quantity = $(this).parent().parent().find('.quantity').val()
if (price && quantity) {
$(this).parent().parent().find('.allPrice').val((price * quantity).toFixed(2))
+ $(this).parent().parent().find('.allPrice-formmat').val(Number((price * quantity).toFixed(2)).toLocaleString("en-US"))
}
})
$('.productTable .discount').on('input', function () {
let discount = $(this).val()
let val = $(this).parent().parent().find('.cataloguePrice').val()
$(this).parent().parent().find('.price').val((val * discount).toFixed(2))
+ let price = $(this).parent().parent().find('.price').val()
+ $(this).parent().parent().find('.price-formmat').val(Number(price).toLocaleString("en-US"))
+ let num = $(this).parent().parent().find('.quantity').val()
+ $(this).parent().parent().find('.allPrice').val((price * num).toFixed(2))
+ let allPrice = $(this).parent().parent().find('.allPrice').val()
+ $(this).parent().parent().find('.allPrice-formmat').val(Number(allPrice).toLocaleString("en-US"))
})
$('.productTable .price').change('input', function () {
let val = $(this).val()
let num = $(this).parent().parent().find('.quantity').val()
$(this).parent().parent().find('.allPrice').val((val * num).toFixed(2))
+ $(this).parent().parent().find('.allPrice-formmat').val(Number((price * quantity).toFixed(2)).toLocaleString("en-US"))
})
}
@@ -882,12 +960,26 @@ ${
$('#productTable2 tbody').html('')
$('#productTable3 tbody').html('')
data.softwareProjectProductInfoList ? data.softwareProjectProductInfoList.forEach((ele) => {
+ ele.cataloguePriceFormmat = ele.cataloguePrice ? ele.cataloguePrice.toLocaleString("en-US") : ""
+ ele.priceFormmat = ele.price ? ele.price.toLocaleString("en-US") : ""
+ ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? ele.catalogueAllPrice.toLocaleString("en-US") : ""
+ ele.allPriceFormmat = ele.allPrice ? ele.allPrice.toLocaleString("en-US") : ""
addProduct(ele)
}) : ''
data.hardwareProjectProductInfoList ? data.hardwareProjectProductInfoList.forEach((ele) => {
+ ele.cataloguePriceFormmat = ele.cataloguePrice ? ele.cataloguePrice.toLocaleString("en-US") : ""
+
+ ele.priceFormmat = ele.price ? ele.price.toLocaleString("en-US") : ""
+ ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? ele.catalogueAllPrice.toLocaleString("en-US") : ""
+ ele.allPriceFormmat = ele.allPrice ? ele.allPrice.toLocaleString("en-US") : ""
addProduct2(ele)
}) : ''
data.maintenanceProjectProductInfoList ? data.maintenanceProjectProductInfoList.forEach((ele) => {
+ ele.cataloguePriceFormmat = ele.cataloguePrice ? ele.cataloguePrice.toLocaleString("en-US") : ""
+
+ ele.priceFormmat = ele.price ? ele.price.toLocaleString("en-US") : ""
+ ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? ele.catalogueAllPrice.toLocaleString("en-US") : ""
+ ele.allPriceFormmat = ele.allPrice ? ele.allPrice.toLocaleString("en-US") : ""
addProduct3(ele)
}) : ''
return
@@ -898,12 +990,24 @@ ${
$('#productTable2 tbody').html('')
$('#productTable3 tbody').html('')
res.data.softwareProjectProductInfoList ? res.data.softwareProjectProductInfoList.forEach((ele) => {
+ ele.cataloguePriceFormmat = ele.cataloguePrice ? ele.cataloguePrice.toLocaleString("en-US") : ""
+ ele.priceFormmat = ele.price ? ele.price.toLocaleString("en-US") : ""
+ ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? ele.catalogueAllPrice.toLocaleString("en-US") : ""
+ ele.allPriceFormmat = ele.allPrice ? ele.allPrice.toLocaleString("en-US") : ""
addProduct(ele)
}) : ''
res.data.hardwareProjectProductInfoList ? res.data.hardwareProjectProductInfoList.forEach((ele) => {
+ ele.cataloguePriceFormmat = ele.cataloguePrice ? ele.cataloguePrice.toLocaleString("en-US") : ""
+ ele.priceFormmat = ele.price ? ele.price.toLocaleString("en-US") : ""
+ ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? ele.catalogueAllPrice.toLocaleString("en-US") : ""
+ ele.allPriceFormmat = ele.allPrice ? ele.allPrice.toLocaleString("en-US") : ""
addProduct2(ele)
}) : ''
res.data.maintenanceProjectProductInfoList ? res.data.maintenanceProjectProductInfoList.forEach((ele) => {
+ ele.cataloguePriceFormmat = ele.cataloguePrice ? ele.cataloguePrice.toLocaleString("en-US") : ""
+ ele.priceFormmat = ele.price ? ele.price.toLocaleString("en-US") : ""
+ ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? ele.catalogueAllPrice.toLocaleString("en-US") : ""
+ ele.allPriceFormmat = ele.allPrice ? ele.allPrice.toLocaleString("en-US") : ""
addProduct3(ele)
}) : ''
})
diff --git a/ruoyi-admin/src/main/resources/templates/project/order/edit.html b/ruoyi-admin/src/main/resources/templates/project/order/edit.html
index a3c582a1..121a1567 100644
--- a/ruoyi-admin/src/main/resources/templates/project/order/edit.html
+++ b/ruoyi-admin/src/main/resources/templates/project/order/edit.html
@@ -30,20 +30,26 @@
.section-title {
font-weight: bold;
- font-size: 18px;
+ font-size: 30px;
padding: 10px 0;
+ color: #0075ff;
}
.checkbox-group label {
margin-right: 20px;
}
+ .add-btn-div {
+ display: flex;
+ justify-content: space-between;
+ }
.add-btn {
background: #409eff;
color: #fff;
border: none;
padding: 5px 10px;
cursor: pointer;
+ margin-bottom: 5px;
}
.checkbox-box label {
@@ -91,7 +97,8 @@
|