|
@ -22,11 +22,9 @@ |
|
|
<view class="cont" v-if="showInfo"> |
|
|
<view class="cont" v-if="showInfo"> |
|
|
<view class="info-card info-item"> |
|
|
<view class="info-card info-item"> |
|
|
<u-form-item label="房间" prop="room" borderBottom> |
|
|
<u-form-item label="房间" prop="room" borderBottom> |
|
|
<text style="text-align: right" |
|
|
<text style="text-align: right">{{ baseInfo.buildingName || "" }}{{ baseInfo.unitName || "" |
|
|
>{{ baseInfo.buildingName || "" }}{{ baseInfo.unitName || "" |
|
|
|
|
|
}}{{ baseInfo.houseName || "" |
|
|
}}{{ baseInfo.houseName || "" |
|
|
}}{{ baseInfo.roomTypeName || "" }}</text |
|
|
}}{{ baseInfo.roomTypeName || "" }}</text> |
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <u-input |
|
|
<!-- <u-input |
|
|
v-model="roomAllPath" |
|
|
v-model="roomAllPath" |
|
@ -36,12 +34,7 @@ |
|
|
:disabled="true" |
|
|
:disabled="true" |
|
|
/> --> |
|
|
/> --> |
|
|
</u-form-item> |
|
|
</u-form-item> |
|
|
<u-form-item |
|
|
<u-form-item label="姓名" prop="name" borderBottom labelStyle="{color:red;}"> |
|
|
label="姓名" |
|
|
|
|
|
prop="name" |
|
|
|
|
|
borderBottom |
|
|
|
|
|
labelStyle="{color:red;}" |
|
|
|
|
|
> |
|
|
|
|
|
<text style="text-align: right">{{ |
|
|
<text style="text-align: right">{{ |
|
|
baseInfo.graduateName || "" |
|
|
baseInfo.graduateName || "" |
|
|
}}</text> |
|
|
}}</text> |
|
@ -55,16 +48,10 @@ |
|
|
/> --> |
|
|
/> --> |
|
|
</u-form-item> |
|
|
</u-form-item> |
|
|
<!-- 性别 --> |
|
|
<!-- 性别 --> |
|
|
<u-form-item |
|
|
<u-form-item label="性别" prop="gender" borderBottom labelStyle="{color:red;}"> |
|
|
label="性别" |
|
|
|
|
|
prop="gender" |
|
|
|
|
|
borderBottom |
|
|
|
|
|
labelStyle="{color:red;}" |
|
|
|
|
|
> |
|
|
|
|
|
<text style="text-align: right">{{ |
|
|
<text style="text-align: right">{{ |
|
|
baseInfo.gender == 1 ? "男" : baseInfo.gender == 2 ? "女" : "" |
|
|
baseInfo.gender == 1 ? "男" : baseInfo.gender == 2 ? "女" : "" |
|
|
}}</text></u-form-item |
|
|
}}</text></u-form-item> |
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<u-form-item label="手机号" prop="phone" borderBottom> |
|
|
<u-form-item label="手机号" prop="phone" borderBottom> |
|
|
<text style="text-align: right">{{ |
|
|
<text style="text-align: right">{{ |
|
@ -111,84 +98,47 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="desc-card"> |
|
|
<view class="desc-card"> |
|
|
<view class="label-des">说明</view> |
|
|
<view class="label-des">说明</view> |
|
|
<u-textarea |
|
|
<u-textarea v-model="forceCheckoutDesc" ref="textarea" placeholder="请输入内容" maxlength="500" |
|
|
v-model="forceCheckoutDesc" |
|
|
height="150" border="none" |
|
|
ref="textarea" |
|
|
custom-style="background:#f7f7f7;border-radius:12rpx;padding:16rpx;"></u-textarea> |
|
|
placeholder="请输入内容" |
|
|
|
|
|
maxlength="500" |
|
|
|
|
|
height="150" |
|
|
|
|
|
border="none" |
|
|
|
|
|
custom-style="background:#f7f7f7;border-radius:12rpx;padding:16rpx;" |
|
|
|
|
|
></u-textarea> |
|
|
|
|
|
<view class="label-des">上传图片/视频</view> |
|
|
<view class="label-des">上传图片/视频</view> |
|
|
<u-upload |
|
|
<u-upload :max-count="10" :multiple="true" :preview-full-image="true" :deletable="true" |
|
|
:max-count="10" |
|
|
:show-upload-list="true" :fileList="fileList" :auto-upload="false" accept="all" |
|
|
:multiple="true" |
|
|
:maxSize="10 * 1024 * 1024" @oversize="oversize" @delete="onDelete" :disabled="true"> |
|
|
:preview-full-image="true" |
|
|
|
|
|
:deletable="true" |
|
|
|
|
|
:show-upload-list="true" |
|
|
|
|
|
:fileList="fileList" |
|
|
|
|
|
:auto-upload="false" |
|
|
|
|
|
accept="all" |
|
|
|
|
|
:maxSize="10 * 1024 * 1024" |
|
|
|
|
|
@oversize="oversize" |
|
|
|
|
|
@delete="onDelete" |
|
|
|
|
|
:disabled="true" |
|
|
|
|
|
> |
|
|
|
|
|
<view class="custom-upload-btn" @click.stop="chooseMedia"> |
|
|
<view class="custom-upload-btn" @click.stop="chooseMedia"> |
|
|
<view class="icon-box"> |
|
|
<view class="icon-box"> |
|
|
<image |
|
|
<image class="camera-icon" src="/static/img/camera-icon.png" mode="aspectFill"> |
|
|
class="camera-icon" |
|
|
</image> |
|
|
src="/static/img/camera-icon.png" |
|
|
|
|
|
mode="aspectFill" |
|
|
|
|
|
></image> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="upload-tips">点击上传</view> |
|
|
<view class="upload-tips">点击上传</view> |
|
|
</view> |
|
|
</view> |
|
|
</u-upload> |
|
|
</u-upload> |
|
|
</view> |
|
|
</view> |
|
|
<view class="submit-box"> |
|
|
<view class="submit-box"> |
|
|
<u-button |
|
|
<u-button type="primary" shape="circle" @click="submit" :custom-style="btnStyle">提交</u-button> |
|
|
type="primary" |
|
|
|
|
|
shape="circle" |
|
|
|
|
|
@click="submit" |
|
|
|
|
|
:custom-style="btnStyle" |
|
|
|
|
|
>提交</u-button |
|
|
|
|
|
> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</u-form> |
|
|
</u-form> |
|
|
<u-datetime-picker |
|
|
<u-datetime-picker :show="showDate" v-model="form.pickerValue" mode="date" @confirm="onDateConfirm" |
|
|
:show="showDate" |
|
|
@cancel="showDate = false" /> |
|
|
v-model="form.pickerValue" |
|
|
<u-picker :show="showProblemTypePicker" :columns="[problemTypeOptions]" @confirm="onProblemTypeConfirm" |
|
|
mode="date" |
|
|
@cancel="showProblemTypePicker = false" keyName="label" /> |
|
|
@confirm="onDateConfirm" |
|
|
|
|
|
@cancel="showDate = false" |
|
|
|
|
|
/> |
|
|
|
|
|
<u-picker |
|
|
|
|
|
:show="showProblemTypePicker" |
|
|
|
|
|
:columns="[problemTypeOptions]" |
|
|
|
|
|
@confirm="onProblemTypeConfirm" |
|
|
|
|
|
@cancel="showProblemTypePicker = false" |
|
|
|
|
|
keyName="label" |
|
|
|
|
|
/> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
uploadImage, |
|
|
uploadImage, |
|
|
getResidentInfo, |
|
|
getResidentInfo, |
|
|
forceRelease, |
|
|
forceRelease, |
|
|
getRecCheckOutInfo, |
|
|
getRecCheckOutInfo, |
|
|
updateForceEvictionRecord, |
|
|
updateForceEvictionRecord, |
|
|
} from "../../../pages/api"; |
|
|
} from "../../../pages/api"; |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
btnStyle: |
|
|
btnStyle: "background:linear-gradient(90deg,#0DC6C6 0%,#13C2C2 100%);font-size:36rpx;border-radius:48rpx;width:60vw;height:80rpx; margin-bottom:60rpx;border:none", |
|
|
"background:linear-gradient(90deg,#0DC6C6 0%,#13C2C2 100%);font-size:36rpx;border-radius:48rpx;width:60vw;height:80rpx; margin-bottom:60rpx;border:none", |
|
|
|
|
|
form: { |
|
|
form: { |
|
|
room: "", |
|
|
room: "", |
|
|
name: "", |
|
|
name: "", |
|
@ -210,21 +160,23 @@ export default { |
|
|
showDate: false, |
|
|
showDate: false, |
|
|
minDate: "2000-01-01", |
|
|
minDate: "2000-01-01", |
|
|
maxDate: "2100-12-31", |
|
|
maxDate: "2100-12-31", |
|
|
descStyle: |
|
|
descStyle: "background:#f7f8fa;border-radius:12rpx;padding:24rpx;font-size:28rpx;color:#222;min-height:250rpx;box-sizing:border-box;", |
|
|
"background:#f7f8fa;border-radius:12rpx;padding:24rpx;font-size:28rpx;color:#222;min-height:250rpx;box-sizing:border-box;", |
|
|
problemTypeOptions: [{ |
|
|
problemTypeOptions: [ |
|
|
|
|
|
{ |
|
|
|
|
|
label: "违法居住条款,故意破坏房间设施", |
|
|
label: "违法居住条款,故意破坏房间设施", |
|
|
value: 1, |
|
|
value: 1, |
|
|
}, |
|
|
}, ], |
|
|
], |
|
|
|
|
|
showProblemTypePicker: false, // 控制选择器显示 |
|
|
showProblemTypePicker: false, // 控制选择器显示 |
|
|
showInfo: true, |
|
|
showInfo: true, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
roomAllPath() { |
|
|
roomAllPath() { |
|
|
const { apartmentName, buildingName, unitName, roomTypeName } = |
|
|
const { |
|
|
|
|
|
apartmentName, |
|
|
|
|
|
buildingName, |
|
|
|
|
|
unitName, |
|
|
|
|
|
roomTypeName |
|
|
|
|
|
} = |
|
|
this.baseInfo; |
|
|
this.baseInfo; |
|
|
return `${apartmentName || ""}${buildingName || ""}${unitName || ""}${ |
|
|
return `${apartmentName || ""}${buildingName || ""}${unitName || ""}${ |
|
|
roomTypeName || "" |
|
|
roomTypeName || "" |
|
@ -295,7 +247,10 @@ export default { |
|
|
this.$u.toast("请选择10MB以内大小的图片/视频!"); |
|
|
this.$u.toast("请选择10MB以内大小的图片/视频!"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
uni.showLoading({ title: "上传中...", mask: true }); |
|
|
uni.showLoading({ |
|
|
|
|
|
title: "上传中...", |
|
|
|
|
|
mask: true |
|
|
|
|
|
}); |
|
|
try { |
|
|
try { |
|
|
const files = res.tempFiles; |
|
|
const files = res.tempFiles; |
|
|
for (let i = 0; i < files.length; i++) { |
|
|
for (let i = 0; i < files.length; i++) { |
|
@ -303,9 +258,9 @@ export default { |
|
|
const filePath = file.tempFilePath; |
|
|
const filePath = file.tempFilePath; |
|
|
const type = |
|
|
const type = |
|
|
file.fileType || |
|
|
file.fileType || |
|
|
(filePath.match(/\.(mp4|mov|avi|wmv|flv|mkv)$/i) |
|
|
(filePath.match(/\.(mp4|mov|avi|wmv|flv|mkv)$/i) ? |
|
|
? "video" |
|
|
"video" : |
|
|
: "image"); |
|
|
"image"); |
|
|
const uploadRes = await uploadImage(filePath); |
|
|
const uploadRes = await uploadImage(filePath); |
|
|
this.fileList.push({ |
|
|
this.fileList.push({ |
|
|
url: uploadRes.data?.url || uploadRes.url || uploadRes.path, |
|
|
url: uploadRes.data?.url || uploadRes.url || uploadRes.path, |
|
@ -316,7 +271,10 @@ export default { |
|
|
} |
|
|
} |
|
|
this.img1 = this.fileList.map((v) => v.url); |
|
|
this.img1 = this.fileList.map((v) => v.url); |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
uni.showToast({ title: "上传失败", icon: "none" }); |
|
|
uni.showToast({ |
|
|
|
|
|
title: "上传失败", |
|
|
|
|
|
icon: "none" |
|
|
|
|
|
}); |
|
|
} finally { |
|
|
} finally { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
} |
|
|
} |
|
@ -385,8 +343,8 @@ export default { |
|
|
icon: "success", |
|
|
icon: "success", |
|
|
}); |
|
|
}); |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
uni.switchTab({ |
|
|
uni.navigateTo({ |
|
|
url: "/pages/tabBar/work/index", |
|
|
url: "/pagesA/force/list/list", |
|
|
}); |
|
|
}); |
|
|
}, 1500); |
|
|
}, 1500); |
|
|
} else { |
|
|
} else { |
|
@ -404,15 +362,25 @@ export default { |
|
|
title: res.msg, |
|
|
title: res.msg, |
|
|
icon: "success", |
|
|
icon: "success", |
|
|
}); |
|
|
}); |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: "/pagesA/force/list/list", |
|
|
|
|
|
}); |
|
|
|
|
|
}, 1500); |
|
|
|
|
|
} else { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: res.msg, |
|
|
|
|
|
icon: "error", |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped> |
|
|
<style scoped> |
|
|
.top-bg { |
|
|
.top-bg { |
|
|
position: fixed; |
|
|
position: fixed; |
|
|
top: 0; |
|
|
top: 0; |
|
|
left: 0; |
|
|
left: 0; |
|
@ -420,70 +388,71 @@ export default { |
|
|
height: 260rpx; |
|
|
height: 260rpx; |
|
|
background: linear-gradient(120deg, #c6e6f7 0%, #e3e5fc 100%); |
|
|
background: linear-gradient(120deg, #c6e6f7 0%, #e3e5fc 100%); |
|
|
z-index: 0; |
|
|
z-index: 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.container { |
|
|
.container { |
|
|
position: relative; |
|
|
position: relative; |
|
|
z-index: 1; |
|
|
z-index: 1; |
|
|
padding: 32rpx 24rpx 0 24rpx; |
|
|
padding: 32rpx 24rpx 0 24rpx; |
|
|
background: transparent; |
|
|
background: transparent; |
|
|
min-height: 80vh; |
|
|
min-height: 80vh; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.info-card { |
|
|
.info-card { |
|
|
background: #fff; |
|
|
background: #fff; |
|
|
border-radius: 24rpx; |
|
|
border-radius: 24rpx; |
|
|
padding: 0rpx 24rpx 0 0rpx; |
|
|
padding: 0rpx 24rpx 0 0rpx; |
|
|
margin-bottom: 24rpx; |
|
|
margin-bottom: 24rpx; |
|
|
box-shadow: 0 4rpx 16rpx 0 #e6f6fd; |
|
|
box-shadow: 0 4rpx 16rpx 0 #e6f6fd; |
|
|
} |
|
|
} |
|
|
.info-item { |
|
|
|
|
|
|
|
|
.info-item { |
|
|
padding: 0 34rpx; |
|
|
padding: 0 34rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
::v-deep .u-form-item__body__left { |
|
|
::v-deep .u-form-item__body__left { |
|
|
color: #6a7fa3 !important; |
|
|
color: #6a7fa3 !important; |
|
|
font-size: 28rpx !important; |
|
|
font-size: 28rpx !important; |
|
|
font-weight: 500; |
|
|
font-weight: 500; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.u-form-item__body__left .u-form-item__body__left__required { |
|
|
.u-form-item__body__left .u-form-item__body__left__required { |
|
|
color: #ff5a5a !important; |
|
|
color: #ff5a5a !important; |
|
|
margin-right: 4rpx; |
|
|
margin-right: 4rpx; |
|
|
font-size: 28rpx; |
|
|
font-size: 28rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.u-form-item__body__right { |
|
|
.u-form-item__body__right { |
|
|
text-align: right; |
|
|
text-align: right; |
|
|
color: #222; |
|
|
color: #222; |
|
|
font-size: 28rpx; |
|
|
font-size: 28rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.u-form-item { |
|
|
.u-form-item { |
|
|
border-bottom: 1rpx solid #f2f4f8 !important; |
|
|
border-bottom: 1rpx solid #f2f4f8 !important; |
|
|
margin-bottom: 0 !important; |
|
|
margin-bottom: 0 !important; |
|
|
padding-bottom: 0 !important; |
|
|
padding-bottom: 0 !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.u-form-item:last-child { |
|
|
.u-form-item:last-child { |
|
|
border-bottom: none !important; |
|
|
border-bottom: none !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.desc-card { |
|
|
.desc-card { |
|
|
background: #fff; |
|
|
background: #fff; |
|
|
border-radius: 20rpx; |
|
|
border-radius: 20rpx; |
|
|
padding: 0rpx 20rpx 24rpx 20rpx; |
|
|
padding: 0rpx 20rpx 24rpx 20rpx; |
|
|
margin-bottom: 24rpx; |
|
|
margin-bottom: 24rpx; |
|
|
box-shadow: 0 2rpx 8rpx #f2f4f8; |
|
|
box-shadow: 0 2rpx 8rpx #f2f4f8; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.label-des { |
|
|
.label-des { |
|
|
color: #68758b; |
|
|
color: #68758b; |
|
|
font-size: 30rpx; |
|
|
font-size: 30rpx; |
|
|
margin: 20rpx 0; |
|
|
margin: 20rpx 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.custom-desc-textarea { |
|
|
.custom-desc-textarea { |
|
|
background: #f7f8fa !important; |
|
|
background: #f7f8fa !important; |
|
|
border-radius: 12rpx !important; |
|
|
border-radius: 12rpx !important; |
|
|
padding: 24rpx !important; |
|
|
padding: 24rpx !important; |
|
@ -491,9 +460,9 @@ export default { |
|
|
color: #222 !important; |
|
|
color: #222 !important; |
|
|
min-height: 500rpx !important; |
|
|
min-height: 500rpx !important; |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.custom-upload-btn { |
|
|
.custom-upload-btn { |
|
|
width: 160rpx; |
|
|
width: 160rpx; |
|
|
height: 160rpx; |
|
|
height: 160rpx; |
|
|
background: #fafafa; |
|
|
background: #fafafa; |
|
@ -504,9 +473,9 @@ export default { |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
margin: 20rpx 16rpx 0 0; |
|
|
margin: 20rpx 16rpx 0 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.icon-box { |
|
|
.icon-box { |
|
|
width: 60rpx; |
|
|
width: 60rpx; |
|
|
height: 60rpx; |
|
|
height: 60rpx; |
|
|
background: #ceeced; |
|
|
background: #ceeced; |
|
@ -514,21 +483,21 @@ export default { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.camera-icon { |
|
|
.camera-icon { |
|
|
width: 36rpx; |
|
|
width: 36rpx; |
|
|
height: 36rpx; |
|
|
height: 36rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.upload-tips { |
|
|
.upload-tips { |
|
|
color: #bbb; |
|
|
color: #bbb; |
|
|
font-size: 24rpx; |
|
|
font-size: 24rpx; |
|
|
margin-top: 8rpx; |
|
|
margin-top: 8rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* u-upload自定义按钮样式(如需更改) */ |
|
|
/* u-upload自定义按钮样式(如需更改) */ |
|
|
.u-upload__wrap__button { |
|
|
.u-upload__wrap__button { |
|
|
background: #f7f8fa !important; |
|
|
background: #f7f8fa !important; |
|
|
border-radius: 16rpx !important; |
|
|
border-radius: 16rpx !important; |
|
|
width: 120rpx !important; |
|
|
width: 120rpx !important; |
|
@ -537,24 +506,21 @@ export default { |
|
|
flex-direction: column !important; |
|
|
flex-direction: column !important; |
|
|
align-items: center !important; |
|
|
align-items: center !important; |
|
|
justify-content: center !important; |
|
|
justify-content: center !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.u-upload__wrap__button .u-icon { |
|
|
.u-upload__wrap__button .u-icon { |
|
|
color: #2fd7e6 !important; |
|
|
color: #2fd7e6 !important; |
|
|
font-size: 48rpx !important; |
|
|
font-size: 48rpx !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.u-upload__wrap__button .u-upload__wrap__button__text { |
|
|
.u-upload__wrap__button .u-upload__wrap__button__text { |
|
|
color: #b0b0b0 !important; |
|
|
color: #b0b0b0 !important; |
|
|
font-size: 24rpx !important; |
|
|
font-size: 24rpx !important; |
|
|
margin-top: 8rpx; |
|
|
margin-top: 8rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
::v-deep |
|
|
::v-deep .u-form-item .u-form-item__body__left .u-form-item__body__left__content__label { |
|
|
.u-form-item |
|
|
|
|
|
.u-form-item__body__left |
|
|
|
|
|
.u-form-item__body__left__content__label { |
|
|
|
|
|
color: #68758b !important; |
|
|
color: #68758b !important; |
|
|
font-size: 28rpx; |
|
|
font-size: 28rpx; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |