shish 2 years ago
parent
commit
96b96c9e2e

+ 4 - 0
ghsApp/src/api/book/index.js

@@ -1,5 +1,9 @@
 import https from '@/plugins/luch-request_0.0.7/request'
 
+export const getCombineFn = data => {
+	return https.get('/book-io/get-combine', data)
+}
+
 export const getIoList = data => {
 	return https.get('/book-io/get-io-list', data)
 }

+ 2 - 1
ghsApp/src/pages.json

@@ -108,7 +108,8 @@
 				{"path": "refundSuccess","style": {"navigationBarTitleText": "结果"}},
 				{"path": "refundList","style": {"navigationBarTitleText": "售后记录", "enablePullDownRefresh": true}},
 				{"path": "refundAllList","style": {"navigationBarTitleText": "售后记录", "enablePullDownRefresh": false}},
-				{"path": "bookChange","style": {"navigationBarTitleText": "变动记录", "enablePullDownRefresh": false}}
+				{"path": "bookChange","style": {"navigationBarTitleText": "变动记录", "enablePullDownRefresh": false}},
+				{"path": "combine","style": {"navigationBarTitleText": "分配结果", "enablePullDownRefresh": false}}
 			]
 		},
 		{

+ 1 - 0
ghsApp/src/pagesOrder/bookChange.vue

@@ -53,6 +53,7 @@ export default {
 			this.completes(res)
 		},
 		goDetail(item){
+			this.$util.pageTo({url: '/pagesOrder/combine?ioId='+item.id})
 		}
 	},
 	async onPullDownRefresh() {

+ 60 - 0
ghsApp/src/pagesOrder/combine.vue

@@ -0,0 +1,60 @@
+<template>
+	<view class="app-content">
+		<view class="main-view">
+			<block v-if="!$util.isEmpty(resData)">
+				<t-table :headerBackgroundColor="'#F0F2F6'">
+					<t-tr header>
+                        <t-th  align="left" >记录</t-th>
+					</t-tr>
+					<view v-for="(item, index) in resData" :key="index">
+						<t-tr>
+							<t-td align="left" color="info">{{ item }}</t-td>
+						</t-tr>
+					</view>
+				</t-table>
+			</block>
+			<block v-else>
+				<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(resData)" />
+			</block>
+		</view>
+	</view>
+</template>
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import { getCombineFn } from '@/api/book'
+import list from '@/mixins/list'
+export default {
+	name: "bookChange",
+	components: {
+		AppWrapperEmpty
+	},
+	mixins:[list],
+	data() {
+		return {
+			resData:[]
+		};
+	},
+	methods: {
+		async init(){
+            let ioId = this.option.ioId?this.option.ioId:0
+			const res = await getCombineFn({ioId:ioId})
+			this.resData = res.data.list?res.data.list:[]
+		}
+	},
+	async onPullDownRefresh() {
+		this.resetList();
+		await this.init()
+		uni.stopPullDownRefresh();
+	},
+	async onReachBottom() {
+		if (!this.list.finished) {
+			await this.init()
+			uni.stopPullDownRefresh();;
+		} else {
+			uni.stopPullDownRefresh();
+		}
+	}
+};
+</script>
+<style lang="scss" scoped>
+</style>