zhaozp 3 tahun lalu
induk
melakukan
b332d40670

+ 2 - 0
src/common/global.css

@@ -46,6 +46,8 @@
 .a-self-stretch{ align-self:stretch; }
 .a-self-baseline{ align-self:baseline; }
 
+.f-16{ font-size: 14px;}
+.f-18{ font-size: 16px;}
 /* 宽度 */
 .w-100{ width:100% }
 .w-50{ width:50% }

+ 2 - 2
src/common/request.js

@@ -1,6 +1,6 @@
-// const baseUrl =  'http://81.70.84.72:30046'
+const baseUrl =  'http://81.70.84.72:30046'
 // const baseUrl =  'http://172.18.0.24:30046'
-const baseUrl =  'http://39.100.230.190:30046'
+// const baseUrl =  'http://39.100.230.190:30046'
 
 // 文件上传地址
 const fileUrl =  'http://81.70.84.72:30045'

+ 4 - 4
src/components/dj-navbar.vue

@@ -1,15 +1,15 @@
 <template>
-	<u-navbar :is-back="false" :border-bottom="false" style="font-size: 14px;">
+	<u-navbar :is-back="false" :border-bottom="false">
 		<view class="slot-wrap">
 			<u-row class="d-flex j-sb a-center w-100" style="height: 52px;">
 				<u-col :span="colSlice[0]" class="d-flex">
 					<dj-image src="/static/fanhui.png" widthImg="33" heightImg="33" @click.native="back"></dj-image>
 				</u-col>
-				<u-col :span="colSlice[1]" class="d-flex u-font-xl" justify="center" v-if="fixTitle">
-					<text>{{ fixTitle }}</text>
+				<u-col :span="colSlice[1]" class="d-flex f-18" justify="center" v-if="fixTitle">
+					<text class="f-18">{{ fixTitle }}</text>
 				</u-col>
 				<u-col :span="colSlice[1]" class="d-flex" justify="center" v-else @click="change_shift">
-					<view class="u-m-r-10 u-font-xl">班次:{{ title ?  title : '无'}}</view>
+					<view class="u-m-r-10 f-18">班次:{{ title ?  title : '无'}}</view>
 					<!-- <img src="/static/xiala.png" style="width:18rpx;height:15rpx;" /> -->
 					<dj-image src="/static/xiala.png" widthImg="18" heightImg="12" style="line-height: 10rpx;"></dj-image>
 				</u-col>

+ 15 - 15
src/components/dj-swipe-action.vue

@@ -1,18 +1,18 @@
 <template>
 	<view class="main-content">
-		<view class="d-flex u-m-b-14 a-center j-sb">
+		<view class="d-flex u-m-b-14 a-center j-sb f-18">
 			<!-- <view class="main-content-number u-font-21">{{ item.mouldId }}</view> -->
-			<view class="main-content-name u-font-26">夹具名:{{ item.mouldName }}</view>
-			<view class="main-content-status u-font-21" :style="status_change[1]">{{ status_change[0] }}</view>
+			<view class="main-content-name ">夹具名:{{ item.mouldName }}</view>
+			<view class="main-content-status " :style="status_change[1]">{{ status_change[0] }}</view>
 		</view>
-		<view class="u-m-b-12">
-			<text class="main-content-person u-m-r-48 u-font-21">责任人:{{ item.principalUsername }}</text>
-			<text class="main-content-type u-font-21" >类型:{{ item.pressTypeValue }}</text>
+		<view class="u-m-b-12 f-18">
+			<text class="main-content-person u-m-r-48 ">责任人:{{ item.principalUsername }}</text>
+			<text class="main-content-type " >类型:{{ item.pressTypeValue }}</text>
 		</view>
-		<view class="d-flex a-center">
+		<view class="d-flex a-center f-18">
 			<view style="width: 90%;">
-				<view class="u-m-b-10 u-font-21">备注:{{ item.action }}</view>
-				<view class="d-flex j-sb u-font-21">
+				<view class="u-m-b-10 ">备注:{{ item.action }}</view>
+				<view class="d-flex j-sb ">
 					<text>开始日期:{{ item.startDate }}</text>
 					<!-- <text>开始日期:{{ item.endDate }}</text> -->
 					<text>开始时间:{{ item.startTime | filter_time }}</text>
@@ -78,23 +78,23 @@
 		padding:15rpx;
 	}
 	.main-content-number {
-		width: 106rpx;
-		height: 34rpx;
+		width: 120rpx;
+		height: 40rpx;
 		background: $dj-primary-color;
 		text-align: center;
-		line-height: 34rpx;
+		line-height: 40rpx;
 		color: $dj-white-color;
 	}
 	.main-content-name {
 		color: $dj-primary-color;
 	}
 	.main-content-status {
-		width: 106rpx;
-		height: 34rpx;
+		width: 120rpx;
+		height: 40rpx;
 		border-radius: 17rpx;
 		background: $dj-primary-color;
 		text-align: center;
-		line-height: 34rpx;
+		line-height: 40rpx;
 		color: $dj-white-color;
 	}
 	.main-content-person {

+ 1 - 1
src/components/dj-tabbar.vue

@@ -1,5 +1,5 @@
 <template>
-	<view class="d-flex w-100 tabbar">
+	<view class="d-flex w-100 tabbar f-18">
 		<view class="flex-1 d-flex a-center j-center" v-show="!commitInfo.name" @click="submit">主保养人</view>
 		<view class="flex-1 d-flex a-center j-center flex-column" v-show="commitInfo.name" @click="submit">
 			<view class="u-m-b-8">保养人:{{ commitInfo.name }}</view>

+ 2 - 1
src/pages.json

@@ -30,6 +30,7 @@
 		"navigationBarTextStyle": "black",
 		"navigationBarTitleText": "uni-app",
 		"navigationBarBackgroundColor": "#F8F8F8",
-		"backgroundColor": "#F8F8F8"
+		"backgroundColor": "#F8F8F8",
+		"rpxCalcMaxDeviceWidth": 0
 	}
 }

+ 26 - 15
src/pages/index/addUpkeep.vue

@@ -303,7 +303,19 @@
 							}) 
 							break
 						}
-						// this.params = this.times
+						if(index === 7) {
+							this.selectorA = ['08:30:00','10:30:00','12:30:00','14:30:00','16:30:00','18:30:00','20:30:00']
+							this.selectorB = ['20:30:00','22:30:00','00:30:00','02:30:00','04:30:00','06:30:00','08:30:00']
+						}
+						if(index === 8) {
+							if(!this.keepUpForm.startTime){
+								this.$refs.uToast.show({
+									title: '请先选择开始时间',
+									type: 'error',
+								}) 
+								break
+							}
+						}
 						this.dataInfo = this.keepUpForm.shiftId === 'A' ? this.selectorA : this.selectorB
 						this.show_picker()
 						break
@@ -350,18 +362,14 @@
 						mydata.startDate = dateFormat(data)
 						break
 					case 7:
-						// this.startTimestamp = data.timestamp
-						// if(this.endTimestamp) {
-						// 	if(this.startTimestamp > this.endTimestamp) {
-						// 		this.$refs.uToast.show({
-						// 			title: '开始时间不能大于结束时间',
-						// 			type: 'error',
-						// 		}) 
-						// 		break
-						// 	}	
-						// }
-						// myform.startTime = timeFormat(data)
-						// mydata.startTime = timeFormat(data)
+						if(this.keepUpForm.shiftId === 'A'){
+							this.selectorA = this.selectorA.slice(index)
+						}
+						if(this.keepUpForm.shiftId === 'B'){
+							this.selectorB = this.selectorB.slice(index)
+						}
+						myform.endTime = ''
+						mydata.endTime = ''
 						myform.startTime = data
 						mydata.startTime = data
 						break
@@ -402,7 +410,10 @@
 		background-color: $dj-white-color;
 		min-height: 100%;
 		height: 100vh;
-		overflow: hidden;
-		font-family: $dj-font-family;
+		// overflow: hidden;
+		// font-family: $dj-font-family;
+	}
+	/deep/ .u-input__input[data-v-460c1d26] {
+		font-size: 18px;
 	}
 </style>

+ 2 - 2
src/pages/index/upKeepInfo.vue

@@ -2,10 +2,10 @@
 	<view class="content">
 		<dj-navbar :fixTitle="title" ifThisAppJump />
 		<template v-if="noticeInfo.length">
-			<view style="overflow-y: auto;" id="service" :style="serviceHeight">
+			<view style="overflow-y: auto;" id="service" :style="serviceHeight" class="f-16">
 				<view class="serviceContent" v-for="(item,index) in noticeInfo" :key="index">
 					<view class="d-flex j-sb a-center">
-						<view class="u-font-xl">{{ item.projectName }}: {{ item.projectValue }}</view>
+						<view class="f-18">{{ item.projectName }}: {{ item.projectValue }}</view>
 						<view class="d-flex">
 							<dj-button v-if="item.status === '' || item.status === '1'" class="u-m-r-12" content="NOK" borderRadius="0" ifPlain width="111" height="53" bColor="#fff" color="#FE0000" border="#FE0000" @click.native="btn_click(index,false)"></dj-button>
 							<dj-button v-else class="u-m-r-12" content="NOK" width="111" height="53" bColor="#FE0000" borderRadius="0" color="#fff" border="#FE0000"></dj-button>

+ 2 - 2
src/uview-ui/components/u-form-item/u-form-item.vue

@@ -351,8 +351,8 @@
 	.u-form-item {
 		@include vue-flex;
 		// align-items: flex-start;
-		padding: 20rpx 0;
-		font-size: 28rpx;
+		padding: 10rpx 0;
+		font-size: 18px;
 		color: $u-main-color;
 		box-sizing: border-box;
 		line-height: $u-form-item-height;