|
@@ -3,6 +3,7 @@
|
|
|
<?php $data['manage/database.info']=Dever::load('manage/database.info') ?>
|
|
|
<?php $data['manage/database.css']=Dever::load('manage/database.css') ?>
|
|
|
<?php $data['manage/database.res']=Dever::load('manage/database.res') ?>
|
|
|
+<?php $data['manage/database.submit']=Dever::load('manage/database.submit') ?>
|
|
|
<?php $data['manage/database.update_content']=Dever::load('manage/database.update_content') ?>
|
|
|
<?php $data['/database.info']=Dever::load('/database.info') ?>
|
|
|
<?php $data['manage/database.valid']=Dever::load('manage/database.valid') ?>
|
|
@@ -36,6 +37,9 @@
|
|
|
height: 100%;
|
|
|
white-space: inherit;
|
|
|
}
|
|
|
+ .layui-input {
|
|
|
+ min-width: 100px;
|
|
|
+ }
|
|
|
|
|
|
</style>
|
|
|
</head>
|
|
@@ -51,14 +55,15 @@
|
|
|
<div id="content_2" style="<?php echo $data['manage/database.page_update']['s2'] ?>">
|
|
|
<div class="layui-fluid">
|
|
|
<div style="display:none;"><span id="list-name"><?php echo $data['manage/database.info']['update_header'] ?></span> > <span id="list-project"><?php echo $data['manage/database.info']['project_name'] ?></span></div>
|
|
|
- <form method="post" class="layui-form form1" target="f1" role="form" autocomplete="off" lay-filter="form-filter" action="<?php echo $data['manage/database.info']['action'] ?>">
|
|
|
+ <form method="post" class="layui-form form1" target="f1" role="form" autocomplete="off" lay-filter="form-filter" action="<?php echo $data['manage/database.info']['action'] ?>" value="<?php echo $data['manage/database.submit']['key'] ?>">
|
|
|
<style id="load_css"><?php echo $data['manage/database.css'] ?></style>
|
|
|
<input type="hidden" name="function" id="function" value="msg"/>
|
|
|
- <input type="hidden" name="url" id="url" value="<?php echo $data['manage/database.info']['list'] ?>" />
|
|
|
+ <input type="hidden" name="url" id="url" value="<?php echo $data['manage/database.info']['submit'] ?>" />
|
|
|
<input type="hidden" name="project" id="project" value="<?php echo $data['manage/database.info']['project'] ?>" />
|
|
|
<input type="hidden" name="table" id="table" value="<?php echo $data['manage/database.info']['table'] ?>" />
|
|
|
+ <input type="hidden" name="alias" id="alias" value="<?php echo $data['manage/database.info']['alias'] ?>" />
|
|
|
<input type="hidden" name="fast" id="fast" value="<?php echo $fast ?>" />
|
|
|
- <input type="hidden" name="dever_submit" id="dever_submit" value="<?php echo $data['manage/database.info']['dever_submit'] ?>" />
|
|
|
+ <input type="hidden" name="dever_submit" id="dever_submit" value="<?php echo $data['manage/database.submit']['token'] ?>" />
|
|
|
<input type="hidden" name="menu_id" id="menu_id" value="<?php echo $data['manage/database.info']['menu_id'] ?>" />
|
|
|
<input type="hidden" name="update_where_id" id="update_where_id" value="<?php echo $data['manage/database.info']['id'] ?>"/>
|
|
|
<input type="hidden" name="copy_num" id="copy_num" value="0"/>
|
|
@@ -88,148 +93,15 @@
|
|
|
var table = layui.table;
|
|
|
form = layui.form;
|
|
|
|
|
|
+ if (window.screen.width < 500) {
|
|
|
+
|
|
|
+ }
|
|
|
skuTable = layui.skuTable;
|
|
|
|
|
|
if ($('#sku_spec_type').length) {
|
|
|
sku($('#sku_spec_type'));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- $('select').each(function() {
|
|
|
- if ($(this).attr('xm-value')) {
|
|
|
- formSelects.value($(this).attr('xm-select'), $(this).attr('xm-value'));
|
|
|
- }
|
|
|
- });
|
|
|
- */
|
|
|
-
|
|
|
-
|
|
|
- var obj = layui.skuTable.render({
|
|
|
-
|
|
|
- isAttributeValue: 0,
|
|
|
-
|
|
|
- isAttributeElemId: 'sku_spec_type',
|
|
|
-
|
|
|
- specTableElemId: 'sku_spec_table',
|
|
|
-
|
|
|
- skuTableElemId: 'sku_table',
|
|
|
-
|
|
|
- sortable: false,
|
|
|
-
|
|
|
- rowspan: true,
|
|
|
-
|
|
|
- requestSuccessCode: 200,
|
|
|
-
|
|
|
-
|
|
|
- uploadUrl: './json/upload.json',
|
|
|
-
|
|
|
- singleSkuTableConfig: {
|
|
|
- thead: [
|
|
|
- {title: '商品编码', icon: 'layui-icon-cols'},
|
|
|
- {title: '销售价(元)', icon: 'layui-icon-cols'},
|
|
|
- {title: '采购价(元)', icon: 'layui-icon-cols'},
|
|
|
- {title: '成本价(元)', icon: 'layui-icon-cols'},
|
|
|
- ],
|
|
|
- tbody: [
|
|
|
- {type: 'input', field: 'code', value: '', verify: 'required', 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: '成本价不能为空'},
|
|
|
- ]
|
|
|
- },
|
|
|
-
|
|
|
- multipleSkuTableConfig: {
|
|
|
- thead: [
|
|
|
- {title: '图片', icon: ''},
|
|
|
- {title: '商品编码', icon: 'layui-icon-cols'},
|
|
|
- {title: '销售价(元)', icon: 'layui-icon-cols'},
|
|
|
- {title: '采购价(元)', icon: 'layui-icon-cols'},
|
|
|
- {title: '成本价(元)', icon: 'layui-icon-cols'},
|
|
|
- ],
|
|
|
- tbody: [
|
|
|
- {type: 'image', field: 'pic', value: '', verify: '', reqtext: ''},
|
|
|
- {type: 'input', field: 'code', value: '', verify: 'required', 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: '成本价不能为空'},
|
|
|
- ]
|
|
|
- },
|
|
|
-
|
|
|
- productId: '11',
|
|
|
-
|
|
|
- specData: [
|
|
|
- {
|
|
|
- id: "1",
|
|
|
- title: "颜色",
|
|
|
- child: [
|
|
|
- {id: "1", title: "红", checked: true},
|
|
|
- {id: "2", title: "黄", checked: false},
|
|
|
- {id: "3", title: "蓝", checked: false}
|
|
|
- ]
|
|
|
- }, {
|
|
|
- id: "2",
|
|
|
- title: "尺码",
|
|
|
- child: [
|
|
|
- {id: "4", title: "S", checked: true},
|
|
|
- {id: "5", title: "M", checked: true},
|
|
|
- {id: "6", title: "L", checked: false},
|
|
|
- {id: "7", title: "XL", checked: false}
|
|
|
- ]
|
|
|
- }, {
|
|
|
- id: "3",
|
|
|
- title: "款式",
|
|
|
- child: [
|
|
|
- {id: "8", title: "男款", checked: true},
|
|
|
- {id: "9", title: "女款", checked: true}
|
|
|
- ]
|
|
|
- }
|
|
|
- ],
|
|
|
- specData: [],
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- });*/
|
|
|
-
|
|
|
init();
|
|
|
});
|
|
|
</script>
|