This commit is contained in:
2026-09-15 10:26:34 +08:00
commit ecf36afa56
10493 changed files with 1404888 additions and 0 deletions
@@ -0,0 +1,126 @@
<div class="mgz-quickorder">
<table class="items data table">
<thead>
<tr>
<th class="col search">
<span data-bind="i18n: 'Search'"></span>
</th>
<th class="col item">
<span data-bind="i18n: 'Item'"></span>
</th>
<th class="col price" if="showPrice">
<span data-bind="i18n: 'Price'"></span>
</th>
<th class="col qty" if="showQty">
<span data-bind="i18n: 'Qty'"></span>
</th>
<th class="col subtotal" if="showSubTotal">
<span data-bind="i18n: 'Subtotal'"></span>
</th>
<th class="col action" if="showAction">
<span data-bind="i18n: 'Action'"></span>
</th>
</tr>
</thead>
<tbody data-bind="foreach: items">
<tr class="item-info">
<td class="col search">
<div class="mgz-quickorder-search">
<input type="text" data-bind="textInput: search" attr="id: uid,placeholder: $parent.searchPlaceholder" autocomplete="off"/>
<div class="quickorder-spinner" if="spinnerloading"><i></i></div>
<div attr="id: 'mgz-quickorder-ui-'+ uid" class="mgz-quickorder-ui-wrapper" afterRender="initAutoComplete"></div>
</div>
</td>
<td class="col item">
<div class="item-info-inner" if="product">
<div class="product-item-photo" if="$parent.showImage">
<span class="product-image-container">
<span class="product-image-wrapper">
<img attr="src: product().img, alt: product().name"/>
</span>
</span>
</div>
<div class="product-item-details">
<strong class="product-item-name">
<a attr="href: product().url" text="product().name"></a>
</strong>
<div class="product-item-sku"><b data-bind="i18n: 'SKU#:'"></b> <span text="product().sku"></span></div>
<div class="product-quote-type" if="$parent.mode=='quickquote'&&product().quoteTypes.length"><b data-bind="i18n: 'Type:'"></b>
<select data-bind="options: product().quoteTypes,
optionsText: 'label',
optionsValue: 'value',
value: quoteType" style="width: auto"></select>
</div>
<div class="quickquote-message message error" if="message"><span text="message"></span></div>
<div class="item-options-wrapper" html="optionsHtml" if="product&&optionsHtml"></div>
<a href="#" class="quickorder-action-edit" data-bind="i18n: 'Edit'" if="product().canConfigure||product().openmodal" click="parent.openPopup"></a>
</div>
</div>
</td>
<td class="col price" if="$parent.showPrice">
<span class="price" text="$parent.getFormattedPrice(price())" if="product"></span>
</td>
<td class="col qty" if="$parent.showQty">
<input type="number" data-bind="value: qty" min="1" class="input-text qty" if="product" visible="qtyVisible"/>
</td>
<td class="col subtotal" if="$parent.showSubTotal">
<span class="price" text="$parent.getFormattedPrice(subtotal())" if="product"></span>
</td>
<td class="col action" if="$parent.showAction">
<a href="#" class="quickorder-btn action-duplicate" click="$parent.duplicateItem" if="product">+</a>
<a href="#" class="quickorder-btn action-delete" click="$parent.removeItem">x</a>
</td>
</tr>
</tbody>
</table>
<div class="mgz-quickorder-action">
<div class="quickorder-grand-total" if="showGrandTotal">
<span text="grandTotalLabel"></span> <span data-bind="text: getFormattedPrice(grandTotal())"></span>
</div>
<button class="quickorder-btn" data-bind="disable: submitLoading" click="addItem" text="addBtnLabel"></button>
<button class="quickorder-btn" data-bind="disable: submitLoading" click="emptyItems" text="emptyBtnLabel" if="showEmptyBtn"></button>
<button class="quickorder-btn" data-bind="disable: submitLoading" click="submitItems" text="submitBtnLabel"></button>
<div class="quickorder-spinner" if="submitLoading"><i></i></div>
</div>
<div class="mgz-quicorder-multiskus" if="enableMultiskus">
<fieldset class="fieldset">
<div class="field">
<label class="label">
<span text="multiSkusLabel"></span>
</label>
<div class="control">
<textarea class="textarea" rows="5" data-bind="value: skus"></textarea>
<p text="multiSkusDescription"></p>
</div>
</div>
<div class="field">
<label class="label">
<span data-bind="i18n: 'Qty'"></span>
</label>
<div class="control">
<input type="number" class="text" data-bind="value: qty" min="1"/>
</div>
</div>
<div class="field">
<button class="quickorder-btn" click="addToList" text="addToListBtnLabel"></button>
</div>
</fieldset>
</div>
<div class="mgz-quicorder-file" if="enableUpload">
<fieldset class="fieldset">
<div class="field">
<label class="label">
<span data-bind="i18n: 'Add from file'"></span>
</label>
<div class="control">
<label class="file-uploader-button" for="quickorder-file" data-bind="i18n: 'Choose File'"></label>
<input type="file" id="quickorder-file" class="file" data-bind="files: { onLoaded: onLoadedFile, fileFilter: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',onError: onErrorFile,onProgress: onProgressFile, readAs: 'text'}" accept=".xlsx" />
<a attr="href: downloadSampleLink"><span data-bind="i18n: '下载excel文件模板'"></span></a>
<div class="quickorder-spinner" if="fileLoading"><i></i></div>
<p html="fileMessage"></p>
</div>
</div>
</fieldset>
</div>
</div>