|
@@ -56,7 +56,7 @@
|
|
|
<div id="content_2">
|
|
|
<div class="layui-fluid">
|
|
|
<div style="display:none;"><span id="list-name">网站设置</span> > <span id="list-project"></span></div>
|
|
|
- <form method="post" class="layui-form form1" target="f1" role="form" autocomplete="off">
|
|
|
+ <form method="post" class="layui-form form1" target="f1" role="form" autocomplete="off" lay-filter="form-filter">
|
|
|
<input type="hidden" name="function" id="function" value="msg"/>
|
|
|
<input type="hidden" name="url" id="url" />
|
|
|
<input type="hidden" name="project" id="project" />
|
|
@@ -101,7 +101,7 @@
|
|
|
}
|
|
|
});
|
|
|
*/
|
|
|
- /*
|
|
|
+
|
|
|
var obj = skuTable.render({
|
|
|
//规格类型 0统一规格 1多规格
|
|
|
isAttributeValue: 0,
|
|
@@ -124,17 +124,13 @@
|
|
|
singleSkuTableConfig: {
|
|
|
thead: [
|
|
|
{title: '销售价(元)', icon: 'layui-icon-cols'},
|
|
|
- {title: '市场价(元)', icon: 'layui-icon-cols'},
|
|
|
+ {title: '采购价(元)', icon: 'layui-icon-cols'},
|
|
|
{title: '成本价(元)', icon: 'layui-icon-cols'},
|
|
|
- {title: '库存', icon: 'layui-icon-cols'},
|
|
|
- {title: '状态', icon: ''},
|
|
|
],
|
|
|
tbody: [
|
|
|
- {type: 'input', field: 'price', value: '', verify: 'required|number', reqtext: '销售价不能为空'},
|
|
|
- {type: 'input', field: 'market_price', value: '0', verify: 'required|number', reqtext: '市场价不能为空'},
|
|
|
+ {type: 'input', field: 'price', value: '0', verify: 'required|number', reqtext: '销售价不能为空'},
|
|
|
+ {type: 'input', field: 'buy_price', value: '0', verify: 'required|number', reqtext: '采购价不能为空'},
|
|
|
{type: 'input', field: 'cost_price', value: '0', verify: 'required|number', reqtext: '成本价不能为空'},
|
|
|
- {type: 'input', field: 'stock', value: '0', verify: 'required|number', reqtext: '库存不能为空'},
|
|
|
- {type: 'select', field: 'status', option: [{key: '启用', value: '1'}, {key: '禁用', value: '0'}], verify: 'required', reqtext: '状态不能为空'},
|
|
|
]
|
|
|
},
|
|
|
//多规格配置项
|
|
@@ -142,24 +138,14 @@
|
|
|
thead: [
|
|
|
{title: '图片', icon: ''},
|
|
|
{title: '销售价(元)', icon: 'layui-icon-cols'},
|
|
|
- {title: '市场价(元)', icon: 'layui-icon-cols'},
|
|
|
+ {title: '采购价(元)', icon: 'layui-icon-cols'},
|
|
|
{title: '成本价(元)', icon: 'layui-icon-cols'},
|
|
|
- {title: '库存', icon: 'layui-icon-cols'},
|
|
|
- {title: '状态', icon: ''},
|
|
|
],
|
|
|
tbody: [
|
|
|
- {type: 'image', field: 'picture', value: '', verify: '', reqtext: ''},
|
|
|
- {type: 'input', field: 'price', value: '', verify: 'required|number', reqtext: '销售价不能为空'},
|
|
|
- {type: 'input', field: 'market_price', value: '0', verify: 'required|number', reqtext: '市场价不能为空'},
|
|
|
+ {type: 'image', field: 'pic', value: '', verify: '', reqtext: ''},
|
|
|
+ {type: 'input', field: 'price', value: '0', verify: 'required|number', reqtext: '销售价不能为空'},
|
|
|
+ {type: 'input', field: 'buy_price', value: '0', verify: 'required|number', reqtext: '采购价不能为空'},
|
|
|
{type: 'input', field: 'cost_price', value: '0', verify: 'required|number', reqtext: '成本价不能为空'},
|
|
|
- {type: 'input', field: 'stock', value: '0', verify: 'required|number', reqtext: '库存不能为空'},
|
|
|
- {
|
|
|
- type: 'select',
|
|
|
- field: 'status',
|
|
|
- option: [{key: '启用', value: '1'}, {key: '禁用', value: '0'}],
|
|
|
- verify: '',
|
|
|
- reqtext: ''
|
|
|
- },
|
|
|
]
|
|
|
},
|
|
|
//商品id 配合specDataUrl和skuDataUrl使用
|
|
@@ -236,7 +222,7 @@
|
|
|
//获取SKU数据接口地址,如果为空或者不配置则使用skuData配置
|
|
|
//接口要求返回格式参考 skuData.json
|
|
|
// skuDataUrl: './json/skuData.json',
|
|
|
- });*/
|
|
|
+ });
|
|
|
|
|
|
init();
|
|
|
});
|