检测
This commit is contained in:
parent
a7e9e00e63
commit
1069972658
File diff suppressed because it is too large
Load Diff
@ -26,7 +26,7 @@
|
||||
</view>
|
||||
<view class="m-box" v-for="(item,index) in infoDatas" :key="index">
|
||||
<view class="sshi" v-if="item.isPass == '0'">
|
||||
<image v-if="!item.isRetrial||item.isRetrial == 0" :src="imgurl + '/noPass.png'" mode=""></image>
|
||||
<image v-if="item.status == 1" :src="imgurl + '/noPass.png'" mode=""></image>
|
||||
<view v-else class="csz">
|
||||
<text>重审中</text>
|
||||
</view>
|
||||
|
@ -1,178 +1,193 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view style="width: 100%; height: 44px;"></view>
|
||||
<view class="top-heder">
|
||||
<view class="t-left" @click="getback()">
|
||||
<uni-icons type="left" size="18"></uni-icons>
|
||||
</view>
|
||||
<view class="t-title">
|
||||
<text>选择检测项目</text>
|
||||
</view>
|
||||
<view class="t-you"></view>
|
||||
</view>
|
||||
<view class="cont_box">
|
||||
<view class="content">
|
||||
<view style="width: 100%; height: 44px;"></view>
|
||||
<view class="top-heder">
|
||||
<view class="t-left" @click="getback()">
|
||||
<uni-icons type="left" size="18"></uni-icons>
|
||||
</view>
|
||||
<view class="t-title">
|
||||
<text>选择检测项目</text>
|
||||
</view>
|
||||
<view class="t-you"></view>
|
||||
</view>
|
||||
<view class="cont_box">
|
||||
|
||||
<view class="title_">
|
||||
可选检测项目:
|
||||
</view>
|
||||
<view class="box_">
|
||||
<view class="box_button " :class="{ 'box_button_x' :selectProject.indexOf(item)>-1 }" v-for="item in inpectionProjects" @click="clickProject(item)">{{item.projectName}}</view>
|
||||
</view>
|
||||
<view class="title_">
|
||||
可选检测项目:
|
||||
</view>
|
||||
<view class="box_">
|
||||
<view class="box_button " :class="{ 'box_button_x' :selectProject.indexOf(item)>-1 }"
|
||||
v-for="item in inpectionProjects" @click="clickProject(item)">{{ item.projectName }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="title_">
|
||||
已选检测项目:
|
||||
</view>
|
||||
<u-steps activeColor="#0D2E8D" direction="column">
|
||||
<u-steps-item :iconSize="iconSize" v-for="item in selectProject" :title="item.projectName" >
|
||||
</u-steps-item>
|
||||
<view class="title_">
|
||||
已选检测项目:
|
||||
</view>
|
||||
<u-steps activeColor="#0D2E8D" direction="column">
|
||||
<u-steps-item :iconSize="iconSize" v-for="item in selectProject" :title="item.projectName">
|
||||
</u-steps-item>
|
||||
|
||||
</u-steps>
|
||||
</u-steps>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="dlanniu" @click="sureChoose()">
|
||||
<text>确定选择</text>
|
||||
</view>
|
||||
|
||||
<view class="dlanniu" @click="sureChoose()" >
|
||||
<text>确定选择</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from '../../utils/request';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
iconSize:130,
|
||||
inpectionProjects:[],
|
||||
selectProject:[]
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getProjects()
|
||||
import request from '../../utils/request';
|
||||
|
||||
},
|
||||
methods: {
|
||||
sureChoose(){
|
||||
if(this.selectProject.length == 0){
|
||||
uni.showToast({
|
||||
title:'请选择项目!',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.$emit('selectProject', this.selectProject);
|
||||
this.getback()
|
||||
},
|
||||
getback(){
|
||||
uni.navigateBack()
|
||||
},
|
||||
async getProjects(){
|
||||
let res = await request({
|
||||
url:'/inspection/dl-inspection-project/page',
|
||||
method: 'get',
|
||||
params:{
|
||||
pageNo:1,
|
||||
pageSize:100
|
||||
}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
iconSize: 130,
|
||||
inpectionProjects: [],
|
||||
selectProject: []
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getProjects()
|
||||
|
||||
})
|
||||
this.inpectionProjects = res.data.records
|
||||
},
|
||||
clickProject(data){
|
||||
let idx = this.selectProject.indexOf(data)
|
||||
if(idx>-1){
|
||||
// 如果元素存在于数组中,则使用splice方法来删除它
|
||||
this.selectProject.splice(idx, 1);
|
||||
}else{
|
||||
this.selectProject.push(data)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
sureChoose() {
|
||||
if (this.selectProject.length == 0) {
|
||||
uni.showToast({
|
||||
title: '请选择项目!',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.selectProject.map(item => {
|
||||
item.projectId = item.id
|
||||
item.id = undefined
|
||||
})
|
||||
uni.$emit('selectProject', this.selectProject);
|
||||
this.getback()
|
||||
},
|
||||
getback() {
|
||||
uni.navigateBack()
|
||||
},
|
||||
async getProjects() {
|
||||
let res = await request({
|
||||
url: '/inspection/dl-inspection-project/page',
|
||||
method: 'get',
|
||||
params: {
|
||||
pageNo: 1,
|
||||
pageSize: 100
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
this.inpectionProjects = res.data.records
|
||||
},
|
||||
clickProject(data) {
|
||||
let idx = this.selectProject.indexOf(data)
|
||||
if (idx > -1) {
|
||||
// 如果元素存在于数组中,则使用splice方法来删除它
|
||||
this.selectProject.splice(idx, 1);
|
||||
} else {
|
||||
this.selectProject.push(data)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.cont_box{
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
}
|
||||
.title_{
|
||||
font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.box_{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.box_button_x{
|
||||
border-radius: 6px;
|
||||
border: 1px solid #0D2E8D;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 14px;
|
||||
box-sizing: border-box;
|
||||
padding: 5px 10px;
|
||||
margin-right: 5px;
|
||||
margin-bottom: 5px;
|
||||
background: #0D2E8D;
|
||||
color: #fff;
|
||||
}
|
||||
.box_button{
|
||||
border-radius: 6px;
|
||||
border: 1px solid #999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 14px;
|
||||
box-sizing: border-box;
|
||||
padding: 5px 10px;
|
||||
margin-right: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.dlanniu{
|
||||
width: 80%;
|
||||
height: 45px;
|
||||
background: linear-gradient(180deg, #3F61C0 0%, #0D2E8D 100%);
|
||||
border-radius: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 20px auto;
|
||||
color: white;
|
||||
}
|
||||
.t-you{
|
||||
height: 100%;
|
||||
width: 20%;
|
||||
}
|
||||
.content {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: calc(100vh);
|
||||
background: white;
|
||||
}
|
||||
.top-heder{
|
||||
width: 100%;
|
||||
height: 46px;
|
||||
background: white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
padding: 5px 15px;
|
||||
}
|
||||
.t-title{
|
||||
font-size: 17px;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
}
|
||||
.t-left{
|
||||
width: 10%;
|
||||
}
|
||||
.cont_box {
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.title_ {
|
||||
font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.box_ {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.box_button_x {
|
||||
border-radius: 6px;
|
||||
border: 1px solid #0D2E8D;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 14px;
|
||||
box-sizing: border-box;
|
||||
padding: 5px 10px;
|
||||
margin-right: 5px;
|
||||
margin-bottom: 5px;
|
||||
background: #0D2E8D;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.box_button {
|
||||
border-radius: 6px;
|
||||
border: 1px solid #999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 14px;
|
||||
box-sizing: border-box;
|
||||
padding: 5px 10px;
|
||||
margin-right: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.dlanniu {
|
||||
width: 80%;
|
||||
height: 45px;
|
||||
background: linear-gradient(180deg, #3F61C0 0%, #0D2E8D 100%);
|
||||
border-radius: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 20px auto;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.t-you {
|
||||
height: 100%;
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.content {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: calc(100vh);
|
||||
background: white;
|
||||
}
|
||||
|
||||
.top-heder {
|
||||
width: 100%;
|
||||
height: 46px;
|
||||
background: white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
padding: 5px 15px;
|
||||
}
|
||||
|
||||
.t-title {
|
||||
font-size: 17px;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.t-left {
|
||||
width: 10%;
|
||||
}
|
||||
</style>
|
||||
|
@ -26,7 +26,7 @@
|
||||
</view>
|
||||
<view class="m-box" v-for="(item,index) in infoDatas" :key="index">
|
||||
<view class="sshi" v-if="item.isPass == '0'">
|
||||
<image v-if="!item.isRetrial||item.isRetrial == 0" :src="imgurl + '/noPass.png'" mode=""></image>
|
||||
<image v-if="item.status == 1" :src="imgurl + '/noPass.png'" mode=""></image>
|
||||
<view v-else class="">
|
||||
<text>重审中</text>
|
||||
</view>
|
||||
@ -67,8 +67,8 @@
|
||||
</view>
|
||||
<view class="bottom-di">
|
||||
<view class="button-container">
|
||||
<u-button class="button" v-if="item.workNodeStatus === '0'" @click="orderTaking(item)">同意</u-button>
|
||||
<u-button class="button" @click="godetails(item)">查看详情</u-button>
|
||||
<u-button class="button" v-if="item.workNodeStatus === '0'" @click="orderTaking(item)" size="10">同意</u-button>
|
||||
<u-button class="button" @click="godetails(item)" size="10">查看详情</u-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -181,7 +181,7 @@ export default {
|
||||
godetails(item) {
|
||||
console.log("111");
|
||||
uni.navigateTo({
|
||||
url: "/pages/index/orderdetails?inspectionInfoId=" + item.id +"&workNodeId=" + item.workNodeId
|
||||
url: "/pages/index/orderdetails?inspectionInfoId=" + item.id +"&workNodeId=" + item.workNodeId + "&workNodeStatus=" + item.workNodeStatus
|
||||
})
|
||||
},
|
||||
orderTaking(data){
|
||||
@ -395,10 +395,13 @@ export default {
|
||||
}
|
||||
|
||||
.button {
|
||||
flex: 1;
|
||||
margin: 0 10px;
|
||||
flex: 0.5; /* 减小按钮的占比 */
|
||||
margin: 0 5px; /* 缩小两侧间距 */
|
||||
padding: 5px 10px; /* 缩小按钮内边距 */
|
||||
font-size: 0.9rem; /* 缩小字体 */
|
||||
}
|
||||
|
||||
|
||||
.ju {
|
||||
font-size: 24px;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user