|
@@ -148,6 +148,7 @@ layui.define(['jquery', 'form', 'upload', 'layer', 'sortable'], function (export
|
|
|
|
|
|
class SkuTable {
|
|
|
options = {
|
|
|
+ show : 1,
|
|
|
isAttributeValue: 1,
|
|
|
isAttributeElemId: 'fairy-is-attribute',
|
|
|
specTableElemId: 'fairy-spec-table',
|
|
@@ -460,8 +461,13 @@ layui.define(['jquery', 'form', 'upload', 'layer', 'sortable'], function (export
|
|
|
*/
|
|
|
renderIsAttribute(checkedValue) {
|
|
|
var html = '';
|
|
|
- html += `<input type="radio" name="update_spec_type" title="单规格" value="1" lay-filter="fairy-is-attribute" ${checkedValue == '1' ? 'checked' : ''}>`;
|
|
|
- html += `<input type="radio" name="update_spec_type" title="多规格" value="2" lay-filter="fairy-is-attribute" ${checkedValue == '2' ? 'checked' : ''}>`;
|
|
|
+ if (this.options.show == 1 || this.options.show == 2) {
|
|
|
+ html += `<input type="radio" name="update_spec_type" title="单规格" value="1" lay-filter="fairy-is-attribute" ${checkedValue == '1' ? 'checked' : ''}>`;
|
|
|
+ }
|
|
|
+ if (this.options.show == 1 || this.options.show == 3) {
|
|
|
+ html += `<input type="radio" name="update_spec_type" title="多规格" value="2" lay-filter="fairy-is-attribute" ${checkedValue == '2' ? 'checked' : ''}>`;
|
|
|
+ }
|
|
|
+
|
|
|
this.renderFormItem('规格类型', html, this.options.isAttributeElemId);
|
|
|
}
|
|
|
|