Merge branch 'bjxz-dev' of http://139.9.66.234:18023/dhp/zhgdyunapp into bjxz-dev

This commit is contained in:
kun 2024-05-16 13:43:37 +08:00
commit 9c859a7b45
11 changed files with 25 additions and 42 deletions

View File

@ -367,12 +367,14 @@
chekItm8: '', chekItm8: '',
engineeringId: '', engineeringId: '',
workType: ''
} }
}, },
onLoad(option) { onLoad(option) {
this.condition.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn; this.condition.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn;
this.userInfo = JSON.parse(uni.getStorageSync('userInfo')) this.userInfo = JSON.parse(uni.getStorageSync('userInfo'))
this.engineeringId = option.engineeringId this.engineeringId = option.engineeringId
this.workType = Number(option.type)
// console.log(JSON.parse(uni.getStorageSync('userInfo'))) // console.log(JSON.parse(uni.getStorageSync('userInfo')))
this.getCheckPointList(); this.getCheckPointList();
@ -503,6 +505,7 @@
this.condition.regionId = this.regionId this.condition.regionId = this.regionId
let that = this; let that = this;
that.condition.type = that.workType
this.sendRequest({ this.sendRequest({
url: 'xmgl/xzSecurityQualityInspectionRecord/list', url: 'xmgl/xzSecurityQualityInspectionRecord/list',
method: 'post', method: 'post',
@ -561,6 +564,7 @@
this.condition.search = e.detail.value this.condition.search = e.detail.value
let that = this; let that = this;
// uni.showLoading({title: ''}) // uni.showLoading({title: ''})
that.condition.type = that.workType
this.sendRequest({ this.sendRequest({
url: 'xmgl/xzSecurityQualityInspectionRecord/list', url: 'xmgl/xzSecurityQualityInspectionRecord/list',
method: 'post', method: 'post',
@ -950,6 +954,7 @@
console.log('查询列表条件数据', this.checkedTab) console.log('查询列表条件数据', this.checkedTab)
let that = this; let that = this;
// uni.showLoading({title: ''}) // uni.showLoading({title: ''})
that.condition.type = that.workType
this.sendRequest({ this.sendRequest({
url: 'xmgl/xzSecurityQualityInspectionRecord/list', url: 'xmgl/xzSecurityQualityInspectionRecord/list',
method: 'post', method: 'post',

View File

@ -164,7 +164,7 @@
buildSituation: this.formData.buildSituation, buildSituation: this.formData.buildSituation,
dangerousEngineeringId: this.formData.dangerousEngineeringId, dangerousEngineeringId: this.formData.dangerousEngineeringId,
createUser: JSON.parse(uni.getStorageSync('userInfo')).userId, createUser: JSON.parse(uni.getStorageSync('userInfo')).userId,
type:2 type: 2
} }
let arr = [] let arr = []
this.formData.imgFileList.forEach(item=>{ this.formData.imgFileList.forEach(item=>{

View File

@ -144,7 +144,7 @@
acceptanceUnitId: this.enterpriseId, acceptanceUnitId: this.enterpriseId,
acceptanceUserId: this.acceptancePerson.userId, acceptanceUserId: this.acceptancePerson.userId,
planTime: this.planTime, planTime: this.planTime,
type:2 type: 2
} }
console.log(data); console.log(data);
if(!data.acceptanceUnitId){ if(!data.acceptanceUnitId){

View File

@ -246,7 +246,7 @@
acceptanceResult: this.formData.acceptanceResult, // acceptanceResult: this.formData.acceptanceResult, //
acceptanceDesc: this.formData.acceptanceDescribe, // acceptanceDesc: this.formData.acceptanceDescribe, //
photo: this.formData.imgFileList[0].url, photo: this.formData.imgFileList[0].url,
type:2 type: 2
} }
// data.createUser = JSON.parse(uni.getStorageSync('userInfo')).userId; // data.createUser = JSON.parse(uni.getStorageSync('userInfo')).userId;
// let arr = [] // let arr = []

View File

@ -61,7 +61,7 @@
data:{ data:{
projectSn: this.projectSn, projectSn: this.projectSn,
acceptanceUserId: this.userInfo.userId, acceptanceUserId: this.userInfo.userId,
type:2 type: 2
}, },
success:res=>{ success:res=>{
uni.hideLoading() uni.hideLoading()

View File

@ -222,7 +222,7 @@
data:{ data:{
engineeringId: this.detailData.id, engineeringId: this.detailData.id,
projectSn: JSON.parse(uni.getStorageSync('projectDetail')).projectSn, projectSn: JSON.parse(uni.getStorageSync('projectDetail')).projectSn,
type:2 type: 2
}, },
success:res=>{ success:res=>{
uni.hideLoading() uni.hideLoading()

View File

@ -52,7 +52,10 @@
this.sendRequest({ this.sendRequest({
url:'xmgl/dangerousEngineeringProgressRecord/list', url:'xmgl/dangerousEngineeringProgressRecord/list',
method:'post', method:'post',
data: {engineeringId: this.detailId,type: 2}, data: {
engineeringId: this.detailId,
type: 2,
},
success:res=>{ success:res=>{
uni.hideLoading() uni.hideLoading()
if(res.code==200){ if(res.code==200){

View File

@ -376,7 +376,7 @@
this.engineeringId = option.engineeringId this.engineeringId = option.engineeringId
// console.log(JSON.parse(uni.getStorageSync('userInfo'))) // console.log(JSON.parse(uni.getStorageSync('userInfo')))
this.getCheckPointList(); this.getCheckPointList();
this.workType = option.type this.workType = Number(option.type)
}, },
onShow() { onShow() {
this.listData = []; this.listData = [];
@ -504,6 +504,7 @@
this.condition.regionId = this.regionId this.condition.regionId = this.regionId
let that = this; let that = this;
that.condition.type = that.workType
this.sendRequest({ this.sendRequest({
url: 'xmgl/xzSecurityQualityInspectionRecord/list', url: 'xmgl/xzSecurityQualityInspectionRecord/list',
method: 'post', method: 'post',
@ -562,6 +563,7 @@
this.condition.search = e.detail.value this.condition.search = e.detail.value
let that = this; let that = this;
// uni.showLoading({title: ''}) // uni.showLoading({title: ''})
that.condition.type = that.workType
this.sendRequest({ this.sendRequest({
url: 'xmgl/xzSecurityQualityInspectionRecord/list', url: 'xmgl/xzSecurityQualityInspectionRecord/list',
method: 'post', method: 'post',
@ -951,7 +953,7 @@
console.log('查询列表条件数据', this.checkedTab) console.log('查询列表条件数据', this.checkedTab)
let that = this; let that = this;
// uni.showLoading({title: ''}) // uni.showLoading({title: ''})
that.condition.type = Number(that.workType) that.condition.type = that.workType
this.sendRequest({ this.sendRequest({
url: 'xmgl/xzSecurityQualityInspectionRecord/list', url: 'xmgl/xzSecurityQualityInspectionRecord/list',
method: 'post', method: 'post',

View File

@ -52,7 +52,10 @@
this.sendRequest({ this.sendRequest({
url:'xmgl/dangerousEngineeringSideStation/selectList', url:'xmgl/dangerousEngineeringSideStation/selectList',
method:'post', method:'post',
data: {engineeringId: this.detailId,type:2}, data: {
engineeringId: this.detailId,
type:2,
},
success:res=>{ success:res=>{
uni.hideLoading() uni.hideLoading()
if(res.code==200){ if(res.code==200){

View File

@ -70,15 +70,13 @@
if(!this.isLoadMore){ // if(!this.isLoadMore){ //
this.isLoadMore=true this.isLoadMore=true
this.pageNo+=1 this.pageNo+=1
// this.initData() this.getWorkList()
this.getWorkList()
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {
console.log(2) console.log(2)
this.pageNo=1 this.pageNo=1
this.listData=[] this.listData=[]
// this.initData()
this.getWorkList() this.getWorkList()
}, },
methods:{ methods:{
@ -117,35 +115,7 @@
uni.navigateTo({ uni.navigateTo({
url:'./detail?id='+val.id url:'./detail?id='+val.id
}) })
}, }
// initData(){
// let data = {
// pageNo: this.pageNo,
// pageSize: this.pageSize,
// projectSn: this.projectSn
// }
// this.sendRequest({
// url:'xmgl/dangerousEngineeringRecord/list',
// method:'post',
// data:data,
// success:res=>{
// uni.hideLoading()
// if(res.code==200){
// // this.listData = res.result.records
// this.listData=this.listData.concat(res.result.records)
// if(res.result.records.length<this.pageSize){ //
// this.isLoadMore=true
// this.loadStatus='nomore'
// }else{
// this.isLoadMore=false
// // that.loadStatus='more'
// }
// uni.stopPullDownRefresh()
// }
// console.log(res)
// }
// })
// },
} }
} }
</script> </script>

View File

@ -51,7 +51,7 @@
data:{ data:{
engineeringId: this.detailId, engineeringId: this.detailId,
projectSn: JSON.parse(uni.getStorageSync('projectDetail')).projectSn, projectSn: JSON.parse(uni.getStorageSync('projectDetail')).projectSn,
type:2 type: 2
}, },
success:res=>{ success:res=>{
uni.hideLoading() uni.hideLoading()