fix: BUG修改

This commit is contained in:
kun 2024-04-28 09:09:41 +08:00
parent c0dc4cf7c2
commit a8d3ffb041
11 changed files with 136 additions and 113 deletions

View File

@ -79,10 +79,12 @@ if (process.env.NODE_ENV === 'development') {
console.log('生产环境') console.log('生产环境')
// Vue.prototype.url_config = 'http://10.168.1.105:11111/' // 线上地址 // Vue.prototype.url_config = 'http://10.168.1.105:11111/' // 线上地址
// Vue.prototype.url_config = 'http://10.168.1.104:11111/' // 线上地址 // Vue.prototype.url_config = 'http://10.168.1.104:11111/' // 线上地址
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://182.90.224.237:51234/' // 百色三标段 // Vue.prototype.url_config = 'http://182.90.224.237:51234/' // 百色三标段
// Vue.prototype.url_config = 'http://192.168.34.221:9111/' // 百色三标段 // Vue.prototype.url_config = 'http://192.168.34.221:9111/' // 百色三标段
Vue.prototype.work_url = 'http://47.93.215.234:19997' // 工作流线上地址 // Vue.prototype.work_url = 'http://47.93.215.234:19997' // 工作流线上地址
Vue.prototype.work_url = 'http://47.93.215.234:19097' // 工作流测试地址
// Vue.prototype.work_url = 'http://192.168.34.139:5173' // 工作流地址 // Vue.prototype.work_url = 'http://192.168.34.139:5173' // 工作流地址
// Vue.prototype.url_config = 'http://182.90.224.147:100/' //演示平台 // Vue.prototype.url_config = 'http://182.90.224.147:100/' //演示平台
// Vue.prototype.url_config ='http://124.71.178.44:8012/' // 河南 // Vue.prototype.url_config ='http://124.71.178.44:8012/' // 河南

View File

@ -63,10 +63,9 @@
<uni-icons v-if="!isDisabled" type="arrowright" color="#6C7178" /> <uni-icons v-if="!isDisabled" type="arrowright" color="#6C7178" />
</view> </view>
</picker> --> </picker> -->
<dateTimePicker :placeholder="'请选择检查时间'" :disabled="isDisabled" <dateTimePicker :placeholder="'请选择检查时间'" :disabled="isDisabled" :start="startTime"
:start="startTime" :fields="'minute'" :default-value="addForm.inspectTime" :fields="'minute'" :default-value="addForm.inspectTime"
@change="bindPickerChange($event,'startTime')" @change="bindPickerChange($event,'startTime')" class="form-content">
class="form-content">
<view class="uni-input"> <view class="uni-input">
<!-- <text>{{addForm.inspectTime}}</text> --> <!-- <text>{{addForm.inspectTime}}</text> -->
<uni-icons v-if="!isDisabled" type="arrowright" color="#6C7178" /> <uni-icons v-if="!isDisabled" type="arrowright" color="#6C7178" />
@ -138,7 +137,8 @@
</view> </view>
<view class="uni-input uni-select flex2" v-else> <view class="uni-input uni-select flex2" v-else>
<view style="width: 98%;white-space: nowrap;" class="ellipsis"> <view style="width: 98%;white-space: nowrap;" class="ellipsis">
{{hiddenDangerInspectRegionName }}</view> {{hiddenDangerInspectRegionName }}
</view>
</view> </view>
</picker> </picker>
</view> </view>
@ -156,6 +156,18 @@
</view> </view>
</view> </view>
<view class="b-bottom" v-if="addForm.status != 1">
<view class="form-item flex">
<view class="form-lable">*<text>整改单位</text></view>
<picker class="form-content" :disabled="isDisabled" :value="addForm.dutyUnit"
range-key="enterpriseName" :range="dutyUnitList" @change="bindDutyUnit">
<view class="uni-input" :class="{'noCheck': !addForm.dutyUnit.toString()}">
{{addForm.dutyUnit.toString() ? dutyUnitList[addForm.dutyUnit].enterpriseName : "请选择整改单位"}}
<uni-icons v-if="!isDisabled" type="arrowright" color="#6C7178" />
</view>
</picker>
</view>
</view>
<view class="b-bottom" v-if="addForm.status != 1"> <view class="b-bottom" v-if="addForm.status != 1">
<view class="form-item flex"> <view class="form-item flex">
<view class="form-lable">*<text>整改责任人</text></view> <view class="form-lable">*<text>整改责任人</text></view>
@ -169,20 +181,6 @@
</view> </view>
</view> </view>
<view class="b-bottom" v-if="addForm.status != 1">
<view class="form-item flex">
<view class="form-lable"><text>整改单位</text></view>
<picker class="form-content" :disabled="isDisabled" :value="addForm.dutyUnit"
range-key="enterpriseName" :range="dutyUnitList" @change="bindDutyUnit">
<view class="uni-input" :class="{'noCheck': !addForm.dutyUnit.toString()}">
{{addForm.dutyUnit.toString() ? dutyUnitList[addForm.dutyUnit].enterpriseName : "请选择整改单位"}}
<uni-icons v-if="!isDisabled" type="arrowright" color="#6C7178" />
</view>
</picker>
</view>
</view>
<view class="b-bottom" v-if="addForm.status != 1"> <view class="b-bottom" v-if="addForm.status != 1">
<view class="form-item flex"> <view class="form-item flex">
<view class="form-lable"><text>要求完成时间</text></view> <view class="form-lable"><text>要求完成时间</text></view>
@ -193,8 +191,8 @@
<uni-icons v-if="!isDisabled" type="arrowright" color="#6C7178" /> <uni-icons v-if="!isDisabled" type="arrowright" color="#6C7178" />
</view> </view>
</picker> --> </picker> -->
<dateTimePicker :placeholder="startTime" :disabled="isDisabled" <dateTimePicker :placeholder="startTime" :disabled="isDisabled" :start="startTime"
:start="startTime" fields="minute" :default-value="addForm.date" fields="minute" :default-value="addForm.date"
@change="bindPickerChange($event,'startTime2')" class="form-content"> @change="bindPickerChange($event,'startTime2')" class="form-content">
<view class="uni-input"> <view class="uni-input">
<!-- <text>{{addForm.date}}</text> --> <!-- <text>{{addForm.date}}</text> -->
@ -351,7 +349,9 @@
taskId: "", taskId: "",
itemId: "", itemId: "",
base64Image: '', base64Image: '',
moduleType: '' moduleType: '',
enterpriseId: '',
inspectHiddenDangerItemRecordId: ''
} }
}, },
computed: { computed: {
@ -372,16 +372,16 @@
this.projectSn = JSON.parse(uni.getStorageSync('userInfo')).sn this.projectSn = JSON.parse(uni.getStorageSync('userInfo')).sn
this.userId = JSON.parse(uni.getStorageSync('userInfo')).userId this.userId = JSON.parse(uni.getStorageSync('userInfo')).userId
this.queryTypeList() this.queryTypeList()
this.queryUserData()
this.getSubpackageLsit() this.getSubpackageLsit()
if (uni.getStorageSync('dangerData')) { if (uni.getStorageSync('dangerData')) {
let dangerData = uni.getStorageSync('dangerData') let dangerData = uni.getStorageSync('dangerData')
console.log(dangerData,777888)
this.addForm.examineContent = dangerData.checkContent this.addForm.examineContent = dangerData.checkContent
this.addForm.examineLv = dangerData.hiddenDangerLevel this.addForm.examineLv = dangerData.hiddenDangerLevel
this.addForm.requestContent = dangerData.rectifyRequire this.addForm.requestContent = dangerData.rectifyRequire
this.addForm.examineProject = dangerData.hiddenDangerName this.addForm.examineProject = dangerData.hiddenDangerName
this.addForm.examineEntry = dangerData.title this.addForm.examineEntry = dangerData.title
this.inspectHiddenDangerItemRecordId = dangerData.id
console.log(uni.getStorageSync('dangerData'), '-----检查项列表带回数据') console.log(uni.getStorageSync('dangerData'), '-----检查项列表带回数据')
} }
@ -581,7 +581,8 @@
url: 'xmgl/systemUser/getProjectChilderSystemUserList', url: 'xmgl/systemUser/getProjectChilderSystemUserList',
method: 'post', method: 'post',
data: { data: {
projectSn: this.projectSn projectSn: this.projectSn,
enterpriseId: this.enterpriseId
}, },
success: res => { success: res => {
_this.dutyPeopleList = res.result _this.dutyPeopleList = res.result
@ -661,6 +662,11 @@
bindDutyUnit(e) { bindDutyUnit(e) {
this.addForm.dutyUnit = e.detail.value this.addForm.dutyUnit = e.detail.value
this.addForm.enterpriseSn = this.dutyUnitList[e.detail.value].enterpriseSn this.addForm.enterpriseSn = this.dutyUnitList[e.detail.value].enterpriseSn
this.enterpriseId = this.dutyUnitList[e.detail.value].id;
this.queryUserData()
//
this.addForm.dutyPeople = "";
this.addForm.dutyPeopleId = "";
console.log(e.detail.value) console.log(e.detail.value)
}, },
bindAddress(e) { bindAddress(e) {
@ -695,7 +701,8 @@
// uni.removeStorageSync('dangerData'); // uni.removeStorageSync('dangerData');
// } // }
uni.navigateTo({ uni.navigateTo({
url: './dangerLibrary?type=1&taskId=' + this.taskId + '&itemId=' + this.itemId + '&engineeringId=' + this.engineeringId + '&moduleType=' + this.moduleType url: './dangerLibrary?type=1&taskId=' + this.taskId + '&itemId=' + this.itemId +
'&engineeringId=' + this.engineeringId + '&moduleType=' + this.moduleType
}) })
} }
}, },
@ -849,6 +856,9 @@
hiddenDangerInspectRegionName: this.hiddenDangerInspectRegionName, hiddenDangerInspectRegionName: this.hiddenDangerInspectRegionName,
hiddenDangerInspectRegionId: this.hiddenDangerInspectRegionId hiddenDangerInspectRegionId: this.hiddenDangerInspectRegionId
}; };
if(this.inspectHiddenDangerItemRecordId){
data.inspectHiddenDangerItemRecordId = this.inspectHiddenDangerItemRecordId
}
data.inspectTypeId = this.addForm.typeId data.inspectTypeId = this.addForm.typeId
data.taskId = this.taskId data.taskId = this.taskId
data.itemId = this.itemId data.itemId = this.itemId
@ -883,6 +893,14 @@
}); });
return; return;
} }
if (!this.addForm.enterpriseSn) {
uni.showToast({
title: '请选择整改单位!',
icon: "none",
duration: 2000
});
return;
}
if (this.addForm.dutyPeopleId == "") { if (this.addForm.dutyPeopleId == "") {
uni.showToast({ uni.showToast({
title: '请选择整改责任人!', title: '请选择整改责任人!',
@ -1041,6 +1059,7 @@
.addExamine { .addExamine {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
.fixedheader { .fixedheader {
position: fixed; position: fixed;
top: 0; top: 0;
@ -1176,6 +1195,7 @@
.uni-input { .uni-input {
line-height: 36rpx; line-height: 36rpx;
} }
.uni-input2 { .uni-input2 {
color: black; color: black;
} }
@ -1369,6 +1389,7 @@
.example-body { .example-body {
padding: 0 0 20rpx 140rpx; padding: 0 0 20rpx 140rpx;
} }
.dateTimePicker { .dateTimePicker {
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 5px; border-radius: 5px;

Binary file not shown.

View File

@ -1 +1 @@
https://app.liuyingyong.cn/build/download/302c99c0-032b-11ef-8c42-8324348b8627 https://app.liuyingyong.cn/build/download/d196e210-04b0-11ef-8714-09b26180e8b2

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long