Pārlūkot izejas kodu

Merge branch 'master' of http://git.zthymaoyi.com/gdc/yiliangyiyun-app

# Conflicts:
#	config/index.js
ccjgmwz 3 gadi atpakaļ
vecāks
revīzija
98216d9e89

+ 0 - 1
config/index.js

@@ -1,7 +1,6 @@
 const dev = {
 	baseUrl: 'https://www.zthymaoyi.com',
 	// baseUrlNew: 'http://api1.eliangeyun.com/',
-	// baseUrlNew: 'http://192.168.1.107:8090/',
 	baseUrlNew: 'http://192.168.1.122:9100/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false

+ 10 - 4
pages.json

@@ -255,12 +255,18 @@
 		{
 			"path": "pages/grain_pulse/home",
 			"style": {
-				"navigationStyle": "custom",
-				"app-plus": {
-					"titleNView": false
-				},
+				"navigationBarTitleText": "粮脉",
 				"enablePullDownRefresh": true
+				
 			}
+			// "style": {
+			// 	"navigationBarTitleText": "粮脉",
+			// 	// "navigationStyle": "custom",
+			// 	"app-plus": {
+			// 		"titleNView": false
+			// 	},
+			// 	"enablePullDownRefresh": true
+			// }
 		},
 		{
 			"path": "pages/public/login",

+ 3 - 1
pages/business/business.vue

@@ -161,7 +161,9 @@
 					
 			// 	})
 			// }, 500);
-			
+			uni.removeTabBarBadge({
+				index: 4
+			})
 			this.$api.doRequest('get', '/notice/query/noticeNumber').then(res => {
 				if (res.data.data) {
 					let name = 'myTip';

+ 48 - 25
pages/erp/deliveryfeedback/details.vue

@@ -105,7 +105,7 @@
 				<view class="left">发船日期</view>
 				<view>
 					<view @click='show1=true'>{{detailData.sendDateStart}}</view>
-					<u-picker v-model="show1" mode="time" @confirm='dateChange($event)' :params="params">
+					<u-picker :mask-close-able='false' v-model="show1" mode="time" @confirm='dateChange($event)' :params="params">
 					</u-picker>
 				</view>
 			</view>
@@ -144,7 +144,12 @@
 			<view style='margin-left:10px;'>装车详情</view>
 			<view v-for='(item,index) in freightspace' class="content">
 				<view class="row">
-					<view class="left">车厢号-{{index+1}}</view>
+					<view class="left">车厢-{{index+1}}</view>
+					<view v-if="item.status == '' ||item.status == null ||item.status == '未装车'">未装车</view>
+					<view v-if="item.status == '已装车' ||item.status == '已送达'">已装车</view>
+				</view>
+				<view class="row">
+					<view class="left">车厢号</view>
 					<view>{{item.boxNo}}</view>
 				</view>
 				<view class="row">
@@ -157,13 +162,15 @@
 				</view>
 				<view class="row">
 					<view class="left">磅单</view>
-					<view v-if="item.status == '已装车' || item.status == '已送达'">
-						<image v-if="item.loadPoundImg"  @click='shadeshow(item.loadPoundImg)' style='width:100px;height:100px;' :src="item.loadPoundImg" mode=""></image>
-						<view v-else>暂无图片</view>
+					<view v-if="item.status == '已装车' || item.status == '已送达'" v-for="(items,count) in item.imgUrl">
+						<view class="pound_list1">
+							<image v-if="items.url"  @click='shadeshow(item.loadPoundImg)' style='width:100px;height:100px;margin: 0rpx;' :src="items.url" mode=""></image>
+						     <view v-else>暂无图片</view>
+						</view>
 					</view>
-					<view v-else>
-						<image v-if="item.loadPoundImg"  @click='shadeshow(item.loadPoundImg)' style='width:100px;height:100px;' :src="item.loadPoundImg" mode=""></image>
-						<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl"
+					<view  v-if="item.status == '未装车'" class="pound_list">
+						<!-- <image v-if="item.loadPoundImg"  @click='shadeshow(item.loadPoundImg)' style='width:100px;height:100px;' :src="item.loadPoundImg" mode=""></image> -->
+						<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="item.imgUrl"
 							:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
 							@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
 					</view>
@@ -173,7 +180,7 @@
 					<view>
 						<view v-if="item.status == '已装车' || item.status == '已送达'">{{item.loadingDate}}</view>
 						<view v-else @click='train(index)'>{{item.loadingDate?item.loadingDate:'请选择日期'}}</view>
-						<u-picker v-model="item.show2" mode="time" @cancel='datecancel()' @confirm='dateChange1($event,item)' :params="params">
+						<u-picker :mask-close-able='false' v-model="item.show2" mode="time" @cancel='datecancel()' @confirm='dateChange1($event,item)' :params="params">
 						</u-picker>
 					</view>
 				</view>
@@ -213,7 +220,7 @@
 					<view>
 						<view v-if="item.status == '已装车' || item.status == '已送达'">{{item.sendDateStart}}</view>
 						<view v-else @click='train(index)'>{{item.sendDateStart?item.sendDateStart:'请选择日期'}}</view>
-						<u-picker v-model="item.show2" mode="time" @cancel='datecancel()' @confirm='dateChange2($event,index)' :params="params">
+						<u-picker :mask-close-able='false' v-model="item.show2" mode="time" @cancel='datecancel()' @confirm='dateChange2($event,index)' :params="params">
 						</u-picker>
 					</view>
 				</view>
@@ -222,8 +229,8 @@
 					<view v-if="item.loadPoundImg">
 						<image style='width:100px;height:100px;' @click='shadeshow(item.loadPoundImg)' :src="item.loadPoundImg" mode=""></image>
 					</view>
-					<view v-else>
-						<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl"
+					<view v-else class="pound_list">
+						<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="item.imgUrl"
 							:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
 							@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
 					</view>
@@ -247,14 +254,14 @@
 				<view v-if="item.shipType == '集装箱'" class="row">
 					<view class="left">集装箱-{{index+1}}</view>
 					<view v-if="item.status == '未装车'">未装船</view>
-					<view v-if="item.status == '已装车'">已装船</view>
-					<view v-if="item.status == '已送达'">{{item.status}}</view>
+					<view v-if="item.status == '已装车'">未卸船</view>
+					<view v-if="item.status == '已送达'">已卸船</view>
 				</view>
 				<view v-if="item.shipType == '散船'" class="row">
 					<view class="left">仓位号-{{index+1}}</view>
 					<view v-if="item.status == '未装车'">未装船</view>
-					<view v-if="item.status == '已装车'">已装船</view>
-					<view v-if="item.status == '已送达'">{{item.status}}</view>
+					<view v-if="item.status == '已装车'">未卸船</view>
+					<view v-if="item.status == '已送达'">已卸船</view>
 				</view>
 				<view v-if="item.shipType == '集装箱'" class="row">
 					<view class="left">箱号</view>
@@ -295,13 +302,13 @@
 					<view>
 						<view v-if="item.status == '已装车' || item.status == '已送达'">{{item.loadingDate}}</view>
 						<view v-else @click='train(index)'>{{item.loadingDate?item.loadingDate:'请选择日期'}}</view>
-						<u-picker v-model="item.show2" mode="time"  @cancel='datecancel()' @confirm='dateChange1($event,index)' :params="params">
+						<u-picker :mask-close-able='false' v-model="item.show2" mode="time"  @cancel='datecancel()' @confirm='dateChange1($event,index)' :params="params">
 						</u-picker>
 					</view>
 				</view>
-				<view style='text-align:right;' v-if="item.status == '已装车'">未装船</view>
-				<view style='text-align:right;' v-else-if="item.status == '已送达'">已装船</view>
-				<u-button v-else @click='submit(index,3)' type="success">保存</u-button>
+			<!-- 	<view style='text-align:right;' v-if="item.status == '已装车'">未装船</view>
+				<view style='text-align:right;' v-else-if="item.status == '已送达'">已装船</view> -->
+				<u-button v-if="item.status == '未装车'" @click='submit(index,3)' type="success">保存</u-button>
 			</view>
 			<view class="row">
 				<view style='margin-left:10px;' class="left">运单</view>
@@ -367,7 +374,12 @@
 				imgUrl:[],
 				unloadPoundImg:'',
 				action: this.$uploadUrl,
-				freightspace:[],
+				freightspace:[
+					{
+						imgUrl:[],
+					}
+					
+				],
 				feedbackFlag:1,
 				detailData:{},
 				allWarehouse: [],
@@ -561,7 +573,6 @@
 			},
 			finishedgoods(){
 				var that = this
-				
 				if(this.detailData.tranType=='火运'){
 					uni.showModal({
 						content: "完货操作后,装车信息不可修改,是否确定完货?",
@@ -812,15 +823,21 @@
 								 if(res.data.data.tranCarInfoList[0].driver){
 									this.detailData.driver = res.data.data.tranCarInfoList[0].driver
 								}
-								for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
-									res.data.data.tranCarInfoList[i].show2=false
-								}
 								this.detailData.driverPhone =res.data.data.tranCarInfoList[0].driverPhone
 								this.$set(this.detailData,'sendDateStart',res.data.data.tranCarInfoList[0].sendDateStart)
 								this.detailData.receiveDateEnd =
 								            res.data.data.tranCarInfoList[0].receiveDateEnd
 								this.detailData.carModel = res.data.data.tranCarInfoList[0].carModel
 								this.freightspace=res.data.data.tranCarInfoList
+								for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
+									this.imgUrl = []
+									res.data.data.tranCarInfoList[i].show2=false
+									let imgs = res.data.data.tranCarInfoList[i].loadPoundImg.split(",")
+									for(let j = 0 ; j < imgs.length ; j++){
+										this.imgUrl.push({url:imgs[j]})
+									}
+									this.freightspace[i].imgUrl = this.imgUrl
+								}
 							}
 						}else if(res.data.data.tranType=='汽运'){
 							for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
@@ -1036,4 +1053,10 @@
 	   width:100%;height:100%;
 	   z-index:10000;
 	}
+	.pound_list{
+		width: 452rpx;
+		display: flex;
+		justify-content: flex-end;
+		text-align: right;
+	}
 </style>

+ 2 - 2
pages/erp/deliveryfeedback/list.vue

@@ -36,9 +36,9 @@
 				</view>
 			</view>
 		</view>
-		<view v-show="isContent">
+		<!-- <view v-show="isContent">
 			<uni-load-more :status="loadStatus"></uni-load-more>
-		</view>
+		</view> -->
 	</view>
 </template>
 

+ 82 - 30
pages/erp/receivingfeedback/details.vue

@@ -144,7 +144,12 @@
 			<view style='margin-left:10px;'>卸车详情</view>
 			<view v-for='(item,index) in freightspace' class="content">
 				<view class="row">
-					<view class="left">车厢号-{{index+1}}</view>
+					<view class="left">车厢-{{index+1}}</view>
+					<view style='text-align:right;' v-if="item.status == '未装车'">{{item.status}}</view>
+					<view style='text-align:right;' v-else-if="item.status == '已送达'">已卸车</view>
+				</view>
+				<view class="row">
+					<view class="left">车厢号</view>
 					<view>{{item.boxNo}}</view>
 				</view>
 				<view class="row">
@@ -153,19 +158,27 @@
 				</view>
 				<view class="row">
 					<view class="left">卸车净重</view>
-					<view v-if="item.status == '装车' || item.status == '已送达'">{{item.unloadNetWeight}}</view>
+					<view v-if="item.status == '装车' || item.status == '已送达'">{{item.unloadNetWeight}}</view>
 					<view style='text-align:right;' v-else>
 						<input  v-model='item.unloadNetWeight' class="right-bottom"
-					placeholder="输入毛重"></input>
+					placeholder="输入卸车净重"></input>
+					</view>
+				</view>
+				<view v-if="detailData.priceType!=null&&detailData.priceType=='随行就市'" class="row">
+					<view class="left">单价(元/吨)</view>
+					<view v-if="item.status == '未装车' || item.status == '已送达'">{{item.contractPrice}}</view>
+					<view style='text-align:right;' v-else>
+						<input  v-model='item.contractPrice' class="right-bottom"
+					placeholder="输入单价"></input>
 					</view>
 				</view>
 				<view class="row">
 					<view class="left">磅单</view>
-					<view v-if="item.status == '已装车' || item.status == '已送达'">
+					<view v-if="item.status == '装车' || item.status == '已送达'">
 						<image v-if="item.unloadPoundImg" @click='shadeshow(item.unloadPoundImg)' style='width:100px;height:100px;' :src="item.unloadPoundImg" mode=""></image>
 						<view v-else>暂无图片</view>
 					</view>
-					<view v-else>
+					<view v-else class="pound_list">
 						<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl"
 							:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
 							@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
@@ -174,14 +187,13 @@
 				<view class="row">
 					<view class="left">卸车日期</view>
 					<view>
-						<view v-if="item.status == '装车' || item.status == '已送达'">{{item.unloadingDate}}</view>
+						<view v-if="item.status == '装车' || item.status == '已送达'">{{item.unloadingDate}}</view>
 						<view v-else @click='train(index)'>{{item.unloadingDate?item.unloadingDate:'请选择日期'}}</view>
 						<u-picker v-model="item.show2" mode="time"  @cancel='datecancel()' @confirm='dateChange1($event,item)' :params="params">
 						</u-picker>
 					</view>
 				</view>
-				<view style='text-align:right;' v-if="item.status == '已装车' || item.status == '已送达'">{{item.status}}</view>
-				<u-button v-else @click='submit(index,2)' type="success">保存</u-button>
+				<u-button v-if="item.status == '已装车'" @click='submit(index,2)' type="success">保存</u-button>
 			</view>
 		</view>
 		<view v-if='detailData.tranType=="汽运"'>
@@ -217,11 +229,19 @@
 					placeholder="输入卸车净重"></input>
 					</view>
 				</view>
+				<view v-if="detailData.priceType!=null&&detailData.priceType=='随行就市'" class="row">
+					<view class="left">单价(元/吨)</view>
+					<view v-if="item.status == '未装车' || item.status == '已送达'">{{item.contractPrice}}</view>
+					<view style='text-align:right;' v-else>
+						<input  v-model='item.contractPrice' class="right-bottom"
+					placeholder="输入单价"></input>
+					</view>
+				</view>
 				<view class="row">
 					<view class="left">卸车日期</view>
 					<view>
-						<view v-if="item.status == '已装车' || item.status == '已送达'">{{item.receiveDateEnd}}</view>
-						<view v-else @click='train(index)'>{{item.receiveDateEnd?item.receiveDateEnd:'请选择日期'}}</view>
+						<view v-if="item.status == '装车' || item.status == '已送达'">{{item.receiveDateEnd}}</view>
+						<view @click='train(index)'>{{item.receiveDateEnd?item.receiveDateEnd:'请选择日期'}}</view>
 						<u-picker v-model="item.show2" mode="time"  @cancel='datecancel()' @confirm='dateChange2($event,index)' :params="params">
 						</u-picker>
 					</view>
@@ -232,7 +252,7 @@
 						<image v-if="item.unloadPoundImg" @click='shadeshow(item.unloadPoundImg)' style='width:100px;height:100px;' :src="item.unloadPoundImg" mode=""></image>
 						<view v-else>暂无图片</view>
 					</view>
-					<view v-else>
+					<view v-else class="pound_list">
 						<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl"
 							:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
 							@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
@@ -304,6 +324,14 @@
 					placeholder="输入卸船净重"></input>
 					</view>
 				</view>
+				<view v-if="detailData.priceType!=null&&detailData.priceType=='随行就市'" class="row">
+					<view class="left">单价(元/吨)</view>
+					<view v-if="item.status == '未装车' || item.status == '已送达'">{{item.contractPrice}}</view>
+					<view style='text-align:right;' v-else>
+						<input  v-model='item.contractPrice' class="right-bottom"
+					placeholder="输入单价"></input>
+					</view>
+				</view>
 				<view class="row">
 					<view class="left">卸船日期</view>
 					<view>
@@ -313,8 +341,8 @@
 						</u-picker>
 					</view>
 				</view>
-				<view style='text-align:right;' v-if="item.status == '未装车' || item.status == '已送达'">{{item.status}}</view>
-				<u-button v-else @click='submit(index,3)' type="success">保存</u-button>
+				<!-- <view style='text-align:right;' v-if="item.status == '未装车' || item.status == '已送达'">{{item.status}}</view> -->
+				<u-button v-if="item.status == '已装车'" @click='submit(index,3)' type="success">保存</u-button>
 			</view>
 			<view class="row">
 				<view style='margin-left:10px;' class="left">运单</view>
@@ -415,7 +443,7 @@
 				this.url=url
 			},
 			datecancel(){
-				this.freightspace[this.index].show2=true
+				this.freightspace[this.index].show2 = true
 				this.$forceUpdate();
 			},
 			submit(index,status){
@@ -559,7 +587,7 @@
 							that.$api.msg('保存成功')
 							that.detailData = {}
 							that.freightspace = {}
-							uni.navigateBack({})
+								uni.navigateBack()
 						}
 					})
 				}
@@ -600,7 +628,10 @@
 										that.$api.msg('提交成功')
 										that.detailData = {}
 										that.freightspace = {}
-										uni.navigateBack({})
+										setTimeout(function(){
+											uni.navigateBack()
+										},1000)
+										
 									}
 								})
 							}
@@ -619,7 +650,10 @@
 										that.$api.msg('提交成功')
 										that.detailData = {}
 										that.freightspace = {}
-										uni.navigateBack({})
+										setTimeout(function(){
+											uni.navigateBack()
+										},1000)
+										
 									}
 								})
 							}
@@ -638,7 +672,9 @@
 										that.$api.msg('提交成功')
 										that.detailData = {}
 										that.freightspace = {}
-										uni.navigateBack({})
+										setTimeout(function(){
+											uni.navigateBack()
+										},1000)
 									}
 								})
 							}
@@ -698,9 +734,10 @@
 										that.$api.msg('提交成功')
 										that.detailData = {}
 										that.freightspace = {}
-										uni.navigateBack({
-											
-										})
+										setTimeout(function(){
+											uni.navigateBack()
+										},1000)
+										
 									}
 								})
 							}
@@ -732,9 +769,10 @@
 										that.$api.msg('提交成功')
 										that.detailData = {}
 										that.freightspace = {}
-										uni.navigateBack({
-											
-										})
+										setTimeout(function(){
+											uni.navigateBack()
+										},1000)
+										
 									}
 								})
 							}
@@ -772,7 +810,10 @@
 										that.$api.msg('提交成功')
 										that.detailData = {}
 										that.freightspace = {}
-										uni.navigateBack({})
+										setTimeout(function(){
+											uni.navigateBack()
+										},1000)
+										
 									}
 								})
 							}
@@ -804,9 +845,11 @@
 						}else if(res.data.data.tranType=='汽运'){
 							for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
 								res.data.data.tranCarInfoList[i].show2=false
+								if(res.data.data.tranCarInfoList[i].unloadPoundImg){
+									this.imgUrl.push({url:res.data.data.tranCarInfoList[i].unloadPoundImg.split(",")[i]})
+								}
 							}
 							this.freightspace=res.data.data.tranCarInfoList
-							
 						}else if(res.data.data.tranType=='船运'){
 							if (res.data.data.tranCarInfoList.length > 0) {
 								for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
@@ -832,7 +875,6 @@
 							            }
 							            this.freightspace = res.data.data.tranCarInfoList
 							          }
-							
 						}
 						
 					}
@@ -877,8 +919,8 @@
 			},
 			train(index){
 				console.log(index)
-				
-				this.freightspace[index].show2=true
+				// debugger
+				this.freightspace[index].show2 = true
 				this.$forceUpdate();
 				this.index=index
 			},
@@ -987,9 +1029,19 @@
 	
 		.left {
 			margin-right: 20px;
+			width: 300rpx;
 		}
 	}
-	
+	// .left {
+	// 	margin-right: 20px;
+	// 	width: 300rpx;
+	// }
+	.pound_list{
+		width: 452rpx;
+		display: flex;
+		justify-content: flex-end;
+		text-align: right;
+	}
 	.submit {
 		width: 40%;
 		background: #22C572;

+ 2 - 2
pages/erp/receivingfeedback/list.vue

@@ -36,9 +36,9 @@
 				</view>
 			</view>
 		</view>
-		<view v-show="isContent">
+		<!-- <view v-show="isContent">
 			<uni-load-more :status="loadStatus"></uni-load-more>
-		</view>
+		</view> -->
 	</view>
 </template>
 

+ 29 - 3
pages/grain_pulse/home.vue

@@ -4,7 +4,7 @@
 			<view class="flex justify-between map">
 				<view class='Medium flex align-item-center locationwrap'
 					@click='naviageToPage("/pages/grain_pulse/position/position")'>
-					<image class='location' src="../../static/img/liangmai/icon_ditu.png" mode=""></image>
+					<image class='location' src="../../static/img/liangmai/icon_ditu@2x.png" mode=""></image>
 					{{position.name}}
 				</view>
 				<view @click='naviageToPage("/pages/grain_pulse/distribution/distribution?position="+JSON.stringify(position))'
@@ -13,6 +13,7 @@
 					分布
 				</view>
 			</view>
+			<u-search :show-action="true" action-text="搜索" :animation="true"></u-search>
 			<!-- <view class="cu-bar search">
 				<view class="search-form round" @click="naviageToPage('/pages/grain_pulse/search')">
 					<image class='icon-scarch' src="../../static/img/liangmai/sousuo.png" mode=""></image>
@@ -196,6 +197,31 @@
 			else{
 				this.getList()
 			}
+			uni.removeTabBarBadge({
+				index: 4
+			})
+			this.$api.doRequest('get', '/notice/query/noticeNumber').then(res => {
+				if (res.data.data) {
+					let name = 'myTip';
+					let value = res.data.data.task;
+					that.$store.commit('$uStore', {
+						name,
+						value
+					});
+					if(value != 0&&value){
+						uni.setTabBarBadge({
+							index:4,
+							text:value+""
+						})
+					}
+					name = 'taskTip';
+					value = res.data.data.task;
+					that.$store.commit('$uStore', {
+						name,
+						value
+					});
+				}
+			})
 		},
 		onLoad(option) {
 			if (option.position){
@@ -377,8 +403,8 @@
 	/* 《--定位 */
 	.location {
 		width: 30rpx;
-		height: 30rpx;
-		margin-right: 2.5px;
+		height: 35rpx;
+		margin-right:10rpx ;
 	}
 
 	.locationwrap {

+ 3 - 1
pages/sale/information.vue

@@ -179,7 +179,9 @@
 			this.loadData()
 			var userInfo = uni.getStorageSync("userInfo")
 			var that = this
-
+			uni.removeTabBarBadge({
+				index: 4
+			})
 			this.$api.doRequest('get', '/notice/query/noticeNumber').then(res => {
 				console.log("noticeNumber", res)
 				if (res.data.data) {

+ 8 - 109
pages/task/audit/Issueandreceipt_task_details.vue

@@ -319,115 +319,14 @@
 					}
 				})
 			},
-			pjPicker(e) {
-				this.OutList.grade = this.pjList[e[0]].type
-				this.OutList.gradeKey = e[0] + 1
-			},
-			pjPicker1(e) {
-				this.EnterList.grade = this.pjList[e[0]].type
-				this.EnterList.gradeKey = e[0] + 1
-			},
-			passSubmit() {
-				this.OutList.inOutFlag = 1
-				this.EnterList.inOutFlag = 2
-				if (this.OutList.taskTypeKey == 1) {
-					this.requestadd(this.OutList)
-				} else if (this.EnterList.taskTypeKey == 2) {
-					this.requestadd(this.EnterList)
-				} else if (
-					this.OutList.taskTypeKey == 3 ||
-					this.OutList.taskTypeKey == 4
-				) {
-					this.requestadd(this.OutList, 'repetition')
-					if (!this.deletetask) {
-						this.requestadd(this.EnterList, 'repetition')
-					}
-				}
-				if(this.retreatList.taskTypeKey == 1 || this.retreatList.taskTypeKey == 2){
-					this.requestadd(this.retreatList)
-				}else if(this.retreatList.taskTypeKey == 3 || this.retreatList.taskTypeKey == 4){
-					this.requestadd(this.retreatList, 'repetition')
-				}
-			},
-			rejectSubmit() {
-				// (1出库2入库3移库4退库并出库)taskTypeKey
-				if (!this.rejectInfo) {
-					this.$api.msg('驳回原因不能为空!')
-				} else {
-					this.show1 = false
-					if (this.OutList.taskTypeKey == 1 ) {
-						this.requestaudit(this.OutList)
-					} else if (this.OutList.taskTypeKey == 2) {
-						this.requestaudit(this.OutList)
-					} else if (
-						this.OutList.taskTypeKey == 3 ||
-						this.OutList.taskTypeKey == 4
-					) {
-						this.requestaudit(this.OutList, 'repetition')
-						if (!this.deletetask) {
-							this.requestaudit(this.OutList, 'repetition')
-						}
-					}
-					if(this.EnterList){
-						if(this.EnterList.taskTypeKey == 1 || this.EnterList.taskTypeKey == 2){
-						this.requestaudit(this.EnterList)
-					}else if(this.EnterList.taskTypeKey == 3 || this.EnterList.taskTypeKey == 4){
-						this.requestaudit(this.EnterList, 'repetition')
-					}
-					}
-					
-					if(this.retreatList){
-						if(this.retreatList.taskTypeKey == 1 || this.retreatList.taskTypeKey == 2){
-							this.requestaudit(this.retreatList)
-						}else if(this.retreatList.taskTypeKey == 3 || this.retreatList.taskTypeKey == 4){
-							this.requestaudit(this.retreatList, 'repetition')
-						}
-					}
-				}
-			},
-			requestadd(list, status) {
-				
-				list.compId = sessionStorage.getItem('ws-pf_compId')
-				// list.publisher = this.userInfo.userName
-				this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
-					if (res.data.code == 200) {
-						this.$api.doRequest('post', '/workflow/api/handle', {
-							taskId: list.taskId,
-							approved: true,
-							auditMind: '34',
-							needReapply: false
-						}).then(res => {
-							if (res.data.code == 200) {
-								this.$api.msg('审核成功!')
-								setTimeout(function() {
-										uni.navigateBack()
-								}, 1000);
-							}
-						})
-					}
-				})
-			},
-			requestaudit(list, status) {
-				list.compId = '2710b21efc1e4393930c5dc800010dc4'
-				// list.publisher = this.userInfo.userName
-				this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
-					if (res.data.code == 200) {
-						this.$api.doRequest('post', '/workflow/api/handle', {
-							taskId: list.taskId,
-							approved: false,
-							auditMind: this.rejectInfo,
-							needReapply: true
-						}).then(res => {
-							if (res.data.code == 200) {
-								this.$api.msg('驳回成功!')
-								setTimeout(function() {
-										uni.navigateBack()
-								}, 1000);
-							}
-						})
-					}
-				})
-			},
+			// pjPicker(e) {
+			// 	this.OutList.grade = this.pjList[e[0]].type
+			// 	this.OutList.gradeKey = e[0] + 1
+			// },
+			// pjPicker1(e) {
+			// 	this.EnterList.grade = this.pjList[e[0]].type
+			// 	this.EnterList.gradeKey = e[0] + 1
+			// },
 			fanHui(){
 				uni.navigateBack()
 			}

+ 0 - 63
pages/task/audit/acquisition_settlement_details.vue

@@ -94,69 +94,6 @@
 				})
 
 			},
-			//驳回
-			rejectSubmit() {
-				var that = this
-				if (this.List.length > 0) {
-					uni.showModal({
-						content: "确定驳回付款申请?",
-						showCancel: true,
-						confirmText: '确定',
-						success: function(res) {
-							if (res.confirm) {
-								that.audit(that.List[0], 0, false, '', '')
-							}
-						}
-					})
-				}
-			},
-			//通過
-			passSubmit() {
-				var that = this
-				uni.showModal({
-					content: "确定通过付款申请?",
-					showCancel: true,
-					confirmText: '确定',
-					success: function(res) {
-						if (res.confirm) {
-							that.audit(that.List[0], 0, true)
-						}
-					}
-				})
-			},
-			audit(item, index, status, status2, reason) {
-				if (this.List.length > 0) {
-					if (status == true && item.status == "已驳回") {
-						this.$api.doRequest('get', '/paymentManagement/api/openAuditFlow', {
-							compId: "2710b21efc1e4393930c5dc800010dc4",
-							id: item.id
-						}).then(res => {
-							if (res.data.code == 200) {
-								this.audit(this.List[index + 1], index + 1, status, status2, reason)
-							}
-						})
-					} else {
-						this.$api.doRequest('get', '/workflow/api/handle', {
-							taskId: item.taskId,
-							approved: status,
-							auditMind: reason ? '已驳回' : '34',
-							needReapply: status2 ? true : false
-						}).then(res => {
-							if (res.data.code == 200) {
-								this.audit(this.List[index + 1], index + 1, status, status2, reason)
-							}
-						})
-					}
-				} else {
-					if (status == true) {
-						that.$api.msg('通过成功')
-						this.getList()
-					} else if (status == false) {
-						that.$api.msg('驳回成功')
-						this.getList()
-					}
-				}
-			},
 			fanHui(){
 				uni.navigateBack()
 			}

+ 0 - 17
pages/task/audit/freight_setting_details.vue

@@ -70,23 +70,6 @@
 					this.list = res.data.data
 				})
 			},
-			passSubmit() {
-				var that = this
-				var tranProcessInfo = {}
-				tranProcessInfo.id = this.list.id
-				tranProcessInfo.flag = "1"
-				tranProcessInfo.tranPriceIng = this.list.tranPriceIng
-				tranProcessInfo.reviewer = this.userInfo.userName
-				this.$api.doRequest('post', '/tranProcessInfo/api/setUpTranPrice', tranProcessInfo).then(res => {
-					if (res.data.code == 200) {
-						this.$api.msg('审核通过成功!')
-						setTimeout(function() {
-							uni.navigateBack()
-						}, 1000);
-					}
-
-				})
-			},
 			fanHui(){
 				uni.navigateBack()
 			}

+ 75 - 73
pages/task/audit/freight_settlement_approval.vue

@@ -4,51 +4,52 @@
 			<view class="topInfo-item">
 				<view class="flex info">
 					<view class="logo">
-						<image src="../../../static/img/reject.png" mode="" v-if="list[0].approveStatus == '已驳回'"
+						<image src="../../../static/img/reject.png" mode="" v-if="list.approveStatus == '已驳回'"
 							style="height: 40rpx;"></image><!-- 驳回 -->
-						<image src="../../../static/img/tongguo.png" mode="" v-if="list[0].approveStatus == '已通过'"
+						<image src="../../../static/img/tongguo.png" mode="" v-if="list.approveStatus == '已通过'"
 							style="height: 40rpx;"></image><!-- 通过 -->
-						<image src="../../../static/img/daishenhe.png" mode="" v-if="list[0].approveStatus == '待决策人审核'|| list[0].approveStatus == '待财务审核'"
+						<image src="../../../static/img/daishenhe.png" mode="" v-if="list.approveStatus == '待决策人审核'|| list.approveStatus == '待财务审核'"
 							style="height: 40rpx;"></image><!-- 待审核 -->
 					</view>
-					<view class="infoText">{{list[0].approveStatus}}</view>
+					<view class="infoText">{{list.approveStatus}}</view>
 				</view>
-				<view class="infoData">{{list[0].updateDate}}</view>
+				<view class="infoData">{{list.updateDate}}</view>
 			</view>
 		</view>
 		<view class="content">
 			<view class="top">
 				<view>合同编号</view>
-				<view>{{list[0].contractNo}}</view>
+				<view>{{list.contractNo}}</view>
 			</view>
 			<view class="car-container">
-				<view v-for="(item,index) in list" style="border-bottom: 2rpx solid #EEEEEE;margin-top: 30rpx;">
-					<view class="car-num title">{{item.carNo}} ({{item.tranCarNo}})</view>
+					<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>
+					<view class="car-num title" v-if="list.tranTypeKey== '3'&&list.shipType== '散船'">仓位号{{list.boxNo}}</view>
+					<view class="car-num title" v-if="list.tranTypeKey== '3'&&list.shipType== '集装箱'">箱号{{list.boxNo}}</view>
 					<view class="car-type-item">
 						<view class="left">装</view>
-						<view class="textInfo">{{item.loadingWeight}}吨</view>
+						<view class="textInfo">{{list.loadingWeight}}吨</view>
 					</view>
 					<view class="car-type-item">
 						<view class="center">卸</view>
-						<view class="textInfo">{{item.unloadingWeight}}吨</view>
+						<view class="textInfo">{{list.unloadingWeight}}吨</view>
 					</view>
 					<view class="car-type-item">
 						<view class="right">结</view>
-						<view class="textInfo">{{item.settlementWeight}}吨</view>
+						<view class="textInfo">{{list.settlementWeight}}吨</view>
 					</view>
 					<view class="car-type-item">
 						<view class="left">运</view>
-						<view class="textInfo">{{item.transportPrice}}元/吨</view>
+						<view class="textInfo">{{list.transportPrice}}元/吨</view>
 					</view>
 					<view class="car-type-item">
 						<view class="center">扣</view>
-						<view class="textInfo">{{item.deductionAmount}}元</view>
+						<view class="textInfo">{{list.deductionAmount}}元</view>
 					</view>
 					<view class="car-type-item">
 						<view class="right">付</view>
-						<view class="textInfo">{{item.amountIngPayable}}元</view>
+						<view class="textInfo">{{list.amountIngPayable}}元</view>
 					</view>
-				</view>
 			</view>
 		</view>
 		<u-popup v-model="show1" mode="center">
@@ -101,92 +102,93 @@
 				border: false,
 			}
 		},
-		onLoad() {
+		onLoad(options) {
+			this.id = options.id
 			this.getList()
 		},
 		methods: {
 			getList() {
-				this.$api.doRequest('get', '/tranSettlementReport/selectTranSettlementReport', {
-					compId: "2710b21efc1e4393930c5dc800010dc4",
-					currentPage: this.currentPage,
-					pageSize: this.pageSize,
-					contractNo: "全部合同"
+				this.$api.doRequest('get', '/tranSettlementReport/getInfo', {
+					id: this.id
 				}).then(res => {
+					this.contractNo = res.data.data.contractNo
+					this.carId = res.data.data.carId
 					if (res.data.code == 200) {
-						this.list = res.data.data.records
+						this.$api.doRequest('get', '/tranSettlementReport/selectTranSettlementReport', {
+							compId: "2710b21efc1e4393930c5dc800010dc4",
+							currentPage: this.currentPage,
+							pageSize: this.pageSize,
+							contractNo: this.contractNo,
+							carId:this.carId,
+						}).then(res => {
+							if (res.data.code == 200) {
+								this.list= res.data.data.records[0]
+								console.log(this.list,124)
+							}
+						})
 					}
 				})
 			},
 			// 驳回
 			rejectSubmit() {
 				var that = this
-				if (this.list.length == 0) {
-						this.$api.msg('没有要审核的条目!')
-				} else {
-					if (!this.rejectInfo) {
-						this.$api.msg('驳回原因不能为空!')
-					}else{
-					this.show1 = false
-					uni.showModal({
-						content: "是否确定驳回?",
-						showCancel: true,
-						confirmText: '确定',
-						success: function(res) {
-							if (res.confirm) {
-								that.audit(that.list[0], 0, false, true, '已驳回')
-							}
+				if (!this.rejectInfo) {
+					this.$api.msg('驳回原因不能为空!')
+				}else{
+				this.show1 = false
+				uni.showModal({
+					content: "是否确定驳回?",
+					showCancel: true,
+					confirmText: '确定',
+					success: function(res) {
+						if (res.confirm) {
+							that.audit(that.list, 0, false, true, that.rejectInfo)
 						}
-					})
 					}
-				}
+				})
+			}
+
 			},
 			//通过
 			passSubmit() {
 				var that = this
-				if (this.list.length == 0) {
-					this.$api.msg('没有要审核的条目!')
-				} else {
-					if (!this.rejectInfo1) {
-						this.$api.msg('审核意见不能为空!')
-					}else{
-					this.show2 = false
-					uni.showModal({
-						content: "是否确定通过?",
-						showCancel: true,
-						confirmText: '确定',
-						success: function(res) {
-							if (res.confirm) {
-								that.audit(that.list[0], 0, true, 2)
-							}
+				if (!this.rejectInfo1) {
+					this.$api.msg('审核意见不能为空!')
+				}else{
+				this.show2 = false
+				uni.showModal({
+					content: "是否确定通过?",
+					showCancel: true,
+					confirmText: '确定',
+					success: function(res) {
+						if (res.confirm) {
+							that.audit(that.list, 0, true, 2,that.rejectInfo1)
 						}
-					})
 					}
-				}
-				
+				})
+			}
 			},
 			//审核方法
-			audit(item, index, status, status2, reason) {
-				if (index < this.list.length) {
+			audit(list, index, status, status2, reason) {
+				if (this.list) {
 					this.$api.doRequest('post', '/workflow/api/handle', {
-						taskId: item.taskId,
+						taskId: list.taskId,
 						approved: status,
 						auditMind: reason != undefined ? this.rejectInfo : this.rejectInfo1,
 						needReapply: status2 != undefined ? true : false,
 					}).then(res => {
-						this.audit(this.list[index + 1], index + 1, status)
+						if (status == true) {
+								this.$api.msg('通过成功')
+							setTimeout(function() {
+								uni.navigateBack()
+							}, 1000);
+						} else if (status == false) {
+								this.$api.msg('驳回成功')
+							setTimeout(function() {
+								uni.navigateBack()
+							}, 1000);
+						}
 					})
-				} else {
-					if (status == true) {
-							this.$api.msg('通过成功')
-						setTimeout(function() {
-							uni.navigateBack()
-						}, 1000);
-					} else if (status == false) {
-							this.$api.msg('驳回成功')
-						setTimeout(function() {
-							uni.navigateBack()
-						}, 1000);
-					}
 				}
 			},
 		}

+ 48 - 81
pages/task/audit/freight_settlement_details.vue

@@ -4,51 +4,50 @@
 			<view class="topInfo-item">
 				<view class="flex info">
 					<view class="logo">
-						<image src="../../../static/img/reject.png" mode="" v-if="list[0].approveStatus == '已驳回'"
+						<image src="../../../static/img/reject.png" mode="" v-if="list.status == '已驳回'"
 							style="height: 40rpx;"></image><!-- 驳回 -->
-						<image src="../../../static/img/tongguo.png" mode="" v-if="list[0].approveStatus == '已通过'"
+						<image src="../../../static/img/tongguo.png" mode="" v-if="list.status == '已通过'"
 							style="height: 40rpx;"></image><!-- 通过 -->
-						<image src="../../../static/img/daishenhe.png" mode="" v-if="list[0].approveStatus == '待决策人审核'"
-							style="height: 40rpx;"></image><!-- 待审核 -->
 					</view>
-					<view class="infoText">{{list[0].approveStatus}}</view>
+					<view class="infoText">{{list.status}}</view>
 				</view>
-				<view class="infoData">{{list[0].updateDate}}</view>
+				<view class="infoData">{{list.updateDate}}</view>
 			</view>
 		</view>
 		<view class="content">
 			<view class="top">
 				<view>合同编号</view>
-				<view>{{list[0].contractNo}}</view>
+				<view>{{list.contractNo}}</view>
 			</view>
 			<view class="car-container">
-				<view v-for="(item,index) in list" style="border-bottom: 2rpx solid #EEEEEE;margin-top: 30rpx;">
-					<view class="car-num title">{{item.carNo}} ({{item.tranCarNo}})</view>
+					<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>
+					<view class="car-num title" v-if="list.tranTypeKey== '3'&&list.shipType== '散船'">仓位号{{list.boxNo}}</view>
+					<view class="car-num title" v-if="list.tranTypeKey== '3'&&list.shipType== '集装箱'">箱号{{list.boxNo}}</view>
 					<view class="car-type-item">
 						<view class="left">装</view>
-						<view class="textInfo">{{item.loadingWeight}}吨</view>
+						<view class="textInfo">{{list.loadingWeight}}吨</view>
 					</view>
 					<view class="car-type-item">
 						<view class="center">卸</view>
-						<view class="textInfo">{{item.unloadingWeight}}吨</view>
+						<view class="textInfo">{{list.unloadingWeight}}吨</view>
 					</view>
 					<view class="car-type-item">
 						<view class="right">结</view>
-						<view class="textInfo">{{item.settlementWeight}}吨</view>
+						<view class="textInfo">{{list.settlementWeight}}吨</view>
 					</view>
 					<view class="car-type-item">
 						<view class="left">运</view>
-						<view class="textInfo">{{item.transportPrice}}元/吨</view>
+						<view class="textInfo">{{list.transportPrice}}元/吨</view>
 					</view>
 					<view class="car-type-item">
 						<view class="center">扣</view>
-						<view class="textInfo">{{item.deductionAmount}}元</view>
+						<view class="textInfo">{{list.deductionAmount}}元</view>
 					</view>
 					<view class="car-type-item">
 						<view class="right">付</view>
-						<view class="textInfo">{{item.amountIngPayable}}元</view>
+						<view class="textInfo">{{list.amountIngPayable}}元</view>
 					</view>
-				</view>
 			</view>
 		</view>
 		<u-toast ref="uToast" />
@@ -71,78 +70,31 @@
 				],
 			}
 		},
-		onLoad() {
+		onLoad(options) {
+			this.id = options.id
 			this.getList()
 		},
 		methods: {
 			getList() {
-				this.$api.doRequest('get', '/tranSettlementReport/selectTranSettlementReport', {
-					compId: "2710b21efc1e4393930c5dc800010dc4",
-					currentPage: this.currentPage,
-					pageSize: this.pageSize,
-					contractNo: "全部合同"
+				this.$api.doRequest('get', '/tranSettlementReport/getInfo', {
+					id: this.id
 				}).then(res => {
+					this.contractNo = res.data.data.contractNo
+					this.carId = res.data.data.carId
 					if (res.data.code == 200) {
-						this.list = res.data.data.records
-					}
-				})
-			},
-			// 驳回
-			rejectSubmit() {
-				var that = this
-				if (this.list.length == 0) {
-						this.$api.msg('没有要审核的条目!')
-				} else {
-					uni.showModal({
-						content: "是否确定驳回?",
-						showCancel: true,
-						confirmText: '确定',
-						success: function(res) {
-							if (res.confirm) {
-								that.audit(that.list[0], 0, false, true, '已驳回')
+						this.$api.doRequest('get', '/tranSettlementReport/selectTranSettlementReport', {
+							compId: "2710b21efc1e4393930c5dc800010dc4",
+							currentPage: this.currentPage,
+							pageSize: this.pageSize,
+							contractNo: this.contractNo,
+							carId:this.carId,
+						}).then(res => {
+							if (res.data.code == 200) {
+								this.list= res.data.data.records[0]
 							}
-						}
-					})
-				}
-			},
-			//通过
-			passSubmit() {
-				var that = this
-				if (this.list.length == 0) {
-					this.$api.msg('没有要审核的条目!')
-				} else {
-					uni.showModal({
-						content: "是否确定通过?",
-						showCancel: true,
-						confirmText: '确定',
-						success: function(res) {
-							if (res.confirm) {
-								that.audit(that.list[0], 0, true, 2)
-							}
-						}
-					})
-				}
-			},
-			//审核方法
-			audit(item, index, status, status2, reason) {
-				if (index < this.list.length) {
-					this.$api.doRequest('post', '/workflow/api/handle', {
-						taskId: item.taskId,
-						approved: status,
-						auditMind: reason != undefined ? '已驳回' : '34',
-						needReapply: status2 != undefined ? true : false,
-					}).then(res => {
-						this.audit(this.list[index + 1], index + 1, status)
-					})
-				} else {
-					if (status == true) {
-							that.$api.msg('通过成功')
-						this.getList()
-					} else if (status == false) {
-							that.$api.msg('驳回成功')
-						this.getList()
+						})
 					}
-				}
+				})
 			},
 			fanHui(){
 				uni.navigateBack()
@@ -154,7 +106,7 @@
 <style scoped lang="scss">
 	.container {
 		margin: 10rpx;
-		padding: 20rpx 20rpx 110rpx 20rpx;
+		padding: 20rpx 20rpx 230rpx 20rpx;
 	}
 
 	.content {
@@ -270,4 +222,19 @@
 			}
 		}
 	}
+	.rejectInfoCss {
+		border: 1px solid #ccc;
+		border-radius: 10rpx;
+		background-color: #F9F9FA;
+		// height: 100px;
+		overflow-y: auto;
+		margin: 30rpx;
+	}
+	.rejectText {
+		text-align: center;
+	}
+	/deep/.u-input__textarea{
+		height: 300rpx!important;
+	}
 </style>
+

+ 6 - 2
pages/task/audit/purchase_settlement_approval.vue

@@ -18,8 +18,8 @@
 		</view>
 		<view class="content">
 			<view class="top content-item">
-				<view>{{contractNo}}</view>
-				<view>元/吨</view>
+				<view>{{contractNo}} ({{goodsName}})</view>
+				<view>{{unitPrice}}元/吨</view>
 			</view>
 			<view class="content-item">
 				<view class="car-container" v-for="(item,index) in list">
@@ -94,6 +94,8 @@
 				height: 200,
 				autoHeight: true,
 				border: false,
+				unitPrice:"",
+				goodsName:"",
 			}
 		},
 		onLoad(options) {
@@ -106,6 +108,8 @@
 					id: this.id
 				}).then(res => {
 					this.contractNo = res.data.data.contractNo
+					this.unitPrice = res.data.data.price
+					this.goodsName = res.data.data.goodsName
 					if (res.data.code == 200) {
 						this.$api.doRequest('get', '/stockPurchaseReceiptReport/selectPurchaseOrder', {
 							compId: "2710b21efc1e4393930c5dc800010dc4",

+ 7 - 75
pages/task/audit/purchase_settlement_details.vue

@@ -18,8 +18,8 @@
 		</view>
 		<view class="content">
 			<view class="top content-item">
-				<view>{{contractNo}}</view>
-				<view>元/吨</view>
+				<view>{{contractNo}}({{goodsName}})</view>
+				<view>{{unitPrice}}元/吨</view>
 			</view>
 			<view class="content-item">
 				<view class="car-container" v-for="(item,index) in list">
@@ -61,6 +61,8 @@
 					{status:"",}
 				],
 				contractNo: "",
+				unitPrice: "",
+				goodsName:"",
 			}
 		},
 		onLoad(options) {
@@ -73,6 +75,9 @@
 					id: this.id
 				}).then(res => {
 					this.contractNo = res.data.data.contractNo
+					this.unitPrice = res.data.data.price
+					this.goodsName = res.data.data.goodsName
+					console.log(this.goodsName)
 					if (res.data.code == 200) {
 						this.$api.doRequest('get', '/stockPurchaseReceiptReport/selectPurchaseOrder', {
 							compId: "2710b21efc1e4393930c5dc800010dc4",
@@ -87,79 +92,6 @@
 					}
 				})
 			},
-			//驳回
-			rejectSubmit() {
-				var that = this
-				if (this.list.length == 0) {
-					that.$api.msg('没有要审核的条目!')
-				} else {
-					// uni.showModal({
-					// 	content: "是否确定驳回?",
-					// 	success(res) {
-					// 		if(res)
-					// 		this.audit(this.list[0], 0, false, true, '已驳回')
-					// 	}
-					// })
-
-
-					uni.showModal({
-						content: "是否确定驳回?",
-						showCancel: true,
-						confirmText: '确定',
-						success: function(res) {
-							if (res.confirm) {
-								that.audit(that.list[0], 0, false, true, '已驳回')
-							}
-						}
-					})
-				}
-			},
-			//通过
-			passSubmit() {
-				var that = this
-				if (this.list.length == 0) {
-					that.$api.msg('没有要审核的条目!')
-				} else {
-					// uni.showModal({
-					// 	content: "是否确定通过?",
-					// 	success(res) {
-					// 		if(res)
-					// 		this.audit(this.list[0], 0, true, 2)
-					// 	}
-					// })
-					uni.showModal({
-						content: "是否确定通过?",
-						showCancel: true,
-						confirmText: '确定',
-						success: function(res) {
-							if (res.confirm) {
-								that.audit(that.list[0], 0, true, 2)
-							}
-						}
-					})
-				}
-			},
-			//审核方法
-			audit(item, index, status, status2, reason) {
-				if (index < this.list.length) {
-					this.$api.doRequest('post', '/workflow/api/handle', {
-						taskId: item.taskId,
-						approved: status,
-						auditMind: reason != undefined ? '已驳回' : '34',
-						needReapply: status2 != undefined ? true : false,
-					}).then(res => {
-						this.audit(this.list[index + 1], index + 1, status)
-					})
-				} else {
-					if (status == true) {
-						that.$api.msg('通过成功')
-						this.getList()
-					} else if (status == false) {
-						that.$api.msg('驳回成功')
-						this.getList()
-					}
-				}
-			},
 			fanHui(){
 				uni.navigateBack()
 			}

+ 23 - 5
pages/task/audit/purchasecontract.vue

@@ -120,11 +120,16 @@
 				<u-input v-model="list.remarks" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="附件">
-				<view class="textCss">
+				<!-- <view class="textCss">
 					<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
 						:file-list="imglist" :size-type="['compressed']" @on-success="getImgUrl" @on-error="onError"
 						@on-remove="onRemove" @on-uploaded="isAdd = true" :before-upload="filterFileType"
 						@on-progress="onProgress" :deletable="false" :showProgress = "false"></upload>
+				</view> -->
+				<view v-for='item in imglist'>
+					<view @click='shadeshow(item)'>
+						<image style='width: 200rpx;height: 200rpx;' :src="item" mode=""></image>
+					</view>
 				</view>
 			</u-form-item>
 		</u-form>
@@ -148,6 +153,9 @@
 				<view @click='passSubmit()' class="confirm">确定</view>
 			</view>
 		</view>
+		<view @click='imgShow=false' v-if="imgShow" class="shade">
+			<image style='position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;' :src="url" mode=""></image>
+		</view>
 	</view>
 </template>
 
@@ -174,6 +182,8 @@
 				action: this.$uploadUrl,
 				maxSize: 50 * 1024 * 1024, //限制文件大小 50M
 				isAdd: true,
+				imgShow:false,
+				url:"",
 			}
 		},
 		onLoad(options) {
@@ -181,6 +191,10 @@
 			this.getList()
 		},
 		methods: {
+			shadeshow(url){
+				this.imgShow=true
+				this.url=url
+			},
 			getList(id) {
 				var that = this
 				this.$api.doRequest('get', '/contractManagementInfo/getInfo', {
@@ -197,11 +211,8 @@
 							appendixIds: that.list.addressUrl
 						}).then(res1 => {
 							for (var i = 0; i < res1.data.data.length; i++) {
-								that.imglist.push({
-									url: res1.data.data[i].appendixPath
-								})
+								that.imglist.push(res1.data.data[i].appendixPath)
 							}
-
 						})
 					}
 				})
@@ -480,4 +491,11 @@
 		width: 100%;
 		text-align: right;
 	}
+	.shade{
+		background:#000;
+		position:fixed;
+		top:0;left:0;
+	   width:100%;height:100%;
+	   z-index:10000;
+	}
 </style>

+ 217 - 164
pages/task/audit/salecontract.vue

@@ -2,145 +2,161 @@
 	<view class="container">
 		<u-form ref="uForm">
 			<u-form-item label-width='260' label="合同编号">
-				<u-input v-model="list.contractNo" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.contractNo" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="运输方式">
-				<u-input v-model="list.shippingType" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.shippingType" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="买方">
-				<u-input v-model="list.buyer" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.buyer" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="买方电话">
-				<u-input v-model="list.buyerPhone" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.buyerPhone" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="卖方">
-				<u-input v-model="list.seller" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.seller" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="卖方电话">
-				<u-input v-model="list.sellerPhone" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.sellerPhone" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="结算方式">
-				<u-input v-model="list.settlementMethod" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.settlementMethod" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="交货方式">
-				<u-input v-model="list.deliverType1" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.deliverType1" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="包装方式">
-				<u-input v-model="list.packingMethod" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.packingMethod" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="验收方式">
-				<u-input v-model="list.acceptanceMethod" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.acceptanceMethod" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="重量(吨)">
-				<u-input v-model="list.weight" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.weight" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="交货日期(起)">
-				<u-input v-model="list.deliveryDateStart" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.deliveryDateStart" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="溢短装(%)">
-				<u-input v-model="list.overShort" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.overShort" input-align="right" placeholder="" disabled />
 			</u-form-item>
 			<u-form-item label-width='260' label="交货日期(止)">
-				<u-input v-model="list.deliveryDateEnd" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.deliveryDateEnd" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="合同单价(元/吨)">
-				<u-input v-model="list.unitContractPrice" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="合同单价(元/吨)">
+				<u-input v-model="list.unitContractPrice" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="合同总价(元)">
-				<u-input v-model="list.totalContractPrice" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="合同总价(元)">
+				<u-input v-model="list.totalContractPrice" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="货源所在地区">
+			<u-form-item label-width='260' label="货源所在地区">
 				<view class="textCss">
 					{{list.sourceProvince}}{{list.sourceCity}}{{list.sourceArea}}
 				</view>
 			</u-form-item>
-			<u-form-item  label-width='260' label="货源详细地址">
+			<u-form-item label-width='260' label="货源详细地址">
 				<u-input v-model="list.sourceGoods" input-align="right" placeholder="" disabled/>
 			</u-form-item>
-			<u-form-item  label-width='260' label="交货地所在地区">
+			<u-form-item label-width='260' label="交货地所在地区">
 				<view class="textCss">
 					{{list.deliveryProvince}}{{list.deliveryCity}}{{list.deliveryArea}}
 				</view>
 			</u-form-item>
-			<u-form-item  label-width='260' label="交货地详细地址">
+			<u-form-item label-width='260' label="交货地详细地址">
 				<u-input v-model="list.placeDelivery" input-align="right" placeholder="" disabled/>
 			</u-form-item>
 			<u-form-item label-width='260' label="签订日期">
-				<u-input v-model="list.signingDate" input-align="right" placeholder="" disabled/>
+				<u-input v-model="list.signingDate" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='300' label="最终实际交易量 (吨)">
-				<u-input v-model="list.finalTradingVolume" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='300' label="最终实际交易量 (吨)">
+				<u-input v-model="list.finalTradingVolume" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="货名">
-				<u-input v-model="list.contractGoodsInfo.goodsName" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="货名">
+				<u-input v-model="list.contractGoodsInfo.goodsName" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="水分(%)<=">
-				<u-input v-model="list.contractGoodsInfo.waterContent" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="水分(%)<=">
+				<u-input v-model="list.contractGoodsInfo.waterContent" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="品级">
-				<u-input v-model="list.contractGoodsInfo.grade" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="品级">
+				<u-input v-model="list.contractGoodsInfo.grade" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="杂质(%)<=">
-				<u-input v-model="list.contractGoodsInfo.impurity" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="杂质(%)<=">
+				<u-input v-model="list.contractGoodsInfo.impurity" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="容重(克/升)>=">
-				<u-input v-model="list.contractGoodsInfo.bulkDensity" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="容重(克/升)>=">
+				<u-input v-model="list.contractGoodsInfo.bulkDensity" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="霉变粒(%)<=">
-				<u-input v-model="list.contractGoodsInfo.mildewGrain" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="霉变粒(%)<=">
+				<u-input v-model="list.contractGoodsInfo.mildewGrain" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="热损伤(%)<=">
-				<u-input v-model="list.contractGoodsInfo.jiaorenli" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="热损伤(%)<=">
+				<u-input v-model="list.contractGoodsInfo.jiaorenli" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="不完善粒(%)<=">
-				<u-input v-model="list.contractGoodsInfo.imperfectGrain" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="不完善粒(%)<=">
+				<u-input v-model="list.contractGoodsInfo.imperfectGrain" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="合同收入(元)">
-				<u-input v-model="list.contractProcessInfo.goodsNameKey" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="合同收入(元)">
+				<u-input v-model="list.contractProcessInfo.goodsNameKey" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="已开发票(元)">
-				<u-input v-model="list.contractProcessInfo.goodsName" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="已开发票(元)">
+				<u-input v-model="list.contractProcessInfo.goodsName" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			
-			
-			<u-form-item  label-width='260' label="费用支出(元)">
-				<u-input v-model="list.contractProcessInfo.waterContent" input-align="right" placeholder="" disabled/>
+
+
+			<u-form-item label-width='260' label="费用支出(元)">
+				<u-input v-model="list.contractProcessInfo.waterContent" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="未开发票(元)">
-				<u-input v-model="list.contractProcessInfo.impurity" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="未开发票(元)">
+				<u-input v-model="list.contractProcessInfo.impurity" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="未回款(元)">
-				<u-input v-model="list.contractProcessInfo.mildewGrain" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="未回款(元)">
+				<u-input v-model="list.contractProcessInfo.mildewGrain" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="双章原件回收情况">
-				<u-input v-model="list.contractProcessInfo.grade" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="双章原件回收情况">
+				<u-input v-model="list.contractProcessInfo.grade" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="备注信息">
-				<u-input v-model="list.remarks" input-align="right" placeholder="" disabled/>
+			<u-form-item label-width='260' label="备注信息">
+				<u-input v-model="list.remarks" input-align="right" placeholder="" disabled />
 			</u-form-item>
-			<u-form-item  label-width='260' label="附件">
-				<view class="textCss">
+			<u-form-item label-width='260' label="附件">
+				<!-- <view class="textCss">
 					<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1" :file-list="imglist"
 					:size-type="['compressed']" @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
 					@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress" :deletable="false" :showProgress = "false"></upload>
+				</view> -->
+				<!-- {{list.contractProcessInfo.grade}} -->
+				<!-- <view v-for='item in imglist'>
+					<image style='width:100px;height:100px;' :src="item" mode=""></image>
+				</view> -->
+				<view v-for='item in imglist'>
+					<view @click='shadeshow(item)'>
+						<image style='width: 200rpx;height: 200rpx;' :src="item" mode=""></image>
+					</view>
 				</view>
+
 			</u-form-item>
 		</u-form>
 		<view style='padding:10px;' class='flex bottom-btn'>
-			<u-button v-if='list.approveStatus'  @click='reject' type="error" class="btn1" hover-class='none'>驳回</u-button>
-			<u-button v-if='list.approveStatus'  @click='pass' type="success" class="btn2">通过</u-button>
+			<u-button v-if='list.approveStatus' @click='reject' type="error" class="btn1" hover-class='none'>驳回
+			</u-button>
+			<u-button v-if='list.approveStatus' @click='pass' type="success" class="btn2">通过</u-button>
 		</view>
 		<view v-if='show' class="shade">
 			<view class="wrap">
-				<view style='border-bottom:1px solid #eee;padding:10px;display:flex;justify-content:space-between;'>{{title}}
-				<u-icon name="close"></u-icon></view>
+				<view style='border-bottom:1px solid #eee;padding:10px;display:flex;justify-content:space-between;'>
+					{{title}}
+					<u-icon name="close"></u-icon>
+				</view>
 				<view style='padding:10px;'>
 					<input v-model='auditMind' placeholder="请输入审核意见,不超过100字" type="text" value="" />
 				</view>
-				<view  @click='passSubmit()' class="cancel">取消</view>
-				<view  @click='passSubmit()' class="confirm">确定</view>
+				<view @click='passSubmit()' class="cancel">取消</view>
+				<view @click='passSubmit()' class="confirm">确定</view>
 			</view>
 		</view>
+		<view @click='imgShow=false' v-if="imgShow" class="shade">
+			<image style='position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;' :src="url" mode=""></image>
+		</view>
 	</view>
 </template>
 
@@ -155,19 +171,19 @@
 				id: "",
 				currentPage: 1,
 				pageSize: 10,
-				list: [
-					{
-						status:"",
-					}
-				],
-				imglist:[],
-				auditMind:'',
-				show:false,
-				title:'',
+				list: [{
+					status: "",
+				}],
+				imglist: [],
+				auditMind: '',
+				show: false,
+				title: '',
 				contractNo: "",
 				action: this.$uploadUrl,
 				maxSize: 50 * 1024 * 1024, //限制文件大小 50M
 				isAdd: true,
+				url:"",
+				imgShow:false
 			}
 		},
 		onLoad(options) {
@@ -175,31 +191,36 @@
 			this.getList()
 		},
 		methods: {
+			shadeshow(url){
+				this.imgShow=true
+				this.url=url
+			},
 			getList(id) {
 				var that = this
 				this.$api.doRequest('get', '/contractManagementInfo/getInfo', {
 					id: this.id
 				}).then(res => {
-					if(res.data.code==200){
-						this.list=res.data.data
+					if (res.data.code == 200) {
+						this.list = res.data.data
 						if (this.list.deliverType == 1) {
 							this.list.deliverType1 = '我方送货'
 						} else if (this.list.deliverType == 2) {
 							this.list.deliverType1 = '对方自提'
 						}
 						this.$api.doRequest('get', '/appendix/query/getFileList', {
-							appendixIds:that.list.addressUrl
+							appendixIds: that.list.addressUrl
 						}).then(res1 => {
-							for(var i=0;i<res1.data.data.length;i++){
-								that.imglist.push({url:res1.data.data[i].appendixPath})
-								console.log(that.imglist,"kfoguio")
+							for (var i = 0; i < res1.data.data.length; i++) {
+								that.imglist.push(
+									res1.data.data[i].appendixPath
+								)
 							}
-					   })
+						})
 					}
 				})
 			},
-			onRemove(){
-		
+			onRemove() {
+
 				return
 			},
 			filterFileType(index, lists) {
@@ -224,16 +245,16 @@
 					needReapply: true,
 				}).then(res => {
 					that.$api.msg('驳回成功')
-					that.show=false
+					that.show = false
 				})
 			},
-			pass(){
-				this.show=true
-				this.title='审核意见'
+			pass() {
+				this.show = true
+				this.title = '审核意见'
 			},
 			reject() {
-				this.show=true
-				this.title='驳回原因'
+				this.show = true
+				this.title = '驳回原因'
 			},
 			//通过
 			passSubmit() {
@@ -245,7 +266,10 @@
 					needReapply: true,
 				}).then(res => {
 					that.$api.msg('通过成功')
-					that.show=false
+					that.show = false
+					setTimeout(function() {
+						uni.navigateBack()
+					}, 1000);
 				})
 			},
 			//审核方法
@@ -277,17 +301,21 @@
 	.container {
 		padding: 20rpx 20rpx 250rpx 20rpx;
 	}
-	.u-form{
-		background:#fff;
-		border-radius:10px;
-		padding:0 10px;
-		.u-form-item{
-			line-height:30px;
-			padding:5px 0;
+
+	.u-form {
+		background: #fff;
+		border-radius: 10px;
+		padding: 0 10px;
+
+		.u-form-item {
+			line-height: 30px;
+			padding: 5px 0;
 		}
 	}
+
 	.content {
 		margin-top: 30rpx;
+
 		.top {
 			display: flex;
 			justify-content: space-between;
@@ -307,7 +335,8 @@
 			text-align: left;
 			margin: 20rpx 0;
 		}
-		.car-container{
+
+		.car-container {
 			border-bottom: 2rpx solid #EEEEEE;
 		}
 
@@ -322,6 +351,7 @@
 			color: #333333;
 			font-weight: 500;
 		}
+
 		.row {
 			display: flex;
 			justify-content: space-between;
@@ -335,7 +365,7 @@
 		.money {
 			font-size: 32rpx;
 			font-weight: 500;
-			margin-bottom: 30rpx ;
+			margin-bottom: 30rpx;
 		}
 
 		.moneyInfo {
@@ -343,90 +373,113 @@
 			font-size: 32rpx;
 		}
 	}
-.bottom-btn {
+
+	.bottom-btn {
 		width: 100%;
 		position: fixed;
-		bottom:0;
+		bottom: 0;
 		display: flex;
 		z-index: 2;
 		left: 0;
 		background-color: #f8f8f8;
 		flex-direction: column;
-		.btn1,.btn2{
+
+		.btn1,
+		.btn2 {
 			width: 100%;
 			margin-bottom: 26rpx;
 			border-radius: 90rpx;
 		}
-		.btn1{
+
+		.btn1 {
 			background: white;
 			color: #00C265;
 		}
-		}
-		.topInfo {
-			height: 210rpx;
-			background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
-			padding: 30rpx;
-		
-			.topInfo-item {
-				height: 150rpx;
-				background-color: #FFFFFF;
-				border-radius: 20rpx;
-				padding: 40rpx;
-		
-				.logo {
-					width: 40rpx;
-					height: 40rpx;
-					margin-top: 8rpx;
-				}
-		
-				.infoText {
-					font-size: 36rpx;
-					font-weight: 600;
-					margin-left: 20rpx;
-				}
-		
-				.infoData {
-					color: #878C9C;
-					font-size: 26rpx;
-					margin-top: 10rpx;
-				}
+	}
+
+	.topInfo {
+		height: 210rpx;
+		background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
+		padding: 30rpx;
+
+		.topInfo-item {
+			height: 150rpx;
+			background-color: #FFFFFF;
+			border-radius: 20rpx;
+			padding: 40rpx;
+
+			.logo {
+				width: 40rpx;
+				height: 40rpx;
+				margin-top: 8rpx;
 			}
-		}
-		.shade{
-			position:fixed;
-			top:0;
-			left:0;
-			height:100%;width:100%;
-			background:rgba(0,0,0,0.1);
-			z-index:3;
-			.wrap{
-				position:absolute;
-				left:0;top:0;right:0;bottom:0;margin:auto;
-				background:#fff;
-				width:80%;
-				height:30%;
+
+			.infoText {
+				font-size: 36rpx;
+				font-weight: 600;
+				margin-left: 20rpx;
+			}
+
+			.infoData {
+				color: #878C9C;
+				font-size: 26rpx;
+				margin-top: 10rpx;
 			}
 		}
-		.cancel,.confirm{
-			position:absolute;
-			display:inline-block;
-			width:50%;
-			text-align:center;
-			bottom:0;
-			padding:10px;
-			border-top:1px solid #eee;
-		}
-		.cancel{
-			left:0;
-			border-right:1px solid #eee;
-		}
-		.confirm{
-			right:0;
+	}
+
+	.shade {
+		position: fixed;
+		top: 0;
+		left: 0;
+		height: 100%;
+		width: 100%;
+		background: rgba(0, 0, 0, 0.1);
+		z-index: 3;
+
+		.wrap {
+			position: absolute;
+			left: 0;
+			top: 0;
+			right: 0;
+			bottom: 0;
+			margin: auto;
+			background: #fff;
+			width: 80%;
+			height: 30%;
 		}
-	.textCss{
-		display:flex;
+	}
+
+	.cancel,
+	.confirm {
+		position: absolute;
+		display: inline-block;
+		width: 50%;
+		text-align: center;
+		bottom: 0;
+		padding: 10px;
+		border-top: 1px solid #eee;
+	}
+
+	.cancel {
+		left: 0;
+		border-right: 1px solid #eee;
+	}
+
+	.confirm {
+		right: 0;
+	}
+
+	.textCss {
+		display: flex;
 		justify-content: flex-end;
 		width: 100%;
 	}
+	.shade{
+		background:#000;
+		position:fixed;
+		top:0;left:0;
+	   width:100%;height:100%;
+	   z-index:10000;
+	}
 </style>
-

+ 0 - 60
pages/task/audit/warehouse_details.vue

@@ -124,66 +124,6 @@
 			confirm(item) {
 				this.list.contractNo = item[0].value
 			},
-			audit() {
-				var that = this
-				uni.showModal({
-					content: "是否确定通过审核?",
-					showCancel: true,
-					confirmText: '确定',
-					success: function(res) {
-						if (res.confirm) {
-							that.$api.doRequest('post', '/purchasePrice/purchasePriceEdit',that.list ).then(res => {
-								if (res.data.code == 200) {
-									that.$api.doRequest('post', '/workflow/api/handle', {
-										approved: true,
-										auditMind: "",
-										needReapply: true,
-										taskId:  that.list.taskId,
-									}).then(res1 => {
-										if (res1.data.code == 200) {
-											that.$api.msg('审核成功');
-											setTimeout(function() {
-													uni.navigateBack()
-											}, 1000);
-										} else {
-											that.$api.msg(res1.data.message);
-										}
-									})
-								} else {
-									that.$api.msg('系统异常,请联系管理员');
-								}
-							})
-						}
-					}
-				})
-			},
-			reject() {
-				var that = this
-				uni.showModal({
-					content: "是否确定驳回?",
-					showCancel: true,
-					confirmText: '确定',
-					success: function(res) {
-						if (res.confirm) {
-							that.$api.doRequest('post', '/workflow/api/handle', {
-								taskId: that.list.taskId,
-								approved: false,
-								auditMind: '已驳回',
-								needReapply: true,
-							}).then(res1 => {
-								if (res1.data.code == 200) {
-									that.$api.msg('驳回成功');
-									setTimeout(function() {
-											uni.navigateBack()
-									}, 1000);
-								} else {
-									that.$api.msg(res1.data.message);
-								}
-							})
-						}
-					}
-				})
-			},
 			fanHui(){
 				uni.navigateBack()
 			}

+ 3 - 0
pages/tran/tran.vue

@@ -129,6 +129,9 @@
 				var userInfo = uni.getStorageSync("userInfo")
 				var that = this
 				console.log("userInfo",userInfo)
+				uni.removeTabBarBadge({
+					index: 4
+				})
 				this.$api.doRequest('get', '/notice/query/noticeNumber').then(res => {
 					if (res.data.data) {
 						let name = 'myTip';

+ 3 - 0
pages/user/user.vue

@@ -281,6 +281,9 @@
 			this.isShow();
 			uni.hideKeyboard()
 			uni.showTabBar()
+			uni.removeTabBarBadge({
+				index: 4
+			})
 			this.loadData()
 			console.log("hasLogin", this.hasLogin)
 			if (this.userInfo) {

BIN
static/img/liangmai/icon_ditu@2x.png