This commit is contained in:
许允枞 2024-11-04 18:06:24 +08:00
parent 075b14bf22
commit a7e9e00e63
2 changed files with 446 additions and 371 deletions

View File

@ -227,6 +227,7 @@
geindex: 0,
detailData: {},
inspectionInfoId: '',
workNodeId:'',
stepInfo: {
isPass: "0"
},
@ -260,6 +261,7 @@
},
onLoad(option) {
this.inspectionInfoId = option.inspectionInfoId
this.workNodeId = option.workNodeId
},
onShow() {
@ -339,14 +341,28 @@
});
},
async submit() {
console.log('isPass',this.isPass);
console.log('geindex',this.geindex)
let status = 0
if (this.isPass == '1') {
status = 3
}else{
if (this.geindex == 1) {
status = 2
}else{
status = 1
}
}
let inspectionInfo = {
id: this.inspectionInfoId,
inspectionInfoId: this.inspectionInfoId,
isPass: this.isPass,
isRetrial: this.isRetrial,
id: this.workNodeId,
selectType: status,
remark: this.remark
}
let res = await request({
url: '/partnerOwn/partner/stopInspection',
// url: '/partnerOwn/partner/stopInspection',
url: '/system/info/controls',
method: 'post',
data: inspectionInfo
})
@ -452,10 +468,14 @@
Nnimamadewen(value, index) {
this.isPass = value
this.geindex = index
console.log('this.isPass', this.isPass)
console.log('this.geindex', this.geindex)
},
shenmowanyi(value, index) {
this.tbindex = value
this.isRetrial = value
console.log('this.tbindex', this.tbindex)
console.log('this.isRetrial', this.isRetrial)
},
closexl(e) {
this.xling = false

View File

@ -44,7 +44,7 @@
<image src="../../static/detection/teel.png" mode=""></image>
</view>
</view>
<view class="" @click="godetails(item.id)">
<view class="">
<view class="on-input">
<uni-icons type="person" color="#999999" size="16"></uni-icons>
<text>客户</text>
@ -66,9 +66,10 @@
<text>{{ item.carNum }}</text>
</view>
<view class="bottom-di">
<text>实付金额</text>
<text class="ju">{{item.realPayMoney/100}}</text>
<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>
</view>
</view>
</view>
@ -89,6 +90,7 @@
import config from '@/config'
import request from '../../utils/request';
import tabBar from '../../components/staffTabBer/tabBar.vue'
export default {
data() {
return {
@ -156,7 +158,7 @@
method: 'get',
params: {
partnerId: this.partnerId,
status:this.tapindex,
status: this.tapindex + 1,
carNum: this.carNum,
pageSize: this.pageSize,
pageNum: this.pageNum,
@ -176,10 +178,29 @@
getfan() {
uni.navigateBack()
},
godetails(inspectionInfoId){
godetails(item) {
console.log("111");
uni.navigateTo({
url:"/pages/index/orderdetails?inspectionInfoId="+inspectionInfoId
url: "/pages/index/orderdetails?inspectionInfoId=" + item.id +"&workNodeId=" + item.workNodeId
})
},
orderTaking(data){
request({
url:'/system/info/orderTaking',
method:'post',
params:{
inspectionId:data.id,
workNodeId:data.workNodeId
}
}).then(res=>{
if(res.code == 200){
uni.showToast({
title:'接单成功',
icon:'none'
})
this.tapindex = 1
this.getList()
}
})
},
gogogo() {
@ -212,11 +233,13 @@
height: 115px;
box-sizing: border-box;
padding: 10px;
image {
width: 100%;
height: 100%;
}
}
.top-heder {
width: 100%;
height: 46px;
@ -227,9 +250,11 @@
box-sizing: border-box;
padding: 5px 15px;
}
.t-left {
width: 10%;
}
.t-input {
width: 75%;
height: 36px;
@ -241,6 +266,7 @@
align-items: center;
}
.top-ail {
width: 100%;
box-sizing: border-box;
@ -253,6 +279,7 @@
background-color: #F4F4F4;
height: calc(100vh);
}
.tap {
width: 100%;
height: 44px;
@ -261,10 +288,12 @@
align-items: center;
justify-content: space-between;
}
.tap-box {
width: 50%;
}
.xhuihui {
width: 100%;
text-align: center;
@ -273,6 +302,7 @@
font-weight: 400;
color: #666666;
}
.gang {
width: 24px;
height: 4px;
@ -280,11 +310,13 @@
border-radius: 4px;
margin: 2px auto;
}
.xzhei {
font-weight: bold !important;
color: #333333 !important;
}
.m-box {
position: relative;
background: #FFFFFF;
@ -294,6 +326,7 @@
margin: 10px auto;
}
.m-top {
width: 100%;
box-sizing: border-box;
@ -303,32 +336,38 @@
align-items: center;
justify-content: space-between;
}
.top-left {
}
.top-right {
z-index: 9999;
width: 33px;
height: 33px;
border-radius: 50%;
overflow: hidden;
image {
width: 100%;
height: 100%;
}
}
.dhei {
font-size: 16px;
font-weight: bold;
color: #333333;
margin-bottom: 5px;
}
.xhui {
font-size: 15px;
font-weight: 400;
color: #999999;
}
.on-input {
width: 100%;
display: flex;
@ -341,17 +380,32 @@
margin-top: 10px;
// justify-content: space-between;
}
.bottom-di {
padding-top: 10px;
box-sizing: border-box;
border-top:1px solid #EEEEEE;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.button-container {
display: flex;
justify-content: space-between;
width: 100%;
}
.button {
flex: 1;
margin: 0 10px;
}
.ju {
font-size: 24px;
font-weight: 600;
color: #FF571A;
}
.lanniu {
width: 90%;
position: fixed;
@ -368,6 +422,7 @@
left: 50%;
z-index: 9999999999999999999999999999999999999999999999999999999;
}
.csz {
font-size: 20px;
font-weight: bold;