宁夏预报废提交
This commit is contained in:
parent
3803a53b2e
commit
c2027920d5
|
|
@ -170,7 +170,7 @@ class HttpConfig {
|
||||||
submitPreExam: '/scrap/forecastWasteAudit', //提交审核
|
submitPreExam: '/scrap/forecastWasteAudit', //提交审核
|
||||||
},
|
},
|
||||||
preCrashList: {
|
preCrashList: {
|
||||||
fetchPreSubList: '/scrap/getScrapTaskListApp', // 获取预报废提交列表
|
fetchPreSubList: '/scrap/getScrapTaskList', // 获取预报废提交列表
|
||||||
fetchDeptTree: '/user/deptTree', // 获取部门树状结构
|
fetchDeptTree: '/user/deptTree', // 获取部门树状结构
|
||||||
submitCrashTask: '/scrap/submitScrapTask', // 预报废列表提交报废
|
submitCrashTask: '/scrap/submitScrapTask', // 预报废列表提交报废
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -514,6 +514,13 @@
|
||||||
"navigationBarTitleText": "综合服务中心审核详情"
|
"navigationBarTitleText": "综合服务中心审核详情"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "pages/IOTBinding/IOTBinding",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText" : "IOT设备绑定"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,108 @@
|
||||||
|
<template>
|
||||||
|
<view class="page">
|
||||||
|
<uni-forms ref="IOTForm" :modelValue="IOTFormData" :rules="IOTRules">
|
||||||
|
<uni-forms-item name="IOTCode" label="IOT编码">
|
||||||
|
<uni-easyinput v-model="IOTFormData.IOTCode"></uni-easyinput>
|
||||||
|
<h4 @click="scanIOT">扫一扫</h4>
|
||||||
|
</uni-forms-item>
|
||||||
|
<uni-forms-item name="deviceCode" label="机具编码">
|
||||||
|
<uni-easyinput v-model="IOTFormData.deviceCode"></uni-easyinput>
|
||||||
|
<h4 @click="scanDevice">扫一扫</h4>
|
||||||
|
</uni-forms-item>
|
||||||
|
<button class="submit-btn" @click="confirmBinding">确认绑定</button>
|
||||||
|
</uni-forms>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
IOTFormData: {
|
||||||
|
IOTCode: '',
|
||||||
|
deviceCode: ''
|
||||||
|
},
|
||||||
|
IOTRules: {
|
||||||
|
IOTCode: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请输入IOT设备编码!'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
deviceCode: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请输入机具装备编码!'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
scanIOT() {
|
||||||
|
uni.scanCode({
|
||||||
|
success: (res) => {
|
||||||
|
console.log(res.result, 'iot')
|
||||||
|
this.IOTFormData.IOTCode = res.result
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
scanDevice() {
|
||||||
|
uni.scanCode({
|
||||||
|
success: (res) => {
|
||||||
|
console.log(res.result, 'device')
|
||||||
|
this.IOTFormData.deviceCode = res.result
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
confirmBinding() {
|
||||||
|
this.$refs.IOTForm.validate().then(formData => {
|
||||||
|
console.log(formData)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
.page{
|
||||||
|
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 10vw 5vw;
|
||||||
|
|
||||||
|
.uni-forms-item__content[data-v-61dfc0d0] {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4{
|
||||||
|
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: normal;
|
||||||
|
margin-left: 2vw;
|
||||||
|
color: #007CCA;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn{
|
||||||
|
width: 60%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
//padding: 5rpx 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #169BD5;
|
||||||
|
color: #fff;
|
||||||
|
margin: 10vh auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
style="background-color: #09dcfc;"
|
style="background-color: #09dcfc;"
|
||||||
v-show="pre.taskStatus == '58'"
|
v-show="pre.taskStatus == '58' || pre.taskStatus == '59'"
|
||||||
@click="seeListExamDetail(pre.scrapAuditorSetList)"
|
@click="seeListExamDetail(pre.scrapAuditorSetList)"
|
||||||
>
|
>
|
||||||
<uni-icons style="color: #fff;" type="chat"></uni-icons>
|
<uni-icons style="color: #fff;" type="chat"></uni-icons>
|
||||||
|
|
@ -228,6 +228,9 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageTotal: 0,
|
||||||
showLoading: false,
|
showLoading: false,
|
||||||
allChecked: false,
|
allChecked: false,
|
||||||
preCrashList: [],
|
preCrashList: [],
|
||||||
|
|
@ -240,19 +243,23 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
searchKeyword () {
|
searchKeyword () {
|
||||||
this.getSubList(this.subIpt)
|
this.preCrashList = []
|
||||||
|
this.getSubList()
|
||||||
},
|
},
|
||||||
getSubList (keyword) {
|
getSubList () {
|
||||||
let that = this
|
let that = this
|
||||||
that.$api.preCrashList.fetchPreSubList({
|
that.$api.preCrashList.fetchPreSubList({
|
||||||
keyword
|
pageNum: that.pageNum,
|
||||||
|
pageSize: that.pageSize,
|
||||||
|
keyword: that.subIpt
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
that.pageTotal = res.data.total
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
res.data.data.forEach(item => {
|
res.data.rows.forEach(item => {
|
||||||
item.checked = false
|
item.checked = false
|
||||||
})
|
})
|
||||||
that.preCrashList = res.data.data
|
that.preCrashList = [...that.preCrashList, ...res.data.rows]
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|
@ -432,8 +439,14 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getSubList('')
|
this.preCrashList = []
|
||||||
|
this.getSubList()
|
||||||
this.getDeptTree()
|
this.getDeptTree()
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
if (this.preCrashList.length >= this.pageTotal) return;
|
||||||
|
this.pageNum++
|
||||||
|
this.getSubList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
>
|
>
|
||||||
<!-- <view>
|
<!-- <view>
|
||||||
<checkbox-group
|
<checkbox-group
|
||||||
v-show="list.status == '0' && showBtn == '0'"
|
v-show="list.status == '0' && showBtn == '0'"
|
||||||
style="margin-right: 15rpx;"
|
style="margin-right: 15rpx;"
|
||||||
@change="checkClick(list)"
|
@change="checkClick(list)"
|
||||||
>
|
>
|
||||||
|
|
@ -38,22 +38,22 @@
|
||||||
<view>
|
<view>
|
||||||
<h4>报废图片</h4>
|
<h4>报废图片</h4>
|
||||||
<h5>
|
<h5>
|
||||||
<image
|
<image
|
||||||
v-for="(img, index) in list.fileUrl"
|
v-for="(img, index) in list.fileUrl"
|
||||||
:key="index"
|
:key="index"
|
||||||
:src="imgPrefix + img[index]"
|
:src="imgPrefix + img[index]"
|
||||||
mode=""
|
mode=""
|
||||||
></image>
|
></image>
|
||||||
</h5>
|
</h5>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
style="justify-content: right;"
|
style="justify-content: right;"
|
||||||
v-show="showBtn == '0'"
|
v-show="showBtn == '0'"
|
||||||
>
|
>
|
||||||
<view>
|
<view>
|
||||||
<uni-data-checkbox
|
<uni-data-checkbox
|
||||||
v-model="list.chooseStatus"
|
v-model="list.chooseStatus"
|
||||||
:localdata="range"
|
:localdata="range"
|
||||||
mode="tag"
|
mode="tag"
|
||||||
>
|
>
|
||||||
</uni-data-checkbox>
|
</uni-data-checkbox>
|
||||||
|
|
@ -111,7 +111,7 @@
|
||||||
<text>全选</text>
|
<text>全选</text>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view style="display: flex;">
|
<view style="display: flex;">
|
||||||
<view
|
<view
|
||||||
class="exam"
|
class="exam"
|
||||||
style="margin-right: 15rpx;"
|
style="margin-right: 15rpx;"
|
||||||
@click="clickSub"
|
@click="clickSub"
|
||||||
|
|
@ -163,13 +163,13 @@
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
res.data.data.forEach(item => {
|
res.data.rows.forEach(item => {
|
||||||
if (item.fileUrl != null) {
|
if (item.fileUrl != null) {
|
||||||
item.fileUrl = item.fileUrl.split(',')
|
item.fileUrl = item.fileUrl.split(',')
|
||||||
}
|
}
|
||||||
item.chooseStatus = ''
|
item.chooseStatus = ''
|
||||||
})
|
})
|
||||||
that.preDetailList = res.data.data
|
that.preDetailList = res.data.rows
|
||||||
console.log(that.preDetailList);
|
console.log(that.preDetailList);
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|
@ -195,13 +195,13 @@
|
||||||
name: x.label,
|
name: x.label,
|
||||||
id: x.id
|
id: x.id
|
||||||
}
|
}
|
||||||
|
|
||||||
const children = that.veri(x.children);
|
const children = that.veri(x.children);
|
||||||
|
|
||||||
if (children) {
|
if (children) {
|
||||||
model.children = children;
|
model.children = children;
|
||||||
}
|
}
|
||||||
|
|
||||||
return model;
|
return model;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
</view>
|
</view>
|
||||||
<h4 class="tit">移动办公</h4>
|
<h4 class="tit">移动办公</h4>
|
||||||
<view class="secs">
|
<view class="secs">
|
||||||
<view
|
<view
|
||||||
v-for="(part, index) in benchList"
|
v-for="(part, index) in benchList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="jumpUrl(part.url)"
|
@click="jumpUrl(part.url)"
|
||||||
|
|
@ -121,7 +121,12 @@
|
||||||
name: '试验检验审核',
|
name: '试验检验审核',
|
||||||
pic: '/static/testExam.png',
|
pic: '/static/testExam.png',
|
||||||
url: 'testExam'
|
url: 'testExam'
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
name: 'IOT设备绑定',
|
||||||
|
pic: '/static/testExam.png',
|
||||||
|
url: 'IOTBinding'
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue