新增部分模块
This commit is contained in:
parent
5b04760c2f
commit
a82e0701d7
19
pages.json
19
pages.json
@ -1390,8 +1390,23 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}
|
{
|
||||||
|
"path": "pages/projectEnd/ukashManage/ukashManage",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"enablePullDownRefresh": true,
|
||||||
|
"onReachBottomDistance": 100
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/projectEnd/ukashManage/materials",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
}
|
||||||
],
|
],
|
||||||
// "subPackages":[{
|
// "subPackages":[{
|
||||||
// "root": "carManage",
|
// "root": "carManage",
|
||||||
|
|||||||
@ -643,6 +643,11 @@ export default {
|
|||||||
url: '../../fileManage/fileManage'
|
url: '../../fileManage/fileManage'
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
|
case 'ukashManage':
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '../../projectEnd/ukashManage/ukashManage'
|
||||||
|
})
|
||||||
|
break
|
||||||
case 'betonManage':
|
case 'betonManage':
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '../betonManage/index'
|
url: '../betonManage/index'
|
||||||
|
|||||||
@ -545,7 +545,8 @@
|
|||||||
subListData: [], //分项工程
|
subListData: [], //分项工程
|
||||||
subsectionIndex: -1, //分部工程
|
subsectionIndex: -1, //分部工程
|
||||||
subentryIndex: -1, ////分项工程
|
subentryIndex: -1, ////分项工程
|
||||||
|
taskId: '', //任务ID
|
||||||
|
itemId: '' // 任务子ID
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
@ -557,9 +558,10 @@
|
|||||||
this.getPersonList();
|
this.getPersonList();
|
||||||
this.getProgressListData()
|
this.getProgressListData()
|
||||||
console.log('lll', option.taskId, option.itemId)
|
console.log('lll', option.taskId, option.itemId)
|
||||||
this.form.taskId = option.taskId ? option.taskId : null
|
this.taskId = option.taskId
|
||||||
this.form.itemId = option.itemId ? option.itemId : null
|
this.itemId = option.itemId
|
||||||
|
this.form.taskId = option.taskId
|
||||||
|
this.form.itemId = option.itemId
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -1107,7 +1109,7 @@
|
|||||||
|
|
||||||
|
|
||||||
//新增保存
|
//新增保存
|
||||||
addSaveBtn() {
|
async addSaveBtn() {
|
||||||
let arr = [],
|
let arr = [],
|
||||||
arr2 = [];
|
arr2 = [];
|
||||||
|
|
||||||
@ -1209,6 +1211,7 @@
|
|||||||
data.measurePoints = pointArr.join(',')
|
data.measurePoints = pointArr.join(',')
|
||||||
console.log('data.measurePoints=============', data.measurePoints);
|
console.log('data.measurePoints=============', data.measurePoints);
|
||||||
if (this.typeCheck == "type1") {
|
if (this.typeCheck == "type1") {
|
||||||
|
console.log(data);
|
||||||
// 质量问题
|
// 质量问题
|
||||||
this.sendRequest({
|
this.sendRequest({
|
||||||
url: 'xmgl/qualityInspectionRecord/add',
|
url: 'xmgl/qualityInspectionRecord/add',
|
||||||
@ -1232,6 +1235,8 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
console.log(this.taskId);
|
||||||
|
console.log(this.itemId);
|
||||||
// 排查记录
|
// 排查记录
|
||||||
let data2 = {
|
let data2 = {
|
||||||
dangerDesc: data.dangerDesc,
|
dangerDesc: data.dangerDesc,
|
||||||
@ -1253,8 +1258,11 @@
|
|||||||
subentryId: data.subentryId, //分项工程
|
subentryId: data.subentryId, //分项工程
|
||||||
floor: data.floor, //巡检楼层
|
floor: data.floor, //巡检楼层
|
||||||
addedDescription: data.addedDescription, //事件描述
|
addedDescription: data.addedDescription, //事件描述
|
||||||
|
taskId: this.taskId || null, // 任务ID
|
||||||
|
itemId: this.itemId || null // 任务子ID
|
||||||
}
|
}
|
||||||
this.sendRequest({
|
console.log(data.taskId);
|
||||||
|
await this.sendRequest({
|
||||||
url: 'xmgl/qualityInspectionRecord/add',
|
url: 'xmgl/qualityInspectionRecord/add',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data2,
|
data: data2,
|
||||||
@ -1283,7 +1291,7 @@
|
|||||||
|
|
||||||
this.typeCheck = value
|
this.typeCheck = value
|
||||||
this.checkedTab = value
|
this.checkedTab = value
|
||||||
console.log('切换tab', this.typeCheck);
|
console.log('切换tab', this.form);
|
||||||
// 重制内容
|
// 重制内容
|
||||||
this.form = {
|
this.form = {
|
||||||
regionId: "", // 检查部位
|
regionId: "", // 检查部位
|
||||||
@ -1310,6 +1318,8 @@
|
|||||||
imageUrl: "",
|
imageUrl: "",
|
||||||
fileUrl: "",
|
fileUrl: "",
|
||||||
recordType: 1,
|
recordType: 1,
|
||||||
|
// taskId:'',
|
||||||
|
// itemId:''
|
||||||
};
|
};
|
||||||
this.issueName = ''
|
this.issueName = ''
|
||||||
this.checkPointName = ""
|
this.checkPointName = ""
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="listPage" @touchend="end" @touchmove="move" :class="{popupShow:popupShow}">
|
<view class="listPage" :class="{popupShow:popupShow}">
|
||||||
<headers :showBack="true">
|
<headers :showBack="true">
|
||||||
<view class="headerName">
|
<view class="headerName">
|
||||||
检查台账
|
检查台账
|
||||||
|
|||||||
@ -10,9 +10,13 @@
|
|||||||
<text>{{ statisticsData.rectifyNum }}</text>
|
<text>{{ statisticsData.rectifyNum }}</text>
|
||||||
待整改
|
待整改
|
||||||
</view>
|
</view>
|
||||||
|
<view class="info-item b-right">
|
||||||
|
<text>{{ statisticsData.checkNum }}</text>
|
||||||
|
待复查
|
||||||
|
</view>
|
||||||
<view class="info-item b-right">
|
<view class="info-item b-right">
|
||||||
<text>{{ statisticsData.reviewNum }}</text>
|
<text>{{ statisticsData.reviewNum }}</text>
|
||||||
待审核
|
待核验
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<text>{{ statisticsData.closeNum }}</text>
|
<text>{{ statisticsData.closeNum }}</text>
|
||||||
|
|||||||
@ -280,6 +280,7 @@
|
|||||||
}
|
}
|
||||||
.no-data{
|
.no-data{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-top: 50%;
|
||||||
.img{
|
.img{
|
||||||
display: block;
|
display: block;
|
||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
|
|||||||
130
pages/projectEnd/ukashManage/materials.vue
Normal file
130
pages/projectEnd/ukashManage/materials.vue
Normal file
@ -0,0 +1,130 @@
|
|||||||
|
<template>
|
||||||
|
<view class="projectList">
|
||||||
|
<headers class="fixedheader" :themeType="true" :showBack="true">
|
||||||
|
<view class="headerName">
|
||||||
|
材料入场管理
|
||||||
|
</view>
|
||||||
|
</headers>
|
||||||
|
<view>
|
||||||
|
<view class="ukashList">
|
||||||
|
<view class="ukashList-what">
|
||||||
|
<span style="font-size: 14px;font-weight: 700;">0000</span>
|
||||||
|
<span class="ukashList-look">查看明细</span>
|
||||||
|
</view>
|
||||||
|
<view class="ukashList-time">型号: 2222s</view>
|
||||||
|
<view class="ukashList-time">规格: 2222s</view>
|
||||||
|
<view class="ukashList-time">单位: 2222s</view>
|
||||||
|
<view class="ukashList-time">数量: 2222s</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import headers from '../../../components/headers/headers.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
search:'',
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
isLoadMore:false,
|
||||||
|
dataList:[],
|
||||||
|
id:''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.queryList()
|
||||||
|
},
|
||||||
|
onLoad(vai) {
|
||||||
|
console.log(vai.itemS);
|
||||||
|
this.id = vai.itemS
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
console.log(99999);
|
||||||
|
if (!this.isLoadMore) {
|
||||||
|
this.isLoadMore = true
|
||||||
|
this.pageNo + 1
|
||||||
|
this.queryList()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
console.log(222);
|
||||||
|
this.pageNo = 1
|
||||||
|
this.dataList = []
|
||||||
|
this.queryList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
queryList() {
|
||||||
|
let data = {
|
||||||
|
id:this.id
|
||||||
|
}
|
||||||
|
let _this = this
|
||||||
|
this.sendRequest({
|
||||||
|
url: 'xmgl/xzMaterial/queryById',
|
||||||
|
method: 'post',
|
||||||
|
data: data,
|
||||||
|
success: res => {
|
||||||
|
console.log(res);
|
||||||
|
// this.dataList =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.result)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.projectList{
|
||||||
|
min-height: 100%;
|
||||||
|
background: #f4f5fd;
|
||||||
|
|
||||||
|
.uni-input {
|
||||||
|
border-radius: 10px;
|
||||||
|
margin: 10px 10px;
|
||||||
|
background-color: #e6e7ef;
|
||||||
|
height: 35px;
|
||||||
|
line-height: 30px;
|
||||||
|
padding: 0 20px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.ukashList{
|
||||||
|
height: 163px;
|
||||||
|
background-color: #fff;
|
||||||
|
margin: 10px 10px;
|
||||||
|
border-radius: 15px;
|
||||||
|
.ukashList-what{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin: 0 15px;
|
||||||
|
padding-top: 10px;
|
||||||
|
.ukashList-look{
|
||||||
|
background-color: #5081f7;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 0 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.ukashList-time{
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-left: 15px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #b9bbc9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
129
pages/projectEnd/ukashManage/ukashManage.vue
Normal file
129
pages/projectEnd/ukashManage/ukashManage.vue
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
<template>
|
||||||
|
<view class="projectList">
|
||||||
|
<headers class="fixedheader" :themeType="true" :showBack="true">
|
||||||
|
<view class="headerName">
|
||||||
|
材料入场管理
|
||||||
|
</view>
|
||||||
|
</headers>
|
||||||
|
<input class="uni-input" name="searchName" v-model="search" placeholder="请搜索" />
|
||||||
|
<view>
|
||||||
|
<view class="ukashList" v-for="item in dataList" :key="item.id" @click="jobMaterials(item.id)">
|
||||||
|
<view class="ukashList-what">
|
||||||
|
<span style="font-size: 14px;font-weight: 700;">{{item.name}}</span>
|
||||||
|
<span class="ukashList-look">查看明细</span>
|
||||||
|
</view>
|
||||||
|
<view class="ukashList-time">入场时间: {{item.entryTime}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import headers from '../../../components/headers/headers.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
search:'',
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
isLoadMore:false,
|
||||||
|
dataList:[]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.queryList()
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
console.log(99999);
|
||||||
|
if (!this.isLoadMore) {
|
||||||
|
this.isLoadMore = true
|
||||||
|
this.pageNo + 1
|
||||||
|
this.queryList()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
console.log(222);
|
||||||
|
this.pageNo = 1
|
||||||
|
this.dataList = []
|
||||||
|
this.queryList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
queryList() {
|
||||||
|
let data = {
|
||||||
|
pageNo: this.pageNo,
|
||||||
|
pageSize: this.pageSize
|
||||||
|
}
|
||||||
|
let _this = this
|
||||||
|
this.sendRequest({
|
||||||
|
url: 'xmgl/xzMaterial/page',
|
||||||
|
method: 'post',
|
||||||
|
data: data,
|
||||||
|
success: res => {
|
||||||
|
console.log(res);
|
||||||
|
this.dataList =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.result)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
jobMaterials(id){
|
||||||
|
uni.navigateTo({
|
||||||
|
url: './materials?itemS=' + id
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.projectList{
|
||||||
|
min-height: 100%;
|
||||||
|
background: #f4f5fd;
|
||||||
|
|
||||||
|
.uni-input {
|
||||||
|
border-radius: 10px;
|
||||||
|
margin: 10px 10px;
|
||||||
|
background-color: #e6e7ef;
|
||||||
|
height: 35px;
|
||||||
|
line-height: 30px;
|
||||||
|
padding: 0 20px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.ukashList{
|
||||||
|
height: 90px;
|
||||||
|
background-color: #fff;
|
||||||
|
margin: 10px 10px;
|
||||||
|
border-radius: 15px;
|
||||||
|
.ukashList-what{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin: 0 20px;
|
||||||
|
padding-top: 10px;
|
||||||
|
.ukashList-look{
|
||||||
|
background-color: #5081f7;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 0 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.ukashList-time{
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-left: 20px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #b9bbc9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -99,7 +99,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
console.log(option,666)
|
console.log(this.listData)
|
||||||
if(option){
|
if(option){
|
||||||
this.option = option
|
this.option = option
|
||||||
}
|
}
|
||||||
@ -193,16 +193,17 @@ export default {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
data: {...that.condition,...that.option},
|
data: {...that.condition,...that.option},
|
||||||
success: res => {
|
success: res => {
|
||||||
let arr = JSON.parse(JSON.stringify(this.listData));
|
console.log(res);
|
||||||
|
// let arr = JSON.parse(JSON.stringify(this.listData));
|
||||||
if (res.result.records.length > 0) {
|
if (res.result.records.length > 0) {
|
||||||
let newArr = arr.concat(res.result.records);
|
// let newArr = arr.concat(res.result.records);
|
||||||
if (res.result.records.length < 10) {
|
if (res.result.records.length < 10) {
|
||||||
that.teach = false;
|
that.teach = false;
|
||||||
} else {
|
} else {
|
||||||
that.teach = true;
|
that.teach = true;
|
||||||
}
|
}
|
||||||
that.listData = newArr;
|
that.listData = res.result.records;
|
||||||
that.numberTasks = newArr.length
|
that.numberTasks = res.result.records.length
|
||||||
console.log('进度数据', that.listData)
|
console.log('进度数据', that.listData)
|
||||||
} else {
|
} else {
|
||||||
that.teach = false;
|
that.teach = false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user