code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('member:membercollectspu:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('member:membercollectspu:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="memberId" header-align="center" align="center" label="会员id"> </el-table-column> <el-table-column prop="spuId" header-align="center" align="center" label="spu_id"> </el-table-column> <el-table-column prop="spuName" header-align="center" align="center" label="spu_name"> </el-table-column> <el-table-column prop="spuImg" header-align="center" align="center" label="spu_img"> </el-table-column> <el-table-column prop="createTime" header-align="center" align="center" label="create_time"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './membercollectspu-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/member/membercollectspu/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/member/membercollectspu/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-member/src/main/resources/src/views/modules/member/membercollectspu.vue
Vue
apache-2.0
5,503
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="subject_id" prop="subjectId"> <el-input v-model="dataForm.subjectId" placeholder="subject_id"></el-input> </el-form-item> <el-form-item label="subject_name" prop="subjectName"> <el-input v-model="dataForm.subjectName" placeholder="subject_name"></el-input> </el-form-item> <el-form-item label="subject_img" prop="subjectImg"> <el-input v-model="dataForm.subjectImg" placeholder="subject_img"></el-input> </el-form-item> <el-form-item label="活动url" prop="subjectUrll"> <el-input v-model="dataForm.subjectUrll" placeholder="活动url"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, subjectId: '', subjectName: '', subjectImg: '', subjectUrll: '' }, dataRule: { subjectId: [ { required: true, message: 'subject_id不能为空', trigger: 'blur' } ], subjectName: [ { required: true, message: 'subject_name不能为空', trigger: 'blur' } ], subjectImg: [ { required: true, message: 'subject_img不能为空', trigger: 'blur' } ], subjectUrll: [ { required: true, message: '活动url不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/member/membercollectsubject/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.subjectId = data.memberCollectSubject.subjectId this.dataForm.subjectName = data.memberCollectSubject.subjectName this.dataForm.subjectImg = data.memberCollectSubject.subjectImg this.dataForm.subjectUrll = data.memberCollectSubject.subjectUrll } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/member/membercollectsubject/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'subjectId': this.dataForm.subjectId, 'subjectName': this.dataForm.subjectName, 'subjectImg': this.dataForm.subjectImg, 'subjectUrll': this.dataForm.subjectUrll }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-member/src/main/resources/src/views/modules/member/membercollectsubject-add-or-update.vue
Vue
apache-2.0
3,939
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('member:membercollectsubject:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('member:membercollectsubject:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="subjectId" header-align="center" align="center" label="subject_id"> </el-table-column> <el-table-column prop="subjectName" header-align="center" align="center" label="subject_name"> </el-table-column> <el-table-column prop="subjectImg" header-align="center" align="center" label="subject_img"> </el-table-column> <el-table-column prop="subjectUrll" header-align="center" align="center" label="活动url"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './membercollectsubject-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/member/membercollectsubject/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/member/membercollectsubject/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-member/src/main/resources/src/views/modules/member/membercollectsubject.vue
Vue
apache-2.0
5,395
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="等级名称" prop="name"> <el-input v-model="dataForm.name" placeholder="等级名称"></el-input> </el-form-item> <el-form-item label="等级需要的成长值" prop="growthPoint"> <el-input v-model="dataForm.growthPoint" placeholder="等级需要的成长值"></el-input> </el-form-item> <el-form-item label="是否为默认等级[0->不是;1->是]" prop="defaultStatus"> <el-input v-model="dataForm.defaultStatus" placeholder="是否为默认等级[0->不是;1->是]"></el-input> </el-form-item> <el-form-item label="免运费标准" prop="freeFreightPoint"> <el-input v-model="dataForm.freeFreightPoint" placeholder="免运费标准"></el-input> </el-form-item> <el-form-item label="每次评价获取的成长值" prop="commentGrowthPoint"> <el-input v-model="dataForm.commentGrowthPoint" placeholder="每次评价获取的成长值"></el-input> </el-form-item> <el-form-item label="是否有免邮特权" prop="priviledgeFreeFreight"> <el-input v-model="dataForm.priviledgeFreeFreight" placeholder="是否有免邮特权"></el-input> </el-form-item> <el-form-item label="是否有会员价格特权" prop="priviledgeMemberPrice"> <el-input v-model="dataForm.priviledgeMemberPrice" placeholder="是否有会员价格特权"></el-input> </el-form-item> <el-form-item label="是否有生日特权" prop="priviledgeBirthday"> <el-input v-model="dataForm.priviledgeBirthday" placeholder="是否有生日特权"></el-input> </el-form-item> <el-form-item label="备注" prop="note"> <el-input v-model="dataForm.note" placeholder="备注"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, name: '', growthPoint: '', defaultStatus: '', freeFreightPoint: '', commentGrowthPoint: '', priviledgeFreeFreight: '', priviledgeMemberPrice: '', priviledgeBirthday: '', note: '' }, dataRule: { name: [ { required: true, message: '等级名称不能为空', trigger: 'blur' } ], growthPoint: [ { required: true, message: '等级需要的成长值不能为空', trigger: 'blur' } ], defaultStatus: [ { required: true, message: '是否为默认等级[0->不是;1->是]不能为空', trigger: 'blur' } ], freeFreightPoint: [ { required: true, message: '免运费标准不能为空', trigger: 'blur' } ], commentGrowthPoint: [ { required: true, message: '每次评价获取的成长值不能为空', trigger: 'blur' } ], priviledgeFreeFreight: [ { required: true, message: '是否有免邮特权不能为空', trigger: 'blur' } ], priviledgeMemberPrice: [ { required: true, message: '是否有会员价格特权不能为空', trigger: 'blur' } ], priviledgeBirthday: [ { required: true, message: '是否有生日特权不能为空', trigger: 'blur' } ], note: [ { required: true, message: '备注不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/member/memberlevel/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.name = data.memberLevel.name this.dataForm.growthPoint = data.memberLevel.growthPoint this.dataForm.defaultStatus = data.memberLevel.defaultStatus this.dataForm.freeFreightPoint = data.memberLevel.freeFreightPoint this.dataForm.commentGrowthPoint = data.memberLevel.commentGrowthPoint this.dataForm.priviledgeFreeFreight = data.memberLevel.priviledgeFreeFreight this.dataForm.priviledgeMemberPrice = data.memberLevel.priviledgeMemberPrice this.dataForm.priviledgeBirthday = data.memberLevel.priviledgeBirthday this.dataForm.note = data.memberLevel.note } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/member/memberlevel/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'name': this.dataForm.name, 'growthPoint': this.dataForm.growthPoint, 'defaultStatus': this.dataForm.defaultStatus, 'freeFreightPoint': this.dataForm.freeFreightPoint, 'commentGrowthPoint': this.dataForm.commentGrowthPoint, 'priviledgeFreeFreight': this.dataForm.priviledgeFreeFreight, 'priviledgeMemberPrice': this.dataForm.priviledgeMemberPrice, 'priviledgeBirthday': this.dataForm.priviledgeBirthday, 'note': this.dataForm.note }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-member/src/main/resources/src/views/modules/member/memberlevel-add-or-update.vue
Vue
apache-2.0
6,640
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('member:memberlevel:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('member:memberlevel:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="name" header-align="center" align="center" label="等级名称"> </el-table-column> <el-table-column prop="growthPoint" header-align="center" align="center" label="等级需要的成长值"> </el-table-column> <el-table-column prop="defaultStatus" header-align="center" align="center" label="是否为默认等级[0->不是;1->是]"> </el-table-column> <el-table-column prop="freeFreightPoint" header-align="center" align="center" label="免运费标准"> </el-table-column> <el-table-column prop="commentGrowthPoint" header-align="center" align="center" label="每次评价获取的成长值"> </el-table-column> <el-table-column prop="priviledgeFreeFreight" header-align="center" align="center" label="是否有免邮特权"> </el-table-column> <el-table-column prop="priviledgeMemberPrice" header-align="center" align="center" label="是否有会员价格特权"> </el-table-column> <el-table-column prop="priviledgeBirthday" header-align="center" align="center" label="是否有生日特权"> </el-table-column> <el-table-column prop="note" header-align="center" align="center" label="备注"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './memberlevel-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/member/memberlevel/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/member/memberlevel/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-member/src/main/resources/src/views/modules/member/memberlevel.vue
Vue
apache-2.0
6,265
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="member_id" prop="memberId"> <el-input v-model="dataForm.memberId" placeholder="member_id"></el-input> </el-form-item> <el-form-item label="创建时间" prop="createTime"> <el-input v-model="dataForm.createTime" placeholder="创建时间"></el-input> </el-form-item> <el-form-item label="ip" prop="ip"> <el-input v-model="dataForm.ip" placeholder="ip"></el-input> </el-form-item> <el-form-item label="city" prop="city"> <el-input v-model="dataForm.city" placeholder="city"></el-input> </el-form-item> <el-form-item label="登录类型[1-web,2-app]" prop="loginType"> <el-input v-model="dataForm.loginType" placeholder="登录类型[1-web,2-app]"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, memberId: '', createTime: '', ip: '', city: '', loginType: '' }, dataRule: { memberId: [ { required: true, message: 'member_id不能为空', trigger: 'blur' } ], createTime: [ { required: true, message: '创建时间不能为空', trigger: 'blur' } ], ip: [ { required: true, message: 'ip不能为空', trigger: 'blur' } ], city: [ { required: true, message: 'city不能为空', trigger: 'blur' } ], loginType: [ { required: true, message: '登录类型[1-web,2-app]不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/member/memberloginlog/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.memberId = data.memberLoginLog.memberId this.dataForm.createTime = data.memberLoginLog.createTime this.dataForm.ip = data.memberLoginLog.ip this.dataForm.city = data.memberLoginLog.city this.dataForm.loginType = data.memberLoginLog.loginType } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/member/memberloginlog/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'memberId': this.dataForm.memberId, 'createTime': this.dataForm.createTime, 'ip': this.dataForm.ip, 'city': this.dataForm.city, 'loginType': this.dataForm.loginType }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-member/src/main/resources/src/views/modules/member/memberloginlog-add-or-update.vue
Vue
apache-2.0
4,200
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('member:memberloginlog:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('member:memberloginlog:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="memberId" header-align="center" align="center" label="member_id"> </el-table-column> <el-table-column prop="createTime" header-align="center" align="center" label="创建时间"> </el-table-column> <el-table-column prop="ip" header-align="center" align="center" label="ip"> </el-table-column> <el-table-column prop="city" header-align="center" align="center" label="city"> </el-table-column> <el-table-column prop="loginType" header-align="center" align="center" label="登录类型[1-web,2-app]"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './memberloginlog-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/member/memberloginlog/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/member/memberloginlog/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-member/src/main/resources/src/views/modules/member/memberloginlog.vue
Vue
apache-2.0
5,504
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="member_id" prop="memberId"> <el-input v-model="dataForm.memberId" placeholder="member_id"></el-input> </el-form-item> <el-form-item label="收货人姓名" prop="name"> <el-input v-model="dataForm.name" placeholder="收货人姓名"></el-input> </el-form-item> <el-form-item label="电话" prop="phone"> <el-input v-model="dataForm.phone" placeholder="电话"></el-input> </el-form-item> <el-form-item label="邮政编码" prop="postCode"> <el-input v-model="dataForm.postCode" placeholder="邮政编码"></el-input> </el-form-item> <el-form-item label="省份/直辖市" prop="province"> <el-input v-model="dataForm.province" placeholder="省份/直辖市"></el-input> </el-form-item> <el-form-item label="城市" prop="city"> <el-input v-model="dataForm.city" placeholder="城市"></el-input> </el-form-item> <el-form-item label="区" prop="region"> <el-input v-model="dataForm.region" placeholder="区"></el-input> </el-form-item> <el-form-item label="详细地址(街道)" prop="detailAddress"> <el-input v-model="dataForm.detailAddress" placeholder="详细地址(街道)"></el-input> </el-form-item> <el-form-item label="省市区代码" prop="areacode"> <el-input v-model="dataForm.areacode" placeholder="省市区代码"></el-input> </el-form-item> <el-form-item label="是否默认" prop="defaultStatus"> <el-input v-model="dataForm.defaultStatus" placeholder="是否默认"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, memberId: '', name: '', phone: '', postCode: '', province: '', city: '', region: '', detailAddress: '', areacode: '', defaultStatus: '' }, dataRule: { memberId: [ { required: true, message: 'member_id不能为空', trigger: 'blur' } ], name: [ { required: true, message: '收货人姓名不能为空', trigger: 'blur' } ], phone: [ { required: true, message: '电话不能为空', trigger: 'blur' } ], postCode: [ { required: true, message: '邮政编码不能为空', trigger: 'blur' } ], province: [ { required: true, message: '省份/直辖市不能为空', trigger: 'blur' } ], city: [ { required: true, message: '城市不能为空', trigger: 'blur' } ], region: [ { required: true, message: '区不能为空', trigger: 'blur' } ], detailAddress: [ { required: true, message: '详细地址(街道)不能为空', trigger: 'blur' } ], areacode: [ { required: true, message: '省市区代码不能为空', trigger: 'blur' } ], defaultStatus: [ { required: true, message: '是否默认不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/member/memberreceiveaddress/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.memberId = data.memberReceiveAddress.memberId this.dataForm.name = data.memberReceiveAddress.name this.dataForm.phone = data.memberReceiveAddress.phone this.dataForm.postCode = data.memberReceiveAddress.postCode this.dataForm.province = data.memberReceiveAddress.province this.dataForm.city = data.memberReceiveAddress.city this.dataForm.region = data.memberReceiveAddress.region this.dataForm.detailAddress = data.memberReceiveAddress.detailAddress this.dataForm.areacode = data.memberReceiveAddress.areacode this.dataForm.defaultStatus = data.memberReceiveAddress.defaultStatus } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/member/memberreceiveaddress/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'memberId': this.dataForm.memberId, 'name': this.dataForm.name, 'phone': this.dataForm.phone, 'postCode': this.dataForm.postCode, 'province': this.dataForm.province, 'city': this.dataForm.city, 'region': this.dataForm.region, 'detailAddress': this.dataForm.detailAddress, 'areacode': this.dataForm.areacode, 'defaultStatus': this.dataForm.defaultStatus }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-member/src/main/resources/src/views/modules/member/memberreceiveaddress-add-or-update.vue
Vue
apache-2.0
6,429
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('member:memberreceiveaddress:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('member:memberreceiveaddress:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="memberId" header-align="center" align="center" label="member_id"> </el-table-column> <el-table-column prop="name" header-align="center" align="center" label="收货人姓名"> </el-table-column> <el-table-column prop="phone" header-align="center" align="center" label="电话"> </el-table-column> <el-table-column prop="postCode" header-align="center" align="center" label="邮政编码"> </el-table-column> <el-table-column prop="province" header-align="center" align="center" label="省份/直辖市"> </el-table-column> <el-table-column prop="city" header-align="center" align="center" label="城市"> </el-table-column> <el-table-column prop="region" header-align="center" align="center" label="区"> </el-table-column> <el-table-column prop="detailAddress" header-align="center" align="center" label="详细地址(街道)"> </el-table-column> <el-table-column prop="areacode" header-align="center" align="center" label="省市区代码"> </el-table-column> <el-table-column prop="defaultStatus" header-align="center" align="center" label="是否默认"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './memberreceiveaddress-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/member/memberreceiveaddress/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/member/memberreceiveaddress/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-member/src/main/resources/src/views/modules/member/memberreceiveaddress.vue
Vue
apache-2.0
6,313
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="会员id" prop="memberId"> <el-input v-model="dataForm.memberId" placeholder="会员id"></el-input> </el-form-item> <el-form-item label="累计消费金额" prop="consumeAmount"> <el-input v-model="dataForm.consumeAmount" placeholder="累计消费金额"></el-input> </el-form-item> <el-form-item label="累计优惠金额" prop="couponAmount"> <el-input v-model="dataForm.couponAmount" placeholder="累计优惠金额"></el-input> </el-form-item> <el-form-item label="订单数量" prop="orderCount"> <el-input v-model="dataForm.orderCount" placeholder="订单数量"></el-input> </el-form-item> <el-form-item label="优惠券数量" prop="couponCount"> <el-input v-model="dataForm.couponCount" placeholder="优惠券数量"></el-input> </el-form-item> <el-form-item label="评价数" prop="commentCount"> <el-input v-model="dataForm.commentCount" placeholder="评价数"></el-input> </el-form-item> <el-form-item label="退货数量" prop="returnOrderCount"> <el-input v-model="dataForm.returnOrderCount" placeholder="退货数量"></el-input> </el-form-item> <el-form-item label="登录次数" prop="loginCount"> <el-input v-model="dataForm.loginCount" placeholder="登录次数"></el-input> </el-form-item> <el-form-item label="关注数量" prop="attendCount"> <el-input v-model="dataForm.attendCount" placeholder="关注数量"></el-input> </el-form-item> <el-form-item label="粉丝数量" prop="fansCount"> <el-input v-model="dataForm.fansCount" placeholder="粉丝数量"></el-input> </el-form-item> <el-form-item label="收藏的商品数量" prop="collectProductCount"> <el-input v-model="dataForm.collectProductCount" placeholder="收藏的商品数量"></el-input> </el-form-item> <el-form-item label="收藏的专题活动数量" prop="collectSubjectCount"> <el-input v-model="dataForm.collectSubjectCount" placeholder="收藏的专题活动数量"></el-input> </el-form-item> <el-form-item label="收藏的评论数量" prop="collectCommentCount"> <el-input v-model="dataForm.collectCommentCount" placeholder="收藏的评论数量"></el-input> </el-form-item> <el-form-item label="邀请的朋友数量" prop="inviteFriendCount"> <el-input v-model="dataForm.inviteFriendCount" placeholder="邀请的朋友数量"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, memberId: '', consumeAmount: '', couponAmount: '', orderCount: '', couponCount: '', commentCount: '', returnOrderCount: '', loginCount: '', attendCount: '', fansCount: '', collectProductCount: '', collectSubjectCount: '', collectCommentCount: '', inviteFriendCount: '' }, dataRule: { memberId: [ { required: true, message: '会员id不能为空', trigger: 'blur' } ], consumeAmount: [ { required: true, message: '累计消费金额不能为空', trigger: 'blur' } ], couponAmount: [ { required: true, message: '累计优惠金额不能为空', trigger: 'blur' } ], orderCount: [ { required: true, message: '订单数量不能为空', trigger: 'blur' } ], couponCount: [ { required: true, message: '优惠券数量不能为空', trigger: 'blur' } ], commentCount: [ { required: true, message: '评价数不能为空', trigger: 'blur' } ], returnOrderCount: [ { required: true, message: '退货数量不能为空', trigger: 'blur' } ], loginCount: [ { required: true, message: '登录次数不能为空', trigger: 'blur' } ], attendCount: [ { required: true, message: '关注数量不能为空', trigger: 'blur' } ], fansCount: [ { required: true, message: '粉丝数量不能为空', trigger: 'blur' } ], collectProductCount: [ { required: true, message: '收藏的商品数量不能为空', trigger: 'blur' } ], collectSubjectCount: [ { required: true, message: '收藏的专题活动数量不能为空', trigger: 'blur' } ], collectCommentCount: [ { required: true, message: '收藏的评论数量不能为空', trigger: 'blur' } ], inviteFriendCount: [ { required: true, message: '邀请的朋友数量不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/member/memberstatisticsinfo/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.memberId = data.memberStatisticsInfo.memberId this.dataForm.consumeAmount = data.memberStatisticsInfo.consumeAmount this.dataForm.couponAmount = data.memberStatisticsInfo.couponAmount this.dataForm.orderCount = data.memberStatisticsInfo.orderCount this.dataForm.couponCount = data.memberStatisticsInfo.couponCount this.dataForm.commentCount = data.memberStatisticsInfo.commentCount this.dataForm.returnOrderCount = data.memberStatisticsInfo.returnOrderCount this.dataForm.loginCount = data.memberStatisticsInfo.loginCount this.dataForm.attendCount = data.memberStatisticsInfo.attendCount this.dataForm.fansCount = data.memberStatisticsInfo.fansCount this.dataForm.collectProductCount = data.memberStatisticsInfo.collectProductCount this.dataForm.collectSubjectCount = data.memberStatisticsInfo.collectSubjectCount this.dataForm.collectCommentCount = data.memberStatisticsInfo.collectCommentCount this.dataForm.inviteFriendCount = data.memberStatisticsInfo.inviteFriendCount } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/member/memberstatisticsinfo/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'memberId': this.dataForm.memberId, 'consumeAmount': this.dataForm.consumeAmount, 'couponAmount': this.dataForm.couponAmount, 'orderCount': this.dataForm.orderCount, 'couponCount': this.dataForm.couponCount, 'commentCount': this.dataForm.commentCount, 'returnOrderCount': this.dataForm.returnOrderCount, 'loginCount': this.dataForm.loginCount, 'attendCount': this.dataForm.attendCount, 'fansCount': this.dataForm.fansCount, 'collectProductCount': this.dataForm.collectProductCount, 'collectSubjectCount': this.dataForm.collectSubjectCount, 'collectCommentCount': this.dataForm.collectCommentCount, 'inviteFriendCount': this.dataForm.inviteFriendCount }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-member/src/main/resources/src/views/modules/member/memberstatisticsinfo-add-or-update.vue
Vue
apache-2.0
8,937
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('member:memberstatisticsinfo:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('member:memberstatisticsinfo:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="memberId" header-align="center" align="center" label="会员id"> </el-table-column> <el-table-column prop="consumeAmount" header-align="center" align="center" label="累计消费金额"> </el-table-column> <el-table-column prop="couponAmount" header-align="center" align="center" label="累计优惠金额"> </el-table-column> <el-table-column prop="orderCount" header-align="center" align="center" label="订单数量"> </el-table-column> <el-table-column prop="couponCount" header-align="center" align="center" label="优惠券数量"> </el-table-column> <el-table-column prop="commentCount" header-align="center" align="center" label="评价数"> </el-table-column> <el-table-column prop="returnOrderCount" header-align="center" align="center" label="退货数量"> </el-table-column> <el-table-column prop="loginCount" header-align="center" align="center" label="登录次数"> </el-table-column> <el-table-column prop="attendCount" header-align="center" align="center" label="关注数量"> </el-table-column> <el-table-column prop="fansCount" header-align="center" align="center" label="粉丝数量"> </el-table-column> <el-table-column prop="collectProductCount" header-align="center" align="center" label="收藏的商品数量"> </el-table-column> <el-table-column prop="collectSubjectCount" header-align="center" align="center" label="收藏的专题活动数量"> </el-table-column> <el-table-column prop="collectCommentCount" header-align="center" align="center" label="收藏的评论数量"> </el-table-column> <el-table-column prop="inviteFriendCount" header-align="center" align="center" label="邀请的朋友数量"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './memberstatisticsinfo-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/member/memberstatisticsinfo/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/member/memberstatisticsinfo/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-member/src/main/resources/src/views/modules/member/memberstatisticsinfo.vue
Vue
apache-2.0
7,066
package com.kong.meirimall.order; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.context.annotation.ComponentScan; @ComponentScan("com.kong.meirimall") @MapperScan("com.kong.meirimall.order.dao") @EnableDiscoveryClient @SpringBootApplication public class MeirimallOrderApplication { public static void main(String[] args) { SpringApplication.run(MeirimallOrderApplication.class, args); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/MeirimallOrderApplication.java
Java
apache-2.0
632
package com.kong.meirimall.order.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.order.entity.OrderEntity; import com.kong.meirimall.order.service.OrderService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 订单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ @RestController @RequestMapping("order/order") public class OrderController { @Autowired private OrderService orderService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("order:order:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = orderService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("order:order:info") public R info(@PathVariable("id") Long id){ OrderEntity order = orderService.getById(id); return R.ok().put("order", order); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("order:order:save") public R save(@RequestBody OrderEntity order){ orderService.save(order); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("order:order:update") public R update(@RequestBody OrderEntity order){ orderService.updateById(order); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("order:order:delete") public R delete(@RequestBody Long[] ids){ orderService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/controller/OrderController.java
Java
apache-2.0
2,148
package com.kong.meirimall.order.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.order.entity.OrderItemEntity; import com.kong.meirimall.order.service.OrderItemService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 订单项信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @RestController @RequestMapping("order/orderitem") public class OrderItemController { @Autowired private OrderItemService orderItemService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("order:orderitem:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = orderItemService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("order:orderitem:info") public R info(@PathVariable("id") Long id){ OrderItemEntity orderItem = orderItemService.getById(id); return R.ok().put("orderItem", orderItem); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("order:orderitem:save") public R save(@RequestBody OrderItemEntity orderItem){ orderItemService.save(orderItem); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("order:orderitem:update") public R update(@RequestBody OrderItemEntity orderItem){ orderItemService.updateById(orderItem); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("order:orderitem:delete") public R delete(@RequestBody Long[] ids){ orderItemService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/controller/OrderItemController.java
Java
apache-2.0
2,261
package com.kong.meirimall.order.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.order.entity.OrderOperateHistoryEntity; import com.kong.meirimall.order.service.OrderOperateHistoryService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 订单操作历史记录 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @RestController @RequestMapping("order/orderoperatehistory") public class OrderOperateHistoryController { @Autowired private OrderOperateHistoryService orderOperateHistoryService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("order:orderoperatehistory:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = orderOperateHistoryService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("order:orderoperatehistory:info") public R info(@PathVariable("id") Long id){ OrderOperateHistoryEntity orderOperateHistory = orderOperateHistoryService.getById(id); return R.ok().put("orderOperateHistory", orderOperateHistory); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("order:orderoperatehistory:save") public R save(@RequestBody OrderOperateHistoryEntity orderOperateHistory){ orderOperateHistoryService.save(orderOperateHistory); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("order:orderoperatehistory:update") public R update(@RequestBody OrderOperateHistoryEntity orderOperateHistory){ orderOperateHistoryService.updateById(orderOperateHistory); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("order:orderoperatehistory:delete") public R delete(@RequestBody Long[] ids){ orderOperateHistoryService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/controller/OrderOperateHistoryController.java
Java
apache-2.0
2,530
package com.kong.meirimall.order.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.order.entity.OrderReturnApplyEntity; import com.kong.meirimall.order.service.OrderReturnApplyService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 订单退货申请 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @RestController @RequestMapping("order/orderreturnapply") public class OrderReturnApplyController { @Autowired private OrderReturnApplyService orderReturnApplyService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("order:orderreturnapply:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = orderReturnApplyService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("order:orderreturnapply:info") public R info(@PathVariable("id") Long id){ OrderReturnApplyEntity orderReturnApply = orderReturnApplyService.getById(id); return R.ok().put("orderReturnApply", orderReturnApply); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("order:orderreturnapply:save") public R save(@RequestBody OrderReturnApplyEntity orderReturnApply){ orderReturnApplyService.save(orderReturnApply); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("order:orderreturnapply:update") public R update(@RequestBody OrderReturnApplyEntity orderReturnApply){ orderReturnApplyService.updateById(orderReturnApply); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("order:orderreturnapply:delete") public R delete(@RequestBody Long[] ids){ orderReturnApplyService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/controller/OrderReturnApplyController.java
Java
apache-2.0
2,446
package com.kong.meirimall.order.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.order.entity.OrderReturnReasonEntity; import com.kong.meirimall.order.service.OrderReturnReasonService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 退货原因 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @RestController @RequestMapping("order/orderreturnreason") public class OrderReturnReasonController { @Autowired private OrderReturnReasonService orderReturnReasonService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("order:orderreturnreason:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = orderReturnReasonService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("order:orderreturnreason:info") public R info(@PathVariable("id") Long id){ OrderReturnReasonEntity orderReturnReason = orderReturnReasonService.getById(id); return R.ok().put("orderReturnReason", orderReturnReason); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("order:orderreturnreason:save") public R save(@RequestBody OrderReturnReasonEntity orderReturnReason){ orderReturnReasonService.save(orderReturnReason); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("order:orderreturnreason:update") public R update(@RequestBody OrderReturnReasonEntity orderReturnReason){ orderReturnReasonService.updateById(orderReturnReason); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("order:orderreturnreason:delete") public R delete(@RequestBody Long[] ids){ orderReturnReasonService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/controller/OrderReturnReasonController.java
Java
apache-2.0
2,466
package com.kong.meirimall.order.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.order.entity.OrderSettingEntity; import com.kong.meirimall.order.service.OrderSettingService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 订单配置信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @RestController @RequestMapping("order/ordersetting") public class OrderSettingController { @Autowired private OrderSettingService orderSettingService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("order:ordersetting:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = orderSettingService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("order:ordersetting:info") public R info(@PathVariable("id") Long id){ OrderSettingEntity orderSetting = orderSettingService.getById(id); return R.ok().put("orderSetting", orderSetting); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("order:ordersetting:save") public R save(@RequestBody OrderSettingEntity orderSetting){ orderSettingService.save(orderSetting); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("order:ordersetting:update") public R update(@RequestBody OrderSettingEntity orderSetting){ orderSettingService.updateById(orderSetting); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("order:ordersetting:delete") public R delete(@RequestBody Long[] ids){ orderSettingService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/controller/OrderSettingController.java
Java
apache-2.0
2,342
package com.kong.meirimall.order.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.order.entity.PaymentInfoEntity; import com.kong.meirimall.order.service.PaymentInfoService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 支付信息表 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ @RestController @RequestMapping("order/paymentinfo") public class PaymentInfoController { @Autowired private PaymentInfoService paymentInfoService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("order:paymentinfo:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = paymentInfoService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("order:paymentinfo:info") public R info(@PathVariable("id") Long id){ PaymentInfoEntity paymentInfo = paymentInfoService.getById(id); return R.ok().put("paymentInfo", paymentInfo); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("order:paymentinfo:save") public R save(@RequestBody PaymentInfoEntity paymentInfo){ paymentInfoService.save(paymentInfo); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("order:paymentinfo:update") public R update(@RequestBody PaymentInfoEntity paymentInfo){ paymentInfoService.updateById(paymentInfo); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("order:paymentinfo:delete") public R delete(@RequestBody Long[] ids){ paymentInfoService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/controller/PaymentInfoController.java
Java
apache-2.0
2,313
package com.kong.meirimall.order.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.order.entity.RefundInfoEntity; import com.kong.meirimall.order.service.RefundInfoService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 退款信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ @RestController @RequestMapping("order/refundinfo") public class RefundInfoController { @Autowired private RefundInfoService refundInfoService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("order:refundinfo:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = refundInfoService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("order:refundinfo:info") public R info(@PathVariable("id") Long id){ RefundInfoEntity refundInfo = refundInfoService.getById(id); return R.ok().put("refundInfo", refundInfo); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("order:refundinfo:save") public R save(@RequestBody RefundInfoEntity refundInfo){ refundInfoService.save(refundInfo); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("order:refundinfo:update") public R update(@RequestBody RefundInfoEntity refundInfo){ refundInfoService.updateById(refundInfo); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("order:refundinfo:delete") public R delete(@RequestBody Long[] ids){ refundInfoService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/controller/RefundInfoController.java
Java
apache-2.0
2,284
package com.kong.meirimall.order.dao; import com.kong.meirimall.order.entity.OrderEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 订单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ @Mapper public interface OrderDao extends BaseMapper<OrderEntity> { }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/dao/OrderDao.java
Java
apache-2.0
357
package com.kong.meirimall.order.dao; import com.kong.meirimall.order.entity.OrderItemEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 订单项信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @Mapper public interface OrderItemDao extends BaseMapper<OrderItemEntity> { }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/dao/OrderItemDao.java
Java
apache-2.0
378
package com.kong.meirimall.order.dao; import com.kong.meirimall.order.entity.OrderOperateHistoryEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 订单操作历史记录 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @Mapper public interface OrderOperateHistoryDao extends BaseMapper<OrderOperateHistoryEntity> { }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/dao/OrderOperateHistoryDao.java
Java
apache-2.0
417
package com.kong.meirimall.order.dao; import com.kong.meirimall.order.entity.OrderReturnApplyEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 订单退货申请 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @Mapper public interface OrderReturnApplyDao extends BaseMapper<OrderReturnApplyEntity> { }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/dao/OrderReturnApplyDao.java
Java
apache-2.0
402
package com.kong.meirimall.order.dao; import com.kong.meirimall.order.entity.OrderReturnReasonEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 退货原因 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @Mapper public interface OrderReturnReasonDao extends BaseMapper<OrderReturnReasonEntity> { }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/dao/OrderReturnReasonDao.java
Java
apache-2.0
399
package com.kong.meirimall.order.dao; import com.kong.meirimall.order.entity.OrderSettingEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 订单配置信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @Mapper public interface OrderSettingDao extends BaseMapper<OrderSettingEntity> { }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/dao/OrderSettingDao.java
Java
apache-2.0
390
package com.kong.meirimall.order.dao; import com.kong.meirimall.order.entity.PaymentInfoEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 支付信息表 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ @Mapper public interface PaymentInfoDao extends BaseMapper<PaymentInfoEntity> { }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/dao/PaymentInfoDao.java
Java
apache-2.0
384
package com.kong.meirimall.order.dao; import com.kong.meirimall.order.entity.RefundInfoEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 退款信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ @Mapper public interface RefundInfoDao extends BaseMapper<RefundInfoEntity> { }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/dao/RefundInfoDao.java
Java
apache-2.0
378
package com.kong.meirimall.order.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.math.BigDecimal; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 订单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ @Data @TableName("oms_order") public class OrderEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * member_id */ private Long memberId; /** * 订单号 */ private String orderSn; /** * 使用的优惠券 */ private Long couponId; /** * create_time */ private Date createTime; /** * 用户名 */ private String memberUsername; /** * 订单总额 */ private BigDecimal totalAmount; /** * 应付总额 */ private BigDecimal payAmount; /** * 运费金额 */ private BigDecimal freightAmount; /** * 促销优化金额(促销价、满减、阶梯价) */ private BigDecimal promotionAmount; /** * 积分抵扣金额 */ private BigDecimal integrationAmount; /** * 优惠券抵扣金额 */ private BigDecimal couponAmount; /** * 后台调整订单使用的折扣金额 */ private BigDecimal discountAmount; /** * 支付方式【1->支付宝;2->微信;3->银联; 4->货到付款;】 */ private Integer payType; /** * 订单来源[0->PC订单;1->app订单] */ private Integer sourceType; /** * 订单状态【0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单】 */ private Integer status; /** * 物流公司(配送方式) */ private String deliveryCompany; /** * 物流单号 */ private String deliverySn; /** * 自动确认时间(天) */ private Integer autoConfirmDay; /** * 可以获得的积分 */ private Integer integration; /** * 可以获得的成长值 */ private Integer growth; /** * 发票类型[0->不开发票;1->电子发票;2->纸质发票] */ private Integer billType; /** * 发票抬头 */ private String billHeader; /** * 发票内容 */ private String billContent; /** * 收票人电话 */ private String billReceiverPhone; /** * 收票人邮箱 */ private String billReceiverEmail; /** * 收货人姓名 */ private String receiverName; /** * 收货人电话 */ private String receiverPhone; /** * 收货人邮编 */ private String receiverPostCode; /** * 省份/直辖市 */ private String receiverProvince; /** * 城市 */ private String receiverCity; /** * 区 */ private String receiverRegion; /** * 详细地址 */ private String receiverDetailAddress; /** * 订单备注 */ private String note; /** * 确认收货状态[0->未确认;1->已确认] */ private Integer confirmStatus; /** * 删除状态【0->未删除;1->已删除】 */ private Integer deleteStatus; /** * 下单时使用的积分 */ private Integer useIntegration; /** * 支付时间 */ private Date paymentTime; /** * 发货时间 */ private Date deliveryTime; /** * 确认收货时间 */ private Date receiveTime; /** * 评价时间 */ private Date commentTime; /** * 修改时间 */ private Date modifyTime; }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/entity/OrderEntity.java
Java
apache-2.0
3,333
package com.kong.meirimall.order.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.math.BigDecimal; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 订单项信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @Data @TableName("oms_order_item") public class OrderItemEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * order_id */ private Long orderId; /** * order_sn */ private String orderSn; /** * spu_id */ private Long spuId; /** * spu_name */ private String spuName; /** * spu_pic */ private String spuPic; /** * 品牌 */ private String spuBrand; /** * 商品分类id */ private Long categoryId; /** * 商品sku编号 */ private Long skuId; /** * 商品sku名字 */ private String skuName; /** * 商品sku图片 */ private String skuPic; /** * 商品sku价格 */ private BigDecimal skuPrice; /** * 商品购买的数量 */ private Integer skuQuantity; /** * 商品销售属性组合(JSON) */ private String skuAttrsVals; /** * 商品促销分解金额 */ private BigDecimal promotionAmount; /** * 优惠券优惠分解金额 */ private BigDecimal couponAmount; /** * 积分优惠分解金额 */ private BigDecimal integrationAmount; /** * 该商品经过优惠后的分解金额 */ private BigDecimal realAmount; /** * 赠送积分 */ private Integer giftIntegration; /** * 赠送成长值 */ private Integer giftGrowth; }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/entity/OrderItemEntity.java
Java
apache-2.0
1,674
package com.kong.meirimall.order.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 订单操作历史记录 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @Data @TableName("oms_order_operate_history") public class OrderOperateHistoryEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * 订单id */ private Long orderId; /** * 操作人[用户;系统;后台管理员] */ private String operateMan; /** * 操作时间 */ private Date createTime; /** * 订单状态【0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单】 */ private Integer orderStatus; /** * 备注 */ private String note; }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/entity/OrderOperateHistoryEntity.java
Java
apache-2.0
924
package com.kong.meirimall.order.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.math.BigDecimal; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 订单退货申请 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @Data @TableName("oms_order_return_apply") public class OrderReturnApplyEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * order_id */ private Long orderId; /** * 退货商品id */ private Long skuId; /** * 订单编号 */ private String orderSn; /** * 申请时间 */ private Date createTime; /** * 会员用户名 */ private String memberUsername; /** * 退款金额 */ private BigDecimal returnAmount; /** * 退货人姓名 */ private String returnName; /** * 退货人电话 */ private String returnPhone; /** * 申请状态[0->待处理;1->退货中;2->已完成;3->已拒绝] */ private Integer status; /** * 处理时间 */ private Date handleTime; /** * 商品图片 */ private String skuImg; /** * 商品名称 */ private String skuName; /** * 商品品牌 */ private String skuBrand; /** * 商品销售属性(JSON) */ private String skuAttrsVals; /** * 退货数量 */ private Integer skuCount; /** * 商品单价 */ private BigDecimal skuPrice; /** * 商品实际支付单价 */ private BigDecimal skuRealPrice; /** * 原因 */ private String reason; /** * 描述 */ private String description述; /** * 凭证图片,以逗号隔开 */ private String descPics; /** * 处理备注 */ private String handleNote; /** * 处理人员 */ private String handleMan; /** * 收货人 */ private String receiveMan; /** * 收货时间 */ private Date receiveTime; /** * 收货备注 */ private String receiveNote; /** * 收货电话 */ private String receivePhone; /** * 公司收货地址 */ private String companyAddress; }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/entity/OrderReturnApplyEntity.java
Java
apache-2.0
2,135
package com.kong.meirimall.order.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 退货原因 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @Data @TableName("oms_order_return_reason") public class OrderReturnReasonEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * 退货原因名 */ private String name; /** * 排序 */ private Integer sort; /** * 启用状态 */ private Integer status; /** * create_time */ private Date createTime; }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/entity/OrderReturnReasonEntity.java
Java
apache-2.0
726
package com.kong.meirimall.order.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 订单配置信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ @Data @TableName("oms_order_setting") public class OrderSettingEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * 秒杀订单超时关闭时间(分) */ private Integer flashOrderOvertime; /** * 正常订单超时时间(分) */ private Integer normalOrderOvertime; /** * 发货后自动确认收货时间(天) */ private Integer confirmOvertime; /** * 自动完成交易时间,不能申请退货(天) */ private Integer finishOvertime; /** * 订单完成后自动好评时间(天) */ private Integer commentOvertime; /** * 会员等级【0-不限会员等级,全部通用;其他-对应的其他会员等级】 */ private Integer memberLevel; }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/entity/OrderSettingEntity.java
Java
apache-2.0
1,109
package com.kong.meirimall.order.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.math.BigDecimal; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 支付信息表 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ @Data @TableName("oms_payment_info") public class PaymentInfoEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * 订单号(对外业务号) */ private String orderSn; /** * 订单id */ private Long orderId; /** * 支付宝交易流水号 */ private String alipayTradeNo; /** * 支付总金额 */ private BigDecimal totalAmount; /** * 交易内容 */ private String subject; /** * 支付状态 */ private String paymentStatus; /** * 创建时间 */ private Date createTime; /** * 确认时间 */ private Date confirmTime; /** * 回调内容 */ private String callbackContent; /** * 回调时间 */ private Date callbackTime; }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/entity/PaymentInfoEntity.java
Java
apache-2.0
1,126
package com.kong.meirimall.order.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.math.BigDecimal; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 退款信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ @Data @TableName("oms_refund_info") public class RefundInfoEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * 退款的订单 */ private Long orderReturnId; /** * 退款金额 */ private BigDecimal refund; /** * 退款交易流水号 */ private String refundSn; /** * 退款状态 */ private Integer refundStatus; /** * 退款渠道[1-支付宝,2-微信,3-银联,4-汇款] */ private Integer refundChannel; /** * */ private String refundContent; }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/entity/RefundInfoEntity.java
Java
apache-2.0
925
package com.kong.meirimall.order.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.order.entity.OrderItemEntity; import java.util.Map; /** * 订单项信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ public interface OrderItemService extends IService<OrderItemEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/OrderItemService.java
Java
apache-2.0
450
package com.kong.meirimall.order.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.order.entity.OrderOperateHistoryEntity; import java.util.Map; /** * 订单操作历史记录 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ public interface OrderOperateHistoryService extends IService<OrderOperateHistoryEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/OrderOperateHistoryService.java
Java
apache-2.0
489
package com.kong.meirimall.order.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.order.entity.OrderReturnApplyEntity; import java.util.Map; /** * 订单退货申请 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ public interface OrderReturnApplyService extends IService<OrderReturnApplyEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/OrderReturnApplyService.java
Java
apache-2.0
474
package com.kong.meirimall.order.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.order.entity.OrderReturnReasonEntity; import java.util.Map; /** * 退货原因 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ public interface OrderReturnReasonService extends IService<OrderReturnReasonEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/OrderReturnReasonService.java
Java
apache-2.0
471
package com.kong.meirimall.order.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.order.entity.OrderEntity; import java.util.Map; /** * 订单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ public interface OrderService extends IService<OrderEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/OrderService.java
Java
apache-2.0
429
package com.kong.meirimall.order.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.order.entity.OrderSettingEntity; import java.util.Map; /** * 订单配置信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:53 */ public interface OrderSettingService extends IService<OrderSettingEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/OrderSettingService.java
Java
apache-2.0
462
package com.kong.meirimall.order.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.order.entity.PaymentInfoEntity; import java.util.Map; /** * 支付信息表 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ public interface PaymentInfoService extends IService<PaymentInfoEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/PaymentInfoService.java
Java
apache-2.0
456
package com.kong.meirimall.order.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.order.entity.RefundInfoEntity; import java.util.Map; /** * 退款信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:48:52 */ public interface RefundInfoService extends IService<RefundInfoEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/RefundInfoService.java
Java
apache-2.0
450
package com.kong.meirimall.order.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.order.dao.OrderItemDao; import com.kong.meirimall.order.entity.OrderItemEntity; import com.kong.meirimall.order.service.OrderItemService; @Service("orderItemService") public class OrderItemServiceImpl extends ServiceImpl<OrderItemDao, OrderItemEntity> implements OrderItemService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<OrderItemEntity> page = this.page( new Query<OrderItemEntity>().getPage(params), new QueryWrapper<OrderItemEntity>() ); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/impl/OrderItemServiceImpl.java
Java
apache-2.0
988
package com.kong.meirimall.order.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.order.dao.OrderOperateHistoryDao; import com.kong.meirimall.order.entity.OrderOperateHistoryEntity; import com.kong.meirimall.order.service.OrderOperateHistoryService; @Service("orderOperateHistoryService") public class OrderOperateHistoryServiceImpl extends ServiceImpl<OrderOperateHistoryDao, OrderOperateHistoryEntity> implements OrderOperateHistoryService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<OrderOperateHistoryEntity> page = this.page( new Query<OrderOperateHistoryEntity>().getPage(params), new QueryWrapper<OrderOperateHistoryEntity>() ); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/impl/OrderOperateHistoryServiceImpl.java
Java
apache-2.0
1,098
package com.kong.meirimall.order.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.order.dao.OrderReturnApplyDao; import com.kong.meirimall.order.entity.OrderReturnApplyEntity; import com.kong.meirimall.order.service.OrderReturnApplyService; @Service("orderReturnApplyService") public class OrderReturnApplyServiceImpl extends ServiceImpl<OrderReturnApplyDao, OrderReturnApplyEntity> implements OrderReturnApplyService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<OrderReturnApplyEntity> page = this.page( new Query<OrderReturnApplyEntity>().getPage(params), new QueryWrapper<OrderReturnApplyEntity>() ); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/impl/OrderReturnApplyServiceImpl.java
Java
apache-2.0
1,065
package com.kong.meirimall.order.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.order.dao.OrderReturnReasonDao; import com.kong.meirimall.order.entity.OrderReturnReasonEntity; import com.kong.meirimall.order.service.OrderReturnReasonService; @Service("orderReturnReasonService") public class OrderReturnReasonServiceImpl extends ServiceImpl<OrderReturnReasonDao, OrderReturnReasonEntity> implements OrderReturnReasonService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<OrderReturnReasonEntity> page = this.page( new Query<OrderReturnReasonEntity>().getPage(params), new QueryWrapper<OrderReturnReasonEntity>() ); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/impl/OrderReturnReasonServiceImpl.java
Java
apache-2.0
1,076
package com.kong.meirimall.order.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.order.dao.OrderDao; import com.kong.meirimall.order.entity.OrderEntity; import com.kong.meirimall.order.service.OrderService; @Service("orderService") public class OrderServiceImpl extends ServiceImpl<OrderDao, OrderEntity> implements OrderService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<OrderEntity> page = this.page( new Query<OrderEntity>().getPage(params), new QueryWrapper<OrderEntity>() ); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/impl/OrderServiceImpl.java
Java
apache-2.0
944
package com.kong.meirimall.order.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.order.dao.OrderSettingDao; import com.kong.meirimall.order.entity.OrderSettingEntity; import com.kong.meirimall.order.service.OrderSettingService; @Service("orderSettingService") public class OrderSettingServiceImpl extends ServiceImpl<OrderSettingDao, OrderSettingEntity> implements OrderSettingService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<OrderSettingEntity> page = this.page( new Query<OrderSettingEntity>().getPage(params), new QueryWrapper<OrderSettingEntity>() ); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/impl/OrderSettingServiceImpl.java
Java
apache-2.0
1,021
package com.kong.meirimall.order.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.order.dao.PaymentInfoDao; import com.kong.meirimall.order.entity.PaymentInfoEntity; import com.kong.meirimall.order.service.PaymentInfoService; @Service("paymentInfoService") public class PaymentInfoServiceImpl extends ServiceImpl<PaymentInfoDao, PaymentInfoEntity> implements PaymentInfoService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<PaymentInfoEntity> page = this.page( new Query<PaymentInfoEntity>().getPage(params), new QueryWrapper<PaymentInfoEntity>() ); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/impl/PaymentInfoServiceImpl.java
Java
apache-2.0
1,010
package com.kong.meirimall.order.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.order.dao.RefundInfoDao; import com.kong.meirimall.order.entity.RefundInfoEntity; import com.kong.meirimall.order.service.RefundInfoService; @Service("refundInfoService") public class RefundInfoServiceImpl extends ServiceImpl<RefundInfoDao, RefundInfoEntity> implements RefundInfoService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<RefundInfoEntity> page = this.page( new Query<RefundInfoEntity>().getPage(params), new QueryWrapper<RefundInfoEntity>() ); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-order/src/main/java/com/kong/meirimall/order/service/impl/RefundInfoServiceImpl.java
Java
apache-2.0
999
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="member_id" prop="memberId"> <el-input v-model="dataForm.memberId" placeholder="member_id"></el-input> </el-form-item> <el-form-item label="订单号" prop="orderSn"> <el-input v-model="dataForm.orderSn" placeholder="订单号"></el-input> </el-form-item> <el-form-item label="使用的优惠券" prop="couponId"> <el-input v-model="dataForm.couponId" placeholder="使用的优惠券"></el-input> </el-form-item> <el-form-item label="create_time" prop="createTime"> <el-input v-model="dataForm.createTime" placeholder="create_time"></el-input> </el-form-item> <el-form-item label="用户名" prop="memberUsername"> <el-input v-model="dataForm.memberUsername" placeholder="用户名"></el-input> </el-form-item> <el-form-item label="订单总额" prop="totalAmount"> <el-input v-model="dataForm.totalAmount" placeholder="订单总额"></el-input> </el-form-item> <el-form-item label="应付总额" prop="payAmount"> <el-input v-model="dataForm.payAmount" placeholder="应付总额"></el-input> </el-form-item> <el-form-item label="运费金额" prop="freightAmount"> <el-input v-model="dataForm.freightAmount" placeholder="运费金额"></el-input> </el-form-item> <el-form-item label="促销优化金额(促销价、满减、阶梯价)" prop="promotionAmount"> <el-input v-model="dataForm.promotionAmount" placeholder="促销优化金额(促销价、满减、阶梯价)"></el-input> </el-form-item> <el-form-item label="积分抵扣金额" prop="integrationAmount"> <el-input v-model="dataForm.integrationAmount" placeholder="积分抵扣金额"></el-input> </el-form-item> <el-form-item label="优惠券抵扣金额" prop="couponAmount"> <el-input v-model="dataForm.couponAmount" placeholder="优惠券抵扣金额"></el-input> </el-form-item> <el-form-item label="后台调整订单使用的折扣金额" prop="discountAmount"> <el-input v-model="dataForm.discountAmount" placeholder="后台调整订单使用的折扣金额"></el-input> </el-form-item> <el-form-item label="支付方式【1->支付宝;2->微信;3->银联; 4->货到付款;】" prop="payType"> <el-input v-model="dataForm.payType" placeholder="支付方式【1->支付宝;2->微信;3->银联; 4->货到付款;】"></el-input> </el-form-item> <el-form-item label="订单来源[0->PC订单;1->app订单]" prop="sourceType"> <el-input v-model="dataForm.sourceType" placeholder="订单来源[0->PC订单;1->app订单]"></el-input> </el-form-item> <el-form-item label="订单状态【0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单】" prop="status"> <el-input v-model="dataForm.status" placeholder="订单状态【0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单】"></el-input> </el-form-item> <el-form-item label="物流公司(配送方式)" prop="deliveryCompany"> <el-input v-model="dataForm.deliveryCompany" placeholder="物流公司(配送方式)"></el-input> </el-form-item> <el-form-item label="物流单号" prop="deliverySn"> <el-input v-model="dataForm.deliverySn" placeholder="物流单号"></el-input> </el-form-item> <el-form-item label="自动确认时间(天)" prop="autoConfirmDay"> <el-input v-model="dataForm.autoConfirmDay" placeholder="自动确认时间(天)"></el-input> </el-form-item> <el-form-item label="可以获得的积分" prop="integration"> <el-input v-model="dataForm.integration" placeholder="可以获得的积分"></el-input> </el-form-item> <el-form-item label="可以获得的成长值" prop="growth"> <el-input v-model="dataForm.growth" placeholder="可以获得的成长值"></el-input> </el-form-item> <el-form-item label="发票类型[0->不开发票;1->电子发票;2->纸质发票]" prop="billType"> <el-input v-model="dataForm.billType" placeholder="发票类型[0->不开发票;1->电子发票;2->纸质发票]"></el-input> </el-form-item> <el-form-item label="发票抬头" prop="billHeader"> <el-input v-model="dataForm.billHeader" placeholder="发票抬头"></el-input> </el-form-item> <el-form-item label="发票内容" prop="billContent"> <el-input v-model="dataForm.billContent" placeholder="发票内容"></el-input> </el-form-item> <el-form-item label="收票人电话" prop="billReceiverPhone"> <el-input v-model="dataForm.billReceiverPhone" placeholder="收票人电话"></el-input> </el-form-item> <el-form-item label="收票人邮箱" prop="billReceiverEmail"> <el-input v-model="dataForm.billReceiverEmail" placeholder="收票人邮箱"></el-input> </el-form-item> <el-form-item label="收货人姓名" prop="receiverName"> <el-input v-model="dataForm.receiverName" placeholder="收货人姓名"></el-input> </el-form-item> <el-form-item label="收货人电话" prop="receiverPhone"> <el-input v-model="dataForm.receiverPhone" placeholder="收货人电话"></el-input> </el-form-item> <el-form-item label="收货人邮编" prop="receiverPostCode"> <el-input v-model="dataForm.receiverPostCode" placeholder="收货人邮编"></el-input> </el-form-item> <el-form-item label="省份/直辖市" prop="receiverProvince"> <el-input v-model="dataForm.receiverProvince" placeholder="省份/直辖市"></el-input> </el-form-item> <el-form-item label="城市" prop="receiverCity"> <el-input v-model="dataForm.receiverCity" placeholder="城市"></el-input> </el-form-item> <el-form-item label="区" prop="receiverRegion"> <el-input v-model="dataForm.receiverRegion" placeholder="区"></el-input> </el-form-item> <el-form-item label="详细地址" prop="receiverDetailAddress"> <el-input v-model="dataForm.receiverDetailAddress" placeholder="详细地址"></el-input> </el-form-item> <el-form-item label="订单备注" prop="note"> <el-input v-model="dataForm.note" placeholder="订单备注"></el-input> </el-form-item> <el-form-item label="确认收货状态[0->未确认;1->已确认]" prop="confirmStatus"> <el-input v-model="dataForm.confirmStatus" placeholder="确认收货状态[0->未确认;1->已确认]"></el-input> </el-form-item> <el-form-item label="删除状态【0->未删除;1->已删除】" prop="deleteStatus"> <el-input v-model="dataForm.deleteStatus" placeholder="删除状态【0->未删除;1->已删除】"></el-input> </el-form-item> <el-form-item label="下单时使用的积分" prop="useIntegration"> <el-input v-model="dataForm.useIntegration" placeholder="下单时使用的积分"></el-input> </el-form-item> <el-form-item label="支付时间" prop="paymentTime"> <el-input v-model="dataForm.paymentTime" placeholder="支付时间"></el-input> </el-form-item> <el-form-item label="发货时间" prop="deliveryTime"> <el-input v-model="dataForm.deliveryTime" placeholder="发货时间"></el-input> </el-form-item> <el-form-item label="确认收货时间" prop="receiveTime"> <el-input v-model="dataForm.receiveTime" placeholder="确认收货时间"></el-input> </el-form-item> <el-form-item label="评价时间" prop="commentTime"> <el-input v-model="dataForm.commentTime" placeholder="评价时间"></el-input> </el-form-item> <el-form-item label="修改时间" prop="modifyTime"> <el-input v-model="dataForm.modifyTime" placeholder="修改时间"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, memberId: '', orderSn: '', couponId: '', createTime: '', memberUsername: '', totalAmount: '', payAmount: '', freightAmount: '', promotionAmount: '', integrationAmount: '', couponAmount: '', discountAmount: '', payType: '', sourceType: '', status: '', deliveryCompany: '', deliverySn: '', autoConfirmDay: '', integration: '', growth: '', billType: '', billHeader: '', billContent: '', billReceiverPhone: '', billReceiverEmail: '', receiverName: '', receiverPhone: '', receiverPostCode: '', receiverProvince: '', receiverCity: '', receiverRegion: '', receiverDetailAddress: '', note: '', confirmStatus: '', deleteStatus: '', useIntegration: '', paymentTime: '', deliveryTime: '', receiveTime: '', commentTime: '', modifyTime: '' }, dataRule: { memberId: [ { required: true, message: 'member_id不能为空', trigger: 'blur' } ], orderSn: [ { required: true, message: '订单号不能为空', trigger: 'blur' } ], couponId: [ { required: true, message: '使用的优惠券不能为空', trigger: 'blur' } ], createTime: [ { required: true, message: 'create_time不能为空', trigger: 'blur' } ], memberUsername: [ { required: true, message: '用户名不能为空', trigger: 'blur' } ], totalAmount: [ { required: true, message: '订单总额不能为空', trigger: 'blur' } ], payAmount: [ { required: true, message: '应付总额不能为空', trigger: 'blur' } ], freightAmount: [ { required: true, message: '运费金额不能为空', trigger: 'blur' } ], promotionAmount: [ { required: true, message: '促销优化金额(促销价、满减、阶梯价)不能为空', trigger: 'blur' } ], integrationAmount: [ { required: true, message: '积分抵扣金额不能为空', trigger: 'blur' } ], couponAmount: [ { required: true, message: '优惠券抵扣金额不能为空', trigger: 'blur' } ], discountAmount: [ { required: true, message: '后台调整订单使用的折扣金额不能为空', trigger: 'blur' } ], payType: [ { required: true, message: '支付方式【1->支付宝;2->微信;3->银联; 4->货到付款;】不能为空', trigger: 'blur' } ], sourceType: [ { required: true, message: '订单来源[0->PC订单;1->app订单]不能为空', trigger: 'blur' } ], status: [ { required: true, message: '订单状态【0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单】不能为空', trigger: 'blur' } ], deliveryCompany: [ { required: true, message: '物流公司(配送方式)不能为空', trigger: 'blur' } ], deliverySn: [ { required: true, message: '物流单号不能为空', trigger: 'blur' } ], autoConfirmDay: [ { required: true, message: '自动确认时间(天)不能为空', trigger: 'blur' } ], integration: [ { required: true, message: '可以获得的积分不能为空', trigger: 'blur' } ], growth: [ { required: true, message: '可以获得的成长值不能为空', trigger: 'blur' } ], billType: [ { required: true, message: '发票类型[0->不开发票;1->电子发票;2->纸质发票]不能为空', trigger: 'blur' } ], billHeader: [ { required: true, message: '发票抬头不能为空', trigger: 'blur' } ], billContent: [ { required: true, message: '发票内容不能为空', trigger: 'blur' } ], billReceiverPhone: [ { required: true, message: '收票人电话不能为空', trigger: 'blur' } ], billReceiverEmail: [ { required: true, message: '收票人邮箱不能为空', trigger: 'blur' } ], receiverName: [ { required: true, message: '收货人姓名不能为空', trigger: 'blur' } ], receiverPhone: [ { required: true, message: '收货人电话不能为空', trigger: 'blur' } ], receiverPostCode: [ { required: true, message: '收货人邮编不能为空', trigger: 'blur' } ], receiverProvince: [ { required: true, message: '省份/直辖市不能为空', trigger: 'blur' } ], receiverCity: [ { required: true, message: '城市不能为空', trigger: 'blur' } ], receiverRegion: [ { required: true, message: '区不能为空', trigger: 'blur' } ], receiverDetailAddress: [ { required: true, message: '详细地址不能为空', trigger: 'blur' } ], note: [ { required: true, message: '订单备注不能为空', trigger: 'blur' } ], confirmStatus: [ { required: true, message: '确认收货状态[0->未确认;1->已确认]不能为空', trigger: 'blur' } ], deleteStatus: [ { required: true, message: '删除状态【0->未删除;1->已删除】不能为空', trigger: 'blur' } ], useIntegration: [ { required: true, message: '下单时使用的积分不能为空', trigger: 'blur' } ], paymentTime: [ { required: true, message: '支付时间不能为空', trigger: 'blur' } ], deliveryTime: [ { required: true, message: '发货时间不能为空', trigger: 'blur' } ], receiveTime: [ { required: true, message: '确认收货时间不能为空', trigger: 'blur' } ], commentTime: [ { required: true, message: '评价时间不能为空', trigger: 'blur' } ], modifyTime: [ { required: true, message: '修改时间不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/order/order/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.memberId = data.order.memberId this.dataForm.orderSn = data.order.orderSn this.dataForm.couponId = data.order.couponId this.dataForm.createTime = data.order.createTime this.dataForm.memberUsername = data.order.memberUsername this.dataForm.totalAmount = data.order.totalAmount this.dataForm.payAmount = data.order.payAmount this.dataForm.freightAmount = data.order.freightAmount this.dataForm.promotionAmount = data.order.promotionAmount this.dataForm.integrationAmount = data.order.integrationAmount this.dataForm.couponAmount = data.order.couponAmount this.dataForm.discountAmount = data.order.discountAmount this.dataForm.payType = data.order.payType this.dataForm.sourceType = data.order.sourceType this.dataForm.status = data.order.status this.dataForm.deliveryCompany = data.order.deliveryCompany this.dataForm.deliverySn = data.order.deliverySn this.dataForm.autoConfirmDay = data.order.autoConfirmDay this.dataForm.integration = data.order.integration this.dataForm.growth = data.order.growth this.dataForm.billType = data.order.billType this.dataForm.billHeader = data.order.billHeader this.dataForm.billContent = data.order.billContent this.dataForm.billReceiverPhone = data.order.billReceiverPhone this.dataForm.billReceiverEmail = data.order.billReceiverEmail this.dataForm.receiverName = data.order.receiverName this.dataForm.receiverPhone = data.order.receiverPhone this.dataForm.receiverPostCode = data.order.receiverPostCode this.dataForm.receiverProvince = data.order.receiverProvince this.dataForm.receiverCity = data.order.receiverCity this.dataForm.receiverRegion = data.order.receiverRegion this.dataForm.receiverDetailAddress = data.order.receiverDetailAddress this.dataForm.note = data.order.note this.dataForm.confirmStatus = data.order.confirmStatus this.dataForm.deleteStatus = data.order.deleteStatus this.dataForm.useIntegration = data.order.useIntegration this.dataForm.paymentTime = data.order.paymentTime this.dataForm.deliveryTime = data.order.deliveryTime this.dataForm.receiveTime = data.order.receiveTime this.dataForm.commentTime = data.order.commentTime this.dataForm.modifyTime = data.order.modifyTime } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/order/order/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'memberId': this.dataForm.memberId, 'orderSn': this.dataForm.orderSn, 'couponId': this.dataForm.couponId, 'createTime': this.dataForm.createTime, 'memberUsername': this.dataForm.memberUsername, 'totalAmount': this.dataForm.totalAmount, 'payAmount': this.dataForm.payAmount, 'freightAmount': this.dataForm.freightAmount, 'promotionAmount': this.dataForm.promotionAmount, 'integrationAmount': this.dataForm.integrationAmount, 'couponAmount': this.dataForm.couponAmount, 'discountAmount': this.dataForm.discountAmount, 'payType': this.dataForm.payType, 'sourceType': this.dataForm.sourceType, 'status': this.dataForm.status, 'deliveryCompany': this.dataForm.deliveryCompany, 'deliverySn': this.dataForm.deliverySn, 'autoConfirmDay': this.dataForm.autoConfirmDay, 'integration': this.dataForm.integration, 'growth': this.dataForm.growth, 'billType': this.dataForm.billType, 'billHeader': this.dataForm.billHeader, 'billContent': this.dataForm.billContent, 'billReceiverPhone': this.dataForm.billReceiverPhone, 'billReceiverEmail': this.dataForm.billReceiverEmail, 'receiverName': this.dataForm.receiverName, 'receiverPhone': this.dataForm.receiverPhone, 'receiverPostCode': this.dataForm.receiverPostCode, 'receiverProvince': this.dataForm.receiverProvince, 'receiverCity': this.dataForm.receiverCity, 'receiverRegion': this.dataForm.receiverRegion, 'receiverDetailAddress': this.dataForm.receiverDetailAddress, 'note': this.dataForm.note, 'confirmStatus': this.dataForm.confirmStatus, 'deleteStatus': this.dataForm.deleteStatus, 'useIntegration': this.dataForm.useIntegration, 'paymentTime': this.dataForm.paymentTime, 'deliveryTime': this.dataForm.deliveryTime, 'receiveTime': this.dataForm.receiveTime, 'commentTime': this.dataForm.commentTime, 'modifyTime': this.dataForm.modifyTime }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/order-add-or-update.vue
Vue
apache-2.0
21,800
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('order:order:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('order:order:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="memberId" header-align="center" align="center" label="member_id"> </el-table-column> <el-table-column prop="orderSn" header-align="center" align="center" label="订单号"> </el-table-column> <el-table-column prop="couponId" header-align="center" align="center" label="使用的优惠券"> </el-table-column> <el-table-column prop="createTime" header-align="center" align="center" label="create_time"> </el-table-column> <el-table-column prop="memberUsername" header-align="center" align="center" label="用户名"> </el-table-column> <el-table-column prop="totalAmount" header-align="center" align="center" label="订单总额"> </el-table-column> <el-table-column prop="payAmount" header-align="center" align="center" label="应付总额"> </el-table-column> <el-table-column prop="freightAmount" header-align="center" align="center" label="运费金额"> </el-table-column> <el-table-column prop="promotionAmount" header-align="center" align="center" label="促销优化金额(促销价、满减、阶梯价)"> </el-table-column> <el-table-column prop="integrationAmount" header-align="center" align="center" label="积分抵扣金额"> </el-table-column> <el-table-column prop="couponAmount" header-align="center" align="center" label="优惠券抵扣金额"> </el-table-column> <el-table-column prop="discountAmount" header-align="center" align="center" label="后台调整订单使用的折扣金额"> </el-table-column> <el-table-column prop="payType" header-align="center" align="center" label="支付方式【1->支付宝;2->微信;3->银联; 4->货到付款;】"> </el-table-column> <el-table-column prop="sourceType" header-align="center" align="center" label="订单来源[0->PC订单;1->app订单]"> </el-table-column> <el-table-column prop="status" header-align="center" align="center" label="订单状态【0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单】"> </el-table-column> <el-table-column prop="deliveryCompany" header-align="center" align="center" label="物流公司(配送方式)"> </el-table-column> <el-table-column prop="deliverySn" header-align="center" align="center" label="物流单号"> </el-table-column> <el-table-column prop="autoConfirmDay" header-align="center" align="center" label="自动确认时间(天)"> </el-table-column> <el-table-column prop="integration" header-align="center" align="center" label="可以获得的积分"> </el-table-column> <el-table-column prop="growth" header-align="center" align="center" label="可以获得的成长值"> </el-table-column> <el-table-column prop="billType" header-align="center" align="center" label="发票类型[0->不开发票;1->电子发票;2->纸质发票]"> </el-table-column> <el-table-column prop="billHeader" header-align="center" align="center" label="发票抬头"> </el-table-column> <el-table-column prop="billContent" header-align="center" align="center" label="发票内容"> </el-table-column> <el-table-column prop="billReceiverPhone" header-align="center" align="center" label="收票人电话"> </el-table-column> <el-table-column prop="billReceiverEmail" header-align="center" align="center" label="收票人邮箱"> </el-table-column> <el-table-column prop="receiverName" header-align="center" align="center" label="收货人姓名"> </el-table-column> <el-table-column prop="receiverPhone" header-align="center" align="center" label="收货人电话"> </el-table-column> <el-table-column prop="receiverPostCode" header-align="center" align="center" label="收货人邮编"> </el-table-column> <el-table-column prop="receiverProvince" header-align="center" align="center" label="省份/直辖市"> </el-table-column> <el-table-column prop="receiverCity" header-align="center" align="center" label="城市"> </el-table-column> <el-table-column prop="receiverRegion" header-align="center" align="center" label="区"> </el-table-column> <el-table-column prop="receiverDetailAddress" header-align="center" align="center" label="详细地址"> </el-table-column> <el-table-column prop="note" header-align="center" align="center" label="订单备注"> </el-table-column> <el-table-column prop="confirmStatus" header-align="center" align="center" label="确认收货状态[0->未确认;1->已确认]"> </el-table-column> <el-table-column prop="deleteStatus" header-align="center" align="center" label="删除状态【0->未删除;1->已删除】"> </el-table-column> <el-table-column prop="useIntegration" header-align="center" align="center" label="下单时使用的积分"> </el-table-column> <el-table-column prop="paymentTime" header-align="center" align="center" label="支付时间"> </el-table-column> <el-table-column prop="deliveryTime" header-align="center" align="center" label="发货时间"> </el-table-column> <el-table-column prop="receiveTime" header-align="center" align="center" label="确认收货时间"> </el-table-column> <el-table-column prop="commentTime" header-align="center" align="center" label="评价时间"> </el-table-column> <el-table-column prop="modifyTime" header-align="center" align="center" label="修改时间"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './order-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/order/order/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/order/order/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/order.vue
Vue
apache-2.0
11,663
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="order_id" prop="orderId"> <el-input v-model="dataForm.orderId" placeholder="order_id"></el-input> </el-form-item> <el-form-item label="order_sn" prop="orderSn"> <el-input v-model="dataForm.orderSn" placeholder="order_sn"></el-input> </el-form-item> <el-form-item label="spu_id" prop="spuId"> <el-input v-model="dataForm.spuId" placeholder="spu_id"></el-input> </el-form-item> <el-form-item label="spu_name" prop="spuName"> <el-input v-model="dataForm.spuName" placeholder="spu_name"></el-input> </el-form-item> <el-form-item label="spu_pic" prop="spuPic"> <el-input v-model="dataForm.spuPic" placeholder="spu_pic"></el-input> </el-form-item> <el-form-item label="品牌" prop="spuBrand"> <el-input v-model="dataForm.spuBrand" placeholder="品牌"></el-input> </el-form-item> <el-form-item label="商品分类id" prop="categoryId"> <el-input v-model="dataForm.categoryId" placeholder="商品分类id"></el-input> </el-form-item> <el-form-item label="商品sku编号" prop="skuId"> <el-input v-model="dataForm.skuId" placeholder="商品sku编号"></el-input> </el-form-item> <el-form-item label="商品sku名字" prop="skuName"> <el-input v-model="dataForm.skuName" placeholder="商品sku名字"></el-input> </el-form-item> <el-form-item label="商品sku图片" prop="skuPic"> <el-input v-model="dataForm.skuPic" placeholder="商品sku图片"></el-input> </el-form-item> <el-form-item label="商品sku价格" prop="skuPrice"> <el-input v-model="dataForm.skuPrice" placeholder="商品sku价格"></el-input> </el-form-item> <el-form-item label="商品购买的数量" prop="skuQuantity"> <el-input v-model="dataForm.skuQuantity" placeholder="商品购买的数量"></el-input> </el-form-item> <el-form-item label="商品销售属性组合(JSON)" prop="skuAttrsVals"> <el-input v-model="dataForm.skuAttrsVals" placeholder="商品销售属性组合(JSON)"></el-input> </el-form-item> <el-form-item label="商品促销分解金额" prop="promotionAmount"> <el-input v-model="dataForm.promotionAmount" placeholder="商品促销分解金额"></el-input> </el-form-item> <el-form-item label="优惠券优惠分解金额" prop="couponAmount"> <el-input v-model="dataForm.couponAmount" placeholder="优惠券优惠分解金额"></el-input> </el-form-item> <el-form-item label="积分优惠分解金额" prop="integrationAmount"> <el-input v-model="dataForm.integrationAmount" placeholder="积分优惠分解金额"></el-input> </el-form-item> <el-form-item label="该商品经过优惠后的分解金额" prop="realAmount"> <el-input v-model="dataForm.realAmount" placeholder="该商品经过优惠后的分解金额"></el-input> </el-form-item> <el-form-item label="赠送积分" prop="giftIntegration"> <el-input v-model="dataForm.giftIntegration" placeholder="赠送积分"></el-input> </el-form-item> <el-form-item label="赠送成长值" prop="giftGrowth"> <el-input v-model="dataForm.giftGrowth" placeholder="赠送成长值"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, orderId: '', orderSn: '', spuId: '', spuName: '', spuPic: '', spuBrand: '', categoryId: '', skuId: '', skuName: '', skuPic: '', skuPrice: '', skuQuantity: '', skuAttrsVals: '', promotionAmount: '', couponAmount: '', integrationAmount: '', realAmount: '', giftIntegration: '', giftGrowth: '' }, dataRule: { orderId: [ { required: true, message: 'order_id不能为空', trigger: 'blur' } ], orderSn: [ { required: true, message: 'order_sn不能为空', trigger: 'blur' } ], spuId: [ { required: true, message: 'spu_id不能为空', trigger: 'blur' } ], spuName: [ { required: true, message: 'spu_name不能为空', trigger: 'blur' } ], spuPic: [ { required: true, message: 'spu_pic不能为空', trigger: 'blur' } ], spuBrand: [ { required: true, message: '品牌不能为空', trigger: 'blur' } ], categoryId: [ { required: true, message: '商品分类id不能为空', trigger: 'blur' } ], skuId: [ { required: true, message: '商品sku编号不能为空', trigger: 'blur' } ], skuName: [ { required: true, message: '商品sku名字不能为空', trigger: 'blur' } ], skuPic: [ { required: true, message: '商品sku图片不能为空', trigger: 'blur' } ], skuPrice: [ { required: true, message: '商品sku价格不能为空', trigger: 'blur' } ], skuQuantity: [ { required: true, message: '商品购买的数量不能为空', trigger: 'blur' } ], skuAttrsVals: [ { required: true, message: '商品销售属性组合(JSON)不能为空', trigger: 'blur' } ], promotionAmount: [ { required: true, message: '商品促销分解金额不能为空', trigger: 'blur' } ], couponAmount: [ { required: true, message: '优惠券优惠分解金额不能为空', trigger: 'blur' } ], integrationAmount: [ { required: true, message: '积分优惠分解金额不能为空', trigger: 'blur' } ], realAmount: [ { required: true, message: '该商品经过优惠后的分解金额不能为空', trigger: 'blur' } ], giftIntegration: [ { required: true, message: '赠送积分不能为空', trigger: 'blur' } ], giftGrowth: [ { required: true, message: '赠送成长值不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/order/orderitem/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.orderId = data.orderItem.orderId this.dataForm.orderSn = data.orderItem.orderSn this.dataForm.spuId = data.orderItem.spuId this.dataForm.spuName = data.orderItem.spuName this.dataForm.spuPic = data.orderItem.spuPic this.dataForm.spuBrand = data.orderItem.spuBrand this.dataForm.categoryId = data.orderItem.categoryId this.dataForm.skuId = data.orderItem.skuId this.dataForm.skuName = data.orderItem.skuName this.dataForm.skuPic = data.orderItem.skuPic this.dataForm.skuPrice = data.orderItem.skuPrice this.dataForm.skuQuantity = data.orderItem.skuQuantity this.dataForm.skuAttrsVals = data.orderItem.skuAttrsVals this.dataForm.promotionAmount = data.orderItem.promotionAmount this.dataForm.couponAmount = data.orderItem.couponAmount this.dataForm.integrationAmount = data.orderItem.integrationAmount this.dataForm.realAmount = data.orderItem.realAmount this.dataForm.giftIntegration = data.orderItem.giftIntegration this.dataForm.giftGrowth = data.orderItem.giftGrowth } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/order/orderitem/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'orderId': this.dataForm.orderId, 'orderSn': this.dataForm.orderSn, 'spuId': this.dataForm.spuId, 'spuName': this.dataForm.spuName, 'spuPic': this.dataForm.spuPic, 'spuBrand': this.dataForm.spuBrand, 'categoryId': this.dataForm.categoryId, 'skuId': this.dataForm.skuId, 'skuName': this.dataForm.skuName, 'skuPic': this.dataForm.skuPic, 'skuPrice': this.dataForm.skuPrice, 'skuQuantity': this.dataForm.skuQuantity, 'skuAttrsVals': this.dataForm.skuAttrsVals, 'promotionAmount': this.dataForm.promotionAmount, 'couponAmount': this.dataForm.couponAmount, 'integrationAmount': this.dataForm.integrationAmount, 'realAmount': this.dataForm.realAmount, 'giftIntegration': this.dataForm.giftIntegration, 'giftGrowth': this.dataForm.giftGrowth }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/orderitem-add-or-update.vue
Vue
apache-2.0
10,580
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('order:orderitem:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('order:orderitem:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="orderId" header-align="center" align="center" label="order_id"> </el-table-column> <el-table-column prop="orderSn" header-align="center" align="center" label="order_sn"> </el-table-column> <el-table-column prop="spuId" header-align="center" align="center" label="spu_id"> </el-table-column> <el-table-column prop="spuName" header-align="center" align="center" label="spu_name"> </el-table-column> <el-table-column prop="spuPic" header-align="center" align="center" label="spu_pic"> </el-table-column> <el-table-column prop="spuBrand" header-align="center" align="center" label="品牌"> </el-table-column> <el-table-column prop="categoryId" header-align="center" align="center" label="商品分类id"> </el-table-column> <el-table-column prop="skuId" header-align="center" align="center" label="商品sku编号"> </el-table-column> <el-table-column prop="skuName" header-align="center" align="center" label="商品sku名字"> </el-table-column> <el-table-column prop="skuPic" header-align="center" align="center" label="商品sku图片"> </el-table-column> <el-table-column prop="skuPrice" header-align="center" align="center" label="商品sku价格"> </el-table-column> <el-table-column prop="skuQuantity" header-align="center" align="center" label="商品购买的数量"> </el-table-column> <el-table-column prop="skuAttrsVals" header-align="center" align="center" label="商品销售属性组合(JSON)"> </el-table-column> <el-table-column prop="promotionAmount" header-align="center" align="center" label="商品促销分解金额"> </el-table-column> <el-table-column prop="couponAmount" header-align="center" align="center" label="优惠券优惠分解金额"> </el-table-column> <el-table-column prop="integrationAmount" header-align="center" align="center" label="积分优惠分解金额"> </el-table-column> <el-table-column prop="realAmount" header-align="center" align="center" label="该商品经过优惠后的分解金额"> </el-table-column> <el-table-column prop="giftIntegration" header-align="center" align="center" label="赠送积分"> </el-table-column> <el-table-column prop="giftGrowth" header-align="center" align="center" label="赠送成长值"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './orderitem-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/order/orderitem/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/order/orderitem/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/orderitem.vue
Vue
apache-2.0
7,769
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="订单id" prop="orderId"> <el-input v-model="dataForm.orderId" placeholder="订单id"></el-input> </el-form-item> <el-form-item label="操作人[用户;系统;后台管理员]" prop="operateMan"> <el-input v-model="dataForm.operateMan" placeholder="操作人[用户;系统;后台管理员]"></el-input> </el-form-item> <el-form-item label="操作时间" prop="createTime"> <el-input v-model="dataForm.createTime" placeholder="操作时间"></el-input> </el-form-item> <el-form-item label="订单状态【0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单】" prop="orderStatus"> <el-input v-model="dataForm.orderStatus" placeholder="订单状态【0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单】"></el-input> </el-form-item> <el-form-item label="备注" prop="note"> <el-input v-model="dataForm.note" placeholder="备注"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, orderId: '', operateMan: '', createTime: '', orderStatus: '', note: '' }, dataRule: { orderId: [ { required: true, message: '订单id不能为空', trigger: 'blur' } ], operateMan: [ { required: true, message: '操作人[用户;系统;后台管理员]不能为空', trigger: 'blur' } ], createTime: [ { required: true, message: '操作时间不能为空', trigger: 'blur' } ], orderStatus: [ { required: true, message: '订单状态【0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单】不能为空', trigger: 'blur' } ], note: [ { required: true, message: '备注不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/order/orderoperatehistory/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.orderId = data.orderOperateHistory.orderId this.dataForm.operateMan = data.orderOperateHistory.operateMan this.dataForm.createTime = data.orderOperateHistory.createTime this.dataForm.orderStatus = data.orderOperateHistory.orderStatus this.dataForm.note = data.orderOperateHistory.note } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/order/orderoperatehistory/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'orderId': this.dataForm.orderId, 'operateMan': this.dataForm.operateMan, 'createTime': this.dataForm.createTime, 'orderStatus': this.dataForm.orderStatus, 'note': this.dataForm.note }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/orderoperatehistory-add-or-update.vue
Vue
apache-2.0
4,677
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('order:orderoperatehistory:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('order:orderoperatehistory:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="orderId" header-align="center" align="center" label="订单id"> </el-table-column> <el-table-column prop="operateMan" header-align="center" align="center" label="操作人[用户;系统;后台管理员]"> </el-table-column> <el-table-column prop="createTime" header-align="center" align="center" label="操作时间"> </el-table-column> <el-table-column prop="orderStatus" header-align="center" align="center" label="订单状态【0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单】"> </el-table-column> <el-table-column prop="note" header-align="center" align="center" label="备注"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './orderoperatehistory-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/order/orderoperatehistory/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/order/orderoperatehistory/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/orderoperatehistory.vue
Vue
apache-2.0
5,658
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="order_id" prop="orderId"> <el-input v-model="dataForm.orderId" placeholder="order_id"></el-input> </el-form-item> <el-form-item label="退货商品id" prop="skuId"> <el-input v-model="dataForm.skuId" placeholder="退货商品id"></el-input> </el-form-item> <el-form-item label="订单编号" prop="orderSn"> <el-input v-model="dataForm.orderSn" placeholder="订单编号"></el-input> </el-form-item> <el-form-item label="申请时间" prop="createTime"> <el-input v-model="dataForm.createTime" placeholder="申请时间"></el-input> </el-form-item> <el-form-item label="会员用户名" prop="memberUsername"> <el-input v-model="dataForm.memberUsername" placeholder="会员用户名"></el-input> </el-form-item> <el-form-item label="退款金额" prop="returnAmount"> <el-input v-model="dataForm.returnAmount" placeholder="退款金额"></el-input> </el-form-item> <el-form-item label="退货人姓名" prop="returnName"> <el-input v-model="dataForm.returnName" placeholder="退货人姓名"></el-input> </el-form-item> <el-form-item label="退货人电话" prop="returnPhone"> <el-input v-model="dataForm.returnPhone" placeholder="退货人电话"></el-input> </el-form-item> <el-form-item label="申请状态[0->待处理;1->退货中;2->已完成;3->已拒绝]" prop="status"> <el-input v-model="dataForm.status" placeholder="申请状态[0->待处理;1->退货中;2->已完成;3->已拒绝]"></el-input> </el-form-item> <el-form-item label="处理时间" prop="handleTime"> <el-input v-model="dataForm.handleTime" placeholder="处理时间"></el-input> </el-form-item> <el-form-item label="商品图片" prop="skuImg"> <el-input v-model="dataForm.skuImg" placeholder="商品图片"></el-input> </el-form-item> <el-form-item label="商品名称" prop="skuName"> <el-input v-model="dataForm.skuName" placeholder="商品名称"></el-input> </el-form-item> <el-form-item label="商品品牌" prop="skuBrand"> <el-input v-model="dataForm.skuBrand" placeholder="商品品牌"></el-input> </el-form-item> <el-form-item label="商品销售属性(JSON)" prop="skuAttrsVals"> <el-input v-model="dataForm.skuAttrsVals" placeholder="商品销售属性(JSON)"></el-input> </el-form-item> <el-form-item label="退货数量" prop="skuCount"> <el-input v-model="dataForm.skuCount" placeholder="退货数量"></el-input> </el-form-item> <el-form-item label="商品单价" prop="skuPrice"> <el-input v-model="dataForm.skuPrice" placeholder="商品单价"></el-input> </el-form-item> <el-form-item label="商品实际支付单价" prop="skuRealPrice"> <el-input v-model="dataForm.skuRealPrice" placeholder="商品实际支付单价"></el-input> </el-form-item> <el-form-item label="原因" prop="reason"> <el-input v-model="dataForm.reason" placeholder="原因"></el-input> </el-form-item> <el-form-item label="描述" prop="description述"> <el-input v-model="dataForm.description述" placeholder="描述"></el-input> </el-form-item> <el-form-item label="凭证图片,以逗号隔开" prop="descPics"> <el-input v-model="dataForm.descPics" placeholder="凭证图片,以逗号隔开"></el-input> </el-form-item> <el-form-item label="处理备注" prop="handleNote"> <el-input v-model="dataForm.handleNote" placeholder="处理备注"></el-input> </el-form-item> <el-form-item label="处理人员" prop="handleMan"> <el-input v-model="dataForm.handleMan" placeholder="处理人员"></el-input> </el-form-item> <el-form-item label="收货人" prop="receiveMan"> <el-input v-model="dataForm.receiveMan" placeholder="收货人"></el-input> </el-form-item> <el-form-item label="收货时间" prop="receiveTime"> <el-input v-model="dataForm.receiveTime" placeholder="收货时间"></el-input> </el-form-item> <el-form-item label="收货备注" prop="receiveNote"> <el-input v-model="dataForm.receiveNote" placeholder="收货备注"></el-input> </el-form-item> <el-form-item label="收货电话" prop="receivePhone"> <el-input v-model="dataForm.receivePhone" placeholder="收货电话"></el-input> </el-form-item> <el-form-item label="公司收货地址" prop="companyAddress"> <el-input v-model="dataForm.companyAddress" placeholder="公司收货地址"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, orderId: '', skuId: '', orderSn: '', createTime: '', memberUsername: '', returnAmount: '', returnName: '', returnPhone: '', status: '', handleTime: '', skuImg: '', skuName: '', skuBrand: '', skuAttrsVals: '', skuCount: '', skuPrice: '', skuRealPrice: '', reason: '', description述: '', descPics: '', handleNote: '', handleMan: '', receiveMan: '', receiveTime: '', receiveNote: '', receivePhone: '', companyAddress: '' }, dataRule: { orderId: [ { required: true, message: 'order_id不能为空', trigger: 'blur' } ], skuId: [ { required: true, message: '退货商品id不能为空', trigger: 'blur' } ], orderSn: [ { required: true, message: '订单编号不能为空', trigger: 'blur' } ], createTime: [ { required: true, message: '申请时间不能为空', trigger: 'blur' } ], memberUsername: [ { required: true, message: '会员用户名不能为空', trigger: 'blur' } ], returnAmount: [ { required: true, message: '退款金额不能为空', trigger: 'blur' } ], returnName: [ { required: true, message: '退货人姓名不能为空', trigger: 'blur' } ], returnPhone: [ { required: true, message: '退货人电话不能为空', trigger: 'blur' } ], status: [ { required: true, message: '申请状态[0->待处理;1->退货中;2->已完成;3->已拒绝]不能为空', trigger: 'blur' } ], handleTime: [ { required: true, message: '处理时间不能为空', trigger: 'blur' } ], skuImg: [ { required: true, message: '商品图片不能为空', trigger: 'blur' } ], skuName: [ { required: true, message: '商品名称不能为空', trigger: 'blur' } ], skuBrand: [ { required: true, message: '商品品牌不能为空', trigger: 'blur' } ], skuAttrsVals: [ { required: true, message: '商品销售属性(JSON)不能为空', trigger: 'blur' } ], skuCount: [ { required: true, message: '退货数量不能为空', trigger: 'blur' } ], skuPrice: [ { required: true, message: '商品单价不能为空', trigger: 'blur' } ], skuRealPrice: [ { required: true, message: '商品实际支付单价不能为空', trigger: 'blur' } ], reason: [ { required: true, message: '原因不能为空', trigger: 'blur' } ], description述: [ { required: true, message: '描述不能为空', trigger: 'blur' } ], descPics: [ { required: true, message: '凭证图片,以逗号隔开不能为空', trigger: 'blur' } ], handleNote: [ { required: true, message: '处理备注不能为空', trigger: 'blur' } ], handleMan: [ { required: true, message: '处理人员不能为空', trigger: 'blur' } ], receiveMan: [ { required: true, message: '收货人不能为空', trigger: 'blur' } ], receiveTime: [ { required: true, message: '收货时间不能为空', trigger: 'blur' } ], receiveNote: [ { required: true, message: '收货备注不能为空', trigger: 'blur' } ], receivePhone: [ { required: true, message: '收货电话不能为空', trigger: 'blur' } ], companyAddress: [ { required: true, message: '公司收货地址不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/order/orderreturnapply/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.orderId = data.orderReturnApply.orderId this.dataForm.skuId = data.orderReturnApply.skuId this.dataForm.orderSn = data.orderReturnApply.orderSn this.dataForm.createTime = data.orderReturnApply.createTime this.dataForm.memberUsername = data.orderReturnApply.memberUsername this.dataForm.returnAmount = data.orderReturnApply.returnAmount this.dataForm.returnName = data.orderReturnApply.returnName this.dataForm.returnPhone = data.orderReturnApply.returnPhone this.dataForm.status = data.orderReturnApply.status this.dataForm.handleTime = data.orderReturnApply.handleTime this.dataForm.skuImg = data.orderReturnApply.skuImg this.dataForm.skuName = data.orderReturnApply.skuName this.dataForm.skuBrand = data.orderReturnApply.skuBrand this.dataForm.skuAttrsVals = data.orderReturnApply.skuAttrsVals this.dataForm.skuCount = data.orderReturnApply.skuCount this.dataForm.skuPrice = data.orderReturnApply.skuPrice this.dataForm.skuRealPrice = data.orderReturnApply.skuRealPrice this.dataForm.reason = data.orderReturnApply.reason this.dataForm.description述 = data.orderReturnApply.description述 this.dataForm.descPics = data.orderReturnApply.descPics this.dataForm.handleNote = data.orderReturnApply.handleNote this.dataForm.handleMan = data.orderReturnApply.handleMan this.dataForm.receiveMan = data.orderReturnApply.receiveMan this.dataForm.receiveTime = data.orderReturnApply.receiveTime this.dataForm.receiveNote = data.orderReturnApply.receiveNote this.dataForm.receivePhone = data.orderReturnApply.receivePhone this.dataForm.companyAddress = data.orderReturnApply.companyAddress } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/order/orderreturnapply/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'orderId': this.dataForm.orderId, 'skuId': this.dataForm.skuId, 'orderSn': this.dataForm.orderSn, 'createTime': this.dataForm.createTime, 'memberUsername': this.dataForm.memberUsername, 'returnAmount': this.dataForm.returnAmount, 'returnName': this.dataForm.returnName, 'returnPhone': this.dataForm.returnPhone, 'status': this.dataForm.status, 'handleTime': this.dataForm.handleTime, 'skuImg': this.dataForm.skuImg, 'skuName': this.dataForm.skuName, 'skuBrand': this.dataForm.skuBrand, 'skuAttrsVals': this.dataForm.skuAttrsVals, 'skuCount': this.dataForm.skuCount, 'skuPrice': this.dataForm.skuPrice, 'skuRealPrice': this.dataForm.skuRealPrice, 'reason': this.dataForm.reason, 'description述': this.dataForm.description述, 'descPics': this.dataForm.descPics, 'handleNote': this.dataForm.handleNote, 'handleMan': this.dataForm.handleMan, 'receiveMan': this.dataForm.receiveMan, 'receiveTime': this.dataForm.receiveTime, 'receiveNote': this.dataForm.receiveNote, 'receivePhone': this.dataForm.receivePhone, 'companyAddress': this.dataForm.companyAddress }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/orderreturnapply-add-or-update.vue
Vue
apache-2.0
14,313
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('order:orderreturnapply:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('order:orderreturnapply:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="orderId" header-align="center" align="center" label="order_id"> </el-table-column> <el-table-column prop="skuId" header-align="center" align="center" label="退货商品id"> </el-table-column> <el-table-column prop="orderSn" header-align="center" align="center" label="订单编号"> </el-table-column> <el-table-column prop="createTime" header-align="center" align="center" label="申请时间"> </el-table-column> <el-table-column prop="memberUsername" header-align="center" align="center" label="会员用户名"> </el-table-column> <el-table-column prop="returnAmount" header-align="center" align="center" label="退款金额"> </el-table-column> <el-table-column prop="returnName" header-align="center" align="center" label="退货人姓名"> </el-table-column> <el-table-column prop="returnPhone" header-align="center" align="center" label="退货人电话"> </el-table-column> <el-table-column prop="status" header-align="center" align="center" label="申请状态[0->待处理;1->退货中;2->已完成;3->已拒绝]"> </el-table-column> <el-table-column prop="handleTime" header-align="center" align="center" label="处理时间"> </el-table-column> <el-table-column prop="skuImg" header-align="center" align="center" label="商品图片"> </el-table-column> <el-table-column prop="skuName" header-align="center" align="center" label="商品名称"> </el-table-column> <el-table-column prop="skuBrand" header-align="center" align="center" label="商品品牌"> </el-table-column> <el-table-column prop="skuAttrsVals" header-align="center" align="center" label="商品销售属性(JSON)"> </el-table-column> <el-table-column prop="skuCount" header-align="center" align="center" label="退货数量"> </el-table-column> <el-table-column prop="skuPrice" header-align="center" align="center" label="商品单价"> </el-table-column> <el-table-column prop="skuRealPrice" header-align="center" align="center" label="商品实际支付单价"> </el-table-column> <el-table-column prop="reason" header-align="center" align="center" label="原因"> </el-table-column> <el-table-column prop="description述" header-align="center" align="center" label="描述"> </el-table-column> <el-table-column prop="descPics" header-align="center" align="center" label="凭证图片,以逗号隔开"> </el-table-column> <el-table-column prop="handleNote" header-align="center" align="center" label="处理备注"> </el-table-column> <el-table-column prop="handleMan" header-align="center" align="center" label="处理人员"> </el-table-column> <el-table-column prop="receiveMan" header-align="center" align="center" label="收货人"> </el-table-column> <el-table-column prop="receiveTime" header-align="center" align="center" label="收货时间"> </el-table-column> <el-table-column prop="receiveNote" header-align="center" align="center" label="收货备注"> </el-table-column> <el-table-column prop="receivePhone" header-align="center" align="center" label="收货电话"> </el-table-column> <el-table-column prop="companyAddress" header-align="center" align="center" label="公司收货地址"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './orderreturnapply-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/order/orderreturnapply/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/order/orderreturnapply/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/orderreturnapply.vue
Vue
apache-2.0
9,074
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="退货原因名" prop="name"> <el-input v-model="dataForm.name" placeholder="退货原因名"></el-input> </el-form-item> <el-form-item label="排序" prop="sort"> <el-input v-model="dataForm.sort" placeholder="排序"></el-input> </el-form-item> <el-form-item label="启用状态" prop="status"> <el-input v-model="dataForm.status" placeholder="启用状态"></el-input> </el-form-item> <el-form-item label="create_time" prop="createTime"> <el-input v-model="dataForm.createTime" placeholder="create_time"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, name: '', sort: '', status: '', createTime: '' }, dataRule: { name: [ { required: true, message: '退货原因名不能为空', trigger: 'blur' } ], sort: [ { required: true, message: '排序不能为空', trigger: 'blur' } ], status: [ { required: true, message: '启用状态不能为空', trigger: 'blur' } ], createTime: [ { required: true, message: 'create_time不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/order/orderreturnreason/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.name = data.orderReturnReason.name this.dataForm.sort = data.orderReturnReason.sort this.dataForm.status = data.orderReturnReason.status this.dataForm.createTime = data.orderReturnReason.createTime } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/order/orderreturnreason/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'name': this.dataForm.name, 'sort': this.dataForm.sort, 'status': this.dataForm.status, 'createTime': this.dataForm.createTime }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/orderreturnreason-add-or-update.vue
Vue
apache-2.0
3,789
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('order:orderreturnreason:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('order:orderreturnreason:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="name" header-align="center" align="center" label="退货原因名"> </el-table-column> <el-table-column prop="sort" header-align="center" align="center" label="排序"> </el-table-column> <el-table-column prop="status" header-align="center" align="center" label="启用状态"> </el-table-column> <el-table-column prop="createTime" header-align="center" align="center" label="create_time"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './orderreturnreason-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/order/orderreturnreason/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/order/orderreturnreason/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/orderreturnreason.vue
Vue
apache-2.0
5,361
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="秒杀订单超时关闭时间(分)" prop="flashOrderOvertime"> <el-input v-model="dataForm.flashOrderOvertime" placeholder="秒杀订单超时关闭时间(分)"></el-input> </el-form-item> <el-form-item label="正常订单超时时间(分)" prop="normalOrderOvertime"> <el-input v-model="dataForm.normalOrderOvertime" placeholder="正常订单超时时间(分)"></el-input> </el-form-item> <el-form-item label="发货后自动确认收货时间(天)" prop="confirmOvertime"> <el-input v-model="dataForm.confirmOvertime" placeholder="发货后自动确认收货时间(天)"></el-input> </el-form-item> <el-form-item label="自动完成交易时间,不能申请退货(天)" prop="finishOvertime"> <el-input v-model="dataForm.finishOvertime" placeholder="自动完成交易时间,不能申请退货(天)"></el-input> </el-form-item> <el-form-item label="订单完成后自动好评时间(天)" prop="commentOvertime"> <el-input v-model="dataForm.commentOvertime" placeholder="订单完成后自动好评时间(天)"></el-input> </el-form-item> <el-form-item label="会员等级【0-不限会员等级,全部通用;其他-对应的其他会员等级】" prop="memberLevel"> <el-input v-model="dataForm.memberLevel" placeholder="会员等级【0-不限会员等级,全部通用;其他-对应的其他会员等级】"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, flashOrderOvertime: '', normalOrderOvertime: '', confirmOvertime: '', finishOvertime: '', commentOvertime: '', memberLevel: '' }, dataRule: { flashOrderOvertime: [ { required: true, message: '秒杀订单超时关闭时间(分)不能为空', trigger: 'blur' } ], normalOrderOvertime: [ { required: true, message: '正常订单超时时间(分)不能为空', trigger: 'blur' } ], confirmOvertime: [ { required: true, message: '发货后自动确认收货时间(天)不能为空', trigger: 'blur' } ], finishOvertime: [ { required: true, message: '自动完成交易时间,不能申请退货(天)不能为空', trigger: 'blur' } ], commentOvertime: [ { required: true, message: '订单完成后自动好评时间(天)不能为空', trigger: 'blur' } ], memberLevel: [ { required: true, message: '会员等级【0-不限会员等级,全部通用;其他-对应的其他会员等级】不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/order/ordersetting/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.flashOrderOvertime = data.orderSetting.flashOrderOvertime this.dataForm.normalOrderOvertime = data.orderSetting.normalOrderOvertime this.dataForm.confirmOvertime = data.orderSetting.confirmOvertime this.dataForm.finishOvertime = data.orderSetting.finishOvertime this.dataForm.commentOvertime = data.orderSetting.commentOvertime this.dataForm.memberLevel = data.orderSetting.memberLevel } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/order/ordersetting/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'flashOrderOvertime': this.dataForm.flashOrderOvertime, 'normalOrderOvertime': this.dataForm.normalOrderOvertime, 'confirmOvertime': this.dataForm.confirmOvertime, 'finishOvertime': this.dataForm.finishOvertime, 'commentOvertime': this.dataForm.commentOvertime, 'memberLevel': this.dataForm.memberLevel }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/ordersetting-add-or-update.vue
Vue
apache-2.0
5,693
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('order:ordersetting:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('order:ordersetting:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="flashOrderOvertime" header-align="center" align="center" label="秒杀订单超时关闭时间(分)"> </el-table-column> <el-table-column prop="normalOrderOvertime" header-align="center" align="center" label="正常订单超时时间(分)"> </el-table-column> <el-table-column prop="confirmOvertime" header-align="center" align="center" label="发货后自动确认收货时间(天)"> </el-table-column> <el-table-column prop="finishOvertime" header-align="center" align="center" label="自动完成交易时间,不能申请退货(天)"> </el-table-column> <el-table-column prop="commentOvertime" header-align="center" align="center" label="订单完成后自动好评时间(天)"> </el-table-column> <el-table-column prop="memberLevel" header-align="center" align="center" label="会员等级【0-不限会员等级,全部通用;其他-对应的其他会员等级】"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './ordersetting-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/order/ordersetting/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/order/ordersetting/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/ordersetting.vue
Vue
apache-2.0
5,922
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="订单号(对外业务号)" prop="orderSn"> <el-input v-model="dataForm.orderSn" placeholder="订单号(对外业务号)"></el-input> </el-form-item> <el-form-item label="订单id" prop="orderId"> <el-input v-model="dataForm.orderId" placeholder="订单id"></el-input> </el-form-item> <el-form-item label="支付宝交易流水号" prop="alipayTradeNo"> <el-input v-model="dataForm.alipayTradeNo" placeholder="支付宝交易流水号"></el-input> </el-form-item> <el-form-item label="支付总金额" prop="totalAmount"> <el-input v-model="dataForm.totalAmount" placeholder="支付总金额"></el-input> </el-form-item> <el-form-item label="交易内容" prop="subject"> <el-input v-model="dataForm.subject" placeholder="交易内容"></el-input> </el-form-item> <el-form-item label="支付状态" prop="paymentStatus"> <el-input v-model="dataForm.paymentStatus" placeholder="支付状态"></el-input> </el-form-item> <el-form-item label="创建时间" prop="createTime"> <el-input v-model="dataForm.createTime" placeholder="创建时间"></el-input> </el-form-item> <el-form-item label="确认时间" prop="confirmTime"> <el-input v-model="dataForm.confirmTime" placeholder="确认时间"></el-input> </el-form-item> <el-form-item label="回调内容" prop="callbackContent"> <el-input v-model="dataForm.callbackContent" placeholder="回调内容"></el-input> </el-form-item> <el-form-item label="回调时间" prop="callbackTime"> <el-input v-model="dataForm.callbackTime" placeholder="回调时间"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, orderSn: '', orderId: '', alipayTradeNo: '', totalAmount: '', subject: '', paymentStatus: '', createTime: '', confirmTime: '', callbackContent: '', callbackTime: '' }, dataRule: { orderSn: [ { required: true, message: '订单号(对外业务号)不能为空', trigger: 'blur' } ], orderId: [ { required: true, message: '订单id不能为空', trigger: 'blur' } ], alipayTradeNo: [ { required: true, message: '支付宝交易流水号不能为空', trigger: 'blur' } ], totalAmount: [ { required: true, message: '支付总金额不能为空', trigger: 'blur' } ], subject: [ { required: true, message: '交易内容不能为空', trigger: 'blur' } ], paymentStatus: [ { required: true, message: '支付状态不能为空', trigger: 'blur' } ], createTime: [ { required: true, message: '创建时间不能为空', trigger: 'blur' } ], confirmTime: [ { required: true, message: '确认时间不能为空', trigger: 'blur' } ], callbackContent: [ { required: true, message: '回调内容不能为空', trigger: 'blur' } ], callbackTime: [ { required: true, message: '回调时间不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/order/paymentinfo/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.orderSn = data.paymentInfo.orderSn this.dataForm.orderId = data.paymentInfo.orderId this.dataForm.alipayTradeNo = data.paymentInfo.alipayTradeNo this.dataForm.totalAmount = data.paymentInfo.totalAmount this.dataForm.subject = data.paymentInfo.subject this.dataForm.paymentStatus = data.paymentInfo.paymentStatus this.dataForm.createTime = data.paymentInfo.createTime this.dataForm.confirmTime = data.paymentInfo.confirmTime this.dataForm.callbackContent = data.paymentInfo.callbackContent this.dataForm.callbackTime = data.paymentInfo.callbackTime } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/order/paymentinfo/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'orderSn': this.dataForm.orderSn, 'orderId': this.dataForm.orderId, 'alipayTradeNo': this.dataForm.alipayTradeNo, 'totalAmount': this.dataForm.totalAmount, 'subject': this.dataForm.subject, 'paymentStatus': this.dataForm.paymentStatus, 'createTime': this.dataForm.createTime, 'confirmTime': this.dataForm.confirmTime, 'callbackContent': this.dataForm.callbackContent, 'callbackTime': this.dataForm.callbackTime }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/paymentinfo-add-or-update.vue
Vue
apache-2.0
6,656
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('order:paymentinfo:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('order:paymentinfo:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="orderSn" header-align="center" align="center" label="订单号(对外业务号)"> </el-table-column> <el-table-column prop="orderId" header-align="center" align="center" label="订单id"> </el-table-column> <el-table-column prop="alipayTradeNo" header-align="center" align="center" label="支付宝交易流水号"> </el-table-column> <el-table-column prop="totalAmount" header-align="center" align="center" label="支付总金额"> </el-table-column> <el-table-column prop="subject" header-align="center" align="center" label="交易内容"> </el-table-column> <el-table-column prop="paymentStatus" header-align="center" align="center" label="支付状态"> </el-table-column> <el-table-column prop="createTime" header-align="center" align="center" label="创建时间"> </el-table-column> <el-table-column prop="confirmTime" header-align="center" align="center" label="确认时间"> </el-table-column> <el-table-column prop="callbackContent" header-align="center" align="center" label="回调内容"> </el-table-column> <el-table-column prop="callbackTime" header-align="center" align="center" label="回调时间"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './paymentinfo-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/order/paymentinfo/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/order/paymentinfo/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/paymentinfo.vue
Vue
apache-2.0
6,328
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="退款的订单" prop="orderReturnId"> <el-input v-model="dataForm.orderReturnId" placeholder="退款的订单"></el-input> </el-form-item> <el-form-item label="退款金额" prop="refund"> <el-input v-model="dataForm.refund" placeholder="退款金额"></el-input> </el-form-item> <el-form-item label="退款交易流水号" prop="refundSn"> <el-input v-model="dataForm.refundSn" placeholder="退款交易流水号"></el-input> </el-form-item> <el-form-item label="退款状态" prop="refundStatus"> <el-input v-model="dataForm.refundStatus" placeholder="退款状态"></el-input> </el-form-item> <el-form-item label="退款渠道[1-支付宝,2-微信,3-银联,4-汇款]" prop="refundChannel"> <el-input v-model="dataForm.refundChannel" placeholder="退款渠道[1-支付宝,2-微信,3-银联,4-汇款]"></el-input> </el-form-item> <el-form-item label="" prop="refundContent"> <el-input v-model="dataForm.refundContent" placeholder=""></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, orderReturnId: '', refund: '', refundSn: '', refundStatus: '', refundChannel: '', refundContent: '' }, dataRule: { orderReturnId: [ { required: true, message: '退款的订单不能为空', trigger: 'blur' } ], refund: [ { required: true, message: '退款金额不能为空', trigger: 'blur' } ], refundSn: [ { required: true, message: '退款交易流水号不能为空', trigger: 'blur' } ], refundStatus: [ { required: true, message: '退款状态不能为空', trigger: 'blur' } ], refundChannel: [ { required: true, message: '退款渠道[1-支付宝,2-微信,3-银联,4-汇款]不能为空', trigger: 'blur' } ], refundContent: [ { required: true, message: '不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/order/refundinfo/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.orderReturnId = data.refundInfo.orderReturnId this.dataForm.refund = data.refundInfo.refund this.dataForm.refundSn = data.refundInfo.refundSn this.dataForm.refundStatus = data.refundInfo.refundStatus this.dataForm.refundChannel = data.refundInfo.refundChannel this.dataForm.refundContent = data.refundInfo.refundContent } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/order/refundinfo/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'orderReturnId': this.dataForm.orderReturnId, 'refund': this.dataForm.refund, 'refundSn': this.dataForm.refundSn, 'refundStatus': this.dataForm.refundStatus, 'refundChannel': this.dataForm.refundChannel, 'refundContent': this.dataForm.refundContent }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/refundinfo-add-or-update.vue
Vue
apache-2.0
4,939
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('order:refundinfo:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('order:refundinfo:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="orderReturnId" header-align="center" align="center" label="退款的订单"> </el-table-column> <el-table-column prop="refund" header-align="center" align="center" label="退款金额"> </el-table-column> <el-table-column prop="refundSn" header-align="center" align="center" label="退款交易流水号"> </el-table-column> <el-table-column prop="refundStatus" header-align="center" align="center" label="退款状态"> </el-table-column> <el-table-column prop="refundChannel" header-align="center" align="center" label="退款渠道[1-支付宝,2-微信,3-银联,4-汇款]"> </el-table-column> <el-table-column prop="refundContent" header-align="center" align="center" label=""> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './refundinfo-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/order/refundinfo/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/order/refundinfo/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-order/src/main/resources/src/views/modules/order/refundinfo.vue
Vue
apache-2.0
5,711
package com.kong.meirimall.product; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.annotation.ComponentScan; import org.springframework.transaction.annotation.EnableTransactionManagement; @EnableCaching @EnableFeignClients("com.kong.meirimall.product.feign") @ComponentScan("com.kong.meirimall") @EnableDiscoveryClient @SpringBootApplication @EnableTransactionManagement public class MeirimallProductApplication { public static void main(String[] args) { SpringApplication.run(MeirimallProductApplication.class, args); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/MeirimallProductApplication.java
Java
apache-2.0
846
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.product.entity.AttrAttrgroupRelationEntity; import com.kong.meirimall.product.service.AttrAttrgroupRelationService; /** * 属性&属性分组关联 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/attrattrgrouprelation") public class AttrAttrgroupRelationController { @Autowired private AttrAttrgroupRelationService attrAttrgroupRelationService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:attrattrgrouprelation:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = attrAttrgroupRelationService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("product:attrattrgrouprelation:info") public R info(@PathVariable("id") Long id){ AttrAttrgroupRelationEntity attrAttrgroupRelation = attrAttrgroupRelationService.getById(id); return R.ok().put("attrAttrgroupRelation", attrAttrgroupRelation); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:attrattrgrouprelation:save") public R save(@RequestBody AttrAttrgroupRelationEntity attrAttrgroupRelation){ attrAttrgroupRelationService.save(attrAttrgroupRelation); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:attrattrgrouprelation:update") public R update(@RequestBody AttrAttrgroupRelationEntity attrAttrgroupRelation){ attrAttrgroupRelationService.updateById(attrAttrgroupRelation); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:attrattrgrouprelation:delete") public R delete(@RequestBody Long[] ids){ attrAttrgroupRelationService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/AttrAttrgroupRelationController.java
Java
apache-2.0
2,596
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.List; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import com.kong.meirimall.product.entity.ProductAttrValueEntity; import com.kong.meirimall.product.service.ProductAttrValueService; import com.kong.meirimall.product.vo.AttrResponseVo; import com.kong.meirimall.product.vo.AttrVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import com.kong.meirimall.product.service.AttrService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 商品属性 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/attr") public class AttrController { @Autowired private AttrService attrService; @Autowired ProductAttrValueService productAttrValueService; ///api/product/attr/base/listforspu/29 @GetMapping("/base/listforspu/{spuId}") public R baseAttrListforspu(@PathVariable Long spuId){ List<ProductAttrValueEntity> attrEntities=productAttrValueService.baseAttrListforspu(spuId); return R.ok().put("data",attrEntities); } // base 规格参数(基本属性) sale 销售属性 ///product/attr/base/list/{catlogId} @GetMapping("/{attrtype}/list/{catalogId}") public R baseList(@RequestParam Map<String,Object> params, @PathVariable("catalogId") Long catalogId, @PathVariable("attrtype") String type ){ PageUtils page=attrService.queryPageAttr(params,catalogId,type); return R.ok().put("page",page); } /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:attr:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = attrService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{attrId}") //@RequiresPermissions("product:attr:info") public R info(@PathVariable("attrId") Long attrId){ // AttrEntity attr = attrService.getById(attrId); AttrResponseVo respVo = attrService.geAttrInfo(attrId); return R.ok().put("attr", respVo); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:attr:save") public R save(@RequestBody AttrVo attrVo){ attrService.saveAttr(attrVo); return R.ok(); } //指定 spuId 修改规格属性 @PostMapping("/update/{spuId}") public R updateSquAttr(@PathVariable Long spuId, @RequestBody List<ProductAttrValueEntity> entities){ productAttrValueService.updateSpuAttr(spuId,entities); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:attr:update") public R update(@RequestBody AttrVo attrVo){ attrService.updateAttr(attrVo); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:attr:delete") public R delete(@RequestBody Long[] attrIds){ attrService.removeByIds(Arrays.asList(attrIds)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/AttrController.java
Java
apache-2.0
3,308
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.List; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import com.kong.meirimall.product.entity.AttrEntity; import com.kong.meirimall.product.service.AttrAttrgroupRelationService; import com.kong.meirimall.product.service.AttrService; import com.kong.meirimall.product.service.CategoryService; import com.kong.meirimall.product.vo.AttrGroupRelationVo; import com.kong.meirimall.product.vo.AttrGroupWithAttrsVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import com.kong.meirimall.product.entity.AttrGroupEntity; import com.kong.meirimall.product.service.AttrGroupService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 属性分组 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/attrgroup") public class AttrGroupController { @Autowired private AttrGroupService attrGroupService; @Autowired private CategoryService categoryService; @Autowired AttrService attrService; @Autowired AttrAttrgroupRelationService attrAttrgroupRelationService; //根据 catalogId 获得所有属性分组,并找到每个分组下的 所有属性 //(要将分组和属性一起返回,所以要新建 Vo,其中属性用List 存放) ///product/attrgroup/225/withattr @GetMapping("/{catalogId}/withattr") public R getAttrGroupWithAttrs(@PathVariable("catalogId") Long catalogId) { List<AttrGroupWithAttrsVo> vos=attrGroupService.getAttrGroupWithAttrsBycatalogId(catalogId); return R.ok().put("data", vos); } //新增关联关系 ///product/attrgroup/attr/relation //{attrId: 8, attrGroupId: 8} 接收到数组就用 @RequestBody,用 List<> 没什么区别 @PostMapping("/attr/relation") public R addRelation(@RequestBody List<AttrGroupRelationVo> vos){ attrAttrgroupRelationService.saveBatch(vos); return R.ok(); } //查询分组未关联的属性,返回分页对象 ///product/attrgroup/{attrgroupId}/noattr/relation @GetMapping("/{attrgroupId}/noattr/relation") public R attrNoRelation(@PathVariable("attrgroupId") Long attrgroupId, @RequestParam Map<String, Object> params){ //params 是页面分页的参数 PageUtils page=attrService.getNoRelationAttr(params,attrgroupId); return R.ok().put("page",page); } //查询分组关联的属性,返回对象列表 ///product/attrgroup/{attrgroupId}/attr/relation @GetMapping("/{attrgroupId}/attr/relation") public R attrRelation(@PathVariable("attrgroupId") Long attrgroupId){ List<AttrEntity> entities=attrService.getRelationAttr(attrgroupId); return R.ok().put("data",entities); } // 移除关联属性,要放在 AttrgroupController 中,因为前置路径 ///product/attrgroup/attr/relation/delete @PostMapping("/attr/relation/delete") public R deleteRelation(@RequestBody AttrGroupRelationVo[] vos){ attrService.deleteRelation(vos); return R.ok(); } /** * 列表 */ @RequestMapping("/list/{catalogId}") //@RequiresPermissions("product:attrgroup:list") public R list(@RequestParam Map<String, Object> params,@PathVariable("catalogId") Long catalogId){ PageUtils pageUtils = attrGroupService.queryPage(params, catalogId); return R.ok().put("page", pageUtils); } /** * 信息 */ @RequestMapping("/info/{attrGroupId}") //@RequiresPermissions("product:attrgroup:info") public R info(@PathVariable("attrGroupId") Long attrGroupId){ AttrGroupEntity attrGroup = attrGroupService.getById(attrGroupId); Long catalogId = attrGroup.getCatalogId(); //查三级分类的完整路径,就用 三级分类的 service CategoryService Long[] catelogPath=categoryService.findCatelogPath(catalogId); attrGroup.setCatelogPath(catelogPath); return R.ok().put("attrGroup", attrGroup); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:attrgroup:save") public R save(@RequestBody AttrGroupEntity attrGroup){ attrGroupService.save(attrGroup); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:attrgroup:update") public R update(@RequestBody AttrGroupEntity attrGroup){ attrGroupService.updateById(attrGroup); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:attrgroup:delete") public R delete(@RequestBody Long[] attrGroupIds){ attrGroupService.removeByIds(Arrays.asList(attrGroupIds)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/AttrGroupController.java
Java
apache-2.0
4,929
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import com.kong.common.utils.R; import com.kong.common.valid.AddGroup; import com.kong.common.valid.UpdateGroup; import com.kong.common.valid.UpdateStatusGroup; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.product.entity.BrandEntity; import com.kong.meirimall.product.service.BrandService; import com.kong.common.utils.PageUtils; /** * 品牌 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/brand") public class BrandController { @Autowired private BrandService brandService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:brand:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = brandService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{brandId}") //@RequiresPermissions("product:brand:info") public R info(@PathVariable("brandId") Long brandId){ BrandEntity brand = brandService.getById(brandId); return R.ok().put("brand", brand); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:brand:save") public R save(@Validated({AddGroup.class}) @RequestBody BrandEntity brand /*, BindingResult result*/){ // if(result.hasErrors()){ // Map<String,String> map = new HashMap<>(); // // 获取校验的错误结果 // result.getFieldErrors().forEach(fieldError -> { // // FieldError 错误提示 // String message = fieldError.getDefaultMessage(); // // 获取错误属性名 // String field = fieldError.getField(); // map.put(field, message); // }); // return R.error(400,"提交的数据不合法").put("data", map); // } brandService.save(brand); return R.ok(); } /** * 增加时修改全部 * 品牌名修改时不仅品牌表变,updateDtail 中还要修改 关联表 */ @RequestMapping("/update") //@RequiresPermissions("product:brand:update") public R update(@Validated(UpdateGroup.class) @RequestBody BrandEntity brand){ brandService.updateDetail(brand); return R.ok(); } /** * 只修改状态 */ @RequestMapping("/update/status") //@RequiresPermissions("product:brand:update") public R updateStatus(@Validated(UpdateStatusGroup.class) @RequestBody BrandEntity brand){ brandService.updateById(brand); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:brand:delete") public R delete(@RequestBody Long[] brandIds){ brandService.removeByIds(Arrays.asList(brandIds)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/BrandController.java
Java
apache-2.0
3,418
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.stream.Collectors; //import org.apache.shiro.authz.annotation.RequiresPermissions; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.kong.meirimall.product.entity.BrandEntity; import com.kong.meirimall.product.vo.BrandVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import com.kong.meirimall.product.entity.CategoryBrandRelationEntity; import com.kong.meirimall.product.service.CategoryBrandRelationService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 品牌分类关联 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/categorybrandrelation") public class CategoryBrandRelationController { @Autowired private CategoryBrandRelationService categoryBrandRelationService; //显示 一个分类的品牌列表,返回 品牌名 和 id(一般都顺带) ///product/categorybrandrelation/brands/list @GetMapping("/brands/list") public R relationBrandsList(@RequestParam(value = "catId",required = true) Long catId) { List<BrandEntity> entities=categoryBrandRelationService.getBrandsByCatId(catId); List<BrandVo> vos = entities.stream().map(item -> { BrandVo brandVo = new BrandVo(); //由于 两个类中属性的名称不一样,不能属性对拷 brandVo.setBrandId(item.getBrandId()); brandVo.setBrandName(item.getName()); return brandVo; }).collect(Collectors.toList()); return R.ok().put("data",vos); } /** * 获取当前品牌列表关联的所有分类列表 * @param brandId * @return */ @GetMapping("/catelog/list") public R catelogList(@RequestParam("brandId") Long brandId){ List<CategoryBrandRelationEntity> data=categoryBrandRelationService.list( new QueryWrapper<CategoryBrandRelationEntity>().eq("brand_id", brandId)); return R.ok().put("data", data); } /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:categorybrandrelation:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = categoryBrandRelationService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("product:categorybrandrelation:info") public R info(@PathVariable("id") Long id){ CategoryBrandRelationEntity categoryBrandRelation = categoryBrandRelationService.getById(id); return R.ok().put("categoryBrandRelation", categoryBrandRelation); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:categorybrandrelation:save") public R save(@RequestBody CategoryBrandRelationEntity categoryBrandRelation){ //此处不能用原生的 .save,因为前端没有传 品牌名和分类名,接收到的是 两个的 id //表中有这两个冗余字段,是因为大表关联会影响数据库性能,电商系统大表从不关联 categoryBrandRelationService.saveDetail(categoryBrandRelation); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:categorybrandrelation:update") public R update(@RequestBody CategoryBrandRelationEntity categoryBrandRelation){ categoryBrandRelationService.updateById(categoryBrandRelation); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:categorybrandrelation:delete") public R delete(@RequestBody Long[] ids){ categoryBrandRelationService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/CategoryBrandRelationController.java
Java
apache-2.0
3,977
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.List; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.product.entity.CategoryEntity; import com.kong.meirimall.product.service.CategoryService; import com.kong.common.utils.R; /** * 商品三级分类 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/category") public class CategoryController { @Autowired private CategoryService categoryService; /** * 查出所有分类以及子分类,以树形结构组装起来 */ @RequestMapping("/list/tree") public R list(){ List<CategoryEntity> entities =categoryService.listWithTree(); return R.ok().put("data", entities); } /** * 信息 */ @RequestMapping("/info/{catId}") //@RequiresPermissions("product:category:info") public R info(@PathVariable("catId") Long catId){ CategoryEntity category = categoryService.getById(catId); return R.ok().put("data", category); // 此处将 category 改为 data,默认所有数据都放在 data 里面 } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:category:save") public R save(@RequestBody CategoryEntity category){ categoryService.save(category); return R.ok(); } // 批量修改 @RequestMapping("/update/sort") public R updateSort(@RequestBody CategoryEntity[] categorys){ categoryService.updateBatchById(Arrays.asList(categorys)); return R.ok(); } @RequestMapping("/update") public R update(@RequestBody CategoryEntity category){ categoryService.updateCascade(category); return R.ok(); } /** * 删除 * SpringMVC 会自动将请求体的数据(json),转化为对应的对象 * 数组 postman 要发送 [] 类型请求 */ @RequestMapping("/delete") //@RequiresPermissions("product:category:delete") public R delete(@RequestBody Long[] catIds){ categoryService.removeByIds(Arrays.asList(catIds)); categoryService.removeMenueByIds(Arrays.asList(catIds)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/CategoryController.java
Java
apache-2.0
2,552
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.product.entity.CommentReplayEntity; import com.kong.meirimall.product.service.CommentReplayService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 商品评价回复关系 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/commentreplay") public class CommentReplayController { @Autowired private CommentReplayService commentReplayService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:commentreplay:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = commentReplayService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("product:commentreplay:info") public R info(@PathVariable("id") Long id){ CommentReplayEntity commentReplay = commentReplayService.getById(id); return R.ok().put("commentReplay", commentReplay); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:commentreplay:save") public R save(@RequestBody CommentReplayEntity commentReplay){ commentReplayService.save(commentReplay); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:commentreplay:update") public R update(@RequestBody CommentReplayEntity commentReplay){ commentReplayService.updateById(commentReplay); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:commentreplay:delete") public R delete(@RequestBody Long[] ids){ commentReplayService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/CommentReplayController.java
Java
apache-2.0
2,385
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.product.entity.ProductAttrValueEntity; import com.kong.meirimall.product.service.ProductAttrValueService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * spu属性值 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/productattrvalue") public class ProductAttrValueController { @Autowired private ProductAttrValueService productAttrValueService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:productattrvalue:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = productAttrValueService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("product:productattrvalue:info") public R info(@PathVariable("id") Long id){ ProductAttrValueEntity productAttrValue = productAttrValueService.getById(id); return R.ok().put("productAttrValue", productAttrValue); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:productattrvalue:save") public R save(@RequestBody ProductAttrValueEntity productAttrValue){ productAttrValueService.save(productAttrValue); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:productattrvalue:update") public R update(@RequestBody ProductAttrValueEntity productAttrValue){ productAttrValueService.updateById(productAttrValue); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:productattrvalue:delete") public R delete(@RequestBody Long[] ids){ productAttrValueService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/ProductAttrValueController.java
Java
apache-2.0
2,450
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.product.entity.SkuImagesEntity; import com.kong.meirimall.product.service.SkuImagesService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * sku图片 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/skuimages") public class SkuImagesController { @Autowired private SkuImagesService skuImagesService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:skuimages:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = skuImagesService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("product:skuimages:info") public R info(@PathVariable("id") Long id){ SkuImagesEntity skuImages = skuImagesService.getById(id); return R.ok().put("skuImages", skuImages); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:skuimages:save") public R save(@RequestBody SkuImagesEntity skuImages){ skuImagesService.save(skuImages); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:skuimages:update") public R update(@RequestBody SkuImagesEntity skuImages){ skuImagesService.updateById(skuImages); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:skuimages:delete") public R delete(@RequestBody Long[] ids){ skuImagesService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/SkuImagesController.java
Java
apache-2.0
2,266
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.product.entity.SkuInfoEntity; import com.kong.meirimall.product.service.SkuInfoService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * sku信息 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/skuinfo") public class SkuInfoController { @Autowired private SkuInfoService skuInfoService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:skuinfo:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = skuInfoService.queryPageByCondition(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{skuId}") //@RequiresPermissions("product:skuinfo:info") public R info(@PathVariable("skuId") Long skuId){ SkuInfoEntity skuInfo = skuInfoService.getById(skuId); return R.ok().put("skuInfo", skuInfo); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:skuinfo:save") public R save(@RequestBody SkuInfoEntity skuInfo){ skuInfoService.save(skuInfo); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:skuinfo:update") public R update(@RequestBody SkuInfoEntity skuInfo){ skuInfoService.updateById(skuInfo); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:skuinfo:delete") public R delete(@RequestBody Long[] skuIds){ skuInfoService.removeByIds(Arrays.asList(skuIds)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/SkuInfoController.java
Java
apache-2.0
2,243
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.product.entity.SkuSaleAttrValueEntity; import com.kong.meirimall.product.service.SkuSaleAttrValueService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * sku销售属性&值 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/skusaleattrvalue") public class SkuSaleAttrValueController { @Autowired private SkuSaleAttrValueService skuSaleAttrValueService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:skusaleattrvalue:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = skuSaleAttrValueService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("product:skusaleattrvalue:info") public R info(@PathVariable("id") Long id){ SkuSaleAttrValueEntity skuSaleAttrValue = skuSaleAttrValueService.getById(id); return R.ok().put("skuSaleAttrValue", skuSaleAttrValue); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:skusaleattrvalue:save") public R save(@RequestBody SkuSaleAttrValueEntity skuSaleAttrValue){ skuSaleAttrValueService.save(skuSaleAttrValue); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:skusaleattrvalue:update") public R update(@RequestBody SkuSaleAttrValueEntity skuSaleAttrValue){ skuSaleAttrValueService.updateById(skuSaleAttrValue); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:skusaleattrvalue:delete") public R delete(@RequestBody Long[] ids){ skuSaleAttrValueService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/SkuSaleAttrValueController.java
Java
apache-2.0
2,458
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.product.entity.SpuCommentEntity; import com.kong.meirimall.product.service.SpuCommentService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 商品评价 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/spucomment") public class SpuCommentController { @Autowired private SpuCommentService spuCommentService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:spucomment:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = spuCommentService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("product:spucomment:info") public R info(@PathVariable("id") Long id){ SpuCommentEntity spuComment = spuCommentService.getById(id); return R.ok().put("spuComment", spuComment); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:spucomment:save") public R save(@RequestBody SpuCommentEntity spuComment){ spuCommentService.save(spuComment); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:spucomment:update") public R update(@RequestBody SpuCommentEntity spuComment){ spuCommentService.updateById(spuComment); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:spucomment:delete") public R delete(@RequestBody Long[] ids){ spuCommentService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/SpuCommentController.java
Java
apache-2.0
2,295
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.product.entity.SpuImagesEntity; import com.kong.meirimall.product.service.SpuImagesService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * spu图片 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/spuimages") public class SpuImagesController { @Autowired private SpuImagesService spuImagesService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:spuimages:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = spuImagesService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("product:spuimages:info") public R info(@PathVariable("id") Long id){ SpuImagesEntity spuImages = spuImagesService.getById(id); return R.ok().put("spuImages", spuImages); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:spuimages:save") public R save(@RequestBody SpuImagesEntity spuImages){ spuImagesService.save(spuImages); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:spuimages:update") public R update(@RequestBody SpuImagesEntity spuImages){ spuImagesService.updateById(spuImages); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:spuimages:delete") public R delete(@RequestBody Long[] ids){ spuImagesService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/SpuImagesController.java
Java
apache-2.0
2,266
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import com.kong.meirimall.product.vo.SpuSaveVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import com.kong.meirimall.product.entity.SpuInfoEntity; import com.kong.meirimall.product.service.SpuInfoService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * spu信息 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/spuinfo") public class SpuInfoController { @Autowired private SpuInfoService spuInfoService; //商品上架功能 ///http://localhost:88/api/product/spuinfo/{spuId}/up @PostMapping("/{spuId}/up") public R up(@PathVariable("spuId") Long spuId) { spuInfoService.up(spuId); return R.ok(); } /** * 列表 */ /** * status: 1 * key: * brandId: 20 * catalogId: 225 * page: 1 * limit: 10 * 传过来的参数(载荷中看到没有组成对象) + 页面参数 太多了,用 map 接收 */ @RequestMapping("/list") //@RequiresPermissions("product:spuinfo:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = spuInfoService.queryPageByCondition(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("product:spuinfo:info") public R info(@PathVariable("id") Long id){ SpuInfoEntity spuInfo = spuInfoService.getById(id); return R.ok().put("spuInfo", spuInfo); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:spuinfo:save") public R save(@RequestBody SpuSaveVo spuSaveVo){ // spuInfoService.save(spuInfo); spuInfoService.saveSpuInfo(spuSaveVo); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:spuinfo:update") public R update(@RequestBody SpuInfoEntity spuInfo){ spuInfoService.updateById(spuInfo); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:spuinfo:delete") public R delete(@RequestBody Long[] ids){ spuInfoService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/SpuInfoController.java
Java
apache-2.0
2,545
package com.kong.meirimall.product.app; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.product.entity.SpuInfoDescEntity; import com.kong.meirimall.product.service.SpuInfoDescService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * spu信息介绍 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @RestController @RequestMapping("product/spuinfodesc") public class SpuInfoDescController { @Autowired private SpuInfoDescService spuInfoDescService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("product:spuinfodesc:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = spuInfoDescService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{spuId}") //@RequiresPermissions("product:spuinfodesc:info") public R info(@PathVariable("spuId") Long spuId){ SpuInfoDescEntity spuInfoDesc = spuInfoDescService.getById(spuId); return R.ok().put("spuInfoDesc", spuInfoDesc); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("product:spuinfodesc:save") public R save(@RequestBody SpuInfoDescEntity spuInfoDesc){ spuInfoDescService.save(spuInfoDesc); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("product:spuinfodesc:update") public R update(@RequestBody SpuInfoDescEntity spuInfoDesc){ spuInfoDescService.updateById(spuInfoDesc); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("product:spuinfodesc:delete") public R delete(@RequestBody Long[] spuIds){ spuInfoDescService.removeByIds(Arrays.asList(spuIds)); return R.ok(); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/app/SpuInfoDescController.java
Java
apache-2.0
2,342
package com.kong.meirimall.product.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.cache.CacheProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.cache.RedisCacheConfiguration; import org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer; import org.springframework.data.redis.serializer.RedisSerializationContext; import org.springframework.data.redis.serializer.StringRedisSerializer; @EnableConfigurationProperties(CacheProperties.class) @Configuration @EnableCaching public class CacheConfig { @Autowired CacheProperties cacheProperties; @Bean RedisCacheConfiguration redisCacheConfiguration(CacheProperties cacheProperties){ // 自己配,不配则用默认的 RedisCacheConfiguration config = RedisCacheConfiguration.defaultCacheConfig(); config = config.serializeKeysWith(RedisSerializationContext.SerializationPair.fromSerializer(new StringRedisSerializer())); config = config.serializeValuesWith(RedisSerializationContext.SerializationPair.fromSerializer(new GenericJackson2JsonRedisSerializer())); // 由于修改了默认的 RedisCacheConfiguration,必须让 配置文件中的配置都生效 CacheProperties.Redis redisProperties = cacheProperties.getRedis(); if(redisProperties.getTimeToLive() != null){ config = config.entryTtl(redisProperties.getTimeToLive()); } if(redisProperties.getKeyPrefix() != null){ config = config.prefixKeysWith(redisProperties.getKeyPrefix()); } if(!redisProperties.isCacheNullValues()){ config = config.disableCachingNullValues(); } if (!redisProperties.isUseKeyPrefix()){ config = config.disableKeyPrefix(); } return config; } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/config/CacheConfig.java
Java
apache-2.0
2,106
package com.kong.meirimall.product.config; import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; import org.mybatis.spring.annotation.MapperScan; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; @Configuration @EnableTransactionManagement //开启使用事务 @MapperScan("com.kong.meirimall.product.dao") public class MyBatisConfig { /** * 添加分页插件 */ @Bean public PaginationInterceptor paginationInterceptor() { PaginationInterceptor paginationInterceptor = new PaginationInterceptor(); //设置请求的页面大于最大页后操作,true 调回到首页,false 继续请求,默认 false paginationInterceptor.setOverflow(true); //设置最大单页限制数量,默认 500 条,-1 不受限制 paginationInterceptor.setLimit(1000); return paginationInterceptor; } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/config/MyBatisConfig.java
Java
apache-2.0
1,026
package com.kong.meirimall.product.config; import org.redisson.Redisson; import org.redisson.api.RedissonClient; import org.redisson.config.Config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.io.IOException; @Configuration public class MyRedissionConfig { @Bean(destroyMethod = "shutdown") RedissonClient redisson() throws IOException { // 创建 redis 单节点模式配置 Config config = new Config(); config.useSingleServer().setAddress("redis://127.0.0.1:6379"); // 根据 config 创建 RedissionClient 实例 return Redisson.create(config); } }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/config/MyRedissionConfig.java
Java
apache-2.0
687
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.AttrAttrgroupRelationEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 属性&属性分组关联 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> { void deleteBatchRelation(@Param("entities") List<AttrAttrgroupRelationEntity> relationEntities); }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/AttrAttrgroupRelationDao.java
Java
apache-2.0
596
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.AttrEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 商品属性 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface AttrDao extends BaseMapper<AttrEntity> { List<Long> selectSearchAttrIds(@Param("attrIds") List<Long> attrIds); }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/AttrDao.java
Java
apache-2.0
505
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.AttrGroupEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 属性分组 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> { }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/AttrGroupDao.java
Java
apache-2.0
379
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.BrandEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 品牌 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface BrandDao extends BaseMapper<BrandEntity> { }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/BrandDao.java
Java
apache-2.0
361
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.CategoryBrandRelationEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; /** * 品牌分类关联 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface CategoryBrandRelationDao extends BaseMapper<CategoryBrandRelationEntity> { void updateCategory(@Param("catalogId") Long catId, @Param("catelogName") String name); }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/CategoryBrandRelationDao.java
Java
apache-2.0
556
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.CategoryEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 商品三级分类 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface CategoryDao extends BaseMapper<CategoryEntity> { }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/CategoryDao.java
Java
apache-2.0
382
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.CommentReplayEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 商品评价回复关系 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface CommentReplayDao extends BaseMapper<CommentReplayEntity> { }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/CommentReplayDao.java
Java
apache-2.0
403
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.ProductAttrValueEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * spu属性值 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface ProductAttrValueDao extends BaseMapper<ProductAttrValueEntity> { }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/ProductAttrValueDao.java
Java
apache-2.0
400
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.SkuImagesEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * sku图片 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface SkuImagesDao extends BaseMapper<SkuImagesEntity> { }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/SkuImagesDao.java
Java
apache-2.0
376
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.SkuInfoEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * sku信息 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface SkuInfoDao extends BaseMapper<SkuInfoEntity> { }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/SkuInfoDao.java
Java
apache-2.0
370
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.SkuSaleAttrValueEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * sku销售属性&值 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface SkuSaleAttrValueDao extends BaseMapper<SkuSaleAttrValueEntity> { }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/SkuSaleAttrValueDao.java
Java
apache-2.0
407
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.SpuCommentEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 商品评价 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface SpuCommentDao extends BaseMapper<SpuCommentEntity> { }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/SpuCommentDao.java
Java
apache-2.0
382
package com.kong.meirimall.product.dao; import com.kong.meirimall.product.entity.SpuImagesEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * spu图片 * * @author kong * @email kong@gmail.com * @date 2024-10-03 18:13:07 */ @Mapper public interface SpuImagesDao extends BaseMapper<SpuImagesEntity> { }
2401_83448718/meirimall
meirimall-product/src/main/java/com/kong/meirimall/product/dao/SpuImagesDao.java
Java
apache-2.0
376