dev:暂存危大工程代码

This commit is contained in:
Vce 2024-05-04 16:13:57 +08:00
parent 1fb54251af
commit 4486665522
5 changed files with 52 additions and 17 deletions

View File

@ -35,9 +35,9 @@ Vue.prototype.COMPANY = ""
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// 开发环境 // 开发环境
console.log('开发环境') console.log('开发环境')
Vue.prototype.url_config = 'http://47.93.215.234:9809/' // 鞍钢正式地址 // Vue.prototype.url_config = 'http://47.93.215.234:9809/' // 鞍钢正式地址
// Vue.prototype.url_config = 'http://47.93.215.234:11211/' // 鞍钢测试地址 // Vue.prototype.url_config = 'http://47.93.215.234:11211/' // 鞍钢测试地址
// Vue.prototype.url_config = 'http://182.90.224.237:51234/' //雄哥内网穿透地址 Vue.prototype.url_config = 'http://182.90.224.237:51234/' //雄哥内网穿透地址
// Vue.prototype.url_config = 'http://jxj.zhgdyun.com:61212/' //杰哥内网穿透地址 // Vue.prototype.url_config = 'http://jxj.zhgdyun.com:61212/' //杰哥内网穿透地址
// Vue.prototype.url_config = 'http://192.168.34.221:9111/' //郭圣雄本地 // Vue.prototype.url_config = 'http://192.168.34.221:9111/' //郭圣雄本地
// Vue.prototype.url_config = 'http://192.168.34.155:19111/' //彭洁本地 // Vue.prototype.url_config = 'http://192.168.34.155:19111/' //彭洁本地

View File

@ -259,7 +259,7 @@ export default {
position: fixed; position: fixed;
left: 20rpx; left: 20rpx;
right: 20rpx; right: 20rpx;
bottom: 50rpx; bottom: 15%;
> view { > view {
padding: 20rpx 0; padding: 20rpx 0;

View File

@ -9,9 +9,9 @@
<view class="plan-form"> <view class="plan-form">
<view class="form-item b-bottom"> <view class="form-item b-bottom">
<view class="form-lable"><text class="tag">*</text>验收单位</view> <view class="form-lable"><text class="tag">*</text>验收单位</view>
<picker @change="bindPickerChange" :value="typeIndex" range-key="name" :range="typeList"> <picker @change="bindPickerChange" :value="typeIndex" range-key="enterpriseName" :range="enterpriseInfoList">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view class="uni-input" style="margin-right: 10px;">{{typeList[typeIndex] ? typeList[typeIndex].name : ""}}</view> <view class="uni-input" style="margin-right: 10px;">{{enterpriseInfoList[typeIndex] ? enterpriseInfoList[typeIndex].name : ""}}</view>
<uni-icons2 type="arrowright" size="20"></uni-icons2> <uni-icons2 type="arrowright" size="20"></uni-icons2>
</view> </view>
</picker> </picker>
@ -28,8 +28,8 @@
<view class="form-item b-bottom"> <view class="form-item b-bottom">
<view class="form-lable"><text class="tag">*</text>验收时间</view> <view class="form-lable"><text class="tag">*</text>验收时间</view>
<dateTimePicker :placeholder="'请选择验收时间'" :disabled="isDisabled" <dateTimePicker :placeholder="'请选择验收时间'" :disabled="isDisabled"
:start="startTime" :fields="'minute'" :default-value="inspectTime" :start="checkedTime" :fields="'minute'" :default-value="inspectTime"
@change="bindPickerChange($event,'startTime')" @change="bindPickerChange($event,'checkedTime')"
class="form-content"> class="form-content">
<view class="uni-input"> <view class="uni-input">
<!-- <text>{{addForm.inspectTime}}</text> --> <!-- <text>{{addForm.inspectTime}}</text> -->
@ -52,6 +52,11 @@ import { computed } from "vue";
}, },
data(){ data(){
return{ return{
projectSn: '',
enterpriseInfoList: [],
isDisabled: false,
checkedTime: '',
statusBarHeight: 0, statusBarHeight: 0,
title: "下发验证任务", title: "下发验证任务",
inspectTime:'', inspectTime:'',
@ -74,24 +79,50 @@ import { computed } from "vue";
}] }]
} }
}, },
created() {
this.projectSn = JSON.parse(uni.getStorageSync('projectDetail'))
},
onShow(){ onShow(){
this.statusBarHeight = uni.getStorageSync('systemInfo').statusBarHeight; this.statusBarHeight = uni.getStorageSync('systemInfo').statusBarHeight;
}, },
onLoad(val){ onLoad(val){
this.formData.dangerousEngineeringId = val.id this.formData.dangerousEngineeringId = val.id
this.getEnterpriseInfoList()
}, },
methods:{ methods:{
async getEnterpriseInfoList(){
await this.sendRequest({
url:'xmgl/enterpriseInfo/list',
method:'post',
data:{
// engineeringId: this.detailId,
projectSn: this.projectSn,
},
success:res=>{
uni.hideLoading()
console.log("xmgl/xzDangerousEngineeringAcceptance/list",res);
this.enterpriseInfoList = res.result;
}
})
},
checkRadio(val){ checkRadio(val){
this.formData.acceptanceResult = val this.formData.acceptanceResult = val
}, },
bindTextAreaBlur(e){ bindTextAreaBlur(e){
console.log(e) console.log(e)
this.formData.acceptanceDescribe = e.detail.value this.formData.acceptanceDescribe = e.detail.value
}, },
bindInputBlur(e){ bindInputBlur(e){
console.log(e) console.log(e)
this.formData.acceptanceRegion = e.detail.value this.formData.acceptanceRegion = e.detail.value
}, },
uploadImg() { uploadImg() {
var that = this var that = this
uni.chooseImage({ uni.chooseImage({
@ -113,6 +144,7 @@ import { computed } from "vue";
} }
}) })
}, },
// //
deleteImg(val, type) { deleteImg(val, type) {
let that = this; let that = this;
@ -153,10 +185,12 @@ import { computed } from "vue";
urls: [url] urls: [url]
}) })
}, },
bindLength(e){ bindLength(e){
// console.log(e) // console.log(e)
this.textareaLengh = e.detail.value.split('').length this.textareaLengh = e.detail.value.split('').length
}, },
saveForm(){ saveForm(){
// console.log(this.formData) // console.log(this.formData)
let data = { let data = {
@ -205,6 +239,7 @@ import { computed } from "vue";
} }
}) })
}, },
bindPickerChange(e){ bindPickerChange(e){
this.typeIndex = e.target.value this.typeIndex = e.target.value
this.formData.acceptanceType = this.typeList[e.target.value].id this.formData.acceptanceType = this.typeList[e.target.value].id

View File

@ -123,10 +123,10 @@
id: 7, id: 7,
name: "管控要点" name: "管控要点"
}, },
// { {
// id: 8, id: 8,
// name: "" name: "最终验收"
// } }
], ],
activeIndex: 1, activeIndex: 1,
detailId: "", detailId: "",

View File

@ -1,20 +1,20 @@
<template> <template>
<view class="danger-project"> <view class="danger-project">
<view class="finally" > <view class="finally" v-if="finallyCheckList.length > 0">
<view style="padding:10px;"> <view style="padding:10px;">
危大工程名称基坑 <text style="font-weight: bold;">危大工程名称</text>基坑
</view> </view>
<view style="padding:10px;"> <view style="padding:10px;">
计划时间基坑 <text style="font-weight: bold;">计划时间</text>基坑
</view> </view>
<view style="padding:10px;"> <view style="padding:10px;">
验收人基坑 <text style="font-weight: bold;">验收人</text>基坑
</view> </view>
<view style="padding:10px;"> <view style="padding:10px;">
验收结果基坑 <text style="font-weight: bold;">验收结果</text>基坑
</view> </view>
</view> </view>
<view class="no-data"> <view class="no-data" v-else>
<image class="img" src="/static/noData.png"></image> <image class="img" src="/static/noData.png"></image>
<text class="txt">暂无数据</text> <text class="txt">暂无数据</text>
</view> </view>