Browse Source

为创建表单和编辑表单的必填项添加红色标识

Boss3
Default User 2 months ago
parent
commit
c2082e3ba1
  1. 48
      supply.html

48
supply.html

@ -1299,7 +1299,7 @@
<form id="createSupplyForm">
<!-- 货源状态选择 (预售/现货) -->
<div class="form-group">
<label class="form-label">货源状态</label>
<label class="form-label">货源状态 <span style="color: red;">*</span></label>
<div style="display: flex; gap: 10px;">
<button type="button" id="preSaleBtn" class="status-button" onclick="setSupplyStatus('预售')" style="padding: 8px 20px; border: 2px solid #d9d9d9; background-color: white; color: #666; border-radius: 6px; cursor: pointer;">预售</button>
<button type="button" id="inStockBtn" class="status-button" onclick="setSupplyStatus('现货')" style="padding: 8px 20px; border: 2px solid #d9d9d9; background-color: white; color: #666; border-radius: 6px; cursor: pointer;">现货</button>
@ -1312,7 +1312,7 @@
<!-- 商品图片 -->
<div class="form-group">
<label class="form-label">商品图片</label>
<label class="form-label">商品图片 <span style="color: red;">*</span></label>
<div class="upload-area">
<div id="uploadImages" class="upload-images"></div>
<div class="add-image" onclick="triggerImageUpload()">+</div>
@ -1330,7 +1330,7 @@
<!-- 货源类型 -->
<div class="form-group">
<label class="form-label">货源类型</label>
<label class="form-label">货源类型 <span style="color: red;">*</span></label>
<div class="form-select" id="sourceTypeSelect" onclick="showSourceTypeSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="sourceTypeDisplayText">请选择货源类型</span>
<input type="hidden" id="sourceType" name="sourceType">
@ -1340,7 +1340,7 @@
<!-- 种类 -->
<div class="form-group">
<label class="form-label">种类</label>
<label class="form-label">种类 <span style="color: red;">*</span></label>
<div class="form-select" id="categorySelect" onclick="showCategorySelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="categoryDisplayText">请选择种类</span>
<input type="hidden" id="category" name="category">
@ -1350,7 +1350,7 @@
<!-- 商品名称 -->
<div class="form-group">
<label class="form-label">商品名称</label>
<label class="form-label">商品名称 <span style="color: red;">*</span></label>
<div class="form-select" id="productNameSelect" onclick="showProductNameSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="productNameDisplayText">请选择商品名称</span>
<input type="hidden" id="productName" name="productName">
@ -1360,7 +1360,7 @@
<!-- 蛋黄类型 -->
<div class="form-group">
<label class="form-label">蛋黄类型</label>
<label class="form-label">蛋黄类型 <span style="color: red;">*</span></label>
<div class="form-select" id="yolkSelect" onclick="showYolkSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="yolkDisplayText">请选择蛋黄类型</span>
<input type="hidden" id="yolk" name="yolk">
@ -1370,7 +1370,7 @@
<!-- 产品包装 -->
<div class="form-group">
<label class="form-label">产品包装</label>
<label class="form-label">产品包装 <span style="color: red;">*</span></label>
<div class="form-select" id="producting" onclick="showProductingSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="productingDisplayText">请选择产品包装</span>
<input type="hidden" id="productingValue" name="producting">
@ -1380,7 +1380,7 @@
<!-- 新鲜程度 -->
<div class="form-group">
<label class="form-label">新鲜程度</label>
<label class="form-label">新鲜程度 <span style="color: red;">*</span></label>
<div class="form-select" id="freshnessSelect" onclick="showFreshnessSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="freshnessDisplayText">请选择新鲜程度</span>
<input type="hidden" id="freshness" name="freshness">
@ -1390,7 +1390,7 @@
<!-- 地区 -->
<div class="form-group">
<label class="form-label">地区</label>
<label class="form-label">地区 <span style="color: red;">*</span></label>
<div class="form-select" id="region" onclick="showRegionSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="regionDisplayText">请选择地区</span>
<input type="hidden" id="regionValue" name="region">
@ -1400,7 +1400,7 @@
<!-- 规格和件数 -->
<div class="form-group">
<label class="form-label">规格件数和采购价格</label>
<label class="form-label">规格件数和采购价格 <span style="color: red;">*</span></label>
<div id="specQuantityContainer">
<!-- 规格-件数对列表 -->
<div id="specQuantityPairs"></div>
@ -1441,13 +1441,13 @@
<!-- 货源描述 -->
<div class="form-group">
<label class="form-label">货源描述</label>
<label class="form-label">货源描述 <span style="color: red;">*</span></label>
<input type="text" class="form-input" id="description" placeholder="请输入货源描述" required>
</div>
<!-- 自动下架时间 -->
<div class="form-group">
<label class="form-label">自动下架时间</label>
<label class="form-label">自动下架时间 <span style="color: red;">*</span></label>
<select class="form-select" id="autoOfflineMinutes">
<option value="1">1分钟</option>
<option value="5">5分钟</option>
@ -1715,7 +1715,7 @@
<form id="editSupplyForm">
<div class="form-group">
<label class="form-label">货源状态</label>
<label class="form-label">货源状态 <span style="color: red;">*</span></label>
<div style="display: flex; gap: 10px;">
<button type="button" id="editPreSaleBtn" class="status-button" onclick="setEditSupplyStatus('预售')" style="padding: 8px 20px; border: 2px solid #d9d9d9; background-color: white; color: #666; border-radius: 6px; cursor: pointer;">预售</button>
<button type="button" id="editInStockBtn" class="status-button" onclick="setEditSupplyStatus('现货')" style="padding: 8px 20px; border: 2px solid #d9d9d9; background-color: white; color: #666; border-radius: 6px; cursor: pointer;">现货</button>
@ -1728,7 +1728,7 @@
<!-- 商品图片 -->
<div class="form-group">
<label class="form-label">商品图片</label>
<label class="form-label">商品图片 <span style="color: red;">*</span></label>
<div class="upload-area">
<div id="editUploadImages" class="upload-images" style="display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px;">
<!-- 图片将通过JavaScript动态加载 -->
@ -1746,7 +1746,7 @@
<!-- 货源类型 -->
<div class="form-group">
<label class="form-label">货源类型</label>
<label class="form-label">货源类型 <span style="color: red;">*</span></label>
<div class="form-select" id="editSourceTypeSelect" onclick="showEditSourceTypeSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="editSourceTypeDisplayText">请选择货源类型</span>
<input type="hidden" id="editSourceType" name="sourceType">
@ -1756,7 +1756,7 @@
<!-- 种类 -->
<div class="form-group">
<label class="form-label">种类</label>
<label class="form-label">种类 <span style="color: red;">*</span></label>
<div class="form-select" id="editCategorySelect" onclick="showEditCategorySelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="editCategoryDisplayText">请选择种类</span>
<input type="hidden" id="editCategory" name="category">
@ -1766,7 +1766,7 @@
<!-- 商品名称 -->
<div class="form-group">
<label class="form-label">商品名称</label>
<label class="form-label">商品名称 <span style="color: red;">*</span></label>
<div class="form-select" id="editProductNameSelect" onclick="showEditProductNameSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="editProductNameDisplayText">请选择商品名称</span>
<input type="hidden" id="editProductName" name="productName">
@ -1776,7 +1776,7 @@
<!-- 蛋黄类型 -->
<div class="form-group">
<label class="form-label">蛋黄类型</label>
<label class="form-label">蛋黄类型 <span style="color: red;">*</span></label>
<div class="form-select" id="editYolkSelect" onclick="showEditYolkSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="editYolkDisplayText">请选择蛋黄类型</span>
<input type="hidden" id="editYolk" name="yolk">
@ -1786,7 +1786,7 @@
<!-- 产品包装 -->
<div class="form-group">
<label class="form-label">产品包装</label>
<label class="form-label">产品包装 <span style="color: red;">*</span></label>
<div class="form-select" id="editProducting" onclick="showEditProductingSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="editProductingDisplayText">请选择产品包装</span>
<input type="hidden" id="editProductingValue" name="producting">
@ -1796,7 +1796,7 @@
<!-- 新鲜程度 -->
<div class="form-group">
<label class="form-label">新鲜程度</label>
<label class="form-label">新鲜程度 <span style="color: red;">*</span></label>
<div class="form-select" id="editFreshnessSelect" onclick="showEditFreshnessSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="editFreshnessDisplayText">请选择新鲜程度</span>
<input type="hidden" id="editFreshness" name="freshness">
@ -1806,7 +1806,7 @@
<!-- 地区 -->
<div class="form-group">
<label class="form-label">地区</label>
<label class="form-label">地区 <span style="color: red;">*</span></label>
<div class="form-select" id="editRegion" onclick="showEditRegionSelectModal()" style="cursor: pointer; position: relative; padding-right: 30px;">
<span id="editRegionDisplayText">请选择地区</span>
<input type="hidden" id="editRegionValue" name="region">
@ -1816,7 +1816,7 @@
<!-- 规格和件数 -->
<div class="form-group">
<label class="form-label">规格件数和采购价格</label>
<label class="form-label">规格件数和采购价格 <span style="color: red;">*</span></label>
<div id="editSpecQuantityContainer">
<!-- 规格-件数对列表 -->
<div id="editSpecQuantityPairs"></div>
@ -1857,13 +1857,13 @@
<!-- 货源描述 -->
<div class="form-group">
<label class="form-label">货源描述</label>
<label class="form-label">货源描述 <span style="color: red;">*</span></label>
<input type="text" class="form-input" id="editDescription" placeholder="请输入货源描述" required>
</div>
<!-- 自动下架时间 -->
<div class="form-group">
<label class="form-label">自动下架时间</label>
<label class="form-label">自动下架时间 <span style="color: red;">*</span></label>
<select class="form-select" id="editAutoOfflineMinutes">
<option value="1">1分钟</option>
<option value="5">5分钟</option>

Loading…
Cancel
Save