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('生产环境')
// 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://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://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.url_config = 'http://182.90.224.147:100/' //演示平台
// 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" />
</view>
</picker> -->
<dateTimePicker :placeholder="'请选择检查时间'" :disabled="isDisabled"
:start="startTime" :fields="'minute'" :default-value="addForm.inspectTime"
@change="bindPickerChange($event,'startTime')"
class="form-content">
<dateTimePicker :placeholder="'请选择检查时间'" :disabled="isDisabled" :start="startTime"
:fields="'minute'" :default-value="addForm.inspectTime"
@change="bindPickerChange($event,'startTime')" class="form-content">
<view class="uni-input">
<!-- <text>{{addForm.inspectTime}}</text> -->
<uni-icons v-if="!isDisabled" type="arrowright" color="#6C7178" />
@ -138,7 +137,8 @@
</view>
<view class="uni-input uni-select flex2" v-else>
<view style="width: 98%;white-space: nowrap;" class="ellipsis">
{{hiddenDangerInspectRegionName }}</view>
{{hiddenDangerInspectRegionName }}
</view>
</view>
</picker>
</view>
@ -156,6 +156,18 @@
</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="form-item flex">
<view class="form-lable">*<text>整改责任人</text></view>
@ -169,20 +181,6 @@
</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="form-item flex">
<view class="form-lable"><text>要求完成时间</text></view>
@ -193,8 +191,8 @@
<uni-icons v-if="!isDisabled" type="arrowright" color="#6C7178" />
</view>
</picker> -->
<dateTimePicker :placeholder="startTime" :disabled="isDisabled"
:start="startTime" fields="minute" :default-value="addForm.date"
<dateTimePicker :placeholder="startTime" :disabled="isDisabled" :start="startTime"
fields="minute" :default-value="addForm.date"
@change="bindPickerChange($event,'startTime2')" class="form-content">
<view class="uni-input">
<!-- <text>{{addForm.date}}</text> -->
@ -351,7 +349,9 @@
taskId: "",
itemId: "",
base64Image: '',
moduleType: ''
moduleType: '',
enterpriseId: '',
inspectHiddenDangerItemRecordId: ''
}
},
computed: {
@ -372,16 +372,16 @@
this.projectSn = JSON.parse(uni.getStorageSync('userInfo')).sn
this.userId = JSON.parse(uni.getStorageSync('userInfo')).userId
this.queryTypeList()
this.queryUserData()
this.getSubpackageLsit()
if (uni.getStorageSync('dangerData')) {
let dangerData = uni.getStorageSync('dangerData')
console.log(dangerData,777888)
this.addForm.examineContent = dangerData.checkContent
this.addForm.examineLv = dangerData.hiddenDangerLevel
this.addForm.requestContent = dangerData.rectifyRequire
this.addForm.examineProject = dangerData.hiddenDangerName
this.addForm.examineEntry = dangerData.title
this.inspectHiddenDangerItemRecordId = dangerData.id
console.log(uni.getStorageSync('dangerData'), '-----检查项列表带回数据')
}
@ -469,7 +469,7 @@
this.taskId = val.taskId
this.itemId = val.itemId
}
if(val.moduleType){
if (val.moduleType) {
this.moduleType = val.moduleType;
}
console.log(val, '----页面类型')
@ -581,7 +581,8 @@
url: 'xmgl/systemUser/getProjectChilderSystemUserList',
method: 'post',
data: {
projectSn: this.projectSn
projectSn: this.projectSn,
enterpriseId: this.enterpriseId
},
success: res => {
_this.dutyPeopleList = res.result
@ -661,6 +662,11 @@
bindDutyUnit(e) {
this.addForm.dutyUnit = e.detail.value
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)
},
bindAddress(e) {
@ -695,7 +701,8 @@
// uni.removeStorageSync('dangerData');
// }
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,
hiddenDangerInspectRegionId: this.hiddenDangerInspectRegionId
};
if(this.inspectHiddenDangerItemRecordId){
data.inspectHiddenDangerItemRecordId = this.inspectHiddenDangerItemRecordId
}
data.inspectTypeId = this.addForm.typeId
data.taskId = this.taskId
data.itemId = this.itemId
@ -883,6 +893,14 @@
});
return;
}
if (!this.addForm.enterpriseSn) {
uni.showToast({
title: '请选择整改单位!',
icon: "none",
duration: 2000
});
return;
}
if (this.addForm.dutyPeopleId == "") {
uni.showToast({
title: '请选择整改责任人!',
@ -953,7 +971,7 @@
uni.showToast({
title: '保存成功'
})
if(this.moduleType == 'safeCheck'){
if (this.moduleType == 'safeCheck') {
uni.navigateBack({
delta: 3
})
@ -1041,6 +1059,7 @@
.addExamine {
position: relative;
overflow: hidden;
.fixedheader {
position: fixed;
top: 0;
@ -1176,6 +1195,7 @@
.uni-input {
line-height: 36rpx;
}
.uni-input2 {
color: black;
}
@ -1369,6 +1389,7 @@
.example-body {
padding: 0 0 20rpx 140rpx;
}
.dateTimePicker {
border: 1px solid #ccc;
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