Browse Source

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

zhongtianhaoyuan 3 years ago
parent
commit
8d496a6433

+ 11 - 0
components/master-keyboard/master-keyboard.scss

@@ -18,6 +18,17 @@
 			height: 48rpx;
 		}
 	}
+	.number_next{
+		width: 100%;
+		height: 80rpx;
+		margin-top: 10rpx;
+		background-color: white;
+		border-radius: 10rpx;
+		text-align: center;
+		line-height: 80rpx;
+		box-sizing: border-box;
+		display: block;
+	}
 	.kerboard_number{
 		width: 100%;
 		display: flex;

+ 22 - 0
components/master-keyboard/master-keyboard.vue

@@ -25,6 +25,10 @@
 					</block>
 				</view>
 			</view>
+			<view class="next-btn">
+				<view class='number_next' @click="nextBtnClick(0)">上一项</view>
+				<view class='number_next' @click="nextBtnClick(1)">下一项</view>
+			</view>
 		</block>
 		<block v-else-if="keyboardtype == 'car'">
 			<view class="keyboard_car">
@@ -92,6 +96,10 @@
 	export default {
 		name: "master-keyboard",
 		props: {
+		fatherMethod: {
+				type: Function,
+				default: null
+			  },
 			keyboardtype: {
 				type: String,
 				default: 'number' // number=数字键盘 digit=带小数点的数字键盘  idcard=身份证号键盘  car=车牌号键盘
@@ -166,6 +174,12 @@
 		},
 		onLoad() {},
 		methods: {
+			nextBtnClick(type){debugger
+				let that = this
+				if (this.fatherMethod) {
+				          this.fatherMethod(type);
+					}
+			},
 			formatCarProvinceFirst(value) {
 				const list = ['使', '领', '警', '学', '港', '澳', ]
 				return list.indexOf(value)
@@ -303,4 +317,12 @@
 
 <style scoped lang="scss">
 	@import './master-keyboard.scss';
+	.next-btn{
+		display: flex;
+		justify-content: space-evenly;
+		.number_next{
+			width: 45%;
+		}
+		
+		}
 </style>

+ 0 - 1
pages/erp/exWarehousing/exWarehousing.vue

@@ -462,7 +462,6 @@
 					}else{
 						this.detailData.tips = '买方' + this.contractNoList[i].buyer
 					}
-					
 				} else if (this.detailData.inOutType == '移库出库') {
 					this.detailData.tips = '入货库' + this.inOutNoList[e[0]].warehouseName
 				}

+ 54 - 37
pages/erpbusiness/acquisitionInformation.vue

@@ -11,16 +11,19 @@
 			<view class="content-item">
 				<view class="left">收购信息</view>
 				<view class='row'>
-				<textarea placeholder="请输入仓库信息" class="textarea" maxlength="2000" v-model="textareaValue"></textarea>
+				<textarea placeholder="输入收购信息,不超过2000个字" class="textarea" maxlength="2000" v-model="textareaValue"></textarea>
+				<view class="textarea-left">
+					<u-button type="primary" class="clear" hover-class="none" @click="clear()">清除全部</u-button>
+				</view>
 				<view class="textarea-bottom">{{textareaValue?textareaValue.length:'0'}}/2000字</view>
-			</view>
-			<view class='row row_css'>
-				显示在易粮易运收购信息中
-				<!-- <u-checkbox activeColor="#19be6b" v-model="value" @change="checkBoxChange">显示在易粮易运收购信息中</u-checkbox> -->
-				<view class="right">
-					<u-switch v-model="value" active-color="#19be6b" inactive-color="#eee" size='40' @change="checkBoxChange"></u-switch>
 				</view>
-			</view>
+				<view class='row row_css'>
+					显示在易粮易运收购信息中
+					<!-- <u-checkbox activeColor="#19be6b" v-model="value" @change="checkBoxChange">显示在易粮易运收购信息中</u-checkbox> -->
+					<view class="right">
+						<u-switch v-model="value" active-color="#19be6b" inactive-color="#eee" size='40' @change="checkBoxChange"></u-switch>
+					</view>
+				</view>
 			</view>
 			
 		</view>
@@ -123,39 +126,13 @@
 		methods: {
 			init() {
 				let _obj = {
-					commonId: this.sgId,
+					commonId: uni.getStorageSync("userInfo").id,
 					warehouseName:uni.getStorageSync("depotAcquisition_warehouseName")
 				}
-				this.$api.doRequest('get', '/acquisitionInfo/getInfo', _obj).then(res => {
-					if (res.data.code == 200) {
-						if (res.data.data) {
-							this.isEdit = true
-							this.value = res.data.data.checkFlag == '0' ? false : true
-							console.log(this.value)
-							this.warehouseName = res.data.data.warehouseName
-							this.textareaValue = res.data.data.acquisitionInformation
-							this.id = res.data.data.id
-						} else {
-							this.textareaValue = ''
-							this.isEdit = false
-							this.value = false
-						}
-					}
-				})
-
-
-
-				switch (this.status) {
-					case '已隐藏':
-						break;
-					case '显示中':
-
-						break;
-				}
 				this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouseSelfApp', {
 					compId: uni.getStorageSync('pcUserInfo').compId,
 				}).then(res => {
-					if (res.data.data.length != 0) {
+					if (res.data.data.length > 0) {
 						uni.hideLoading()
 						// let _showData = uni.getStorageSync("erpSelectWarehous")
 						// let _showCWData = uni.getStorageSync("erpSelectWarehousCW")
@@ -165,12 +142,36 @@
 							this.warehouseName = _storangewarehouseName
 						} else {
 							this.warehouseName = res.data.data[0].warehouseName
+							uni.setStorageSync("depotAcquisition_warehouseName", this.warehouseName)
 						}
 					} else {
 						this.warehouseList = []
 						this.warehouseName = '暂无仓库'
 					}
 				})
+				this.$api.doRequest('get', '/acquisitionInfo/getInfo', _obj).then(res => {
+					if (res.data.code == 200) {
+						if (res.data.data) {
+							this.isEdit = true
+							this.value = res.data.data.checkFlag == '0' ? false : true
+							console.log(this.value)
+							this.warehouseName = res.data.data.warehouseName
+							this.textareaValue = res.data.data.acquisitionInformation
+							this.id = res.data.data.id
+						} else {
+							this.textareaValue = ''
+							this.isEdit = false
+							this.value = false
+						}
+					}
+				})
+				// switch (this.status) {
+				// 	case '已隐藏':
+				// 		break;
+				// 	case '显示中':
+
+				// 		break;
+				// }
 			},
 			warehousechange(e) {
 				this.warehouseName = this.warehouseList[e[0]].warehouseName
@@ -240,6 +241,9 @@
 				
 				// this.$api.msg('提交成功')
 				// this.$api.msg('提交失败')
+			},
+			clear(){
+				this.textareaValue=''
 			}
 		}
 	}
@@ -311,7 +315,12 @@
 		padding-bottom: 20rpx;
 		color: #AFB3BF ;
 	}
-
+    .textarea-left{
+		position: absolute;
+		bottom: 20rpx;
+		left: 20rpx;
+		color: #606266;
+	}
 	.textarea-bottom {
 		position: absolute;
 		bottom: 20rpx;
@@ -324,6 +333,14 @@
 		background: #22C572;
 		border-radius: 50rpx;
 	}
+	.clear {
+		/* width: 90%; */
+		background: #ffffff;
+		color: #22C572;
+		height: 35px;
+		border:1px solid  #22C572;
+		border-radius: 50rpx;
+	}
 
 	.bottom-btn {
 		position: fixed;

+ 5 - 0
pages/erpbusiness/customer.vue

@@ -363,6 +363,10 @@
 				this.show = true
 				this.gridList = []
 				this.currentPage = 1
+				uni.showLoading({
+					title: '正在加载',
+					mask:true
+				})
 				this.getList()
 			},
 			getList() {
@@ -387,6 +391,7 @@
 				}
 				this.$api.doRequest('get', url, data).then(res => {
 					if (res.data.data) {
+							uni.hideLoading()
 						let data = res.data.data.records ? res.data.data.records : res.data.data
 						//采购信息
 						if (data.length > 0) {

+ 25 - 4
pages/erpbusiness/edit_quality_testing.vue

@@ -1,5 +1,5 @@
 <template>
-	<view>
+	<view ref="all-input">
 		<view @click='hidden' class='wrap'>
 			<view class='title_b'>基本信息</view>
 			<view class="c-row ">
@@ -65,7 +65,7 @@
 			<view class="c-row ">
 				<view class="title">囤位号</view>
 				<view class="con-list">
-					<input :disabled='flag==1' v-model='gridList.storageTagNo' placeholder="请输入囤位号"
+					<input v-model='gridList.storageTagNo' placeholder="请输入囤位号"
 						name="input"></input>
 				</view>
 			</view>
@@ -162,8 +162,10 @@
 				<view class="c-row ">
 					<view class="title">热损伤(%)</view>
 					<view class="con-list">
-						<input :disabled='flag==1' v-model='gridList.jiaorenli' placeholder="请输入热损伤占比"
-							name="input"></input>
+						<!-- <input :disabled='flag==1' v-model='gridList.jiaorenli' placeholder="请输入热损伤占比"
+							name="input"></input> -->
+							<input v-model='gridList.jiaorenli' @click.stop="handleShowKeyboard1":disabled="true" placeholder="请输入热损伤占比" name="input"></input>
+							<master-keyboard :fatherMethod="focusConfig" ref="keyboard1" keyboardtype="digit" :randomNumber="true" :newCar="false" :defaultValue="gridList.jiaorenli" @keyboardClick="handleClick1"></master-keyboard>
 					</view>
 				</view>
 			</view>
@@ -329,6 +331,13 @@
 			this.gridList.gradeKey = this.gradeList[0].key
 		},
 		methods: {
+			focusConfig(type){
+				console.log('childclick',type)
+				// 0是上一项
+				if(type==0){
+					
+				}else{}
+			},
 			hidden(){
 				this.$refs.keyboard.open(false)
 			},
@@ -341,9 +350,21 @@
 					}
 				}
 			},
+			handleShowKeyboard1(){
+				if(this.flag==0){
+					if(this.$refs.keyboard1.open){
+						this.$refs.keyboard1.open(true)//true 键盘显示 false 键盘隐藏
+					}else{
+						this.$refs.keyboard1[0].open(true)
+					}
+				}
+			},
 			handleClick(e){
 				this.gridList.carNumber = e.value //键盘输入值
 			},
+			handleClick1(e){
+				this.gridList.jiaorenli = e.value //键盘输入值
+			},
 			change(e){
 				if(e){
 					this.gridList.supplementaryRecording=1

+ 2 - 1
pages/erpbusiness/index.vue

@@ -14,7 +14,8 @@
 			<!-- 检斤员权限 -->
 			<!-- isShowAcquisitionInfo -->
 			<!-- 获取当前用户负责的仓库,如果无仓库隐藏收购信息 -->
-			<view class="content2" v-if="isShowAcquisitionInfo&&sgId">
+			<!-- &&sgId -->
+			<view class="content2" v-if="isShowAcquisitionInfo">
 				<view>收购信息</view>
 				<view @click="navTo('/pages/erpbusiness/acquisitionInformation?status='+status+'&id='+sgId)">{{status}}>
 				</view>

+ 6 - 1
pages/task/audit/salecontract.vue

@@ -571,7 +571,12 @@
 		font-size: 28rpx;
 		padding: 10px;
 	}
-
+	.textCss {
+		display: flex;
+		justify-content: flex-end;
+		width: 100%;
+		text-align: right;
+	}
 	.u-textarea-style {
 		margin: 20rpx;
 		background: #F9F9FA;

+ 1 - 0
pages/task/my_task.vue

@@ -85,6 +85,7 @@
 				uni.switchTab({
 				    url: '/pages/user/user'
 				});
+				return true
 			}
 		},
 		watch: {

+ 85 - 62
pages/user/depotAcquisition/grainDeliveryRegistration.vue

@@ -18,15 +18,15 @@
 				<view class="left">货名</view>
 				<view class="flex" @click='showgoodsName'>
 					<view>{{goodsName}}</view>
-					<u-picker @confirm="goodsnameConfirm" range-key='goodsName' mode="selector"
-						v-model="goodsNameshow" :range="goodsnameList"></u-picker>
+					<u-picker @confirm="goodsnameConfirm" range-key='goodsName' mode="selector" v-model="goodsNameshow"
+						:range="goodsnameList"></u-picker>
 					<u-icon name="arrow-right"></u-icon>
 				</view>
 			</view>
 		</view>
 		<view class="content2">
 			<view v-if='!status'>
-				<view  class="wrap wrap1" v-for="(item,index) in dataList.shippingInformationList" :key='index'>
+				<view class="wrap wrap1" v-for="(item,index) in dataList.shippingInformationList" :key='index'>
 					<view class="row1 row">
 						<!-- -{{item.customerName}} -->
 						<view class="customerName">货主-{{index+1}}</view>
@@ -52,32 +52,37 @@
 							车牌号-{{index1+1}}
 						</view>
 						<view class="right">
-							<input v-model='item1.carNo' @click.stop="handleShowKeyboard(index,index1)":disabled="true" placeholder="输入7位车牌号" name="input"></input>
-							
+							<input class="car-uumber" v-model='item1.carNo'
+								@click.stop="handleShowKeyboard(index,index1)" :disabled="true" placeholder="输入7位车牌号"
+								name="input"></input>
+
 							<!-- <u-input v-model="item1.carNo" placeholder="输入7位车牌号" /> -->
 							<view class="btn">
 								<view @click="addCarNumber(item.carNumberList)" style="margin-right: 20rpx;">
 									<image class='row4-img'
-										src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/jia%402x.png"></image>
+										src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/jia%402x.png">
+									</image>
 								</view>
 								<view @click="delCarNumber(item.carNumberList,index1)">
 									<image class='row4-img'
-										src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/jian%402x.png"></image>
+										src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/jian%402x.png">
+									</image>
 								</view>
 							</view>
 						</view>
-				
+
 					</view>
-					
+
 				</view>
 			</view>
-			<view  v-if='!status' class='add-good-people' @click='addGoodPeople'>
+			<view v-if='!status' class='add-good-people' @click='addGoodPeople'>
 				<image class="img"
 					src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/ic_join_dialing_norm%402x.png"
 					@click="reduceBtn(index)"></image>增加货主
 			</view>
 		</view>
-		<master-keyboard ref="keyboard" keyboardtype="car" :randomNumber="true" :newCar="false" :defaultValue="carNo" @keyboardClick="handleClick"></master-keyboard>
+		<master-keyboard ref="keyboard" keyboardtype="car" :randomNumber="true" :newCar="false" :defaultValue="carNo"
+			@keyboardClick="handleClick"></master-keyboard>
 		<u-button class='submit' @click='submit'>提交</u-button>
 		<u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
 			:content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
@@ -101,8 +106,8 @@
 			return {
 				isShowAlert: false,
 				isShowAlert1: false,
-				index:0,
-				index1:0,
+				index: 0,
+				index1: 0,
 				content: '当前登入信息验证失败,是否重新登录?',
 				content1: '确定提交送粮信息?',
 				// show: false,
@@ -111,11 +116,11 @@
 					name: '123'
 				}],
 				nameList: [],
-				carNo:'',
+				carNo: '',
 				warehouseNameAddress: '',
 				startDate: "",
-				goodsName:'',
-				status:false,
+				goodsName: '',
+				status: false,
 				dataList: {
 					warehouseName: "",
 					validityDate: '',
@@ -131,17 +136,17 @@
 						}]
 					}]
 				},
-				goodsnameList:[],
+				goodsnameList: [],
 				selectObj: {},
-				goodsNameshow:false,
+				goodsNameshow: false,
 				nameListCopy: []
 			}
 		},
 
 		onLoad(options) {
-			
+
 			let _pageToData = JSON.parse(options.itemValue)
-			this.warehouseId=_pageToData.warehouseId
+			this.warehouseId = _pageToData.warehouseId
 			this.dataList.warehouseName = _pageToData.warehouseName
 			this.startDate = this.getTime()[0]
 			this.dataList.validityDate = this.getTime()[1]
@@ -163,51 +168,51 @@
 				warehouseId: this.warehouseId
 			}).then(res => {
 				if (res.data.code == 200) {
-					this.goodsName=res.data.data[0].goodsName
+					this.goodsName = res.data.data[0]?res.data.data[0].goodsName:''
 					this.goodsnameList = res.data.data
 				}
 			})
 			console.log("hasLogin", this.hasLogin)
 		},
 		methods: {
-			goodsnameConfirm(e){
-				this.goodsName=this.goodsnameList[e[0]].goodsName
+			goodsnameConfirm(e) {
+				this.goodsName = this.goodsnameList[e[0]].goodsName
 				this.getCustomer()
 			},
-			showgoodsName(){
-				this.goodsNameshow=true
+			showgoodsName() {
+				this.goodsNameshow = true
 			},
-			hidden(){
-				this.carNo=''
-				if(this.$refs.keyboard.open){
-					this.$refs.keyboard.open(false)//true 键盘显示 false 键盘隐藏
-				}else{
+			hidden() {
+				this.carNo = ''
+				if (this.$refs.keyboard.open) {
+					this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
+				} else {
 					this.$refs.keyboard[0].open(false)
 				}
 			},
-			handleShowKeyboard(index,index1){
-				if(this.dataList.shippingInformationList[this.index].carNumberList[this.index1].carNo==''){
-					this.carNo=''
-					
-				}else{
-					this.carNo=this.dataList.shippingInformationList[this.index].carNumberList[this.index1].carNo
+			handleShowKeyboard(index, index1) {
+				if (this.dataList.shippingInformationList[this.index].carNumberList[this.index1].carNo == '') {
+					this.carNo = ''
+
+				} else {
+					this.carNo = this.dataList.shippingInformationList[this.index].carNumberList[this.index1].carNo
 				}
-				if(this.$refs.keyboard.open){
-						this.$refs.keyboard.open(false)//true 键盘显示 false 键盘隐藏
-					}else{
-						this.$refs.keyboard[0].open(false)
-					}
-				this.index=index
-				this.index1=index1
-				if(this.$refs.keyboard.open){
-					this.$refs.keyboard.open(true)//true 键盘显示 false 键盘隐藏
-				}else{
+				if (this.$refs.keyboard.open) {
+					this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
+				} else {
+					this.$refs.keyboard[0].open(false)
+				}
+				this.index = index
+				this.index1 = index1
+				if (this.$refs.keyboard.open) {
+					this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
+				} else {
 					this.$refs.keyboard[0].open(true)
 				}
-				
+
 			},
-			handleClick(e){
-				this.carNo=e.value
+			handleClick(e) {
+				this.carNo = e.value
 				this.dataList.shippingInformationList[this.index].carNumberList[this.index1].carNo = e.value //键盘输入值
 			},
 			showCustomerName(value, index) {
@@ -216,25 +221,26 @@
 				value.showCustomerName = true
 			},
 			getCustomer() {
-				var that=this
+				var that = this
 				let _data = {
 					commonId: uni.getStorageSync("userInfo").id,
-					warehouseId:this.warehouseId,
-					goodsName:this.goodsName
+					warehouseId: this.warehouseId,
+					goodsName: this.goodsName
 				}
 				this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoUser', _data).then(
 					res => {
 						if (res.data.code == 200) {
 							this.nameList = res.data.data
-							if(res.data.data.length>0){
-							that.status=false
+							if (res.data.data.length > 0) {
+								that.status = false
 								this.dataList.shippingInformationList[0].identityId = res.data.data[0].id
 								this.dataList.shippingInformationList[0].shipperName = res.data.data[0].customerName
-								this.dataList.shippingInformationList[0].supplier = res.data.data[0].supplier ? res.data
+								this.dataList.shippingInformationList[0].supplier = res.data.data[0].supplier ? res
+									.data
 									.data[0].supplier : '无'
-							}else{
-								that.status=true
-								this.$api.msg('当前客户的'+this.goodsName+'送粮量达到上限')
+							} else {
+								that.status = true
+								this.$api.msg('当前客户的' + this.goodsName + '送粮量达到上限')
 							}
 						}
 					})
@@ -339,8 +345,8 @@
 				this.isShowAlert1 = false
 			},
 			addGoodPeople() {
-				if(this.status==true){
-					this.$api.msg('当前客户的'+this.goodsName+'送粮量达到上限')
+				if (this.status == true) {
+					this.$api.msg('当前客户的' + this.goodsName + '送粮量达到上限')
 					return
 				}
 				// 判断是否还有剩余的货主
@@ -437,25 +443,33 @@
 			.start-time {
 				font-size: 24rpx;
 				color: #878C9C;
-				margin: 6rpx 0;
+				margin: 10rpx 0;
 			}
 		}
+
+		.row3 {
+			margin-bottom: 10rpx;
+		}
 	}
 
 	.content2 {
 		.row {
-			margin: 20rpx 0;
+			padding: 28rpx 0;
+			border-bottom: 1px solid #EEEEEE;
 		}
 
 		.row1 {
 			display: flex;
 			justify-content: space-between;
+			padding-top: 0rpx;
 
 			image {
 				width: 32rpx;
 				height: 32rpx;
 			}
 
+			border: none;
+
 			.customerName {
 				font-size: 28rpx;
 				font-weight: 700;
@@ -473,6 +487,11 @@
 				display: flex;
 			}
 		}
+
+		.row4:last-child {
+			padding-bottom: 0;
+			border: none;
+		}
 	}
 
 	.row4 {
@@ -528,4 +547,8 @@
 	.content {
 		padding-bottom: 200rpx;
 	}
+
+	.car-uumber {
+		font-size: 28rpx;
+	}
 </style>