Selaa lähdekoodia

Ltb2020年11月4日15:01:38
修改5个问题

老狐\25396 4 vuotta sitten
vanhempi
commit
4920247da4
3 muutettua tiedostoa jossa 133 lisäystä ja 72 poistoa
  1. 9 7
      pages/login/doctorRenzheng.vue
  2. 62 8
      pages/zixun/xiangqing.vue
  3. 62 57
      pages/zixun/zixun.vue

+ 9 - 7
pages/login/doctorRenzheng.vue

xqd xqd xqd xqd
@@ -132,9 +132,10 @@
 			</view>
 
 			<view style="width: 142rpx;height: 142rpx;border-radius: 16rpx;background-color: #f4f4f4;" class="flex justify-center align-center">
-				<view>
-					<image src="../../static/addPhoto.png" mode="" style="width: 60rpx;height: 60rpx;"></image>
-				</view>
+				<!-- <view style="width: 60rpx;height: 60rpx;">
+					
+				</view> -->
+				<u-upload :action="action" width="60" height="60" :file-list="fileList" ></u-upload>
 			</view>
 
 		</view>
@@ -146,7 +147,7 @@
 
 			<view style="width: 142rpx;height: 142rpx;border-radius: 16rpx;background-color: #f4f4f4;" class="flex justify-center align-center">
 				<view>
-					<image src="../../static/addPhoto.png" mode="" style="width: 60rpx;height: 60rpx;"></image>
+					<image src="../../static/addPhoto.png" mode=""></image>
 				</view>
 			</view>
 
@@ -220,9 +221,9 @@
 						department: '科室名称', //科室
 						qualifications: '默认资质' //资质
 					}],
-					certificate: '', //证书
-					idPhoto: '', //身份证
-					doctorQualification: '' //医生资格
+					certificate: [], //证书
+					idPhoto: [], //身份证
+					doctorQualification: [] //医生资格
 				},
 				//性别选择
 				sexshow: false,
@@ -334,6 +335,7 @@
 			qualificationsconfirm(e) {
 				this.form.work[this.qualifications].qualifications = e[0].label
 			},
+			// 保存
 			bc() {
 				console.log(this.province)
 

+ 62 - 8
pages/zixun/xiangqing.vue

xqd xqd
@@ -4,16 +4,33 @@
 		<u-popup v-model="formshow" mode="center" border-radius="14" :closeable="false">
 			<view style="width: 75vw;height: 60vh">
 				<view class="flex justify-center align-center" style="height: 15%;font-size: 34rpx;font-weight: bold;">填写意见单</view>
-				<view style="height: 70%;padding: 0 30rpx;">
-					<view class="flex align-center" style="margin-bottom: 10rpx;">
+				<view style="height: 70%;padding: 0 40rpx;">
+					<!-- 病症 -->
+					<view class="flex align-center" style="margin-bottom: 20rpx;">
 						<text style="margin-right: 20rpx;">病症:</text>
-						<input placeholder="请填写病症名称" @blur="bzblur" style="border-bottom: 1rpx solid #666666;"/>
+						<input placeholder="请填写病症名称" @input="bzblur" style="border-bottom: 1rpx solid #666666;" />
 					</view>
-					<view class="flex align-center" style="margin-bottom: 10rpx;">
+					<!-- 病因-->
+					<view class="flex align-center" style="margin-bottom: 20rpx;">
 						<text style="margin-right: 20rpx;">病因:</text>
-						<input placeholder="请填写患病因素" @blur="byblur" style="border-bottom: 1rpx solid #666666;"/>
+						<input placeholder="请填写患病因素" @input="byblur" style="border-bottom: 1rpx solid #666666;" />
+					</view>
+					<!-- 结论 -->
+					<view>
+						<view style="margin-bottom: 20rpx;">结论因素:</view>
+						<view style="border: 1rpx solid #666666;border-radius: 15rpx;padding: 10rpx;">
+							<textarea @input="jlblur" placeholder="请填写病情情况、建议等" placeholder-style="color:#969696" style="width: auto;" />
+							</view>
+					</view>
+				</view>
+				<!-- 两个按钮 -->
+				<view style="height: 15%;display: flex;justify-content: center;align-items: center">
+					<view style="display:flex;justify-content: center;align-items: center;width: 50%;">
+						<u-button shape="shape" size="medium" @click="formshow = false,bz=null,by=null,jl=null">取消</u-button>
+					</view>
+					<view style="display:flex;justify-content: center;align-items: center ;width: 50%;">
+						<u-button shape="shape" size="medium"  type="primary" @click="qr">确认</u-button>
 					</view>
-					
 				</view>
 			</view>
 		</u-popup>
@@ -270,11 +287,48 @@
 			},
 			//病症提交
 			bzblur(e){
-				e.datail.value = this.bz
+				this.bz = e.detail.value
 			},
 			byblur(e){
-				e.datail.value = this.by
+				 this.by =e.detail.value
+			},
+			jlblur(e){
+				this.jl = e.detail.value
+			},
+			//意见单  确认
+			qr(e){
+				console.log(this.bz)
+				console.log(this.by)
+				console.log(this.jl)
+				
+				if(this.bz!=''){
+					if(this.by!=''){
+						if(this.jl!=''){
+							this.formshow = false
+							this.zt = 3
+							this.bz=''
+							this.by=''
+							this.jl=''
+						}else{
+							uni.showToast({
+								title:'请填写结论',
+								icon:'none'
+							})
+						}
+					}else{
+						uni.showToast({
+							title:'请填写病因',
+							icon:'none'
+						})
+					}
+				}else{
+					uni.showToast({
+						title:'请填写病症',
+						icon:'none'
+					})
+				}
 			},
+			//意见单  取消
 		
 		}
 	};

+ 62 - 57
pages/zixun/zixun.vue

xqd xqd xqd
@@ -80,10 +80,12 @@
 	export default {
 		onShow() {
 			this.getLists();
+			
 		},
 		onLoad(e) {
 			// 获取列表
 			this.getLists();
+			
 		},
 		data() {
 			return {
@@ -111,63 +113,65 @@
 						value: 1,
 					},
 				],
-				list: [{
-					zt: 1, //状态
-					zl: 1, //种类 
-					name: '张三',
-					age: '一岁零2个月',
-					order: 'ZX202000010',
-					time: '2020年10月28日17:11:10'
-				}, {
-					zt: 2, //状态
-					zl: 1, //种类 
-					name: '张三',
-					age: '一岁零2个月',
-					order: 'ZX202000010',
-					time: '2020年10月28日17:11:10'
-				}, {
-					zt:3, //状态 
-					zl:1, //种类
-					name: '张三',
-					age: '一岁零2个月',
-					order: 'ZX202000010',
-					time: '2020年10月28日17:11:10'
-				}, {
-					zt: 4, //状态
-					zl: 1, //种类
-					name: '张三',
-					age: '一岁零2个月',
-					order: 'ZX202000010',
-					time: '2020年10月28日17:11:10'
-				}, {
-					zt: 1, //状态 
-					zl: 2, //种类
-					name: '张三',
-					age: '一岁零2个月',
-					order: 'ZX202000010',
-					time: '2020年10月28日17:11:10'
-				}, {
-					zt: 2, //状态 
-					zl: 2, //种类
-					name: '张三',
-					age: '一岁零2个月',
-					order: 'ZX202000010',
-					time: '2020年10月28日17:11:10'
-				}, {
-					zt: 3, //状态
-					zl: 2, //种类 
-					name: '张三',
-					age: '一岁零2个月',
-					order: 'ZX202000010',
-					time: '2020年10月28日17:11:10'
-				}, {
-					zt: 4, //状态 
-					zl: 2, //种类 
-					name: '张三',
-					age: '一岁零2个月',
-					order: 'ZX202000010',
-					time: '2020年10月28日17:11:10'
-				}],
+				list: [
+				// 	{
+				// 	zt: 1, //状态
+				// 	zl: 1, //种类 
+				// 	name: '张三',
+				// 	age: '一岁零2个月',
+				// 	order: 'ZX202000010',
+				// 	time: '2020年10月28日17:11:10'
+				// }, {
+				// 	zt: 2, //状态
+				// 	zl: 1, //种类 
+				// 	name: '张三',
+				// 	age: '一岁零2个月',
+				// 	order: 'ZX202000010',
+				// 	time: '2020年10月28日17:11:10'
+				// }, {
+				// 	zt:3, //状态 
+				// 	zl:1, //种类
+				// 	name: '张三',
+				// 	age: '一岁零2个月',
+				// 	order: 'ZX202000010',
+				// 	time: '2020年10月28日17:11:10'
+				// }, {
+				// 	zt: 4, //状态
+				// 	zl: 1, //种类
+				// 	name: '张三',
+				// 	age: '一岁零2个月',
+				// 	order: 'ZX202000010',
+				// 	time: '2020年10月28日17:11:10'
+				// }, {
+				// 	zt: 1, //状态 
+				// 	zl: 2, //种类
+				// 	name: '张三',
+				// 	age: '一岁零2个月',
+				// 	order: 'ZX202000010',
+				// 	time: '2020年10月28日17:11:10'
+				// }, {
+				// 	zt: 2, //状态 
+				// 	zl: 2, //种类
+				// 	name: '张三',
+				// 	age: '一岁零2个月',
+				// 	order: 'ZX202000010',
+				// 	time: '2020年10月28日17:11:10'
+				// }, {
+				// 	zt: 3, //状态
+				// 	zl: 2, //种类 
+				// 	name: '张三',
+				// 	age: '一岁零2个月',
+				// 	order: 'ZX202000010',
+				// 	time: '2020年10月28日17:11:10'
+				// }, {
+				// 	zt: 4, //状态 
+				// 	zl: 2, //种类 
+				// 	name: '张三',
+				// 	age: '一岁零2个月',
+				// 	order: 'ZX202000010',
+				// 	time: '2020年10月28日17:11:10'
+				// }
+				],
 			}
 		},
 		methods: {
@@ -177,6 +181,7 @@
 					let data = res.data;
 					console.log('我是打他:',data)
 					this.list = data;
+					console.log('我是list',this.list)
 				}
 			},
 			close1(e) {