| | |
| | | -- 菜单 SQL |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}', '${parentMenuId}', '1', '${businessName}', '${moduleName}/${businessName}/index', 1, 0, 'C', '0', '0', '${permissionPrefix}:list', '#', 'admin', sysdate(), '', null, '${functionName}菜单'); |
| | | values('${functionName}', '${parentMenuId}', '1', '${businessName}', '${moduleName}/${businessName}/index', 1, 0, 'C', '0', '0', '${permissionPrefix}:list', '#', 'admin', getdate(), '', null, '${functionName}菜单'); |
| | | |
| | | -- 按钮父菜单ID |
| | | SELECT @parentId := LAST_INSERT_ID(); |
| | | DECLARE @parentId bigint |
| | | select @parentId=max(menu_id) from sys_menu |
| | | |
| | | -- 按钮 SQL |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:query', '#', 'admin', sysdate(), '', null, ''); |
| | | values('${functionName}查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:query', '#', 'admin', getdate(), '', null, ''); |
| | | |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:add', '#', 'admin', sysdate(), '', null, ''); |
| | | values('${functionName}新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:add', '#', 'admin', getdate(), '', null, ''); |
| | | |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | values('${functionName}修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:edit', '#', 'admin', getdate(), '', null, ''); |
| | | |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | values('${functionName}删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:remove', '#', 'admin', getdate(), '', null, ''); |
| | | |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:export', '#', 'admin', sysdate(), '', null, ''); |
| | | values('${functionName}导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:export', '#', 'admin', getdate(), '', null, ''); |
| | |
| | | @Override |
| | | public int insertBsMaterialInfo(BsMaterialInfo bsMaterialInfo) |
| | | { |
| | | bsMaterialInfo.setCreateTime(DateUtils.getNowDate()); |
| | | return bsMaterialInfoMapper.insertBsMaterialInfo(bsMaterialInfo); |
| | | } |
| | | |
| | |
| | | @Override |
| | | public int updateBsMaterialInfo(BsMaterialInfo bsMaterialInfo) |
| | | { |
| | | bsMaterialInfo.setUpdateTime(DateUtils.getNowDate()); |
| | | return bsMaterialInfoMapper.updateBsMaterialInfo(bsMaterialInfo); |
| | | } |
| | | |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="产品编码" prop="productCode"> |
| | | <el-input |
| | | v-model="queryParams.productCode" |
| | | placeholder="请输入产品编码" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="产品名称" prop="productName"> |
| | | <el-input |
| | | v-model="queryParams.productName" |
| | | placeholder="请输入产品名称" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.workOrderNo"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="总成序列号" align="center" prop="sfcCode"> |
| | | <el-table-column label="总成序列号" align="center" width="100" prop="sfcCode"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.sfcCode"/>--> |
| | | <!-- </template>--> |
| | |
| | | placeholder="请选择采集时间"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="预留字段1" prop="spareField1"> |
| | | <el-input v-model="form.spareField1" type="textarea" placeholder="请输入内容" /> |
| | | </el-form-item> |
| | | <el-form-item label="预留字段2" prop="spareField2"> |
| | | <el-input v-model="form.spareField2" type="textarea" placeholder="请输入内容" /> |
| | | </el-form-item> |
| | | <el-form-item label="创建用户" prop="createUser"> |
| | | <el-input v-model="form.createUser" type="textarea" placeholder="请输入内容" /> |
| | | </el-form-item> |
| | | <el-form-item label="更改用户" prop="updateUser"> |
| | | <el-input v-model="form.updateUser" type="textarea" placeholder="请输入内容" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="预留字段1" prop="spareField1">--> |
| | | <!-- <el-input v-model="form.spareField1" type="textarea" placeholder="请输入内容" />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="预留字段2" prop="spareField2">--> |
| | | <!-- <el-input v-model="form.spareField2" type="textarea" placeholder="请输入内容" />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="创建用户" prop="createUser">--> |
| | | <!-- <el-input v-model="form.createUser" type="textarea" placeholder="请输入内容" />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="更改用户" prop="updateUser">--> |
| | | <!-- <el-input v-model="form.updateUser" type="textarea" placeholder="请输入内容" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="状态" prop="state"> |
| | | <el-input v-model="form.state" placeholder="请输入状态" /> |
| | | </el-form-item> |