Browse Source

续期问题

shish 2 years ago
parent
commit
0faa0aadf1

+ 2 - 0
pt/src/cool/request/index.js

@@ -47,12 +47,14 @@ import ptCpItem from '@/service/pt-cp-item/index';
 import ptItem from '@/service/pt-item/index';
 import ptItemCatRelate from '@/service/pt-item-cat-relate/index';
 import apply from '@/service/apply/index';
+import renew from '@/service/renew/index';
 
 export function SET_SERVICE({ store }) {
 	// const files = require.context('@/service/', true, /\.js$/);
 	// const ignore = ['./request.js'];
 
 	let modules = {
+		renew,
 		ptItemCatRelate,
 		ptItem,
 		ptCpItem,

+ 1 - 1
pt/src/mock/userInfo.js

@@ -167,7 +167,7 @@ let menu = {
 		{id: '12',parentId: '1',name: '商家列表',type: 1,icon: 'icongongzuotai',orderNum: 1,router: '/saas/shop/list',viewPath: 'saas/shop/list',keepAlive: 1},
 		{id: '14',parentId: '1',name: '员工管理',type: 1,icon: 'icongongzuotai',orderNum: 1,router: '/saas/shop/manage',viewPath: 'saas/shop/manage',keepAlive: 1},
 		{id: '15',parentId: '1',name: '小程序',type: 1,icon: 'icongongzuotai',orderNum: 1,router: '/saas/shop/upgrade',viewPath: 'saas/shop/upgrade',keepAlive: 1},
-		{id: '16',parentId: '1',name: '付费订单',type: 1,icon: 'icongongzuotai',orderNum: 1,router: '/saas/shop/buy',viewPath: 'saas/shop/buy',keepAlive: 1},
+		{id: '16',parentId: '1',name: '续期订单',type: 1,icon: 'icongongzuotai',orderNum: 1,router: '/saas/shop/buy',viewPath: 'saas/shop/buy',keepAlive: 1},
         {id: '17',parentId: '1',name: '提现申请',type: 1,icon: 'icongongzuotai',orderNum: 1,router: '/saas/shop/deposit',viewPath: 'saas/shop/deposit',keepAlive: 1},
 		{id: '10',parentId: null,name: '资产',type: 0,icon: 'icongongzuotai',orderNum: 1,router: '',viewPath: '',keepAlive: 1},
 		{id: '101',parentId: '10',name: '余额明细',type: 1,icon: 'icongongzuotai',orderNum: 1,router: '/assets/ptYeChange',viewPath: 'views/assets/ptYeChange',keepAlive: 1},

+ 68 - 37
pt/src/saas/shop/buy.vue

@@ -1,6 +1,7 @@
 <template>
 	<div class="app-list-content">
-		<x-crud class="liu-crud-wrap" @load="onLoad"> </x-crud>
+		<x-crud class="liu-crud-wrap" @load="onLoad">
+		</x-crud>
 	</div>
 </template>
 
@@ -8,79 +9,109 @@
 export default {
 	data() {
 		return {
-			// x-crud
 			app: null
 		};
 	},
 	mounted() {},
 	methods: {
-		// crud
 		onLoad({ ctx, app }) {
 			this.app = app;
-			let applyHost = () => {
-				return this.$service.saasShop.buyList();
-			};
-			ctx.service({
-				page: applyHost
-			})
+			ctx.service(this.$service.renew)
 				.set('table', {
 					columns: [
 						{
 							prop: 'id',
 							label: 'ID',
-							align: 'center'
+							align: 'center',
+							width: 90,
+						},
+						{
+							prop: 'orderSn',
+							label: '编号',
+							align: 'center',
+							width: 130,
+						},
+						{
+							prop: 'payWay',
+							label: '支付方式',
+							align: 'center',
+							width: 80,
 						},
 						{
-							prop: 'name',
-							label: '花店名称',
-							align: 'center'
+							prop: 'shopAdminName',
+							label: '付款人',
+							align: 'center',
+							width: 100,
 						},
 						{
-							prop: 'userName',
-							label: '店长',
-							align: 'center'
+							prop: 'sjName',
+							label: '商家',
+							align: 'center',
+							width: 130,
 						},
 						{
-							prop: 'mobile',
-							label: '手机号',
-							align: 'center'
+							prop: 'shopName',
+							label: '门店',
+							align: 'center',
+							width: 80,
 						},
 						{
-							prop: 'prePrice',
-							label: '付款金额',
+							prop: 'pfLevel',
+							label: '等级',
 							align: 'center',
-							emptyText: '无'
+							width: 80,
 						},
 						{
-							prop: 'createTime',
-							label: '付款时间',
+							prop: 'actPrice',
+							label: '金额',
 							align: 'center',
-							emptyText: ''
+							emptyText: ''
 						},
 						{
-							prop: 'updateTime',
-							label: '到期时间',
+							prop: 'year',
+							label: '年数',
 							align: 'center',
-							emptyText: ''
+							emptyText: ''
 						},
 						{
-							prop: 'setName',
-							label: '套餐',
+							prop: 'payTime',
+							label: '支付时间',
 							align: 'center',
-							emptyText: '无'
-						}
+							emptyText: ''
+						},
+						{
+							prop: 'status',
+							label: '状态',
+							align: 'center',
+							emptyText: ''
+						},
+						{
+							prop: 'beforeDeadline',
+							label: '续前过期',
+							align: 'center',
+							emptyText: ''
+						},
+						{
+							prop: 'deadline',
+							label: '续后过期',
+							align: 'center',
+							emptyText: ''
+						},
+						{
+							prop: 'addTime',
+							label: '创建时间',
+							align: 'center',
+							emptyText: ''
+						},
 					],
-					// 操作列
 					op: {
-						visible: false, // 是否显示
-						// 同 element-ui Table-column Attributes
+						visible: true,
 						props: {
-							width: 150,
+							width: 100,
 							align: 'center',
 							fixed: 'right',
 							label: '操作'
 						},
-						// 布局,请移步 `layout`
 						layout: []
 					}
 				})

+ 6 - 0
pt/src/service/renew/index.js

@@ -0,0 +1,6 @@
+import { BaseService, Service } from '@/cool';
+
+@Service('renew')
+export class RenewService extends BaseService {}
+
+export default new RenewService();

+ 1 - 1
pt/src/store/modules/menu.js

@@ -179,7 +179,7 @@ let menu = {
 		{
 			id: '14',
 			parentId: '1',
-			name: '付费订单',
+			name: '续期订单',
 			type: 1,
 			icon: 'icongongzuotai',
 			orderNum: 1,