shish před 2 roky
rodič
revize
952752ed5e

+ 75 - 0
ghsApp/src/admin/book/customBookCgChange.vue

@@ -0,0 +1,75 @@
+<template>
+	<view class="app-content">
+		<view class="main-view">
+			<block v-if="!$util.isEmpty(list.data)">
+				<t-table :headerBackgroundColor="'#F0F2F6'">
+					<t-tr header>
+                        <t-th>时间</t-th>
+						<t-th>事项</t-th>
+						<t-th>变动</t-th>
+						<t-th>最终</t-th>
+						<t-th>操作人</t-th>
+					</t-tr>
+					<view v-for="(item, index) in list.data" :key="index">
+						<t-tr>
+							<t-td align="center" color="info"><view >{{ item.addTime.substr(5,11) }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.event }}</view></t-td>
+							<t-td align="center" color="info"><view >{{item.io==1?'+':'-'}}{{ item.changeNum }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.num }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.staffName }}</view></t-td>
+						</t-tr>
+					</view>
+				</t-table>
+			</block>
+			<block v-else>
+				<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+			</block>
+		</view>
+	</view>
+</template>
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import { getCustomBookChangeList } from '@/api/book'
+import list from '@/mixins/list'
+export default {
+	name: "bookChange",
+	components: {
+		AppWrapperEmpty
+	},
+	mixins:[list],
+	data() {
+		return {
+
+		};
+	},
+	methods: {
+		async init(){
+            let id = this.option.id?this.option.id:0
+			let customId = this.option.customId?this.option.customId:0
+			let customName = this.option.customName?this.option.customName:0
+			uni.setNavigationBarTitle({ title: customName })
+			const res = await getCustomBookChangeList({ page:this.list.page,relateSecondId:id,customId:customId })
+			if (this.$util.isEmpty(res.data.list)){
+				this.completes(res)
+				return
+			}
+			this.completes(res)
+		}
+	},
+	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>

+ 75 - 0
ghsApp/src/admin/book/customBookOnChange.vue

@@ -0,0 +1,75 @@
+<template>
+	<view class="app-content">
+		<view class="main-view">
+			<block v-if="!$util.isEmpty(list.data)">
+				<t-table :headerBackgroundColor="'#F0F2F6'">
+					<t-tr header>
+                        <t-th>时间</t-th>
+						<t-th>事项</t-th>
+						<t-th>变动</t-th>
+						<t-th>最终</t-th>
+						<t-th>操作人</t-th>
+					</t-tr>
+					<view v-for="(item, index) in list.data" :key="index">
+						<t-tr>
+							<t-td align="center" color="info"><view >{{ item.addTime.substr(5,11) }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.event }}</view></t-td>
+							<t-td align="center" color="info"><view >{{item.io==1?'+':'-'}}{{ item.changeNum }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.num }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.staffName }}</view></t-td>
+						</t-tr>
+					</view>
+				</t-table>
+			</block>
+			<block v-else>
+				<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+			</block>
+		</view>
+	</view>
+</template>
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import { getCustomBookChangeList } from '@/api/book'
+import list from '@/mixins/list'
+export default {
+	name: "bookChange",
+	components: {
+		AppWrapperEmpty
+	},
+	mixins:[list],
+	data() {
+		return {
+
+		};
+	},
+	methods: {
+		async init(){
+            let id = this.option.id?this.option.id:0
+			let customId = this.option.customId?this.option.customId:0
+			let customName = this.option.customName?this.option.customName:0
+			uni.setNavigationBarTitle({ title: customName })
+			const res = await getCustomBookChangeList({ page:this.list.page,relateSecondId:id,customId:customId })
+			if (this.$util.isEmpty(res.data.list)){
+				this.completes(res)
+				return
+			}
+			this.completes(res)
+		}
+	},
+	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>

+ 75 - 0
ghsApp/src/admin/book/customBookRoadChange.vue

@@ -0,0 +1,75 @@
+<template>
+	<view class="app-content">
+		<view class="main-view">
+			<block v-if="!$util.isEmpty(list.data)">
+				<t-table :headerBackgroundColor="'#F0F2F6'">
+					<t-tr header>
+                        <t-th>时间</t-th>
+						<t-th>事项</t-th>
+						<t-th>变动</t-th>
+						<t-th>最终</t-th>
+						<t-th>操作人</t-th>
+					</t-tr>
+					<view v-for="(item, index) in list.data" :key="index">
+						<t-tr>
+							<t-td align="center" color="info"><view >{{ item.addTime.substr(5,11) }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.event }}</view></t-td>
+							<t-td align="center" color="info"><view >{{item.io==1?'+':'-'}}{{ item.changeNum }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.num }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.staffName }}</view></t-td>
+						</t-tr>
+					</view>
+				</t-table>
+			</block>
+			<block v-else>
+				<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+			</block>
+		</view>
+	</view>
+</template>
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import { getCustomBookChangeList } from '@/api/book'
+import list from '@/mixins/list'
+export default {
+	name: "bookChange",
+	components: {
+		AppWrapperEmpty
+	},
+	mixins:[list],
+	data() {
+		return {
+
+		};
+	},
+	methods: {
+		async init(){
+            let id = this.option.id?this.option.id:0
+			let customId = this.option.customId?this.option.customId:0
+			let customName = this.option.customName?this.option.customName:0
+			uni.setNavigationBarTitle({ title: customName })
+			const res = await getCustomBookChangeList({ page:this.list.page,relateSecondId:id,customId:customId })
+			if (this.$util.isEmpty(res.data.list)){
+				this.completes(res)
+				return
+			}
+			this.completes(res)
+		}
+	},
+	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>

+ 75 - 0
ghsApp/src/admin/book/globalBookCgChange.vue

@@ -0,0 +1,75 @@
+<template>
+	<view class="app-content">
+		<view class="main-view">
+			<block v-if="!$util.isEmpty(list.data)">
+				<t-table :headerBackgroundColor="'#F0F2F6'">
+					<t-tr header>
+                        <t-th>时间</t-th>
+						<t-th>事项</t-th>
+						<t-th>变动</t-th>
+						<t-th>最终</t-th>
+						<t-th>操作人</t-th>
+					</t-tr>
+					<view v-for="(item, index) in list.data" :key="index">
+						<t-tr>
+							<t-td align="center" color="info"><view >{{ item.addTime.substr(5,11) }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.event }}</view></t-td>
+							<t-td align="center" color="info"><view >{{item.io==1?'+':'-'}}{{ item.changeNum }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.num }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.staffName }}</view></t-td>
+						</t-tr>
+					</view>
+				</t-table>
+			</block>
+			<block v-else>
+				<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+			</block>
+		</view>
+	</view>
+</template>
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import { getGlobalBookCgChangeList } from '@/api/book'
+import list from '@/mixins/list'
+export default {
+	name: "bookChange",
+	components: {
+		AppWrapperEmpty
+	},
+	mixins:[list],
+	data() {
+		return {
+
+		};
+	},
+	methods: {
+		async init(){
+            let id = this.option.id?this.option.id:0
+			let itemId = this.option.itemId?this.option.itemId:0
+			let itemName = this.option.itemName?this.option.itemName:0
+			uni.setNavigationBarTitle({ title: itemName })
+			const res = await getGlobalBookCgChangeList({ page:this.list.page,relateSecondId:id,itemId:itemId })
+			if (this.$util.isEmpty(res.data.list)){
+				this.completes(res)
+				return
+			}
+			this.completes(res)
+		}
+	},
+	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>

+ 75 - 0
ghsApp/src/admin/book/globalBookOnChange.vue

@@ -0,0 +1,75 @@
+<template>
+	<view class="app-content">
+		<view class="main-view">
+			<block v-if="!$util.isEmpty(list.data)">
+				<t-table :headerBackgroundColor="'#F0F2F6'">
+					<t-tr header>
+                        <t-th>时间</t-th>
+						<t-th>事项</t-th>
+						<t-th>变动</t-th>
+						<t-th>最终</t-th>
+						<t-th>操作人</t-th>
+					</t-tr>
+					<view v-for="(item, index) in list.data" :key="index">
+						<t-tr>
+							<t-td align="center" color="info"><view >{{ item.addTime.substr(5,11) }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.event }}</view></t-td>
+							<t-td align="center" color="info"><view >{{item.io==1?'+':'-'}}{{ item.changeNum }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.num }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.staffName }}</view></t-td>
+						</t-tr>
+					</view>
+				</t-table>
+			</block>
+			<block v-else>
+				<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+			</block>
+		</view>
+	</view>
+</template>
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import { getGlobalBookOnChangeList } from '@/api/book'
+import list from '@/mixins/list'
+export default {
+	name: "bookChange",
+	components: {
+		AppWrapperEmpty
+	},
+	mixins:[list],
+	data() {
+		return {
+
+		};
+	},
+	methods: {
+		async init(){
+            let id = this.option.id?this.option.id:0
+			let itemId = this.option.itemId?this.option.itemId:0
+			let itemName = this.option.itemName?this.option.itemName:0
+			uni.setNavigationBarTitle({ title: itemName })
+			const res = await getGlobalBookOnChangeList({ page:this.list.page,relateSecondId:id,itemId:itemId })
+			if (this.$util.isEmpty(res.data.list)){
+				this.completes(res)
+				return
+			}
+			this.completes(res)
+		}
+	},
+	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>

+ 75 - 0
ghsApp/src/admin/book/globalBookRoadChange.vue

@@ -0,0 +1,75 @@
+<template>
+	<view class="app-content">
+		<view class="main-view">
+			<block v-if="!$util.isEmpty(list.data)">
+				<t-table :headerBackgroundColor="'#F0F2F6'">
+					<t-tr header>
+                        <t-th>时间</t-th>
+						<t-th>事项</t-th>
+						<t-th>变动</t-th>
+						<t-th>最终</t-th>
+						<t-th>操作人</t-th>
+					</t-tr>
+					<view v-for="(item, index) in list.data" :key="index">
+						<t-tr>
+							<t-td align="center" color="info"><view >{{ item.addTime.substr(5,11) }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.event }}</view></t-td>
+							<t-td align="center" color="info"><view >{{item.io==1?'+':'-'}}{{ item.changeNum }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.num }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.staffName }}</view></t-td>
+						</t-tr>
+					</view>
+				</t-table>
+			</block>
+			<block v-else>
+				<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+			</block>
+		</view>
+	</view>
+</template>
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import { getGlobalBookRoadChangeList } from '@/api/book'
+import list from '@/mixins/list'
+export default {
+	name: "bookChange",
+	components: {
+		AppWrapperEmpty
+	},
+	mixins:[list],
+	data() {
+		return {
+
+		};
+	},
+	methods: {
+		async init(){
+            let id = this.option.id?this.option.id:0
+			let itemId = this.option.itemId?this.option.itemId:0
+			let itemName = this.option.itemName?this.option.itemName:0
+			uni.setNavigationBarTitle({ title: itemName })
+			const res = await getGlobalBookRoadChangeList({ page:this.list.page,relateSecondId:id,itemId:itemId })
+			if (this.$util.isEmpty(res.data.list)){
+				this.completes(res)
+				return
+			}
+			this.completes(res)
+		}
+	},
+	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>

+ 77 - 0
ghsApp/src/admin/book/itemCustomBookCgChange.vue

@@ -0,0 +1,77 @@
+<template>
+	<view class="app-content">
+		<view class="main-view">
+			<block v-if="!$util.isEmpty(list.data)">
+				<t-table :headerBackgroundColor="'#F0F2F6'">
+					<t-tr header>
+                        <t-th>时间</t-th>
+						<t-th>事项</t-th>
+						<t-th>变动</t-th>
+						<t-th>最终</t-th>
+						<t-th>操作人</t-th>
+					</t-tr>
+					<view v-for="(item, index) in list.data" :key="index">
+						<t-tr>
+							<t-td align="center" color="info"><view >{{ item.addTime.substr(5,11) }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.event }}</view></t-td>
+							<t-td align="center" color="info"><view >{{item.io==1?'+':'-'}}{{ item.changeNum }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.num }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.staffName }}</view></t-td>
+						</t-tr>
+					</view>
+				</t-table>
+			</block>
+			<block v-else>
+				<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+			</block>
+		</view>
+	</view>
+</template>
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import { getBookChangeList } from '@/api/book'
+import list from '@/mixins/list'
+export default {
+	name: "bookChange",
+	components: {
+		AppWrapperEmpty
+	},
+	mixins:[list],
+	data() {
+		return {
+
+		};
+	},
+	methods: {
+		async init(){
+            let id = this.option.id?this.option.id:0
+			let customId = this.option.customId?this.option.customId:0
+			let itemId = this.option.itemId?this.option.itemId:0
+			let itemName = this.option.itemName?this.option.itemName:''
+			let customName = this.option.customName?this.option.customName:''
+			uni.setNavigationBarTitle({title: customName+' 的 '+itemName})
+			const res = await getBookChangeList({ page:this.list.page,relateSecondId:id,customId:customId,itemId:itemId})
+			if (this.$util.isEmpty(res.data.list)){
+				this.completes(res)
+				return
+			}
+			this.completes(res)
+		}
+	},
+	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>

+ 77 - 0
ghsApp/src/admin/book/itemCustomBookOnChange.vue

@@ -0,0 +1,77 @@
+<template>
+	<view class="app-content">
+		<view class="main-view">
+			<block v-if="!$util.isEmpty(list.data)">
+				<t-table :headerBackgroundColor="'#F0F2F6'">
+					<t-tr header>
+                        <t-th>时间</t-th>
+						<t-th>事项</t-th>
+						<t-th>变动</t-th>
+						<t-th>最终</t-th>
+						<t-th>操作人</t-th>
+					</t-tr>
+					<view v-for="(item, index) in list.data" :key="index">
+						<t-tr>
+							<t-td align="center" color="info"><view >{{ item.addTime.substr(5,11) }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.event }}</view></t-td>
+							<t-td align="center" color="info"><view >{{item.io==1?'+':'-'}}{{ item.changeNum }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.num }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.staffName }}</view></t-td>
+						</t-tr>
+					</view>
+				</t-table>
+			</block>
+			<block v-else>
+				<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+			</block>
+		</view>
+	</view>
+</template>
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import { getBookChangeList } from '@/api/book'
+import list from '@/mixins/list'
+export default {
+	name: "bookChange",
+	components: {
+		AppWrapperEmpty
+	},
+	mixins:[list],
+	data() {
+		return {
+
+		};
+	},
+	methods: {
+		async init(){
+            let id = this.option.id?this.option.id:0
+			let customId = this.option.customId?this.option.customId:0
+			let itemId = this.option.itemId?this.option.itemId:0
+			let itemName = this.option.itemName?this.option.itemName:''
+			let customName = this.option.customName?this.option.customName:''
+			uni.setNavigationBarTitle({title: customName+' 的 '+itemName})
+			const res = await getBookChangeList({ page:this.list.page,relateSecondId:id,customId:customId,itemId:itemId})
+			if (this.$util.isEmpty(res.data.list)){
+				this.completes(res)
+				return
+			}
+			this.completes(res)
+		}
+	},
+	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>

+ 77 - 0
ghsApp/src/admin/book/itemCustomBookRoadChange.vue

@@ -0,0 +1,77 @@
+<template>
+	<view class="app-content">
+		<view class="main-view">
+			<block v-if="!$util.isEmpty(list.data)">
+				<t-table :headerBackgroundColor="'#F0F2F6'">
+					<t-tr header>
+                        <t-th>时间</t-th>
+						<t-th>事项</t-th>
+						<t-th>变动</t-th>
+						<t-th>最终</t-th>
+						<t-th>操作人</t-th>
+					</t-tr>
+					<view v-for="(item, index) in list.data" :key="index">
+						<t-tr>
+							<t-td align="center" color="info"><view >{{ item.addTime.substr(5,11) }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.event }}</view></t-td>
+							<t-td align="center" color="info"><view >{{item.io==1?'+':'-'}}{{ item.changeNum }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.num }}</view></t-td>
+							<t-td align="center" color="info"><view >{{ item.staffName }}</view></t-td>
+						</t-tr>
+					</view>
+				</t-table>
+			</block>
+			<block v-else>
+				<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+			</block>
+		</view>
+	</view>
+</template>
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import { getBookChangeList } from '@/api/book'
+import list from '@/mixins/list'
+export default {
+	name: "bookChange",
+	components: {
+		AppWrapperEmpty
+	},
+	mixins:[list],
+	data() {
+		return {
+
+		};
+	},
+	methods: {
+		async init(){
+            let id = this.option.id?this.option.id:0
+			let customId = this.option.customId?this.option.customId:0
+			let itemId = this.option.itemId?this.option.itemId:0
+			let itemName = this.option.itemName?this.option.itemName:''
+			let customName = this.option.customName?this.option.customName:''
+			uni.setNavigationBarTitle({title: customName+' 的 '+itemName})
+			const res = await getBookChangeList({ page:this.list.page,relateSecondId:id,customId:customId,itemId:itemId})
+			if (this.$util.isEmpty(res.data.list)){
+				this.completes(res)
+				return
+			}
+			this.completes(res)
+		}
+	},
+	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>

+ 12 - 3
ghsApp/src/admin/order/statBook.vue

@@ -28,10 +28,10 @@
 							<t-tr>
 								<t-td><view style="color:#333333;font-size:25upx;width:160upx;text-align:left;height:60upx;display: flex;align-items: center;" @click="goDetail(item)">{{item.name}}</view></t-td>
 								<t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;" @click="goBookChange(item)">{{item.bookNum?parseFloat(item.bookNum):0}}</view></t-td>
-								<t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;">{{item.onNum?parseFloat(item.onNum):0}}</view></t-td>
+								<t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;" @click="goBookOnChange(item)">{{item.onNum?parseFloat(item.onNum):0}}</view></t-td>
 								<t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;">{{item.remainStockNum?parseFloat(item.remainStockNum):0}}</view></t-td>
-								<t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;">{{item.roadNum?parseFloat(item.roadNum):0}}</view></t-td>
-								<t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;">{{item.needCgNum?parseFloat(item.needCgNum):0}}</view></t-td>
+								<t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;" @click="goBookRoadChange(item)">{{item.roadNum?parseFloat(item.roadNum):0}}</view></t-td>
+								<t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;" @click="goBookCgChange(item)">{{item.needCgNum?parseFloat(item.needCgNum):0}}</view></t-td>
 							</t-tr>
 						</view>
 					</template>
@@ -133,6 +133,15 @@ export default {
 		goBookChange(item){
 			this.$util.pageTo({ url: "/admin/book/globalBookChange?itemId="+item.itemId+'&itemName='+item.name+'&id='+item.id})
 		},
+		goBookOnChange(item){
+			this.$util.pageTo({ url: "/admin/book/globalBookOnChange?itemId="+item.itemId+'&itemName='+item.name+'&id='+item.id})
+		},
+		goBookRoadChange(item){
+			this.$util.pageTo({ url: "/admin/book/globalBookRoadChange?itemId="+item.itemId+'&itemName='+item.name+'&id='+item.id})
+		},
+		goBookCgChange(item){
+			this.$util.pageTo({ url: "/admin/book/globalBookCgChange?itemId="+item.itemId+'&itemName='+item.name+'&id='+item.id})
+		},
 		selectShopFn(val){
 			this.params.shopId = val.id;
 			this.init();

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

@@ -13,6 +13,18 @@ export const getGlobalBookChangeList = data => {
 	return https.get('/book-change-global/list', data)
 }
 
+export const getGlobalBookOnChangeList = data => {
+	return https.get('/book-on-change-global/list', data)
+}
+
+export const getGlobalBookRoadChangeList = data => {
+	return https.get('/book-road-change-global/list', data)
+}
+
+export const getGlobalBookCgChangeList = data => {
+	return https.get('/book-cg-change-global/list', data)
+}
+
 export const getCustomBookChangeList = data => {
 	return https.get('/book-custom-change/list', data)
 }

+ 12 - 3
ghsApp/src/pages.json

@@ -485,9 +485,18 @@
 				{"path": "itemCustom","style": {"navigationBarTitleText": "明细"}},
 				{"path": "itemCustomDetail","style": {"navigationBarTitleText": "送货信息"}},
 				{"path": "custom","style": {"navigationBarTitleText": "预订客户"}},
-				{"path": "globalBookChange","style": {"navigationBarTitleText": "预订变动"}},
-				{"path": "customBookChange","style": {"navigationBarTitleText": "预订变动"}},
-				{"path": "itemCustomBookChange","style": {"navigationBarTitleText": "预订变动"}}
+				{"path": "globalBookChange","style": {"navigationBarTitleText": "变动"}},
+				{"path": "globalBookCgChange","style": {"navigationBarTitleText": "变动"}},
+				{"path": "globalBookOnChange","style": {"navigationBarTitleText": "变动"}},
+				{"path": "globalBookRoadChange","style": {"navigationBarTitleText": "变动"}},
+				{"path": "customBookCgChange","style": {"navigationBarTitleText": "变动"}},
+				{"path": "customBookChange","style": {"navigationBarTitleText": "变动"}},
+				{"path": "customBookOnChange","style": {"navigationBarTitleText": "变动"}},
+				{"path": "customBookRoadChange","style": {"navigationBarTitleText": "变动"}},
+				{"path": "itemCustomBookCgChange","style": {"navigationBarTitleText": "变动"}},
+				{"path": "itemCustomBookChange","style": {"navigationBarTitleText": "变动"}},
+				{"path": "itemCustomBookOnChange","style": {"navigationBarTitleText": "变动"}},
+				{"path": "itemCustomBookRoadChange","style": {"navigationBarTitleText": "变动"}}
 			]
 		},
 		{