gjy 2 anos atrás
pai
commit
751b86ddc4
2 arquivos alterados com 7 adições e 129 exclusões
  1. 7 96
      pages/task/audit/warehouse_warrant.vue
  2. 0 33
      pages/user/user.vue

+ 7 - 96
pages/task/audit/warehouse_warrant.vue

@@ -53,10 +53,6 @@
 				<view class="left">合计金额(元)</view>
 				<view class="right">{{auditInfo.requestFundsTotal}}</view>
 			</view>
-			<view class="row">
-				<view class="left">收购名头</view>
-				<view class="right">{{auditInfo.purchaser}}</view>
-			</view>
 			<!-- 	<view class="row">
 				<view class="left">仓库名称</view>
 				<view class="right">{{auditInfo.warehouseName}}</view>
@@ -164,11 +160,6 @@
 						<view v-if='item.auditMind' class="right-content">
 							{{item.auditMind}}
 						</view>
-						<view class="flex audit_img">
-							<view v-for="(items,indexs) in item.fileUrl" class="url_css">
-								<image :src="items" mode="" class="url_img" @click="auditFile(items)"></image>
-							</view>
-						</view>
 					</view>
 					<view v-if='item.commonStaffs1' class="right">
 						<u-icon @click='showcontent(item)' :name="item.showflow?'arrow-up':'arrow-down'"  size="28"></u-icon>
@@ -200,15 +191,9 @@
 					<view class="right-bottom">
 						{{auditMind.length}}/1000个字
 					</view>
-					<u-input class="" v-model='auditMind' placeholder="请在此输入审核意见" type="textarea" height="250"
+					<u-input class="" v-model='auditMind' placeholder="请在此输入审核意见" type="textarea" height="414"
 						maxlength="1000" />
 				</view>
-				<view class="upload_css">
-					上传附件
-					<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="2"
-						:size-type="['compressed']" @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
-						@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
-				</view>
 				<view @click='close()' class="cancel">取消</view>
 				<view @click='passSubmit()' class="confirm">确定</view>
 			</view>
@@ -223,14 +208,10 @@
 
 <script>
 	import helper from '@/common/helper.js';
-	import upload from '@/components/upload.vue';
 	import {
 		mapState
 	} from 'vuex';
 	export default {
-		components: {
-			upload
-		},
 		data() {
 			return {
 				src: '../../../static/img/myimg/LiangShang@2x.png',
@@ -253,12 +234,7 @@
 				id: "",
 				auditList: [],
 				url: "11",
-				url2:"",
-				// 上传附件、
-				action: this.$uploadUrl,
-				maxSize: 50 * 1024 * 1024, //限制文件大小 50M
-				isAdd: true,
-				fileUrl: []
+				url2:""
 			}
 		},
 		onBackPress(e) {
@@ -282,35 +258,6 @@
 			...mapState(['hasLogin', 'userInfo']),
 		},
 		methods: {
-			auditFile(src) {
-				uni.downloadFile({
-					url: src,
-					success: function(res) {
-						var filePath = res.tempFilePath;
-						uni.openDocument({
-							filePath: filePath,
-							showMenu: true,
-							success: function(res) {
-								console.log('打开文档成功');
-							}
-						});
-					}
-				});
-			},
-			getImgUrl(res) {
-				this.fileUrl.push(res)
-			},
-			onError(error) {
-				alert(error)
-				console.log('------------error-----------')
-				console.log(error)
-			},
-			onProgress(e) {
-				console.log(e)
-			},
-			onRemove(index) {
-				this.fileUrl.splice(index, 1)
-			},
 			detailed(data,status){
 				let obj
 				if(status==1){
@@ -421,7 +368,6 @@
 									var arr1=arr.filter((item)=>{return item.goodsName==datalist[i].goodsName})
 									if(arr1.length>0){
 										for (var q = 0; q < arr.length; q++) {
-											
 											if(arr[q].goodsName==datalist[i].goodsName){console.log(22222)
 												console.log(arr[q].inWarehouseWeight,datalist[i].inWarehouseWeight)
 												arr[q].inWarehouseWeight+=datalist[i].inWarehouseWeight
@@ -501,14 +447,7 @@
 											response.data.data[i].operatorName=response.data.data[i].workflowHistoricTasks[len].operatorName
 											var time=new Date(response.data.data[i].workflowHistoricTasks[len].claimTime).getTime()
 											response.data.data[i].updateDate=this.$u.timeFormat(time, 'mm.dd hh:MM')
-											// response.data.data[i].auditMind=response.data.data[i].workflowHistoricTasks[len].auditMind
-											// 显示附件和审核意见
-											if (response.data.data[i].workflowHistoricTasks[len].auditMind && response.data.data[i].workflowHistoricTasks[len].auditMind.indexOf("##") !=-1) {
-												response.data.data[i].auditMind = response.data.data[i].workflowHistoricTasks[len].auditMind.split("##")[0]
-												response.data.data[i].fileUrl = response.data.data[i].workflowHistoricTasks[len].auditMind.split("##")[1].split(",")
-											}else{
-												response.data.data[i].auditMind = response.data.data[i].workflowHistoricTasks[len].auditMind
-											}
+											response.data.data[i].auditMind=response.data.data[i].workflowHistoricTasks[len].auditMind
 										}else{
 											this.$set(response.data.data[i],'status','question')
 											// response.data.data[i].status='question'
@@ -560,12 +499,12 @@
 					}).then(response => {
 						// uni.hideLoading()
 						this.auditList = response.data.data
+
 					})
 				})
 			},
 			close() {
 				this.show = false
-				this.fileUrl = []//清除附件
 			},
 			pass() {
 				this.show = true
@@ -617,14 +556,10 @@
 									})
 									var count = 0
 									// for (let num = 0; num < that.List.length; num++) {
-										var info = that.auditMind
-										if (that.fileUrl.length > 0) {
-											info = that.auditMind + "##" + that.fileUrl.toString()
-										}
 									that.$api.doRequest('post', '/newWorkflow/api/handle', {
 										taskId: that.auditInfo.taskId,
 										approved: false,
-										auditMind: info?info:"",
+										auditMind: that.auditMind ? that.auditMind : "",
 										needReapply: true
 									}).then(res => {
 										// count++
@@ -656,14 +591,10 @@
 								})
 								// for (let num = 0; num < that.List.length; num++) {
 								// 	var tmp = 0
-								var info = that.auditMind
-								if (that.fileUrl.length > 0) {
-									info = that.auditMind + "##" + that.fileUrl.toString()
-								}
 								that.$api.doRequest('post', '/newWorkflow/api/handle', {
 									taskId: that.auditInfo.taskId,
 									approved: true,
-									auditMind: info?info:"",
+									auditMind: that.auditMind ? that.auditMind : "",
 									needReapply: false
 								}).then(res => {
 									// tmp++
@@ -915,23 +846,6 @@
 						.status.question {
 							color: #f9ae3d;
 						}
-					}	
-				}
-				.audit_img {
-					flex-wrap: wrap;
-					margin: 0 20rpx;
-				
-					.url_css {
-						border: 1px solid #999999;
-						border-radius: 10px;
-						margin-top: 10px;
-						margin-right: 10px;
-				
-						.url_img {
-							width: 80px;
-							height: 80px;
-							border-radius: 10px;
-						}
 					}
 				}
 			}
@@ -1049,7 +963,7 @@
 			margin: auto;
 			background: #fff;
 			width: calc(100% - 198rpx);
-			height: 840rpx;
+			height: 700rpx;
 			border-radius: 20rpx;
 
 			.alert-top {
@@ -1070,9 +984,6 @@
 				position: absolute;
 				right: 33rpx;
 			}
-			.upload_css {
-				margin-left: 20rpx;
-			}
 		}
 	}
 

+ 0 - 33
pages/user/user.vue

@@ -396,39 +396,6 @@
 			this.scrollTop = e.scrollTop;
 		},
 		onShow() {
-			this.$api.doRequest(
-					'post',
-					'/identityAuthenticationInfo/api/editIdentityAuthenticationInfo',
-					{
-									"customerName": "张鞍伟",
-									"customerNumberCard": "232325197404063236",
-									"compAddress": "黑龙江省肇东市民益路8号锦秀江南小区12号楼4单元402室",
-									"cardAddressUrl": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/appData/167030514127919.png,https://taohaoliang.oss-cn-beijing.aliyuncs.com/appData/1670305148665112.png",
-									"customerTypeFlag": "1",
-									"customerType": "个人",
-									"invitation": "黑龙江中天昊元贸易有限公司",
-									"inviteCompany": "2710b21efc1e4393930c5dc800010dc4",
-									"payeeName": "张鞍伟",
-									"payeeNumberCard": "232325197404063236",
-									"bankCard": "6222030709001990104",
-									"bankDeposit": "工商银行",
-									"bankDepositBranch": "中国工商银行股份有限公司大石桥支行",
-									"customerPhone": "18641734419",
-									"supplier": "高敬炎",
-									"supplierPhone": "18513069273",
-									"commonId": "0897dca698674abb95a4376c1439c22a",
-									"payeeAddressUrl": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/appData/167030515522011.png,https://taohaoliang.oss-cn-beijing.aliyuncs.com/appData/1670305162119141.png"
-								},
-					'application/json;charset=UTF-8'
-				).then(res1 => {
-					console.log(res1)
-					
-			
-				})
-				.catch(res => {
-					console.log(res)
-					
-				});
 			
 			// uni.showLoading({
 			// 	title: '加载中',