Merge branch 'bjxz-dev' of http://139.9.66.234:18023/dhp/zhgdyunapp into bjxz-dev
This commit is contained in:
commit
9c859a7b45
@ -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',
|
||||||
|
|||||||
@ -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=>{
|
||||||
|
|||||||
@ -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){
|
||||||
|
|||||||
@ -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 = []
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
@ -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){
|
||||||
|
|||||||
@ -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',
|
||||||
|
|||||||
@ -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){
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user