Kaynağa Gözat

小程序 更新 sdy

zhongtianhaoyuan 3 yıl önce
ebeveyn
işleme
caee125759

+ 39 - 1
pages/task/audit/freight_settlement_details.vue

@@ -19,6 +19,20 @@
 				<view>合同编号</view>
 				<view>{{list.contractNo}}</view>
 			</view>
+			<view class="person-info">
+					<view class="top1" style="display: flex;">
+						<view>客户</view>
+						<view>{{customerName}}</view>
+					</view>
+					<view class="top1">
+						<view>发货地址</view>
+						<view class="top_info">{{shippingAddress ? shippingAddress : "暂无发货地址"}}</view>
+					</view>
+					<view class="top1">
+						<view>收货地址</view>
+						<view class="top_info">{{receivingAddress ? receivingAddress : "暂无收货地址"}}</view>
+					</view>
+			</view>
 			<view class="car-container">
 				<view class="car-num title" v-if="list.tranTypeKey== '1'">{{list.carNo}} ({{list.tranCarNo}})</view>
 				<view class="car-num title" v-if="list.tranTypeKey== '2'">车厢号{{list.boxNo}}</view>
@@ -66,6 +80,9 @@
 				list: {
 					approveStatus: "",
 				},
+				customerName:"",//客户
+				shippingAddress:"",//发货地址
+				receivingAddress:"",//收货地址
 			}
 		},
 		onLoad(options) {
@@ -79,6 +96,9 @@
 				}).then(res => {
 					this.contractNo = res.data.data.contractNo
 					this.carId = res.data.data.carId
+					this.customerName =  res.data.data.customer
+					this.shippingAddress = res.data.data.send
+					this.receivingAddress = res.data.data.receive
 					if (res.data.code == 200) {
 						this.$api.doRequest('get', '/tranSettlementReport/selectTranSettlementReport', {
 							compId: "2710b21efc1e4393930c5dc800010dc4",
@@ -117,6 +137,15 @@
 			font-size: 36rpx;
 			margin-top: 30rpx;
 		}
+		.top1{
+			// display: flex;
+			justify-content: space-between;
+			border-radius: 20rpx;
+			background: white;
+			padding: 10rpx 20rpx;
+			font-size: 30rpx;
+			margin-top: 20rpx;
+		}
 
 		.title {
 			font-size: 28rpx;
@@ -145,7 +174,16 @@
 			font-size: 36rpx;
 		}
 	}
-
+	.person-info{
+		background: white;
+		padding: 20rpx 0;
+		border-radius: 20rpx;
+		// margin-bottom: 50rpx;
+		margin: 20rpx 0;
+		.tit{
+			font-size: 36rpx;
+		}
+	}
 	.bottom-btn {
 		width: 100%;
 		position: fixed;

+ 1 - 1
pages/task/audit/purchase_settlement_approval.vue

@@ -22,7 +22,7 @@
 				<view class="top">
 				<view>{{contractNo}} ({{goodsName}})</view>
 				<view>{{unitPrice}}元/吨</view>
-			</view>
+			    </view>
 			<view class="top1">
 				<view>客户</view>
 				<view style="font-size: 30rpx;">{{customerName}}</view>

+ 21 - 4
pages/task/audit/purchase_settlement_details.vue

@@ -17,9 +17,16 @@
 			</view>
 		</view>
 		<view class="content">
-			<view class="top content-item">
-				<view>{{contractNo}}({{goodsName}})</view>
-				<view>{{unitPrice}}元/吨</view>
+			<view class="content-item">
+				<view class="top">
+					<view>{{contractNo}}({{goodsName}})</view>
+				     <view>{{unitPrice}}元/吨</view>
+				</view>
+				<view class="top1">
+					<view>客户</view>
+					<view style="font-size: 30rpx;">{{customerName}}</view>
+				</view>
+				
 			</view>
 			<view class="content-item">
 				<view class="car-container" v-for="(item,index) in list">
@@ -63,6 +70,7 @@
 				contractNo: "",
 				unitPrice: "",
 				goodsName:"",
+				customerName:""//客户
 			}
 		},
 		onLoad(options) {
@@ -77,7 +85,7 @@
 					this.contractNo = res.data.data.contractNo
 					this.unitPrice = res.data.data.price
 					this.goodsName = res.data.data.goodsName
-					console.log(this.goodsName)
+					this.customerName = res.data.data.customer//客户
 					if (res.data.code == 200) {
 						this.$api.doRequest('get', '/stockPurchaseReceiptReport/selectPurchaseOrder', {
 							compId: "2710b21efc1e4393930c5dc800010dc4",
@@ -109,7 +117,16 @@
 		.top {
 			display: flex;
 			justify-content: space-between;
+			margin-top: 10rpx;
+			margin-bottom: 30rpx;
 		}
+		.top1 {
+			display: flex;
+			justify-content: space-between;
+			margin-bottom: 20rpx;
+			font-size: 32rpx;
+		}
+		
 
 		.content-item {
 			border-radius: 20rpx;