fix: 采购价格上限按数量计算总价 (#181)
This commit is contained in:
+6
-2
@@ -96,14 +96,18 @@ func TestPurchaseModal_未选规格行保持隐藏且不提交(t *testing.T) {
|
||||
".purchase-confirm-row[hidden] { display: none; }",
|
||||
},
|
||||
"templates/syb/list.html": {
|
||||
`class="purchase-confirm-row" data-purchase-row="{{.SybID}}" hidden`,
|
||||
`class="purchase-confirm-row" data-purchase-row="{{.SybID}}" data-purchase-quantity="{{.Quantity}}" hidden`,
|
||||
`name="mapping_option_key" value="{{.MappingOptionKey}}" disabled`,
|
||||
`name="context_version" value="{{.ContextVersion}}" disabled`,
|
||||
`name="max_price_yuan" min="0.01" step="0.01" value="{{.DefaultMaxPrice}}" required disabled`,
|
||||
`data-purchase-quantity="{{.Quantity}}"`,
|
||||
`name="unit_price_limit_yuan"`,
|
||||
`value="{{.DefaultUnitPrice}}" required disabled`,
|
||||
`data-total-price-output aria-live="polite"`,
|
||||
},
|
||||
"static/js/app.js": {
|
||||
"row.hidden = !enabled;",
|
||||
"input.disabled = !enabled;",
|
||||
"updateTotalPrice(row);",
|
||||
},
|
||||
}
|
||||
for path, wants := range files {
|
||||
|
||||
Reference in New Issue
Block a user