From f2ac76666299407545fb733f0d21f6e8cfe538a3 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 19 八月 2025 09:27:40 +0800
Subject: [PATCH] 优化

---
 h5/pages/reporting_she/reporting_she.vue |  490 +++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 338 insertions(+), 152 deletions(-)

diff --git a/h5/pages/reporting_she/reporting_she.vue b/h5/pages/reporting_she/reporting_she.vue
index 50ae231..87fcdc9 100644
--- a/h5/pages/reporting_she/reporting_she.vue
+++ b/h5/pages/reporting_she/reporting_she.vue
@@ -2,240 +2,426 @@
 	<view class="she">
 		<u--form labelPosition="left" :model="model" :rules="rules" ref="uForm">
 			<u-form-item label="鍛樺伐濮撳悕" labelWidth="120" prop="name" borderBottom required>
-				<u--input v-model="model.name" border="none" placeholder="璇疯緭鍏ュ憳宸ュ鍚�"></u--input>
+				<u--input v-model="model.name" border="none" placeholder="璇疯緭鍏ュ憳宸ュ鍚�" disabledColor="#ffffff" disabled></u--input>
 			</u-form-item>
-			<u-form-item label="閮ㄩ棬" labelWidth="120" prop="name" borderBottom @click="show = true" required>
-				<u--input v-model="model.name" border="none" placeholder="璇烽�夋嫨閮ㄩ棬" disabledColor="#ffffff"
+			<u-form-item label="閮ㄩ棬" labelWidth="120" prop="companyName" borderBottom required>
+				<u--input v-model="model.companyName" border="none" placeholder="璇烽�夋嫨閮ㄩ棬" disabledColor="#ffffff"
+					disabled></u--input>
+				<!-- <u-icon slot="right" name="arrow-right"></u-icon> -->
+			</u-form-item>
+			<u-form-item label="涓婃姤鏃堕棿" labelWidth="120" prop="submitDate" borderBottom required>
+				<u--input v-model="model.submitDate" border="none" placeholder="璇烽�夋嫨涓婃姤鏃堕棿" disabledColor="#ffffff"
+					disabled></u--input>
+				<!-- <u-icon slot="right" name="arrow-right"></u-icon> -->
+			</u-form-item>
+			<u-form-item label="鍙戠敓鏃堕棿" labelWidth="120" prop="happenTime" borderBottom @click="openTime" required>
+				<u--input v-model="model.happenTime" border="none" placeholder="璇烽�夋嫨鍙戠敓鏃堕棿" disabledColor="#ffffff"
 					disabled></u--input>
 				<u-icon slot="right" name="arrow-right"></u-icon>
 			</u-form-item>
-			<u-form-item label="涓婃姤鏃堕棿" labelWidth="120" prop="name" borderBottom @click="show1 = true" required>
-				<u--input v-model="model.name" border="none" placeholder="璇烽�夋嫨涓婃姤鏃堕棿" disabledColor="#ffffff"
-					disabled></u--input>
-				<u-icon slot="right" name="arrow-right"></u-icon>
-			</u-form-item>
-			<u-form-item label="鍙戠敓鏃堕棿" labelWidth="120" prop="name" borderBottom @click="show1 = true" required>
-				<u--input v-model="model.name" border="none" placeholder="璇烽�夋嫨鍙戠敓鏃堕棿" disabledColor="#ffffff"
-					disabled></u--input>
-				<u-icon slot="right" name="arrow-right"></u-icon>
-			</u-form-item>
-			<u-form-item label="娑夊強浜哄憳" labelWidth="120" prop="name" borderBottom required>
+			<u-form-item label="娑夊強浜哄憳" labelWidth="120" prop="memberTypeName" borderBottom required>
 				<view style="display: flex; flex-direction: column; width: 100%;">
 					<view
-						style="margin-bottom: 20rpx; display: flex; align-items: center; justify-content: space-between;" @click="show3 = true">
-						<u--input v-model="model.name" border="none" placeholder="璇烽�夋嫨" disabledColor="#ffffff"
+						style="display: flex; align-items: center; justify-content: space-between;" @click="openSJ">
+						<u--input v-model="model.memberTypeName" border="none" placeholder="璇烽�夋嫨浜哄憳绫诲瀷" disabledColor="#ffffff"
 							disabled></u--input>
 						<u-icon name="arrow-right"></u-icon>
 					</view>
-					<view style="display: flex; align-items: center; justify-content: space-between;">
-						<u--input v-model="model.name" border="none" placeholder="璇烽�夋嫨" disabledColor="#ffffff"
-							disabled></u--input>
-						<u-icon name="arrow-right"></u-icon>
-					</view>
+					<template v-if="model.memberTypeName">
+						<view style="display: flex; align-items: center; justify-content: space-between; margin-top: 30rpx;" @click="seleUser" v-if="model.memberType === 1">
+							<u--input v-model="model.memberNames" border="none" placeholder="璇烽�夋嫨" disabledColor="#ffffff"
+								disabled></u--input>
+							<u-icon name="arrow-right"></u-icon>
+						</view>
+						<view style="display: flex; align-items: center; justify-content: space-between; margin-top: 30rpx;" v-if="model.memberType === 2">
+							<u--input v-model="model.memberNames" border="none" placeholder="璇疯緭鍏ヤ緵搴斿晢鍚嶇О"></u--input>
+						</view>
+					</template>
 				</view>
 			</u-form-item>
-			<u-form-item label="鍙戠敓鍦扮偣" labelWidth="120" prop="name" borderBottom @click="show2 = true" required>
-				<u--input v-model="model.name" border="none" placeholder="璇烽�夋嫨鍙戠敓鍦扮偣" disabledColor="#ffffff"
+			<u-form-item label="鍙戠敓鍦扮偣" labelWidth="120" prop="localtionName" borderBottom @click="$refs.pengTree._show()" required>
+				<u--input v-model="model.localtionName" border="none" placeholder="璇烽�夋嫨鍙戠敓鍦扮偣" disabledColor="#ffffff"
 					disabled></u--input>
 				<u-icon slot="right" name="arrow-right"></u-icon>
 			</u-form-item>
-			<u-form-item label="鍏蜂綋浣嶇疆" labelWidth="120" prop="name" borderBottom>
-				<u--input v-model="model.name" border="none" placeholder="濡傞�夋嫨鍏跺畠鍖哄煙璇峰姟蹇呭~鍐欏叿浣撲綅缃�"></u--input>
+			<u-form-item label="鍏蜂綋浣嶇疆" labelWidth="120" prop="remark" borderBottom>
+				<u--input v-model="model.remark" border="none" placeholder="濡傞�夋嫨鍏跺畠鍖哄煙璇峰姟蹇呭~鍐欏叿浣撲綅缃�"></u--input>
 			</u-form-item>
-			<u-form-item label="鏄惁澶栭儴灏卞尰" labelWidth="120" prop="value" borderBottom required>
-				<u-radio-group v-model="model.value" placement="row">
-					<u-radio label="鏄�" :name="0"></u-radio>
-					<u-radio label="鍚�" :name="1"></u-radio>
+			<u-form-item label="鏄惁澶栭儴灏卞尰" labelWidth="120" prop="outJiuyi" borderBottom required>
+				<u-radio-group v-model="model.outJiuyi" placement="row" @change="model.isYiwushi = ''; model.isHurted = ''">
+					<u-radio label="鍚�" name="0"></u-radio>
+					<u-radio label="鏄�" name="1"></u-radio>
 				</u-radio-group>
 			</u-form-item>
-			<u-form-item label="鏄惁鍖诲姟瀹�" labelWidth="120" prop="name" borderBottom required>
-				<u-radio-group v-model="model.value" placement="row">
-					<u-radio label="鏄�" :name="0"></u-radio>
-					<u-radio label="鍚�" :name="1"></u-radio>
+			<u-form-item label="鏄惁鍖诲姟瀹�" labelWidth="120" prop="isYiwushi" borderBottom required v-if="model.outJiuyi === '0'">
+				<u-radio-group v-model="model.isYiwushi" placement="row" @change="model.isHurted = ''">
+					<u-radio label="鍚�" name="0"></u-radio>
+					<u-radio label="鏄�" name="1"></u-radio>
 				</u-radio-group>
 			</u-form-item>
-			<u-form-item label="鏄惁鍙椾激" labelWidth="120" prop="name" borderBottom required>
-				<u-radio-group v-model="model.value" placement="row">
-					<u-radio label="鏄�" :name="0"></u-radio>
-					<u-radio label="鍚�" :name="1"></u-radio>
+			<u-form-item label="鏄惁鍙椾激" labelWidth="120" prop="isHurted" borderBottom required v-if="model.isYiwushi === '0'">
+				<u-radio-group v-model="model.isHurted" placement="row">
+					<u-radio label="鍚�" name="0"></u-radio>
+					<u-radio label="鏄�" name="1"></u-radio>
 				</u-radio-group>
 			</u-form-item>
-			<u-form-item label="浼ゅ绫诲瀷" labelWidth="120" prop="name" borderBottom required>
-				<u--input v-model="model.name" border="none" placeholder="璇烽�夋嫨浼ゅ绫诲瀷" disabledColor="#ffffff"
+			<u-form-item label="浼ゅ绫诲瀷" labelWidth="120" prop="typeName" borderBottom @click="$refs.pengTree1._show()" required>
+				<u--input v-model="model.typeName" border="none" placeholder="璇烽�夋嫨浼ゅ绫诲瀷" disabledColor="#ffffff"
 					disabled></u--input>
 				<u-icon slot="right" name="arrow-right"></u-icon>
 			</u-form-item>
-			<u-form-item label="鏄惁鍜屽伐浣滅浉鍏�" labelWidth="120" prop="name" borderBottom required>
-				<u-radio-group v-model="model.value" placement="row">
-					<u-radio label="鏄�" :name="0"></u-radio>
-					<u-radio label="鍚�" :name="1"></u-radio>
+			<u-form-item label="鏄惁鍜屽伐浣滅浉鍏�" labelWidth="120" prop="workRelated" borderBottom required>
+				<u-radio-group v-model="model.workRelated" placement="row">
+					<u-radio label="鍚�" name="0"></u-radio>
+					<u-radio label="鏄�" name="1"></u-radio>
 				</u-radio-group>
 			</u-form-item>
-			<u-form-item label="浜嬩欢璇存槑" labelWidth="120" prop="name" labelPosition="top" borderBottom required>
-				<u--textarea v-model="model.name" placeholder="璇疯緭鍏ヤ簨浠惰鏄�" style="margin-top: 15rpx;" maxlength="200" count></u--textarea>
+			<u-form-item label="浜嬩欢璇存槑" labelWidth="120" prop="eventInfo" labelPosition="top" borderBottom required>
+				<u--textarea v-model="model.eventInfo" placeholder="璇疯緭鍏ヤ簨浠惰鏄�" style="margin-top: 15rpx;" maxlength="200" count></u--textarea>
 			</u-form-item>
-			<u-form-item label="涓婁紶鍥剧墖" labelWidth="120" prop="fileList" labelPosition="top" borderBottom>
-				<u-upload :fileList="model.fileList" @afterRead="afterRead" @delete="deletePic" name="1" multiple
-					:maxCount="10" style="margin-top: 15rpx;"></u-upload>
+			<u-form-item label="涓婁紶鍥剧墖" labelWidth="120" prop="multifileList" labelPosition="top" borderBottom>
+				<UploadImage 
+					:fileList="model.multifileList"
+					folder="WORKORDER_FILE_PATH"
+					@dele="deletePic"
+					@getFileList="afterRead"
+					style="margin-top: 15rpx;"
+				/>
 			</u-form-item>
 		</u--form>
 		<u-button type="primary" text="鎻愪氦" @click="submit" style="margin-top: 60rpx;"></u-button>
-		<!-- 閮ㄩ棬 -->
-		<u-picker :show="show" :columns="columns" @confirm="confirm" @cancel="show = false"
-			@change="changeHandler"></u-picker>
 		<!-- 鏃ユ湡 -->
-		<u-datetime-picker :show="show1" v-model="time" mode="datetime" @cancel="show1 = false"
+		<u-datetime-picker :show="show1" v-model="time" mode="datetime" @cancel="closeTime"
 			@confirm="selectTime"></u-datetime-picker>
-		<!-- 鍙戠敓鍦扮偣 -->
-		<u-picker :show="show2" :columns="address" @cancel="show2 = false" @confirm="selectAddr"></u-picker>
-		<!-- 娑夊強浜哄憳 -->
-		<u-picker :show="show3" :columns="userList" @cancel="show3 = false" @confirm="selectUser"></u-picker>
+		<!-- 浜哄憳绫诲瀷 -->
+		<u-picker
+			:show="show3"
+			:columns="userList"
+			@cancel="closeRY"
+			@confirm="selectUser"
+			@change="changeUser" />
 		<!-- 鎻愪氦鎴愬姛 -->
 		<u-modal :show="show4" showCancelButton confirmText="鏌ョ湅璇︽儏" cancelText="缁х画涓婃姤" @cancel="next" @confirm="toDesc">
 			<view class="slot-content">
 				<u-icon name="checkmark-circle-fill" color="#3875C5" size="70"></u-icon>
 				<text>鎻愪氦鎴愬姛</text>
-				<text>鎰熻阿鎮ㄧ殑鍙嶉</text>
+				<text>宸叉敹鍒版偍鐨勪笂鎶ワ紝绋嶅悗浼氭湁鐩稿叧鍚屼簨鍜屾偍鑱旂郴</text>
 			</view>
 		</u-modal>
+		<!-- 鍙戠敓鍦扮偣 -->
+		<peng-tree
+			ref="pengTree"
+			:range="address"
+			idKey="id"
+			:selectParent="false"
+			nameKey="name"
+			:multiple="false"
+			title="閫夋嫨鍦扮偣"
+			@confirm="selectAddress"
+			@cancel="$refs.pengTree._hide()">
+		</peng-tree>
+		<!-- 浼ゅ绫诲瀷 -->
+		<peng-tree
+			ref="pengTree1"
+			:range="typeList"
+			idKey="id"
+			:selectParent="false"
+			nameKey="name"
+			:multiple="false"
+			title="閫夋嫨浼ゅ绫诲瀷"
+			@confirm="selectType"
+			@cancel="$refs.pengTree1._hide()">
+		</peng-tree>
 	</view>
 </template>
 
 <script>
+	import { mapState } from 'vuex'
+	import UploadImage from '@/components/uploadImage/uploadImage.vue'
+	import pengTree from '@/uni_modules/peng-tree/peng-tree/peng-tree.vue'
 	export default {
+		components: { pengTree, UploadImage },
+		computed: {
+			...mapState(['userInfo'])
+		},
 		data() {
 			return {
 				model: {
 					name: '',
-					value: 0,
-					fileList: []
+					submitDate: uni.$u.timeFormat(new Date().getTime(), 'yyyy-mm-dd hh:MM'),
+					companyName: '',
+					happenTime: '',
+					memberType: '',
+					memberTypeName: '',
+					memberNames: '',
+					memberQwids: '',
+					localtionId: '',
+					localtionName: '',
+					remark: '',
+					outJiuyi: '',
+					isYiwushi: '',
+					isHurted: '',
+					typeId: '',
+					typeName: '',
+					workRelated: '',
+					eventInfo: '',
+					multifileList: [],
+					fileList: [],
+					type: 0
 				},
 				rules: {
-					name: [{
+					happenTime: [{
 						type: 'string',
 						required: true,
-						message: '璇峰~鍐欏憳宸ュ鍚�',
+						message: '鍙戠敓鏃堕棿涓嶈兘涓虹┖',
 						trigger: ['blur', 'change']
-					}]
+					}],
+					memberTypeNam: [{
+						type: 'string',
+						required: true,
+						message: '娑夊強浜哄憳涓嶈兘涓虹┖',
+						trigger: ['blur', 'change']
+					}],
+					memberTypeName: [
+						{
+							validator: (rule, value, callback) => {
+								if (value === '鏈汉') {
+									callback()
+								} else if ((value && value !== '鏈汉') && this.model.memberNames) {
+									callback()
+								} else {
+									callback(new Error('涓嶈兘涓虹┖'))
+								}
+							},
+							trigger: ['change','blur'],
+						}
+					],
+					localtionName: [{
+						type: 'string',
+						required: true,
+						message: '鍙戠敓鍦扮偣涓嶈兘涓虹┖',
+						trigger: ['blur', 'change']
+					}],
+					outJiuyi: [{
+						type: 'string',
+						required: true,
+						message: '鏄惁澶栭儴灏卞尰涓嶈兘涓虹┖',
+						trigger: ['blur', 'change']
+					}],
+					isYiwushi: [{
+						type: 'string',
+						required: true,
+						message: '鏄惁鍖诲姟瀹や笉鑳戒负绌�',
+						trigger: ['blur', 'change']
+					}],
+					isHurted: [{
+						type: 'string',
+						required: true,
+						message: '鏄惁鍙椾激涓嶈兘涓虹┖',
+						trigger: ['blur', 'change']
+					}],
+					typeName: [{
+						type: 'string',
+						required: true,
+						message: '浼ゅ绫诲瀷涓嶈兘涓虹┖',
+						trigger: ['blur', 'change']
+					}],
+					workRelated: [{
+						type: 'string',
+						required: true,
+						message: '鏄惁鍜屽伐浣滅浉鍏充笉鑳戒负绌�',
+						trigger: ['blur', 'change']
+					}],
+					eventInfo: [{
+						type: 'string',
+						required: true,
+						message: '浜嬩欢璇存槑涓嶈兘涓虹┖',
+						trigger: ['blur', 'change']
+					}],
 				},
-				show: false,
 				show1: false,
-				show2: false,
 				show3: false,
-				show4: true,
-				columns: [
-					['涓浗', '缇庡浗'],
-					['娣卞湷', '鍘﹂棬', '涓婃捣', '鎷夎惃']
-				],
-				columnData: [
-					['娣卞湷', '鍘﹂棬', '涓婃捣', '鎷夎惃'],
-					['寰楀窞', '鍗庣洓椤�', '绾界害', '闃挎媺鏂姞']
-				],
-				address: [
-					['涓浗', '缇庡浗', '鏃ユ湰']
-				],
+				show4: false,
+				address: [],
+				typeList: [],
 				userList: [
-					['渚涘簲鍟�', '鍚屼簨', '鏈汉']
+					['鏈汉', '鍚屼簨', '渚涘簲鍟�']
 				],
-				time: ''
+				time: new Date().getTime(),
+				id: null
 			};
 		},
+		onLoad() {
+			this.model.companyName = this.userInfo.companyName
+			this.model.name = this.userInfo.name
+			this.getLocation()
+			this.getType()
+		},
 		methods: {
+			selectImage() {
+				var that = this
+				that.$ww.chooseImage({
+					count: 1,
+					sizeType: ['original', 'compressed'],
+					sourceType: ['album', 'camera'],
+					success(res) {
+						let serverIds = that.getUploadImage(res.localIds)
+						console.log(serverIds)
+					},
+					fail(err) {
+						console.log(err)
+					}
+				})
+			},
+			// 鑾峰彇鏈嶅姟鍣ㄥ浘鐗噄d
+			getUploadImage(localIds) {
+				var that = this
+				let serverIds = []
+				localIds.forEach(localId => {
+					that.$ww.uploadImage({
+						localId,
+						success(res) {
+							console.log(res.serverId)
+							serverIds.push(res.serverId)
+						},
+						fail(err) {
+							console.log(err)
+						}
+					})
+				})
+				return serverIds;
+			},
+			closeTime() {
+				this.show1 = false
+				this.canScroll()
+			},
+			openTime() {
+				this.show1 = true
+				this.stopScroll()
+			},
+			closeRY() {
+				this.show3 = false
+				this.canScroll()
+			},
+			openSJ() {
+				this.show3 = true
+				this.stopScroll()
+			},
+			seleUser() {
+				var that = this
+				that.$ww.selectEnterpriseContact({
+					fromDepartmentId: -1,
+					mode: 'multi',
+					type: ['user'],
+				}).then(res =>{
+					console.log(res)
+					if (res.errCode === 0) {
+						this.model.memberNames = res.result.userList.map(item => item.name).join(',')
+						this.model.memberQwids = res.result.userList.map(item => item.id).join(',')
+					}
+				})
+			},
+			// 閫夋嫨浼ゅ绫诲瀷
+			selectType(e) {
+				this.model.typeId = e[0].id
+				this.model.typeName = e[0].name
+				this.$refs.pengTree._hide()
+			},
+			// 閫夋嫨鍦扮偣
+			selectAddress(e) {
+				this.model.localtionId = e[0].id
+				this.model.localtionName = e[0].name
+				this.$refs.pengTree._hide()
+			},
+			changeUser(e) {
+				console.log(e)
+			},
+			// 鑾峰彇鍙戠敓鍦扮偣鏍�
+			async getLocation() {
+				let res = await this.$u.api.categoryTree({ categoryType: 5 })
+				if (res.code === 200) {
+					this.address = res.data
+				}
+			},
+			// 鑾峰彇浼ゅ绫诲瀷
+			async getType() {
+				let res = await this.$u.api.categoryTree({ categoryType: 0 })
+				if (res.code === 200) {
+					this.typeList = res.data
+				}
+			},
 			next() {
+				this.canScroll()
 				this.show4 = false
+			},
+			next1() {
+				this.model.name = ''
+				this.model.submitDate = uni.$u.timeFormat(new Date().getTime(), 'yyyy-mm-dd hh:MM')
+				this.model.companyName = ''
+				this.model.happenTime = ''
+				this.model.memberType = ''
+				this.model.memberTypeName = ''
+				this.model.memberNames = ''
+				this.model.memberQwids = ''
+				this.model.localtionId = ''
+				this.model.localtionName = ''
+				this.model.remark = ''
+				this.model.outJiuyi = ''
+				this.model.isYiwushi = ''
+				this.model.isHurted = ''
+				this.model.typeId = ''
+				this.model.typeName = ''
+				this.model.workRelated = ''
+				this.model.eventInfo = ''
+				this.model.multifileList = []
+				this.model.fileList = []
+				this.model.type = 0
 			},
 			toDesc() {
 				uni.navigateTo({
-					url: '/pages/details_she/details_she'
+					url: `/pages/details_she/details_she?id=${this.id}`
 				})
+				this.canScroll()
 				this.show4 = false
 			},
 			// 鍒犻櫎鍥剧墖
-			deletePic(event) {
-				this[`fileList${event.name}`].splice(event.index, 1);
+			deletePic(index) {
+				this.model.multifileList.splice(index, 1)
 			},
 			// 鏂板鍥剧墖
-			async afterRead(event) {
-				// 褰撹缃� multiple 涓� true 鏃�, file 涓烘暟缁勬牸寮忥紝鍚﹀垯涓哄璞℃牸寮�
-				let lists = [].concat(event.file);
-				let fileListLen = this[`fileList${event.name}`].length;
-				lists.map((item) => {
-					this[`fileList${event.name}`].push({
-						...item,
-						status: "uploading",
-						message: "涓婁紶涓�",
-					});
-				});
-				for (let i = 0; i < lists.length; i++) {
-					const result = await this.uploadFilePromise(lists[i].url);
-					let item = this[`fileList${event.name}`][fileListLen];
-					this[`fileList${event.name}`].splice(
-						fileListLen,
-						1,
-						Object.assign(item, {
-							status: "success",
-							message: "",
-							url: result,
-						})
-					);
-					fileListLen++;
-				}
+			async afterRead(arr) {
+				this.model.multifileList = [...this.model.multifileList, ...arr]
 			},
-			uploadFilePromise(url) {
-				return new Promise((resolve, reject) => {
-					let a = uni.uploadFile({
-						url: "http://192.168.2.21:7001/upload", // 浠呬负绀轰緥锛岄潪鐪熷疄鐨勬帴鍙e湴鍧�
-						filePath: url,
-						name: "file",
-						formData: {
-							user: "test",
-						},
-						success: (res) => {
-							setTimeout(() => {
-								resolve(res.data.data);
-							}, 1000);
-						},
-					});
-				});
-			},
+			// 鎻愪氦
 			submit() {
-				this.$refs.uForm.validate().then(res => {
-					uni.$u.toast('鏍¢獙閫氳繃')
+				var that = this
+				that.$refs.uForm.validate().then(async () => {
+					let form = JSON.parse(JSON.stringify(that.model))
+					form.submitDate = form.submitDate + ':00'
+					form.happenTime = form.happenTime + ':00'
+					let res = await that.$u.api.workOrderCreate(form)
+					if (res.code === 200) {
+						that.next1()
+						that.id = res.data
+						this.stopScroll()
+						that.show4 = true
+					}
 				}).catch(errors => {
-					uni.$u.toast('鏍¢獙澶辫触')
+					
 				})
 			},
-			changeHandler(e) {
-				const {
-					columnIndex,
-					value,
-					values, // values涓哄綋鍓嶅彉鍖栧垪鐨勬暟缁勫唴瀹�
-					index,
-					// 寰俊灏忕▼搴忔棤娉曞皢picker瀹炰緥浼犲嚭鏉ワ紝鍙兘閫氳繃ref鎿嶄綔
-					picker = this.$refs.uPicker
-				} = e
-				// 褰撶涓�鍒楀�煎彂鐢熷彉鍖栨椂锛屽彉鍖栫浜屽垪(鍚庝竴鍒�)瀵瑰簲鐨勯�夐」
-				if (columnIndex === 0) {
-					// picker涓洪�夋嫨鍣╰his瀹炰緥锛屽彉鍖栫浜屽垪瀵瑰簲鐨勯�夐」
-					picker.setColumnValues(1, this.columnData[index])
-				}
-			},
-			// 鍥炶皟鍙傛暟涓哄寘鍚玞olumnIndex銆乿alue銆乿alues
-			confirm(e) {
-				console.log('confirm', e)
-				this.show = false
-			},
 			selectTime(e) {
-				console.log('confirm', e)
+				this.model.happenTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM'),
+				this.canScroll()
 				this.show1 = false
 			},
-			selectAddr(e) {
-				console.log('confirm', e)
-				this.show2 = false
-			},
 			selectUser(e) {
-				console.log('confirm', e)
+				this.model.memberType = e.indexs[0]
+				this.model.memberTypeName = e.value[0]
+				this.model.memberNames = ''
+				this.model.memberQwids = ''
 				this.show3 = false
+				this.canScroll()
 			}
 		}
 	}

--
Gitblit v1.9.3