7 files modified
3 files added
| | |
| | | import http from '@/http/api.js' |
| | | |
| | | //获取报事数量统计 |
| | | export const getReportingCount = (data) => { |
| | | return http.request({ |
| | | url: '/blade-task/task/countNumber', |
| | | method: 'POST', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | //添加旅馆安全报事 |
| | | export const saveHotelReporting = (data) => { |
| | | return http.request({ |
| | |
| | | }) |
| | | } |
| | | |
| | | //获取旅馆安报事列表 |
| | | export const getHotelReportingList = (params) => { |
| | | return http.request({ |
| | | url: '/blade-taskHotelReporting/taskHotelReporting/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //获取取保候审报事列表 |
| | | export const geteBailReportingList = (params) => { |
| | | return http.request({ |
| | | url: '/blade-taskBailReportingEvent/taskBailReportingEvent/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //获取打金店报事列表 |
| | | export const getLabelReportingList = (params) => { |
| | | return http.request({ |
| | | url: '/blade-taskLabelReportingEvent/taskLabelReportingEvent/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //添加取保候审报事 |
| | | export const saveBailReporting = (data) => { |
| | | return http.request({ |
| | |
| | | { |
| | | "name": "荆楚水库", |
| | | "appid": "__UNI__EB167C0", |
| | | "description": "", |
| | | "versionName": "1.0.10", |
| | | "versionCode": 104, |
| | | "transformPx": false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus": { |
| | | "compatible": { |
| | | "ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 |
| | | }, |
| | | "safearea": { |
| | | "bottom": { |
| | | "offset": "none" |
| | | } |
| | | }, |
| | | "usingComponents": true, |
| | | "nvueCompiler": "uni-app", |
| | | "compilerVersion": 3, |
| | | "splashscreen": { |
| | | "alwaysShowBeforeRender": false, |
| | | "waiting": false, |
| | | "autoclose": false, |
| | | "delay": 0 |
| | | }, |
| | | /* 模块配置 */ |
| | | "modules": { |
| | | "VideoPlayer": {}, |
| | | "Camera": {}, |
| | | "Geolocation": {}, |
| | | "Push": {}, |
| | | "Maps": {} |
| | | }, |
| | | /* 应用发布信息 */ |
| | | "distribute": { |
| | | /* android打包配置 */ |
| | | "android": { |
| | | "permissions": [ |
| | | "<uses-feature android:name=\"android.hardware.camera\"/>", |
| | | "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CAMERA\"/>", |
| | | "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", |
| | | "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", |
| | | "<uses-permission android:name=\"android.permission.INTERNET\"/>", |
| | | "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", |
| | | "<uses-permission android:name=\"android.permission.READ_LOGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>", |
| | | "<uses-permission android:name=\"android.permission.REQUEST_INSTALL_PACKAGES\"/>", |
| | | "<uses-permission android:name=\"android.permission.VIBRATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" |
| | | ], |
| | | "abiFilters": ["armeabi-v7a", "arm64-v8a"] |
| | | }, |
| | | /* ios打包配置 */ |
| | | "ios": { |
| | | "dSYMs": false, |
| | | "UIBackgroundModes": "", |
| | | "idfa": false |
| | | }, |
| | | /* SDK配置 */ |
| | | "sdkConfigs": { |
| | | "ad": {}, |
| | | "maps": { |
| | | "amap": { |
| | | "appkey_ios": "4bcdf5434597cc9160c9e0168c4a7bc7", |
| | | "appkey_android": "c21be9bc7343573c28112c4fe272cb41" |
| | | } |
| | | }, |
| | | "geolocation": { |
| | | "amap": { |
| | | "__platform__": ["ios", "android"], |
| | | "appkey_ios": "4bcdf5434597cc9160c9e0168c4a7bc7", |
| | | "appkey_android": "c21be9bc7343573c28112c4fe272cb41" |
| | | }, |
| | | "system": { |
| | | "__platform__": ["ios", "android"] |
| | | } |
| | | }, |
| | | "push": { |
| | | "unipush": { |
| | | "offline": true |
| | | } |
| | | } |
| | | }, |
| | | "icons": { |
| | | "android": { |
| | | "hdpi": "D:/Desktop/hbsl/app/应用图标/72.png", |
| | | "xhdpi": "D:/Desktop/hbsl/app/应用图标/96.png", |
| | | "xxhdpi": "D:/Desktop/hbsl/app/应用图标/144.png", |
| | | "xxxhdpi": "D:/Desktop/hbsl/app/应用图标/192.png" |
| | | }, |
| | | "ios": { |
| | | "appstore": "D:/Desktop/icon/1024x1024bb.png", |
| | | "iphone": { |
| | | "app@2x": "D:/Desktop/icon/120.png", |
| | | "app@3x": "D:/Desktop/icon/180.png", |
| | | "spotlight@2x": "D:/Desktop/icon/80.png", |
| | | "spotlight@3x": "D:/Desktop/icon/120.png", |
| | | "settings@2x": "D:/Desktop/icon/58.png", |
| | | "settings@3x": "D:/Desktop/icon/87.png", |
| | | "notification@2x": "D:/Desktop/icon/40.png", |
| | | "notification@3x": "D:/Desktop/icon/60.png" |
| | | }, |
| | | "ipad": { |
| | | "app": "", |
| | | "app@2x": "", |
| | | "proapp@2x": "", |
| | | "spotlight": "", |
| | | "spotlight@2x": "", |
| | | "settings": "", |
| | | "settings@2x": "", |
| | | "notification": "", |
| | | "notification@2x": "" |
| | | } |
| | | } |
| | | }, |
| | | "splashscreen": { |
| | | "useOriginalMsgbox": true |
| | | } |
| | | }, |
| | | "uniStatistics": { |
| | | "enable": false |
| | | }, |
| | | "nativePlugins": {} |
| | | }, |
| | | /* 快应用特有相关 */ |
| | | "quickapp": {}, |
| | | /* 小程序特有相关 */ |
| | | "mp-weixin": { |
| | | "appid": "wx1ff4bbc24b343ef1", |
| | | "setting": { |
| | | "urlCheck": false, |
| | | "minified": true, |
| | | "postcss": true, |
| | | "es6": true |
| | | }, |
| | | "usingComponents": true, |
| | | "optimization": { |
| | | "subPackages": true |
| | | }, |
| | | "uniStatistics": { |
| | | "enable": false |
| | | }, |
| | | "requiredPrivateInfos": ["getLocation"], |
| | | "permission": { |
| | | "scope.userLocation": { |
| | | "desc": "定位" |
| | | } |
| | | } |
| | | }, |
| | | "mp-alipay": { |
| | | "usingComponents": true, |
| | | "uniStatistics": { |
| | | "enable": false |
| | | } |
| | | }, |
| | | "mp-baidu": { |
| | | "usingComponents": true, |
| | | "uniStatistics": { |
| | | "enable": false |
| | | } |
| | | }, |
| | | "mp-toutiao": { |
| | | "usingComponents": true, |
| | | "setting": { |
| | | "es6": true, |
| | | "minified": true, |
| | | "postcss": true, |
| | | "urlCheck": false |
| | | }, |
| | | "uniStatistics": { |
| | | "enable": false |
| | | } |
| | | }, |
| | | "h5": { |
| | | "template": "template.h5.html", |
| | | "router": { |
| | | "mode": "hash", |
| | | "base": "/app" |
| | | }, |
| | | "optimization": { |
| | | "treeShaking": { |
| | | "enable": true |
| | | } |
| | | }, |
| | | "devServer": { |
| | | "proxy": { |
| | | "/api": { |
| | | "target": "http://127.0.0.1", |
| | | //"target" : "https://rider.bladex.vip/api", |
| | | "pathRewrite": { |
| | | "^/api": "/" |
| | | } |
| | | } |
| | | }, |
| | | "port": "", |
| | | "https": false |
| | | }, |
| | | "uniStatistics": { |
| | | "enable": false |
| | | }, |
| | | "sdkConfigs": { |
| | | "maps": { |
| | | "amap": { |
| | | "key": "7fa69abe1defd5888bb85bc736cda874", |
| | | "securityJsCode": "8ac9e5f522c62ed6e3a5800a87b0d140", |
| | | "serviceHost": "" |
| | | } |
| | | } |
| | | }, |
| | | "unipush": { |
| | | "enable": false |
| | | } |
| | | }, |
| | | "uniStatistics": { |
| | | "enable": false |
| | | }, |
| | | "mp-qq": { |
| | | "uniStatistics": { |
| | | "enable": false |
| | | } |
| | | } |
| | | } |
| | | "name" : "荆楚水库", |
| | | "appid" : "__UNI__EB167C0", |
| | | "description" : "", |
| | | "versionName" : "1.0.10", |
| | | "versionCode" : 104, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus" : { |
| | | "compatible" : { |
| | | "ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 |
| | | }, |
| | | "safearea" : { |
| | | "bottom" : { |
| | | "offset" : "none" |
| | | } |
| | | }, |
| | | "usingComponents" : true, |
| | | "nvueCompiler" : "uni-app", |
| | | "compilerVersion" : 3, |
| | | "splashscreen" : { |
| | | "alwaysShowBeforeRender" : false, |
| | | "waiting" : false, |
| | | "autoclose" : false, |
| | | "delay" : 0 |
| | | }, |
| | | /* 模块配置 */ |
| | | "modules" : { |
| | | "VideoPlayer" : {}, |
| | | "Camera" : {}, |
| | | "Geolocation" : {}, |
| | | "Push" : {}, |
| | | "Maps" : {} |
| | | }, |
| | | /* 应用发布信息 */ |
| | | "distribute" : { |
| | | /* android打包配置 */ |
| | | "android" : { |
| | | "permissions" : [ |
| | | "<uses-feature android:name=\"android.hardware.camera\"/>", |
| | | "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CAMERA\"/>", |
| | | "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", |
| | | "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", |
| | | "<uses-permission android:name=\"android.permission.INTERNET\"/>", |
| | | "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", |
| | | "<uses-permission android:name=\"android.permission.READ_LOGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>", |
| | | "<uses-permission android:name=\"android.permission.REQUEST_INSTALL_PACKAGES\"/>", |
| | | "<uses-permission android:name=\"android.permission.VIBRATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" |
| | | ], |
| | | "abiFilters" : [ "armeabi-v7a", "arm64-v8a" ] |
| | | }, |
| | | /* ios打包配置 */ |
| | | "ios" : { |
| | | "dSYMs" : false, |
| | | "UIBackgroundModes" : "", |
| | | "idfa" : false |
| | | }, |
| | | /* SDK配置 */ |
| | | "sdkConfigs" : { |
| | | "ad" : {}, |
| | | "maps" : { |
| | | "amap" : { |
| | | "appkey_ios" : "4bcdf5434597cc9160c9e0168c4a7bc7", |
| | | "appkey_android" : "c21be9bc7343573c28112c4fe272cb41" |
| | | } |
| | | }, |
| | | "geolocation" : { |
| | | "amap" : { |
| | | "__platform__" : [ "ios", "android" ], |
| | | "appkey_ios" : "4bcdf5434597cc9160c9e0168c4a7bc7", |
| | | "appkey_android" : "c21be9bc7343573c28112c4fe272cb41" |
| | | }, |
| | | "system" : { |
| | | "__platform__" : [ "ios", "android" ] |
| | | } |
| | | }, |
| | | "push" : { |
| | | "unipush" : { |
| | | "offline" : true |
| | | } |
| | | } |
| | | }, |
| | | "icons" : { |
| | | "android" : { |
| | | "hdpi" : "D:/Desktop/hbsl/app/应用图标/72.png", |
| | | "xhdpi" : "D:/Desktop/hbsl/app/应用图标/96.png", |
| | | "xxhdpi" : "D:/Desktop/hbsl/app/应用图标/144.png", |
| | | "xxxhdpi" : "D:/Desktop/hbsl/app/应用图标/192.png" |
| | | }, |
| | | "ios" : { |
| | | "appstore" : "D:/Desktop/icon/1024x1024bb.png", |
| | | "iphone" : { |
| | | "app@2x" : "D:/Desktop/icon/120.png", |
| | | "app@3x" : "D:/Desktop/icon/180.png", |
| | | "spotlight@2x" : "D:/Desktop/icon/80.png", |
| | | "spotlight@3x" : "D:/Desktop/icon/120.png", |
| | | "settings@2x" : "D:/Desktop/icon/58.png", |
| | | "settings@3x" : "D:/Desktop/icon/87.png", |
| | | "notification@2x" : "D:/Desktop/icon/40.png", |
| | | "notification@3x" : "D:/Desktop/icon/60.png" |
| | | }, |
| | | "ipad" : { |
| | | "app" : "", |
| | | "app@2x" : "", |
| | | "proapp@2x" : "", |
| | | "spotlight" : "", |
| | | "spotlight@2x" : "", |
| | | "settings" : "", |
| | | "settings@2x" : "", |
| | | "notification" : "", |
| | | "notification@2x" : "" |
| | | } |
| | | } |
| | | }, |
| | | "splashscreen" : { |
| | | "useOriginalMsgbox" : true |
| | | } |
| | | }, |
| | | "uniStatistics" : { |
| | | "enable" : false |
| | | }, |
| | | "nativePlugins" : {} |
| | | }, |
| | | /* 快应用特有相关 */ |
| | | "quickapp" : {}, |
| | | /* 小程序特有相关 */ |
| | | "mp-weixin" : { |
| | | "appid" : "wxdc5675f4df850da6", |
| | | "setting" : { |
| | | "urlCheck" : false, |
| | | "minified" : true, |
| | | "postcss" : true, |
| | | "es6" : true |
| | | }, |
| | | "usingComponents" : true, |
| | | "optimization" : { |
| | | "subPackages" : true |
| | | }, |
| | | "uniStatistics" : { |
| | | "enable" : false |
| | | }, |
| | | "requiredPrivateInfos" : [ "getLocation" ], |
| | | "permission" : { |
| | | "scope.userLocation" : { |
| | | "desc" : "定位" |
| | | } |
| | | } |
| | | }, |
| | | "mp-alipay" : { |
| | | "usingComponents" : true, |
| | | "uniStatistics" : { |
| | | "enable" : false |
| | | } |
| | | }, |
| | | "mp-baidu" : { |
| | | "usingComponents" : true, |
| | | "uniStatistics" : { |
| | | "enable" : false |
| | | } |
| | | }, |
| | | "mp-toutiao" : { |
| | | "usingComponents" : true, |
| | | "setting" : { |
| | | "es6" : true, |
| | | "minified" : true, |
| | | "postcss" : true, |
| | | "urlCheck" : false |
| | | }, |
| | | "uniStatistics" : { |
| | | "enable" : false |
| | | } |
| | | }, |
| | | "h5" : { |
| | | "template" : "template.h5.html", |
| | | "router" : { |
| | | "mode" : "hash", |
| | | "base" : "/app" |
| | | }, |
| | | "optimization" : { |
| | | "treeShaking" : { |
| | | "enable" : true |
| | | } |
| | | }, |
| | | "devServer" : { |
| | | "proxy" : { |
| | | "/api" : { |
| | | "target" : "http://127.0.0.1", |
| | | //"target" : "https://rider.bladex.vip/api", |
| | | "pathRewrite" : { |
| | | "^/api" : "/" |
| | | } |
| | | } |
| | | }, |
| | | "port" : "", |
| | | "https" : false |
| | | }, |
| | | "uniStatistics" : { |
| | | "enable" : false |
| | | }, |
| | | "sdkConfigs" : { |
| | | "maps" : { |
| | | "amap" : { |
| | | "key" : "7fa69abe1defd5888bb85bc736cda874", |
| | | "securityJsCode" : "8ac9e5f522c62ed6e3a5800a87b0d140", |
| | | "serviceHost" : "" |
| | | } |
| | | } |
| | | }, |
| | | "unipush" : { |
| | | "enable" : false |
| | | } |
| | | }, |
| | | "uniStatistics" : { |
| | | "enable" : false |
| | | }, |
| | | "mp-qq" : { |
| | | "uniStatistics" : { |
| | | "enable" : false |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | "path": "form", |
| | | "style": { |
| | | "navigationBarTitleText": "大金店报事", |
| | | "navigationBarTitleText": "打金店报事", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | | } |
| | | }, |
| | | { |
| | | "path": "hotelList", |
| | | "style": { |
| | | "navigationBarTitleText": "报事列表", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | | } |
| | | }, |
| | | { |
| | | "path": "bailList", |
| | | "style": { |
| | | "navigationBarTitleText": "报事列表", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | | } |
| | | }, |
| | | { |
| | | "path": "formList", |
| | | "style": { |
| | | "navigationBarTitleText": "报事列表", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | |
| | | :labelStyle="{fontSize:'28rpx'}"> |
| | | <view class="content"> |
| | | <u-form-item label="姓名" prop="checkUserName" borderBottom required> |
| | | <u-input v-model="info.checkUserName" disabled disabledColor="#fff" border="none" placeholder="请输入" placeholderClass="f-28 c-99" |
| | | <u-input v-model="info.checkUserName" border="none" placeholder="请输入" placeholderClass="f-28 c-99" |
| | | inputAlign="right"></u-input> |
| | | </u-form-item> |
| | | <u-form-item label="手机" prop="checkTelephone" borderBottom required> |
| | |
| | | <view class="upload bgc-ff"> |
| | | <view class="f-28 mb-20">位置图片</view> |
| | | <view class="mt-20"> |
| | | <u-upload :fileList="form.image" :previewFullImage="uploadConfig.previewFullImage" |
| | | <u-upload :fileList="form.images" :previewFullImage="uploadConfig.previewFullImage" |
| | | :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple" |
| | | :maxCount="uploadConfig.maxCount" :capture="uploadConfig.capture" @afterRead="afterReadImgs($event,'fireImageUrls')" |
| | | :maxCount="uploadConfig.maxCount" :capture="uploadConfig.capture" @afterRead="afterReadImg" |
| | | @delete="deletePic"> |
| | | <view class="upload-item upload-icon flex_base"> |
| | | <u-icon name="/static/icon/upload.png" width="60rpx" height="60rpx"></u-icon> |
| | |
| | | </view> |
| | | </u-form> |
| | | <button class="submit-btn" @click="sumitInfo">提交</button> |
| | | <!-- <button class="list-btn" @click="navigatorPage">我上报的事件</button> --> |
| | | <button class="list-btn" @click="navigatorPage">我上报的事件</button> |
| | | <u-datetime-picker ref="datetimePicker" :show="showSelectDate" v-model="applyTime" mode="datetime" |
| | | :formatter="formatter" @confirm="confirmDate" @cancel="showSelectDate = false"></u-datetime-picker> |
| | | </view> |
| | |
| | | }, |
| | | |
| | | confirmDate(e) { |
| | | console.log(e); |
| | | this.showSelectDate = false; |
| | | this.info.applyTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM') |
| | | this.info.applyTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM:ss') |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | checkImages() { |
| | | if (this.form.images.length) { |
| | | this.$set(this.info,"locationImageUrls",this.setImages()) |
| | |
| | | }, |
| | | |
| | | sumitInfo() { |
| | | this.$refs.info.validate().then(valid => { |
| | | this.$refs.form.validate().then(valid => { |
| | | this.checkImages(); |
| | | saveBailReporting(this.info).then(res => { |
| | | uni.showToast({ |
| | |
| | | title: '提交成功', |
| | | success() { |
| | | setTimeout(() => { |
| | | that.$u.func.globalNavigator("", "navBack") |
| | | // this.$u.func.globalNavigator("", "navBack") |
| | | uni.navigateBack() |
| | | }, 1000) |
| | | } |
| | | }) |
| | |
| | | }) |
| | | }, |
| | | navigatorPage() { |
| | | let url = "/subPackage/bs/views/repairList" + "?title=" + this.title + "&type=" + this.info.type |
| | | this.$u.func.globalNavigator(url, "navTo") |
| | | this.$u.func.globalNavigator('bailList', "navTo") |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | <template> |
| | | <view class=""> |
| | | <view class="list"> |
| | | <view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k"> |
| | | <view class="item-title flex a-i-c j-c-s-b mb-20"> |
| | | <text class="f-32 fw">{{i.checkUserName}}</text> |
| | | <u-tag v-if="i.confirmFlag == 1" text="待审批" type="warning" plain plainFill></u-tag> |
| | | <u-tag v-if="i.confirmFlag == 2" text="审核通过" type="success" plain plainFill></u-tag> |
| | | <u-tag v-if="i.confirmFlag == 3" text="审核拒绝" type="error" plain plainFill></u-tag> |
| | | </view> |
| | | <view class="item-row flex a-i-c j-c-s-b"> |
| | | <text class="f-28">时间</text> |
| | | <text class="f-28 c-66">{{i.createTime}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import {getBailReportingList} from "@/api/reporting/reporting.js" |
| | | export default { |
| | | data(){ |
| | | return { |
| | | list:[] |
| | | } |
| | | }, |
| | | |
| | | onLoad(){ |
| | | this.getList() |
| | | }, |
| | | |
| | | methods:{ |
| | | getList(){ |
| | | getBailReportingList({ |
| | | checkUserId:uni.getStorageSync("userInfo").user_id, |
| | | page:1, |
| | | size:20 |
| | | }).then(res=>{ |
| | | console.log(res) |
| | | this.list = res.data.records; |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | page{ |
| | | background-color:#F5F5F5; |
| | | } |
| | | .list{ |
| | | margin:20rpx 30rpx 0; |
| | | } |
| | | .list-item{ |
| | | padding:0 30rpx 20rpx; |
| | | border-radius: 8rpx; |
| | | .item-title{ |
| | | padding:30rpx 0; |
| | | border-bottom:1px solid #F5F5F5; |
| | | } |
| | | .item-row{ |
| | | padding:10rpx 0; |
| | | .address{ |
| | | width:65%; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <u-form labelPosition="left" :model="info" :rules="rules" ref="form" labelWidth="100" |
| | | :labelStyle="{fontSize:'28rpx'}"> |
| | | <view class="content"> |
| | | |
| | | <u-form-item label="对象电话" prop="transactionObjectTel" borderBottom required> |
| | | <u-input v-model="info.transactionObjectTel" border="none" placeholder="请输入" placeholderClass="f-28 c-99" |
| | | inputAlign="right"></u-input> |
| | | <u-form-item label="对象电话" prop="transactionObjectTel" borderBottom required> |
| | | <u-input v-model="info.transactionObjectTel" border="none" placeholder="请输入" |
| | | placeholderClass="f-28 c-99" inputAlign="right"></u-input> |
| | | </u-form-item> |
| | | <u-form-item label="交易金额" prop="transactionMoney" borderBottom required> |
| | | <u-input v-model="info.transactionMoney" disabled disabledColor="#fff" border="none" placeholder="请输入" placeholderClass="f-28 c-99" |
| | | inputAlign="right"></u-input> |
| | | <u-form-item label="交易金额" prop="transactionMoney" borderBottom required> |
| | | <u-input v-model="info.transactionMoney" border="none" placeholder="请输入" |
| | | placeholderClass="f-28 c-99" inputAlign="right"></u-input> |
| | | </u-form-item> |
| | | <u-form-item label="物品数量" prop="goodsNums" borderBottom required> |
| | | <u-input v-model="info.goodsNums" type="number" border="none" placeholder="请输入" placeholderClass="f-28 c-99" |
| | | inputAlign="right"></u-input> |
| | | <u-form-item label="物品数量" prop="goodsNums" borderBottom required> |
| | | <u-input v-model="info.goodsNums" type="number" border="none" placeholder="请输入" |
| | | placeholderClass="f-28 c-99" inputAlign="right"></u-input> |
| | | </u-form-item> |
| | | |
| | | <u-form-item label="交易位置" prop="location" borderBottom ref="location" required> |
| | | <u-input v-model="info.location" border="none" placeholder="请输入" placeholderClass="f-28 c-99" |
| | | <u-input v-model="info.location" border="none" placeholder="请输入" placeholderClass="f-28 c-99" |
| | | inputAlign="right"></u-input> |
| | | </u-form-item> |
| | | <u-form-item label="交易过程" prop="transactionProcess" borderBottom> |
| | | <u-input v-model="info.transactionProcess" border="none" placeholder="请输入" placeholderClass="f-28 c-99" |
| | | inputAlign="right"></u-input> |
| | | <u-input v-model="info.transactionProcess" border="none" placeholder="请输入" |
| | | placeholderClass="f-28 c-99" inputAlign="right"></u-input> |
| | | </u-form-item> |
| | | </view> |
| | | |
| | |
| | | <view class="mt-20"> |
| | | <u-upload :fileList="imageUrls" :previewFullImage="uploadConfig.previewFullImage" |
| | | :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple" |
| | | :maxCount="uploadConfig.maxCount" :capture="uploadConfig.capture" @afterRead="afterReadImgs($event,'imageUrls')" |
| | | @delete="deletePic"> |
| | | :maxCount="uploadConfig.maxCount" :capture="uploadConfig.capture" |
| | | @afterRead="afterReadImgs($event,'imageUrls')" @delete="deletePic"> |
| | | <view class="upload-item upload-icon flex_base"> |
| | | <u-icon name="/static/icon/upload.png" width="60rpx" height="60rpx"></u-icon> |
| | | </view> |
| | |
| | | <view class="mt-20"> |
| | | <u-upload :fileList="goodsImageUrls" :previewFullImage="uploadConfig.previewFullImage" |
| | | :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple" |
| | | :maxCount="uploadConfig.maxCount" :capture="uploadConfig.capture" @afterRead="afterReadImgs($event,'goodsImageUrls')" |
| | | @delete="deletePic"> |
| | | :maxCount="uploadConfig.maxCount" :capture="uploadConfig.capture" |
| | | @afterRead="afterReadImgs($event,'goodsImageUrls')" @delete="deletePic"> |
| | | <view class="upload-item upload-icon flex_base"> |
| | | <u-icon name="/static/icon/upload.png" width="60rpx" height="60rpx"></u-icon> |
| | | </view> |
| | |
| | | </u-form> |
| | | |
| | | <button class="submit-btn" @click="sumitInfo">提交</button> |
| | | <!-- <button class="list-btn" @click="navigatorPage">我上报的事件</button> --> |
| | | <button class="list-btn" @click="navigatorPage">我上报的事件</button> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | } from "@/api/reporting/reporting"; |
| | | export default { |
| | | mixins: [uploadMixin], |
| | | data(){ |
| | | return{ |
| | | data() { |
| | | return { |
| | | info: { |
| | | transactionObjectTel:"", |
| | | transactionMoney:"", |
| | | goodsNums:"", |
| | | location:"", |
| | | transactionProcess:"", |
| | | districtId:"", |
| | | districtName:"", |
| | | userId:"" |
| | | transactionObjectTel: "", |
| | | transactionMoney: "", |
| | | goodsNums: "", |
| | | location: "", |
| | | transactionProcess: "", |
| | | houseCode: "", |
| | | districtName: "", |
| | | userId: "" |
| | | }, |
| | | rules: { |
| | | 'transactionObjectTel': { |
| | |
| | | message: '请输入对象电话', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | |
| | | |
| | | 'transactionMoney': { |
| | | type: 'string', |
| | | required: true, |
| | | message: '请输入交易金额', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | 'location':{ |
| | | 'location': { |
| | | type: 'string', |
| | | required: true, |
| | | message: '请输入交易位置', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | 'transactionProcess':{ |
| | | 'transactionProcess': { |
| | | type: 'string', |
| | | required: false, |
| | | message: '请输入交易过程', |
| | | trigger: ['blur', 'change'] |
| | | } |
| | | }, |
| | | imageUrls:[], |
| | | goodsImageUrls:[] |
| | | imageUrls: [], |
| | | goodsImageUrls: [], |
| | | eventType:1 |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | if(option.type != 1){ |
| | | uni.setNavigationBarTitle({title:this.setTitle(option.type)}) |
| | | if (option.type != 1) { |
| | | this.eventType = option.type; |
| | | uni.setNavigationBarTitle({ |
| | | title: this.setTitle(option.type) |
| | | }) |
| | | } |
| | | this.$set(this.info,"eventType",option.type); |
| | | this.$set(this.info, "eventType", option.type); |
| | | let siteInfo = uni.getStorageSync("siteInfo"); |
| | | let userInfo = uni.getStorageSync("userInfo"); |
| | | this.$set(this.info, "houseCode", siteInfo.id); |
| | | this.$set(this.info, "districtName", siteInfo.name); |
| | | this.$set(this.info, "userId", userInfo.user_id); |
| | | }, |
| | | methods:{ |
| | | setTitle(type){ |
| | | if(type == 2){ |
| | | methods: { |
| | | setTitle(type) { |
| | | if (type == 2) { |
| | | return "二手车交易" |
| | | }else if (type == 3){ |
| | | } else if (type == 3) { |
| | | return "二手手机维修" |
| | | } |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | confirmDate(e) { |
| | | console.log(e); |
| | | this.showSelectDate = false; |
| | | this.info.checkTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM') |
| | | }, |
| | | |
| | | |
| | | async afterReadImgs(event, key) { |
| | | this.showLoading() |
| | | let lists = [].concat(event.file) |
| | |
| | | } |
| | | this.loadingClose() |
| | | }, |
| | | |
| | | |
| | | checkImages() { |
| | | if (this.imageUrls.length) { |
| | | this.$set(this.info,"imageUrls",this.setImages(this.imageUrls)) |
| | | this.$set(this.info, "imageUrls", this.setImages(this.imageUrls)) |
| | | } |
| | | if (this.goodsImageUrls.length) { |
| | | this.$set(this.info,"goodsImageUrls",this.setImages(this.goodsImageUrls)) |
| | | this.$set(this.info, "goodsImageUrls", this.setImages(this.goodsImageUrls)) |
| | | } |
| | | |
| | | |
| | | }, |
| | | |
| | | setImages(key){ |
| | | |
| | | setImages(key) { |
| | | let urls = []; |
| | | for(let i of key){ |
| | | for (let i of key) { |
| | | urls.push(i.url); |
| | | } |
| | | return urls.join(",") |
| | | return urls.join(",") |
| | | }, |
| | | |
| | | |
| | | sumitInfo() { |
| | | this.$refs.info.validate().then(valid => { |
| | | this.$refs.form.validate().then(valid => { |
| | | this.checkImages() |
| | | saveLabelReporting(this.info).then(res => { |
| | | uni.showToast({ |
| | |
| | | title: '提交成功', |
| | | success() { |
| | | setTimeout(() => { |
| | | that.$u.func.globalNavigator("", "navBack") |
| | | uni.navigateBack() |
| | | // this.$u.func.globalNavigator("", "navBack") |
| | | }, 1000) |
| | | } |
| | | }) |
| | | }) |
| | | }) |
| | | }, |
| | | // navigatorPage() { |
| | | // let url = "/subPackage/bs/views/repairList" + "?title=" + this.title + "&type=" + this.info.type |
| | | // this.$u.func.globalNavigator(url, "navTo") |
| | | // } |
| | | navigatorPage() { |
| | | this.$u.func.globalNavigator(`formList?type=${this.eventType}`, "navTo") |
| | | } |
| | | } |
| | | } |
| | | </script> |
| New file |
| | |
| | | <template> |
| | | <view class=""> |
| | | <view class="list"> |
| | | <view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k"> |
| | | <view class="item-title flex a-i-c j-c-s-b mb-20"> |
| | | <text class="f-32 fw">{{i.hotelName}}</text> |
| | | <u-tag v-if="i.confirmFlag == 1" text="待审批" type="warning" plain plainFill></u-tag> |
| | | <u-tag v-if="i.confirmFlag == 2" text="审核通过" type="success" plain plainFill></u-tag> |
| | | <u-tag v-if="i.confirmFlag == 3" text="审核拒绝" type="error" plain plainFill></u-tag> |
| | | </view> |
| | | <view class="item-row flex a-i-c j-c-s-b"> |
| | | <text class="f-28">时间</text> |
| | | <text class="f-28 c-66">{{i.createTime}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import {getLabelReportingList} from "@/api/reporting/reporting.js" |
| | | export default { |
| | | data(){ |
| | | return { |
| | | list:[] |
| | | } |
| | | }, |
| | | |
| | | onLoad(option){ |
| | | this.getList(option.type) |
| | | }, |
| | | |
| | | methods:{ |
| | | getList(type){ |
| | | getLabelReportingList({ |
| | | userId:uni.getStorageSync("userInfo").user_id, |
| | | page:1, |
| | | size:20, |
| | | eventType:type |
| | | }).then(res=>{ |
| | | console.log(res) |
| | | this.list = res.data.records; |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | page{ |
| | | background-color:#F5F5F5; |
| | | } |
| | | .list{ |
| | | margin:20rpx 30rpx 0; |
| | | } |
| | | .list-item{ |
| | | padding:0 30rpx 20rpx; |
| | | border-radius: 8rpx; |
| | | .item-title{ |
| | | padding:30rpx 0; |
| | | border-bottom:1px solid #F5F5F5; |
| | | } |
| | | .item-row{ |
| | | padding:10rpx 0; |
| | | .address{ |
| | | width:65%; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | </view> |
| | | </u-form> |
| | | <button class="submit-btn" @click="sumitInfo">提交</button> |
| | | <!-- <button class="list-btn" @click="navigatorPage">我上报的事件</button> --> |
| | | <button class="list-btn" @click="navigatorPage">我上报的事件</button> |
| | | <u-datetime-picker ref="datetimePicker" :show="showSelectDate" v-model="checkTime" mode="datetime" |
| | | :formatter="formatter" @confirm="confirmDate" @cancel="showSelectDate = false"></u-datetime-picker> |
| | | <u-picker :show="isShowFireStatus" :columns="fireStatus" :defaultIndex="fireStatusIndex" |
| | |
| | | onReady() { |
| | | // 微信小程序需要用此写法 |
| | | this.$refs.datetimePicker.setFormatter(this.formatter) |
| | | console.log("==>", this) |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | title: '提交成功', |
| | | success() { |
| | | setTimeout(() => { |
| | | that.$u.func.globalNavigator("", "navBack") |
| | | uni.navigateBack() |
| | | // that.$u.func.globalNavigator("", "navBack") |
| | | }, 1000) |
| | | } |
| | | }) |
| | |
| | | }) |
| | | }, |
| | | navigatorPage() { |
| | | let url = "/subPackage/bs/views/repairList" + "?title=" + this.title + "&type=" + this.info.type |
| | | this.$u.func.globalNavigator(url, "navTo") |
| | | this.$u.func.globalNavigator('hotelList', "navTo") |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | <template> |
| | | <view class=""> |
| | | <view class="list"> |
| | | <view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k"> |
| | | <view class="item-title flex a-i-c j-c-s-b mb-20"> |
| | | <text class="f-32 fw">{{i.hotelName}}</text> |
| | | <u-tag v-if="i.confirmFlag == 1" text="待审批" type="warning" plain plainFill></u-tag> |
| | | <u-tag v-if="i.confirmFlag == 2" text="审核通过" type="success" plain plainFill></u-tag> |
| | | <u-tag v-if="i.confirmFlag == 3" text="审核拒绝" type="error" plain plainFill></u-tag> |
| | | </view> |
| | | <view class="item-row flex a-i-c j-c-s-b"> |
| | | <text class="f-28">时间</text> |
| | | <text class="f-28 c-66">{{i.createTime}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import {getHotelReportingList} from "@/api/reporting/reporting.js" |
| | | export default { |
| | | data(){ |
| | | return { |
| | | list:[] |
| | | } |
| | | }, |
| | | |
| | | onLoad(){ |
| | | this.getList() |
| | | }, |
| | | |
| | | methods:{ |
| | | getList(){ |
| | | getHotelReportingList({ |
| | | checkUserId:uni.getStorageSync("userInfo").user_id, |
| | | page:1, |
| | | size:20 |
| | | }).then(res=>{ |
| | | console.log(res) |
| | | this.list = res.data.records; |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | page{ |
| | | background-color:#F5F5F5; |
| | | } |
| | | .list{ |
| | | margin:20rpx 30rpx 0; |
| | | } |
| | | .list-item{ |
| | | padding:0 30rpx 20rpx; |
| | | border-radius: 8rpx; |
| | | .item-title{ |
| | | padding:30rpx 0; |
| | | border-bottom:1px solid #F5F5F5; |
| | | } |
| | | .item-row{ |
| | | padding:10rpx 0; |
| | | .address{ |
| | | width:65%; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <view class="flex f-d-c ml-40"> |
| | | <text class="f-36">总申请</text> |
| | | <view class="flex a-i-c"> |
| | | <text class="f-48 c-blue fw mr-6">50</text> |
| | | <text class="f-48 c-blue fw mr-6">{{count.all}}</text> |
| | | <text class="f-24 c-99">件</text> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="flex f-d-c ml-40"> |
| | | <text class="f-36">已处理</text> |
| | | <view class="flex a-i-c"> |
| | | <text class="f-48 c-green fw mr-6">50</text> |
| | | <text class="f-48 c-green fw mr-6">{{count.processed}}</text> |
| | | <text class="f-24 c-99">件</text> |
| | | </view> |
| | | </view> |
| | |
| | | <u-icon name="map-fill" color="#AAAAAA"></u-icon> |
| | | <text class="f-28 c-aa ml-20">当前小区:</text> |
| | | </view> |
| | | |
| | | <text class="address f-28">{{siteInfo.name}}</text> |
| | | </view> |
| | | |
| | | <view class="nav flex flex-wrap j-c-s-b"> |
| | | |
| | | <view class="nav-item" v-for="(i,k) in navList" :key="k" @click="navTo(i.path,k)"> |
| | | <image class="nav-item-bg" :src="i.bgImg" mode="aspectFill"></image> |
| | | <view class="nav-item-inner flex f-d-c"> |
| | |
| | | <button class="item-btn" :style="{backgroundColor:i.background}">立即上报</button> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { getReportingCount } from '@/api/reporting/reporting.js' |
| | | |
| | | export default { |
| | | data(){ |
| | | return { |
| | |
| | | background:"#13C6C7" |
| | | } |
| | | ], |
| | | siteInfo:{} |
| | | siteInfo:{}, |
| | | count:{} |
| | | } |
| | | }, |
| | | |
| | | onLoad(){ |
| | | this.siteInfo = uni.getStorageSync("siteInfo"); |
| | | this.getCount(uni.getStorageSync("siteInfo").id); |
| | | }, |
| | | |
| | | methods:{ |
| | | getCount(code){ |
| | | getReportingCount({houseCode:code}).then(res=>{ |
| | | console.log(res); |
| | | this.count = res.data; |
| | | }) |
| | | }, |
| | | |
| | | navTo(path,index){ |
| | | let type = 1; |
| | | if(index == 2){ |
| | | if(index == 1){ |
| | | type == 1 |
| | | }else if (index == 3){ |
| | | type = 2 |
| | | }else { |
| | | type = 3 |
| | | }else if(index == 4) { |
| | | type = 2 |
| | | } |
| | | |
| | | this.$u.func.globalNavigator(`${path}?type=${type}`, "navTo") |
| | | |
| | | } |