zhongtianhaoyuan 2 years ago
parent
commit
e23f990baa

+ 0 - 3
pages/carSource/driverSee.vue

@@ -259,7 +259,6 @@
 				this.tabIndex = index
 			},
 			btnChange(num) {
-				// debugger
 				this.haoType = num
 				this.upCallback({size:10,num:1})
 				// this.getList()
@@ -327,8 +326,6 @@
 				
 			},
 			// getList() {
-
-			// 		debugger
 			// 	this.$request.baseRequest('get', '/orderInfo/selectHaoPing', {
 			// 			commonId: this.userInfo.id,
 			// 			haoType:''

+ 0 - 1
pages/mine/cargoowner/addEnerprise.vue

@@ -383,7 +383,6 @@
 				// 	title: '加载中',
 				// 	mask: true
 				// })
-				// debugger
 				var _this = this
 				this.dataDetails.commonId = this.userInfo.id
 				this.dataDetails.certificateAddressUrl = this.urlList

+ 0 - 1
pages/mine/cargoowner/editEnerprise.vue

@@ -165,7 +165,6 @@
 
 			console.log(this.dataDetails)
 			if (options.certificateAddressUrl) {
-				debugger
 				this.urlList = options.certificateAddressUrl
 				this.fileList1 = []
 				this.fileList1.push({

+ 0 - 6
pages/mine/company/addcompany.vue

@@ -324,16 +324,12 @@
 			}
 		},
 		onShow() {
-			// debugger
-			console.log(uni.getStorageSync("videoSrc"))
 			var viderSrc = uni.getStorageSync("videoSrc")
 			if (viderSrc) {
 				this.dataDetails.videoAddressUrl = viderSrc
 			}
-
 		},
 		onLoad(options) {
-			// debugger
 			this.dataDetails.videoAddressUrl = options.videoSrc
 			// #ifdef APP-PLUS
 			this.get_camera_permission()
@@ -414,7 +410,6 @@
 				this.isShowBank = false
 			},
 			// uploadImg() {
-			// 	debugger
 			// 	this.uploadType = 5
 			// 	this.imgTypeSelect()
 			// 	// this.isShowimgType = true
@@ -787,7 +782,6 @@
 				}
 			},
 			imgTypeSelect(val) {
-				// debugger
 				var _this = this
 				// if (val.name == '相册') {
 				uni.chooseImage({

+ 0 - 3
pages/order/addEvaluation.vue

@@ -122,7 +122,6 @@
 		},
 		onNavigationBarButtonTap() {
 			// console.log(12121,uni.$u,this)
-			// debugger
 			uni.$u.throttle(this.submit(), 5000)
 			// uni.$u.debounce(this.submit, 500)
 			
@@ -208,9 +207,7 @@
 
 			},
 			getVal(e) {
-				// debugger
 				this.starIndex = e.value
-				console.log(e)
 			},
 			checkboxChange(n) {
 				console.log('change', n);

+ 0 - 3
pages/order/driverDetail.vue

@@ -263,7 +263,6 @@
 				this.tabIndex = index
 			},
 			btnChange(num) {
-				// debugger
 				this.haoType = num
 				this.upCallback({size:10,num:1})
 				// this.getList()
@@ -337,8 +336,6 @@
 				
 			},
 			// getList() {
-
-			// 		debugger
 			// 	this.$request.baseRequest('get', '/orderInfo/selectHaoPing', {
 			// 			commonId: this.userInfo.id,
 			// 			haoType:''

+ 1 - 1
pages/order/map.nvue

@@ -84,7 +84,7 @@
 				})
 				// this.$request.baseRequest('post', '/hyOrderTravelPath/getInfo', {
 				// 		orderId: this.id,
-				// 	}).then(res => {debugger
+				// 	}).then(res => {
 				// 	console.log("res",res)
 				// 	// this.polyline[0].points = [
 				// 	// 	{latitude: 39.997761, longitude: 116.478935},

+ 0 - 2
pages/release/addAddress.vue

@@ -104,9 +104,7 @@
 										})
 									}
 								})
-
 							}
-
 						})
 					.catch(res => {
 						uni.showToast({

+ 5 - 0
pages/release/editRelease.vue

@@ -61,6 +61,11 @@
 				<!-- <input type="text" class="input" placeholder="自动计算" v-model="dataObj.distance" disabled /> -->
 				<view class="input">{{dataObj.distance?dataObj.distance:"自动计算"}} km</view>
 			</view>
+			<view class="row">
+				<view class="left">业务类型</view>
+				<view class="right" >{{dataObj.businessType?dataObj.businessType:"请选择业务类型"}}
+				</view>
+			</view>
 			<view class="row">
 				<view class="left">货物类别</view>
 				<view class="right" @click="goodstypeChange">{{dataObj.goodsType?dataObj.goodsType:"请选择货物类别"}}</view>

+ 167 - 113
pages/release/release.vue

@@ -21,8 +21,11 @@
 		<view class="content1">
 			<view class="row" @click="selectCargoOwner">
 
-				<view class="left select-sf" :class='dataObj.cargoOwner?"":"select-sf1"'>{{dataObj.cargoOwner?dataObj.cargoOwner:'选择货主身份'}}</view>
-				<view class="right"><image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image></view>
+				<view class="left select-sf" :class='dataObj.cargoOwner?"":"select-sf1"'>
+					{{dataObj.cargoOwner?dataObj.cargoOwner:'选择货主身份'}}</view>
+				<view class="right">
+					<image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image>
+				</view>
 			</view>
 			<!-- 		<view class="row" @click="selectCargoOwner" v-if="dataObj.cargoOwner">
 				<view class="left">{{dataObj.cargoOwner}}</view>
@@ -46,7 +49,10 @@
 				</view>
 				<view class="right" @click="selectAddress(0)" v-if="!dataObj.sendArea">
 					<view v-if='dataObj.sendArea' class="right"></view>
-					<view class="right" v-else><image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image></view>
+					<view class="right" v-else>
+						<image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;">
+						</image>
+					</view>
 				</view>
 			</view>
 			<view class="row2">
@@ -63,7 +69,10 @@
 				</view>
 				<view class="right" @click="selectAddress(1)" v-if="!dataObj.unloadArea">
 					<view v-if='dataObj.unloadArea' class="right">{{(dataObj.unloadCity+dataObj.unloadArea)}}</view>
-					<view class="right" v-else><image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image></view>
+					<view class="right" v-else>
+						<image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;">
+						</image>
+					</view>
 				</view>
 			</view>
 		</view>
@@ -74,6 +83,11 @@
 				{{dataObj.distance }}
 				km
 			</view>
+			<view class="row">
+				<view class="left">业务类型</view>
+				<view class="right" @click="businessChange">{{dataObj.businessType?dataObj.businessType:"请选择业务类型"}}
+				</view>
+			</view>
 			<view class="row">
 				<view class="left">货物类别</view>
 				<view class="right" @click="goodstypeChange">{{dataObj.goodsType?dataObj.goodsType:"请选择货物类别"}}</view>
@@ -104,7 +118,7 @@
 				</view>
 			</view>
 			<view class="row">
-				<view  style='width:120px;' class="left">收货方信用代码(选填)</view>
+				<view style='width:120px;' class="left">收货方信用代码(选填)</view>
 				<view class="right flex">
 					<input maxlength="18" placeholder="统一社会信用代码" class="input" v-model="dataObj.receiverCreditCode" />
 				</view>
@@ -225,20 +239,28 @@
 					{{dataObj.taskValidity?dataObj.taskValidity:'选择任务有效期>'}}
 				</view>
 			</view>
-			<itmister-date-picker :overdueContent="'任务已过期'" :dateStatus="1" :periodOfValidity="true" :startYear='2022' ref="dateEl" :endDate="array" :futureYear="30" @dateConfirm="confirmValidityPeriodcq"></itmister-date-picker>
+			<itmister-date-picker :overdueContent="'任务已过期'" :dateStatus="1" :periodOfValidity="true" :startYear='2022'
+				ref="dateEl" :endDate="array" :futureYear="30" @dateConfirm="confirmValidityPeriodcq">
+			</itmister-date-picker>
 		</view>
 		<view class="submit" @click="submit">立即发布</view>
 		<!-- <u-picker :show="isShowValidity" ref="uPicker" :columns="validityPeriod" @confirm="confirmValidityPeriod"
 			:closeOnClickOverlay='true' @close='isShowValidity=false' @cancel='isShowValidity=false'>
 		</u-picker> -->
-		<itmister-date-picker :dateStatus="2" :startYear='2022' ref="datezc" :futureYear="30" @dateConfirm="confirmValidityPeriod"></itmister-date-picker>
+		<itmister-date-picker :dateStatus="2" :startYear='2022' ref="datezc" :futureYear="30"
+			@dateConfirm="confirmValidityPeriod"></itmister-date-picker>
 		<!-- //货物类别 -->
 		<u-picker :show="isGoodsType" ref="uPicker" :columns="goodsList" keyName="constValue" @confirm="goodsSubmit"
 			:closeOnClickOverlay='true' @close='isGoodsType=false' @cancel='isGoodsType=false'>
 		</u-picker>
+		<!-- 业务类型 -->
+		<u-picker :show="isBusinessType" ref="uPicker" :columns="businessList" keyName="constValue"
+			@confirm="businessSubmit" :closeOnClickOverlay='true' @close='isBusinessType=false'
+			@cancel='isBusinessType=false'>
+		</u-picker>
 		<u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :closeOnClickOverlay='false'
-			:showCancelButton='showCancelButton' confirmColor='#2772FB' @confirm="$u.throttle(confirmClick(), 5000)" @close="cancelClick"
-			@cancel="cancelClick"></u-modal>
+			:showCancelButton='showCancelButton' confirmColor='#2772FB' @confirm="$u.throttle(confirmClick(), 5000)"
+			@close="cancelClick" @cancel="cancelClick"></u-modal>
 		<u-modal :show="isShowAlert1" :title="alertTitle" :confirmText='confirmText' :content='alertContent'
 			:closeOnClickOverlay='false' :showCancelButton='showCancelButton' confirmColor='#2772FB'
 			@confirm="$u.throttle(confirmClick(), 5000)" @close="cancelClick" @cancel="cancelClick"></u-modal>
@@ -267,7 +289,7 @@
 				columns: [
 					[]
 				],
-				array:{},
+				array: {},
 				freightAdvance: false,
 				dataObj: {
 					commonId: '',
@@ -303,8 +325,8 @@
 					sendLatitude: '',
 					unsendLongitude: '',
 					unsendLatitude: '',
-					sendAdCode:'',
-					unsendAdCode:''
+					sendAdCode: '',
+					unsendAdCode: ''
 				},
 				confirmText: '',
 				isShowAlert1: false,
@@ -342,8 +364,11 @@
 
 				],
 				// 货物类别
-				isGoodsType:false,
-				goodsList:[]
+				isGoodsType: false,
+				goodsList: [],
+				//业务类型
+				isBusinessType: false,
+				businessList: []
 			}
 		},
 		onNavigationBarButtonTap(e) {
@@ -353,8 +378,12 @@
 		onShow() {
 			var datetime = new Date().getTime()
 			var datetime1 = datetime + (24 * 60 * 60 * 1000 * 30 * 6)
-			var date=new Date(datetime1)
-			this.array={year:date.getFullYear(),month:date.getMonth() + 1,day:date.getDate()}
+			var date = new Date(datetime1)
+			this.array = {
+				year: date.getFullYear(),
+				month: date.getMonth() + 1,
+				day: date.getDate()
+			}
 			_this = this
 			// #ifdef APP-PLUS
 			// let _status = this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
@@ -413,10 +442,10 @@
 				this.dataObj.sendDetailedAddress = _faddress.detailedAddress
 				this.dataObj.sendLongitude = _faddress.longitude
 				this.dataObj.sendLatitude = _faddress.latitude
-				if(_faddress.contactPhone){
+				if (_faddress.contactPhone) {
 					this.dataObj.senderPhone = _faddress.contactPhone
 				}
-				if(_faddress.contacts){
+				if (_faddress.contacts) {
 					this.dataObj.sender = _faddress.contacts
 				}
 			} else {
@@ -430,10 +459,10 @@
 				this.dataObj.unloadPrivate = _saddress.province
 				this.dataObj.unsendLongitude = _saddress.longitude
 				this.dataObj.unsendLatitude = _saddress.latitude
-				if(_saddress.contacts){
+				if (_saddress.contacts) {
 					this.dataObj.receiver = _saddress.contacts
 				}
-				if(_saddress.contactPhone){
+				if (_saddress.contactPhone) {
 					this.dataObj.receiverPhone = _saddress.contactPhone
 				}
 			} else {
@@ -449,17 +478,18 @@
 			this.dataObj.loadingDateEnd = '随时'
 			this.dataObj.taskValidity = '长期'
 			this.getSFList()
-			
+
 		},
 		async onLoad() {
 			//货物类别(默认上一次)
 			this.queryGoodsList() // 查询货物类别
 			let goods = uni.getStorageSync("goodsType")
-			if(goods){
+			if (goods) {
 				this.dataObj.goodsType = goods.name
 				this.dataObj.goodsTypeKey = goods.key
 			}
-			
+			this.queryBusinessTypeList() //查询业务类型
+
 
 			// _this = this
 			// // #ifdef APP-PLUS
@@ -485,27 +515,41 @@
 			...mapState(['hasLogin', 'userInfo']),
 		},
 		methods: {
-			queryGoodsList(){
+			queryGoodsList() {
 				this.$request.baseRequest('get', '/commonSysParameter/getInfo', {
-						constId: "CON1"
-					}).then(res => {
-						this.goodsList.push(res.data)
-						console.log(this.goodsList)
-					})
+					constId: "CON1"
+				}).then(res => {
+					this.goodsList.push(res.data)
+				})
+			},
+			queryBusinessTypeList() {
+				this.$request.baseRequest('get', '/commonSysParameter/getInfo', {
+					constId: "BUS1"
+				}).then(res => {
+					this.businessList.push(res.data)
+				})
 			},
-			goodstypeChange(){
+			goodstypeChange() {
 				this.isGoodsType = true
 			},
-			goodsSubmit(e){
+			businessChange() {
+				this.isBusinessType = true
+			},
+			goodsSubmit(e) {
 				this.dataObj.goodsType = e.value[0].constValue
 				this.dataObj.goodsTypeKey = e.value[0].constKey
-				let _obj={
-					name:e.value[0].constValue,
-					key:e.value[0].constKey
+				let _obj = {
+					name: e.value[0].constValue,
+					key: e.value[0].constKey
 				}
-				uni.setStorageSync("goodsType",_obj)
+				uni.setStorageSync("goodsType", _obj)
 				this.isGoodsType = false
 			},
+			businessSubmit(e) {
+				this.dataObj.businessType = e.value[0].constValue
+				this.dataObj.businessTypeKey = e.value[0].constKey
+				this.isBusinessType = false
+			},
 			getSFList() {
 				this.dataObj.commonId = this.userInfo.id
 				this.$request.baseRequest('get', '/cargoOwnerCompInfo/cargoOwnerList', {
@@ -513,8 +557,8 @@
 					}).then(res => {
 						if (uni.getStorageSync('releaseCargoOwner')) {
 							this.dataObj.cargoOwner = uni.getStorageSync('releaseCargoOwner')
-							this.dataObj.compId =uni.getStorageSync('releasecompId')
-							
+							this.dataObj.compId = uni.getStorageSync('releasecompId')
+
 						}
 						// 可用企业货主
 						this.qyList = []
@@ -528,7 +572,7 @@
 						if (!_self) _self = []
 						if (_self.length > 0) {
 							for (let i = 0; i < _self.length; i++) {
-								_self[i].compStatus='wd'
+								_self[i].compStatus = 'wd'
 								if (_self[i].status == '已认证') {
 									this.qyList.push(_self[i])
 								}
@@ -536,7 +580,7 @@
 						}
 						if (_dlhz.length > 0) {
 							for (let i = 0; i < _dlhz.length; i++) {
-								_dlhz[i].compStatus='ss'
+								_dlhz[i].compStatus = 'ss'
 								if (_dlhz[i].status == '已认证') {
 									this.qyList.push(_dlhz[i])
 								}
@@ -595,6 +639,13 @@
 					})
 					return true
 				}
+				if (uni.$u.test.isEmpty(this.dataObj.businessType)) {
+					this.$refs.uToast.show({
+						type: 'error',
+						message: "业务类型不能为空!",
+					})
+					return true
+				}
 				if (uni.$u.test.isEmpty(this.dataObj.goodsType)) {
 					this.$refs.uToast.show({
 						type: 'error',
@@ -642,7 +693,7 @@
 					this.$refs.uToast.show({
 						type: 'error',
 						message: "信用代码和身份证号码至少填写一个!",
-						duration:4000
+						duration: 4000
 					})
 					return true
 				}
@@ -653,14 +704,14 @@
 				// 	})
 				// 	return true
 				// }
-				if(this.dataObj.receiverIdcard&&this.dataObj.receiverIdcard.length!=18){
+				if (this.dataObj.receiverIdcard && this.dataObj.receiverIdcard.length != 18) {
 					this.$refs.uToast.show({
-							type: 'error',
-							message: "身份证号输入错误!",
-						})
-						return true
+						type: 'error',
+						message: "身份证号输入错误!",
+					})
+					return true
 				}
-				if(this.dataObj.receiverCreditCode&&this.dataObj.receiverCreditCode.length!=18){
+				if (this.dataObj.receiverCreditCode && this.dataObj.receiverCreditCode.length != 18) {
 					this.$refs.uToast.show({
 						type: 'error',
 						message: "信用代码输入错误!",
@@ -778,7 +829,7 @@
 			confirmClick() {
 				uni.$u.throttle(this.requestdata, 500)
 			},
-			requestdata(){
+			requestdata() {
 				console.log(this.dataObj)
 				// // #ifdef APP-PLUS
 				// if (this.alertTitle == '账号审核中') {
@@ -790,7 +841,7 @@
 				// 	return
 				// }
 				// // #endif
-				
+
 				// if (this.alertTitle == '身份信息未认证,去认证?') {
 				// 	uni.switchTab({
 				// 		url: '/pages/mine/index'
@@ -798,7 +849,7 @@
 				// 	return
 				// }
 				// this.isShowAlert = false
-				
+
 				if (this.dataDetails.type == '元/吨') {
 					this.dataObj.billingMethod = 0
 				} else {
@@ -809,11 +860,11 @@
 				} else {
 					this.dataObj.freightAdvance = 0
 				}
-				if(!this.dataObj.receiverIdcard){
-					this.dataObj.receiverIdcard=''
+				if (!this.dataObj.receiverIdcard) {
+					this.dataObj.receiverIdcard = ''
 				}
-				if(!this.dataObj.receiverCreditCode){
-					this.dataObj.receiverCreditCode=''
+				if (!this.dataObj.receiverCreditCode) {
+					this.dataObj.receiverCreditCode = ''
 				}
 				let _list = []
 				for (let i = 0; i < this.checkboxValue1.length; i++) {
@@ -884,35 +935,37 @@
 								// 	unsendLatitude: '',
 								// }
 								// _this.checkboxValue1 = ['不限']
-								 // _this.queryGoodsList() // 查询货物类别
-								 // let goods = uni.getStorageSync("goodsType")
-								 // if(goods){
-								 // 	_this.dataObj.goodsType = goods.name
-								 // 	_this.dataObj.goodsTypeKey = goods.key
-								 // }
-								  // const pages = getCurrentPages()
-								  // console.log(pages)
-								         // 声明一个pages使用getCurrentPages方法
-								         // const curPage = pages[pages.length - 1]
-								         // 声明一个当前页面
-								        // curPage.$vm.$options.onLoad[1].bind(curPage.$vm); // 传入参数
-										// curPage.$vm.$options.onShow[1].bind(curPage.$vm); // curPage.onShow()
-								  //       curPage.$vm.$options.onReady[1].bind(curPage.$vm);
-										 // curPage.onReady()
-										 // uni.switchTab({
-										 // 	url: '/pages/mine/index'
-										 // })
-										 // uni.switchTab({
-										 // 	url: '/pages/mine/index'
-										 // })
-								 uni.redirectTo({url:"/pages/release/release"})
-								 // uni.reLaunch({url:"/pages/release/release"})
-								 // uni.redirectTo("/pages/release/record")
+								// _this.queryGoodsList() // 查询货物类别
+								// let goods = uni.getStorageSync("goodsType")
+								// if(goods){
+								// 	_this.dataObj.goodsType = goods.name
+								// 	_this.dataObj.goodsTypeKey = goods.key
+								// }
+								// const pages = getCurrentPages()
+								// console.log(pages)
+								// 声明一个pages使用getCurrentPages方法
+								// const curPage = pages[pages.length - 1]
+								// 声明一个当前页面
+								// curPage.$vm.$options.onLoad[1].bind(curPage.$vm); // 传入参数
+								// curPage.$vm.$options.onShow[1].bind(curPage.$vm); // curPage.onShow()
+								//       curPage.$vm.$options.onReady[1].bind(curPage.$vm);
+								// curPage.onReady()
+								// uni.switchTab({
+								// 	url: '/pages/mine/index'
+								// })
+								// uni.switchTab({
+								// 	url: '/pages/mine/index'
+								// })
+								uni.redirectTo({
+									url: "/pages/release/release"
+								})
+								// uni.reLaunch({url:"/pages/release/release"})
+								// uni.redirectTo("/pages/release/record")
 								// uni.$u.route("/pages/release/record")
 							}
 						})
 						this.isShowAlert = false
-				
+
 					})
 					.catch(res => {
 						uni.showToast({
@@ -963,7 +1016,7 @@
 							this.dataObj.distance = this.$helper.getDistance(this.dataObj.unsendLatitude, this.dataObj
 								.unsendLongitude, this.dataObj.sendLatitude, this.dataObj.sendLongitude)
 						}
-						
+
 					})
 					.catch(res => {
 						uni.hideLoading()
@@ -1003,38 +1056,39 @@
 				for (let i = 0; i < this.qyList.length; i++) {
 					let _name = this.qyList[i].company ? this.qyList[i].company : this.qyList[i].companyName
 					if (_name == e.value[0]) {
-						if(e.value[0]!='个人货主'){
-							this.freightAdvance=true
-							if(this.qyList[i].compStatus=='ss'){
-								this.dataObj.compId=this.qyList[i].compId
-							}else{
-								this.dataObj.compId=this.qyList[i].id
+						if (e.value[0] != '个人货主') {
+							this.freightAdvance = true
+							if (this.qyList[i].compStatus == 'ss') {
+								this.dataObj.compId = this.qyList[i].compId
+							} else {
+								this.dataObj.compId = this.qyList[i].id
 							}
 							// console.log(this.qyList[i].compStatus,this.dataObj.compId)
 							uni.setStorageSync('releasecompId', this.dataObj.compId)
-						}else{
+						} else {
 							this.$request.baseRequest('get', '/hyCargoOwnerPayeeInfo/selectPayee', {
-									commonId: this.userInfo.id,
-									pageSize: 10,
-									currentPage: 1,
-								}).then(res => {
-									if (res.code == '200') {
-										if(res.data.records.length==0){
-											this.$refs.uToast.show({
-												type: 'error',
-												message: "未绑定银行卡"})
-											this.dataObj.cargoOwner=''
-												return
-										}
-										this.freightAdvance=false
+								commonId: this.userInfo.id,
+								pageSize: 10,
+								currentPage: 1,
+							}).then(res => {
+								if (res.code == '200') {
+									if (res.data.records.length == 0) {
+										this.$refs.uToast.show({
+											type: 'error',
+											message: "未绑定银行卡"
+										})
+										this.dataObj.cargoOwner = ''
+										return
 									}
-								})
+									this.freightAdvance = false
+								}
+							})
 						}
-						this.freightAdvance= this.qyList[i].advanceFreightService == 1 ? true : false
+						this.freightAdvance = this.qyList[i].advanceFreightService == 1 ? true : false
 						this.dataObj.freightAdvance = this.qyList[i].advanceFreightService == 1 ? true : false
 					}
 				}
-				
+
 				uni.setStorageSync('releaseCargoOwner', this.dataObj.cargoOwner)
 				this.show = false
 			},
@@ -1063,15 +1117,15 @@
 				this.$refs.dateEl.show();
 			},
 			confirmValidityPeriod(date) {
-			
-			switch (this.ValidityPeriodType) {
-				case 0:
-					this.dataObj.loadingDateStart = date.date
-					break
-				case 1:
-					this.dataObj.loadingDateEnd =date.date
-					break
-			}
+
+				switch (this.ValidityPeriodType) {
+					case 0:
+						this.dataObj.loadingDateStart = date.date
+						break
+					case 1:
+						this.dataObj.loadingDateEnd = date.date
+						break
+				}
 			},
 			getTime: function() {
 
@@ -1086,7 +1140,7 @@
 				return timer;
 			},
 			confirmValidityPeriodcq(date) {
-				this.dataObj.taskValidity=date.date
+				this.dataObj.taskValidity = date.date
 			},
 			selectValidityPeriod(type) {
 				this.ValidityPeriodType = type
@@ -1264,7 +1318,7 @@
 			font-size: 36rpx;
 			font-weight: 700;
 			color: #171717;
-			width:90%;
+			width: 90%;
 			justify-content: flex-start;
 			// text-align:left;
 		}