Browse Source

[fix] 前端通用模块

按照万材要求:修改销售订单新增页面质保天数默认为empty
修改仓库入库单-采购订单前端页面存储位置和入库数字段,修改x-editable的默认样式。加上条件判断,没有值就默认为“empty”,修复不能填值的问题
dev
liuxiaoxu 1 month ago
parent
commit
2362960a96
  1. 1
      ruoyi-admin/src/main/resources/templates/system/salesOrder/add.html
  2. 32
      ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchase.html

1
ruoyi-admin/src/main/resources/templates/system/salesOrder/add.html

@ -959,6 +959,7 @@
materialUsd: 0.00,
materialUsdSum: 0.00,
materialNoUsdSum: 0.00,
expiryDay:"",
createBy: "",
createTime: "",
updateBy: "",

32
ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchase.html

@ -3,6 +3,7 @@
<head>
<th:block th:include="include :: header('入库-采购单(采购入库)')" />
<th:block th:include="include :: datetimepicker-css" />
<th:block th:include="include :: bootstrap-editable-css" />
<th:block th:include="include :: select2-css" />
<style>
@ -296,13 +297,42 @@
if (isNaN(v)) return '数量必须是数字';
var processBadNum = parseInt(v);
if (processBadNum <= 0) return '数量必须是正整数';
},
},
formatter: function (value, row) {
// 检查 storageNum 是否存在
if (row.storageNum === undefined || row.storageNum === null) {
return "";
}
// 根据 storageNum 的值决定返回值
if (row.storageNum) {
return row.storageNum;
} else {
return value;
}
}
},
{
title: '存放位置',
field: 'storageLocation',
editable: true
editable: {
type: 'text',
mode:'inline',
},
formatter: function (value, row) {
// 检查 storageLocation 是否存在
if (row.storageLocation === undefined || row.storageLocation === null) {
return "";
}
// 根据 storageLocation 的值决定返回值
if (row.storageLocation) {
return row.storageLocation;
} else {
return value;
}
}
},
]

Loading…
Cancel
Save