gjy vor 3 Jahren
Ursprung
Commit
4474ccaa42

+ 141 - 1
pages/user/contractLook/purchaseContract.vue

@@ -1,8 +1,148 @@
 <template>
+	<view>
+		<view class='content'>
+			<view class='content-item' v-for='item in contractList'>
+				<view style='padding:10px 0;' class="flex justify-between">
+					<view class="title">合同编号</view>
+					<view>{{item.contractNo}}</view>
+				</view>
+				<view style='padding:10px 0;' class="flex justify-between">
+					<view class="title">客户</view>
+					<view>{{item.seller}}</view>
+				</view>
+				<view style='padding:10px 0;' class="flex justify-between">
+					<view class="title">合同重量(吨)</view>
+					<view>{{item.weight}}</view>
+				</view>
+				<view style='padding:10px 0;' class="flex justify-between">
+					<view class="title">合同单价(元)</view>
+					<view>{{item.unitContractPrice}}</view>
+				</view>
+				<view style='padding:10px 0;' class="flex justify-between">
+					<view class="title">合同总价(元)</view>
+					<view>{{item.totalContractPrice}}</view>
+				</view>
+				<view style='padding:10px 0;' class="flex justify-between">
+					<view class="title">已付款(元)</view>
+					<view>{{item.mildewGrain}}</view>
+				</view>
+				<view style='padding:10px 0;' class="flex justify-between">
+					<view class="title">已开发票 (元)</view>
+					<view>{{item.goodsNames}}</view>
+				</view>
+			</view>
+		</view>
+	</view>
 </template>
 
 <script>
+	export default {
+		data() {
+			return {
+				chartlist: [],
+				carCount1: '',
+				carCount2: '',
+				carCount3: '',
+				inventoryCost: '',
+				inventoryValue: '',
+				ZChart: {},
+				// url:"https://datav.aliyuncs.com/share/235518097ffd673bc1eb05011b9a02b6",
+				url: '',
+				flag: true,
+				chartData: {},
+				ringoptions: {},
+				contractType:2,
+				contractList:[],
+				currentPage:1,
+				pageSize:10
+			}
+		},
+		onLoad: function(option) {
+			uni.showLoading({
+				title: "加载中",
+				mask: true
+			})
+			this.init()
+		},
+		methods: {
+			skipContent(index){
+				console.log(index)
+				if(index<2){
+					uni.navigateTo({
+						url:'/pages/user/contractLook/purchaseContract'
+					})
+				}else if(index>2&&index<6){
+					uni.navigateTo({
+						url:'/pages/user/contractLook/salesContract'
+					})
+				}
+			},
+			init() {
+				this.$api.doRequest('get', '/contractManagementInfo/selectInfo',
+				{compId:uni.getStorageSync('pcUserInfo').compId,
+				contractType: this.contractType,goodsType:1,currentPage: this.currentPage,pageSize: this.pageSize}).then(res => {
+					uni.hideLoading()
+					this.contractList=res.data.data.records
+				})
+			},
+			getdata(e) {
+				console.log(e)
+			}
+		}
+	}
 </script>
 
-<style>
+
+
+<style scoped lang="scss">
+	.content{
+		background:#F5F6FA;
+	}
+	.content-item{
+		background:#fff;
+		margin:10px;
+		padding:10px;
+		border-radius:6px;
+		font-size:14px;
+		.title {
+			color:#9698A2;
+			font-size:26rpx;
+		}
+	}
+	charts-box {
+		// background: black;
+		position: relative;
+		// top: 70vh;
+	}
+
+	.content2 .row,
+	.content4 .row {
+		display: flex;
+		justify-content: space-around;
+		background: #24262d;
+		padding: 40rpx 20rpx;
+
+		.item-top,
+		.item-bottom {
+			color: #d5d5d5;
+		}
+
+		.item-bottom {
+			display: flex;
+			align-items: center;
+		}
+	}
+
+	.bottom-tip {
+		position: absolute;
+		z-index: 11;
+		color: #8c8c8d;
+		right: 10px;
+		bottom: 10px;
+	}
+
+	.title-margin {
+		bottom: 120rpx;
+	}
 </style>
+

+ 148 - 1
pages/user/contractLook/salesContract.vue

@@ -1,8 +1,155 @@
 <template>
+	<view class='content'>
+		<view v-for='item in contractList'>
+			<view class="flex justify-between">
+				<view>合同编号</view>
+				<view>{{item.contractNo}}</view>
+			</view>
+			<view class="flex justify-between">
+				<view>客户</view>
+				<view>{{item.seller}}</view>
+			</view>
+			<view class="flex justify-between">
+				<view>合同重量(吨)</view>
+				<view>{{item.weight}}</view>
+			</view>
+			<view class="flex justify-between">
+				<view>合同单价(元)</view>
+				<view>{{item.unitContractPrice}}</view>
+			</view>
+			<view class="flex justify-between">
+				<view>合同总价(元)</view>
+				<view>{{item.totalContractPrice}}</view>
+			</view>
+			<view class="flex justify-between">
+				<view>已付款(元)</view>
+				<view>{{item.mildewGrain}}</view>
+			</view>
+			<view class="flex justify-between">
+				<view>已开发票 (元)</view>
+				<view>{{item.goodsNames}}</view>
+			</view>
+		</view>
+	</view>
 </template>
 
 <script>
+	export default {
+		data() {
+			return {
+				chartlist: [],
+				carCount1: '',
+				carCount2: '',
+				carCount3: '',
+				inventoryCost: '',
+				inventoryValue: '',
+				ZChart: {},
+				// url:"https://datav.aliyuncs.com/share/235518097ffd673bc1eb05011b9a02b6",
+				url: '',
+				flag: true,
+				chartData: {},
+				ringoptions: {},
+				contractType:2,
+				contractList:[],
+				currentPage:1,
+				pageSize:10
+			}
+		},
+		onLoad: function(option) {
+			uni.showLoading({
+				title: "加载中",
+				mask: true
+			})
+			this.init()
+		},
+		methods: {
+			skipContent(index){
+				console.log(index)
+				if(index<2){
+					uni.navigateTo({
+						url:'/pages/user/contractLook/purchaseContract'
+					})
+				}else if(index>2&&index<6){
+					uni.navigateTo({
+						url:'/pages/user/contractLook/salesContract'
+					})
+				}
+			},
+			init() {
+				this.$api.doRequest('get', '/contractManagementInfo/selectInfo',
+				{compId:uni.getStorageSync('pcUserInfo').compId,
+				contractType: this.contractType,goodsType:1,currentPage: this.currentPage,pageSize: this.pageSize}).then(res => {
+					uni.hideLoading()
+					this.contractList=res.data.data.records
+				})
+			},
+			getdata(e) {
+				console.log(e)
+			}
+		}
+	}
 </script>
 
-<style>
+
+
+<style scoped lang="scss">
+	.content{
+		
+	}
+	.map {
+		top: 90rpx;
+		height: 60vh;
+		width: 100%;
+		border: 0;
+	}
+
+	.title {
+		background: black;
+		color: white;
+		text-align: center;
+		font-size: 1.25rem;
+		padding: 0.625rem;
+	}
+
+	.content {
+		background: #fff;
+		padding-bottom: 100rpx;
+	}
+
+	.charts-box {
+		// background: black;
+		position: relative;
+		// top: 70vh;
+	}
+
+	.content2 .row,
+	.content4 .row {
+		display: flex;
+		justify-content: space-around;
+		background: #24262d;
+		padding: 40rpx 20rpx;
+
+		.item-top,
+		.item-bottom {
+			color: #d5d5d5;
+		}
+
+		.item-bottom {
+			display: flex;
+			align-items: center;
+		}
+	}
+
+	.bottom-tip {
+		position: absolute;
+		z-index: 11;
+		color: #8c8c8d;
+		right: 10px;
+		bottom: 10px;
+	}
+
+	.title-margin {
+		bottom: 120rpx;
+	}
 </style>
+

+ 13 - 1
pages/user/report.vue

@@ -2,7 +2,7 @@
 	<view class="content">
 		<view class="title">库点流向分布</view>
 		<iframe id="mainIframe" ref="mainIframe" name="mainIframe" :src="url" class="map"></iframe>
-		<view class="charts-box" v-for="(item,index) in chartlist" :key='index'>
+		<view @click='skipContent(index)' class="charts-box" v-for="(item,index) in chartlist" :key='index'>
 			<div class="bottom-tip" v-if='index==0||index==3'>统计单位:吨</div>
 			<div class="bottom-tip" v-if='index!=0&&index!=3' :class='index==2?"title-margin":""'>统计单位:元</div>
 			<view v-if="index==0" class="title">采购合同完成进度</view>
@@ -84,6 +84,18 @@
 			this.init()
 		},
 		methods: {
+			skipContent(index){
+				console.log(index)
+				if(index<2){
+					uni.navigateTo({
+						url:'/pages/user/contractLook/purchaseContract'
+					})
+				}else if(index>2&&index<6){
+					uni.navigateTo({
+						url:'/pages/user/contractLook/salesContract'
+					})
+				}
+			},
 			init() {
 				this.$api.doRequest('get', '/biInfoController/selectBiInfo?compId='+uni.getStorageSync('pcUserInfo').compId).then(res => {
 					console.log(res)