7.2问题修改
This commit is contained in:
parent
66f3e29764
commit
68b3e62df4
15
apis/http.js
15
apis/http.js
|
|
@ -4,25 +4,25 @@ class HttpConfig {
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// baseUrl = "http://112.29.103.165:21624"
|
// baseUrl = "http://112.29.103.165:21624"
|
||||||
baseUrl = "http://192.168.0.14:21624"
|
// baseUrl = "http://192.168.0.14:21624"
|
||||||
// baseUrl = "http://112.29.103.165:21626"
|
// baseUrl = "http://112.29.103.165:21626"
|
||||||
// baseUrl = "http://172.20.10.3:8080"
|
// baseUrl = "http://172.20.10.3:8080"
|
||||||
// baseUrl = "http://10.40.92.8:8080"
|
// baseUrl = "http://10.40.92.8:8080"
|
||||||
// baseUrl = "http://10.40.92.52:28080"
|
// baseUrl = "http://10.40.92.52:28080"
|
||||||
// baseUrl = "http://10.40.92.78:28080"
|
// baseUrl = "http://10.40.92.78:28080"
|
||||||
// baseUrl = "http://192.168.2.122:28080"
|
baseUrl = "http://192.168.2.122:28080"
|
||||||
// baseUrl = "https://z.csgmall.com.cn/gl"
|
// baseUrl = "https://z.csgmall.com.cn/gl"
|
||||||
// baseUrl = "http://10.40.92.141:28080"
|
// baseUrl = "http://10.40.92.141:28080"
|
||||||
// #endif
|
// #endif
|
||||||
// 基地址
|
// 基地址
|
||||||
authPath = `${this.baseUrl}/dev-api/auth`
|
/* authPath = `${this.baseUrl}/dev-api/auth`
|
||||||
systemPath = `${this.baseUrl}/dev-api/system`
|
systemPath = `${this.baseUrl}/dev-api/system`
|
||||||
basePath = `${this.baseUrl}/dev-api/base`
|
basePath = `${this.baseUrl}/dev-api/base`
|
||||||
materialPath = `${this.baseUrl}/dev-api/material`
|
materialPath = `${this.baseUrl}/dev-api/material` */
|
||||||
/* authPath = `${this.baseUrl}/auth`
|
authPath = `${this.baseUrl}/auth`
|
||||||
systemPath = `${this.baseUrl}/system`
|
systemPath = `${this.baseUrl}/system`
|
||||||
basePath = `${this.baseUrl}/base`
|
basePath = `${this.baseUrl}/base`
|
||||||
materialPath = `${this.baseUrl}/material` */
|
materialPath = `${this.baseUrl}/material`
|
||||||
// 短链
|
// 短链
|
||||||
serviceUrl = {
|
serviceUrl = {
|
||||||
login: {
|
login: {
|
||||||
|
|
@ -127,7 +127,8 @@ class HttpConfig {
|
||||||
crashExam: {
|
crashExam: {
|
||||||
crashExamList: '/scrap/getScrapTaskList',
|
crashExamList: '/scrap/getScrapTaskList',
|
||||||
crashExamDetails: '/scrap/getScrapAuditList',
|
crashExamDetails: '/scrap/getScrapAuditList',
|
||||||
crashExamAudit: '/scrap/audit',
|
// crashExamAudit: '/scrap/audit',
|
||||||
|
crashExamAudit: '/scrap/scrapTaskReview',
|
||||||
},
|
},
|
||||||
//试验检验接口
|
//试验检验接口
|
||||||
testExam: {
|
testExam: {
|
||||||
|
|
|
||||||
|
|
@ -499,6 +499,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/serviceCenterExam/serviceCenterExam",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText": "综合服务中心审核"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
"color": "#2c2c2c",
|
"color": "#2c2c2c",
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,13 @@
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<view class="fetch-upper">
|
<view class="fetch-upper">
|
||||||
<checkbox-group
|
<!-- <checkbox-group
|
||||||
v-show="fetch.taskStatus == 58"
|
v-show="fetch.taskStatus == 58"
|
||||||
style="margin-right: 15rpx;"
|
style="margin-right: 15rpx;"
|
||||||
@change="checkClick(fetch)"
|
@change="checkClick(fetch)"
|
||||||
>
|
>
|
||||||
<checkbox :checked="fetch.checked" />
|
<checkbox :checked="fetch.checked" />
|
||||||
</checkbox-group>
|
</checkbox-group> -->
|
||||||
<view class="upper-lef">
|
<view class="upper-lef">
|
||||||
{{ fetch.createBy == null ? '' : fetch.createBy.slice(0, 1) }}
|
{{ fetch.createBy == null ? '' : fetch.createBy.slice(0, 1) }}
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -51,9 +51,17 @@
|
||||||
<uni-icons style="color: #fff;" type="eye"></uni-icons>
|
<uni-icons style="color: #fff;" type="eye"></uni-icons>
|
||||||
查看
|
查看
|
||||||
</view>
|
</view>
|
||||||
|
<view
|
||||||
|
style="background-color: #09dcfc;"
|
||||||
|
v-show="fetch.taskStatus == '58'"
|
||||||
|
@click="seeListExamDetail(fetch.scrapAuditorSetList)"
|
||||||
|
>
|
||||||
|
<uni-icons style="color: #fff;" type="chat"></uni-icons>
|
||||||
|
审批详情
|
||||||
|
</view>
|
||||||
<view
|
<view
|
||||||
style="background-color: #FCA30D;"
|
style="background-color: #FCA30D;"
|
||||||
v-show="fetch.taskStatus == 58"
|
v-show="fetch.taskStatus == 58 && fetch.already != '0' && fetch.ableExam"
|
||||||
@click="seeDetail(fetch.taskId, fetch.taskStatus, 1)"
|
@click="seeDetail(fetch.taskId, fetch.taskStatus, 1)"
|
||||||
>
|
>
|
||||||
<uni-icons style="color: #fff;" type="auth"></uni-icons>
|
<uni-icons style="color: #fff;" type="auth"></uni-icons>
|
||||||
|
|
@ -61,12 +69,13 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="sticky-area">
|
<view class="sticky-area">
|
||||||
<image src="/static/passed.png" v-show="fetch.taskStatus == 59" mode=""></image>
|
<h4
|
||||||
<image src="/static/noPass.png" v-show="fetch.taskStatus == 61" mode=""></image>
|
>
|
||||||
<image src="/static/noExam.png" v-show="fetch.taskStatus == 58" mode=""></image>
|
{{ fetch.taskStatusName }}
|
||||||
|
</h4>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btm-sticky">
|
<!-- <view class="btm-sticky">
|
||||||
<view class="checked">
|
<view class="checked">
|
||||||
<checkbox-group @tap="checkAll" style="margin-right: 15rpx;">
|
<checkbox-group @tap="checkAll" style="margin-right: 15rpx;">
|
||||||
<checkbox :checked="allChecked" />
|
<checkbox :checked="allChecked" />
|
||||||
|
|
@ -79,7 +88,7 @@
|
||||||
>
|
>
|
||||||
审核
|
审核
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<uni-popup
|
<uni-popup
|
||||||
ref="popup"
|
ref="popup"
|
||||||
type="center"
|
type="center"
|
||||||
|
|
@ -116,6 +125,68 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</uni-popup>
|
</uni-popup>
|
||||||
|
<uni-popup
|
||||||
|
ref="popup2"
|
||||||
|
type="center"
|
||||||
|
:mask-click="false"
|
||||||
|
>
|
||||||
|
<view class="popup2">
|
||||||
|
<view class="pop-top">
|
||||||
|
<h4>审批详情</h4>
|
||||||
|
<uni-icons
|
||||||
|
style="color: #AAAAAA; font-weight: bold;"
|
||||||
|
type="closeempty"
|
||||||
|
@click="closePopup2"
|
||||||
|
>
|
||||||
|
</uni-icons>
|
||||||
|
</view>
|
||||||
|
<view class="select-area">
|
||||||
|
<!-- <view class="area-top">
|
||||||
|
<span>审批部门</span>
|
||||||
|
<span>审批状态</span>
|
||||||
|
<span>审批意见</span>
|
||||||
|
</view> -->
|
||||||
|
<uni-table ref="table" border stripe emptyText="暂无更多数据">
|
||||||
|
<uni-tr>
|
||||||
|
<uni-th align="center">审批部门</uni-th>
|
||||||
|
<uni-th align="center" width="150">审批状态</uni-th>
|
||||||
|
<uni-th align="center">审批意见</uni-th>
|
||||||
|
</uni-tr>
|
||||||
|
<uni-tr
|
||||||
|
v-for="(dept, index) in examDetailList"
|
||||||
|
:key="dept.id"
|
||||||
|
>
|
||||||
|
<uni-td align="center">
|
||||||
|
{{ dept.deptName }}
|
||||||
|
</uni-td>
|
||||||
|
<uni-td align="center">
|
||||||
|
<view
|
||||||
|
:class="[
|
||||||
|
{ 'orange': dept.status == '0' },
|
||||||
|
{ 'green': dept.status == '1' },
|
||||||
|
{ 'red': dept.status == '2' }
|
||||||
|
]"
|
||||||
|
>
|
||||||
|
{{ dept.mark }}
|
||||||
|
</view>
|
||||||
|
</uni-td>
|
||||||
|
<uni-td align="center">
|
||||||
|
{{ dept.reasonRejection == null ? '--' : dept.reasonRejection }}
|
||||||
|
</uni-td>
|
||||||
|
</uni-tr>
|
||||||
|
</uni-table>
|
||||||
|
<!-- <view
|
||||||
|
class="single-dept"
|
||||||
|
v-for="(dept, index) in examDetailList"
|
||||||
|
:key="dept.id"
|
||||||
|
>
|
||||||
|
<span>{{ dept.deptName }}</span>
|
||||||
|
<span>{{ dept.mark }}</span>
|
||||||
|
<span>{{ dept.reasonRejection == null ? '--' : dept.reasonRejection }}</span>
|
||||||
|
</view> -->
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
<u-loading-page :loading="showLoading" color="#000" loading-text="提交中,请稍后..."></u-loading-page>
|
<u-loading-page :loading="showLoading" color="#000" loading-text="提交中,请稍后..."></u-loading-page>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -150,7 +221,8 @@
|
||||||
taskIdList: [],
|
taskIdList: [],
|
||||||
subArr: [],
|
subArr: [],
|
||||||
subObj: {},
|
subObj: {},
|
||||||
auditList: []
|
auditList: [],
|
||||||
|
examDetailList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -159,6 +231,28 @@
|
||||||
url: `/pages/crashExam/crashExamDetails?taskId=${taskId}&taskStatus=${taskStatus}&able=${able}`
|
url: `/pages/crashExam/crashExamDetails?taskId=${taskId}&taskStatus=${taskStatus}&able=${able}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
seeListExamDetail (examList) {
|
||||||
|
console.log(examList);
|
||||||
|
examList.forEach(item => {
|
||||||
|
switch (item.status) {
|
||||||
|
case '0':
|
||||||
|
item.mark = '待审批'
|
||||||
|
break;
|
||||||
|
case '1':
|
||||||
|
item.mark = '通过'
|
||||||
|
break;
|
||||||
|
case '2':
|
||||||
|
item.mark = '已驳回'
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.examDetailList = examList
|
||||||
|
this.$refs.popup2.open()
|
||||||
|
/* let transList = QS.stringify(examList)
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/preCrashDeptList/preCrashDeptList?list=${transList}`
|
||||||
|
}) */
|
||||||
|
},
|
||||||
checkAll() {
|
checkAll() {
|
||||||
this.allChecked = !this.allChecked
|
this.allChecked = !this.allChecked
|
||||||
if (this.allChecked) {
|
if (this.allChecked) {
|
||||||
|
|
@ -263,6 +357,9 @@
|
||||||
closePopup () {
|
closePopup () {
|
||||||
this.$refs.popup.close()
|
this.$refs.popup.close()
|
||||||
},
|
},
|
||||||
|
closePopup2 () {
|
||||||
|
this.$refs.popup2.close()
|
||||||
|
},
|
||||||
modalConfirm () {
|
modalConfirm () {
|
||||||
let that = this
|
let that = this
|
||||||
that.subObj = {
|
that.subObj = {
|
||||||
|
|
@ -331,12 +428,20 @@
|
||||||
that.$api.crashExam.crashExamList().then(res => {
|
that.$api.crashExam.crashExamList().then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.data.total != 0) {
|
if (res.data.total != 0) {
|
||||||
for (let i = 0; i < res.data.rows.length; i++) {
|
res.data.rows.forEach(item => {
|
||||||
if (res.data.rows[i].taskStatus == 58) {
|
item.ableExam = true
|
||||||
res.data.rows[i].checked = false
|
item.scrapAuditorSetList.forEach(roleList => {
|
||||||
|
if (roleList.deptId == uni.getStorageSync('userInfo').sysUser.deptId) {
|
||||||
|
if (roleList.status != '0') {
|
||||||
|
item.already = '0'
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
item.ableExam = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
that.fetchMaterialList = res.data.rows
|
that.fetchMaterialList = res.data.rows
|
||||||
|
console.log(that.fetchMaterialList);
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|
@ -441,13 +546,23 @@
|
||||||
}
|
}
|
||||||
.sticky-area{
|
.sticky-area{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 20rpx;
|
||||||
right: 0;
|
right: 20rpx;
|
||||||
width: 11vh;
|
/* width: 11vh;
|
||||||
height: 10vh;
|
height: 10vh;
|
||||||
image{
|
image{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
} */
|
||||||
|
h4{
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 8rpx 20rpx;
|
||||||
|
border-radius: 15rpx;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: normal;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #3788FF;
|
||||||
|
color: #3788FF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -507,4 +622,41 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.popup2{
|
||||||
|
width: 80vw;
|
||||||
|
height: 80vh;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 15rpx;
|
||||||
|
overflow-y: auto;
|
||||||
|
background: linear-gradient(#D9E7FE, #fff, #fff, #fff);
|
||||||
|
.pop-top{
|
||||||
|
width: 100%;
|
||||||
|
height: 5vh;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 25rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.select-area{
|
||||||
|
width: 85%;
|
||||||
|
margin: 40rpx auto;
|
||||||
|
font-size: 14px;
|
||||||
|
.red, .orange, .green{
|
||||||
|
width: 50%;
|
||||||
|
margin-left: 25%;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
}
|
||||||
|
.red{
|
||||||
|
background-color: #FF4141;
|
||||||
|
}
|
||||||
|
.orange{
|
||||||
|
background-color: #FCA20D;
|
||||||
|
}
|
||||||
|
.green{
|
||||||
|
background-color: #1BD30B;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,12 @@
|
||||||
v-for="(fetch, index) in fetchList"
|
v-for="(fetch, index) in fetchList"
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<checkbox-group
|
<!-- <checkbox-group
|
||||||
@change="checkClick(fetch)"
|
@change="checkClick(fetch)"
|
||||||
v-show="taskStatus == 58 && ableNum == 1 && fetch.status == '未审核'"
|
v-show="taskStatus == 58 && ableNum == 1 && fetch.status == '未审核'"
|
||||||
>
|
>
|
||||||
<checkbox :checked="fetch.checked" />
|
<checkbox :checked="fetch.checked" />
|
||||||
</checkbox-group>
|
</checkbox-group> -->
|
||||||
<view class="slots">
|
<view class="slots">
|
||||||
<view>
|
<view>
|
||||||
<span>类型名称</span>
|
<span>类型名称</span>
|
||||||
|
|
@ -55,12 +55,12 @@
|
||||||
style="background-color: #fff;"
|
style="background-color: #fff;"
|
||||||
v-show="taskStatus == 58 && ableNum == 1"
|
v-show="taskStatus == 58 && ableNum == 1"
|
||||||
>
|
>
|
||||||
<view class="checked">
|
<!-- <view class="checked">
|
||||||
<checkbox-group @tap="checkAll">
|
<checkbox-group @tap="checkAll">
|
||||||
<checkbox :checked="allChecked" />
|
<checkbox :checked="allChecked" />
|
||||||
</checkbox-group>
|
</checkbox-group>
|
||||||
<text>全选</text>
|
<text>全选</text>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="total">
|
<view class="total">
|
||||||
<view class="bill" @click="finishCart">
|
<view class="bill" @click="finishCart">
|
||||||
<text>审核</text>
|
<text>审核</text>
|
||||||
|
|
@ -103,6 +103,27 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</uni-popup>
|
</uni-popup>
|
||||||
|
<uni-popup
|
||||||
|
ref="popup1"
|
||||||
|
type="center"
|
||||||
|
:mask-click="false"
|
||||||
|
>
|
||||||
|
<view class="popup1">
|
||||||
|
<view class="pop-top">
|
||||||
|
<h4>驳回原因</h4>
|
||||||
|
<uni-icons
|
||||||
|
style="color: #AAAAAA; font-weight: bold;"
|
||||||
|
type="closeempty"
|
||||||
|
@click="closePopup1"
|
||||||
|
>
|
||||||
|
</uni-icons>
|
||||||
|
</view>
|
||||||
|
<view class="select-area">
|
||||||
|
<uni-easyinput v-model="rejectReason" maxlength="50" placeholder="请填写驳回原因"></uni-easyinput>
|
||||||
|
<view class="btn" @click="confirmReject">驳回</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
<u-loading-page :loading="showLoading" color="#000" loading-text="提交中,请稍后..."></u-loading-page>
|
<u-loading-page :loading="showLoading" color="#000" loading-text="提交中,请稍后..."></u-loading-page>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -122,7 +143,8 @@
|
||||||
taskStatus: '',
|
taskStatus: '',
|
||||||
status: '',
|
status: '',
|
||||||
ableNum: '',
|
ableNum: '',
|
||||||
subObj: {}
|
subObj: {},
|
||||||
|
rejectReason: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -169,15 +191,9 @@
|
||||||
finishCart () {
|
finishCart () {
|
||||||
let that = this
|
let that = this
|
||||||
that.taskIdList = []
|
that.taskIdList = []
|
||||||
that.auditDetailList = that.fetchList.filter((item) => {
|
that.auditDetailList = that.fetchList/* .filter((item) => {
|
||||||
return item.checked == true
|
return item.checked == true
|
||||||
})
|
}) */
|
||||||
if (that.auditDetailList.length == 0) {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '未选中审核项!'
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
that.openPopup()
|
that.openPopup()
|
||||||
/* uni.showModal({
|
/* uni.showModal({
|
||||||
title: '确认审核',
|
title: '确认审核',
|
||||||
|
|
@ -204,11 +220,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}) */
|
}) */
|
||||||
}
|
|
||||||
},
|
},
|
||||||
subInStore (obj) {
|
subInStore (obj) {
|
||||||
let that = this
|
let that = this
|
||||||
that.showLoading = true
|
that.showLoading = true
|
||||||
|
that.closePopup()
|
||||||
// 通过审核或驳回
|
// 通过审核或驳回
|
||||||
that.$api.crashExam.crashExamAudit(obj).then(res => {
|
that.$api.crashExam.crashExamAudit(obj).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
@ -218,7 +235,6 @@
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: res.data.msg,
|
title: res.data.msg,
|
||||||
success: () => {
|
success: () => {
|
||||||
that.closePopup()
|
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -237,28 +253,53 @@
|
||||||
closePopup () {
|
closePopup () {
|
||||||
this.$refs.popup.close()
|
this.$refs.popup.close()
|
||||||
},
|
},
|
||||||
|
closePopup1 () {
|
||||||
|
this.$refs.popup1.close()
|
||||||
|
},
|
||||||
modalConfirm () {
|
modalConfirm () {
|
||||||
let that = this
|
let that = this
|
||||||
that.taskIdList.push(that.taskId)
|
console.log(that.auditDetailList);
|
||||||
|
// that.taskIdList.push(that.taskId)
|
||||||
that.subObj = {
|
that.subObj = {
|
||||||
checkResult: '通过',
|
deptId: uni.getStorageSync('userInfo').sysUser.deptId,
|
||||||
taskIdList: that.taskIdList,
|
status: '1',
|
||||||
scrapDetailList: that.auditDetailList
|
taskId: that.taskId,
|
||||||
|
userId: uni.getStorageSync('userInfo').userid
|
||||||
}
|
}
|
||||||
console.log(that.subObj);
|
console.log(that.subObj);
|
||||||
that.subInStore(that.subObj)
|
that.subInStore(that.subObj)
|
||||||
},
|
},
|
||||||
modalReject () {
|
modalReject () {
|
||||||
let that = this
|
let that = this
|
||||||
that.taskIdList.push(that.taskId)
|
// that.taskIdList.push(that.taskId)
|
||||||
that.subObj = {
|
/* that.subObj = {
|
||||||
checkResult: '驳回',
|
checkResult: '驳回',
|
||||||
taskIdList: that.taskIdList,
|
taskIdList: that.taskIdList,
|
||||||
auditDetailList: that.auditDetailList
|
auditDetailList: that.auditDetailList
|
||||||
}
|
}
|
||||||
|
console.log(that.subObj); */
|
||||||
|
// that.subInStore(that.subObj)
|
||||||
|
that.$refs.popup1.open()
|
||||||
|
},
|
||||||
|
confirmReject () {
|
||||||
|
let that = this
|
||||||
|
if (that.rejectReason == '') {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '请填写驳回原因!'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
that.subObj = {
|
||||||
|
deptId: uni.getStorageSync('userInfo').sysUser.deptId,
|
||||||
|
status: '2',
|
||||||
|
reasonRejection: that.rejectReason,
|
||||||
|
taskId: that.taskId,
|
||||||
|
userId: uni.getStorageSync('userInfo').userid
|
||||||
|
}
|
||||||
console.log(that.subObj);
|
console.log(that.subObj);
|
||||||
that.subInStore(that.subObj)
|
that.subInStore(that.subObj)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onLoad(params) {
|
onLoad(params) {
|
||||||
let that = this
|
let that = this
|
||||||
|
|
@ -288,9 +329,9 @@
|
||||||
res.data.rows[i].status = '驳回'
|
res.data.rows[i].status = '驳回'
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (res.data.rows[i].status == '未审核') {
|
/* if (res.data.rows[i].status == '未审核') {
|
||||||
res.data.rows[i].checked = false
|
res.data.rows[i].checked = false
|
||||||
}
|
} */
|
||||||
}
|
}
|
||||||
that.fetchList = res.data.rows
|
that.fetchList = res.data.rows
|
||||||
console.log(that.fetchList);
|
console.log(that.fetchList);
|
||||||
|
|
@ -359,7 +400,7 @@
|
||||||
.buy {
|
.buy {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: right;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
@ -446,4 +487,39 @@
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.popup1{
|
||||||
|
width: 80vw;
|
||||||
|
height: 20vh;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 15rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
background: linear-gradient(#D9E7FE, #fff, #fff, #fff);
|
||||||
|
.pop-top{
|
||||||
|
width: 100%;
|
||||||
|
height: 5vh;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 25rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.select-area{
|
||||||
|
width: 85%;
|
||||||
|
margin: 40rpx auto;
|
||||||
|
.btn{
|
||||||
|
width: 30%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 10rpx 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #3788FF;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 14px;
|
||||||
|
border-radius: 15rpx;
|
||||||
|
margin: 20rpx auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@
|
||||||
<view
|
<view
|
||||||
style="background-color: #FCA30D;"
|
style="background-color: #FCA30D;"
|
||||||
v-show="pre.taskStatus == '61'"
|
v-show="pre.taskStatus == '61'"
|
||||||
|
@click="editListDetail(pre.taskId)"
|
||||||
>
|
>
|
||||||
<uni-icons style="color: #fff;" type="auth"></uni-icons>
|
<uni-icons style="color: #fff;" type="auth"></uni-icons>
|
||||||
编辑
|
编辑
|
||||||
|
|
@ -297,6 +298,11 @@
|
||||||
url: `/pages/preCrashListDetail/preCrashListDetail?taskId=${taskId}`
|
url: `/pages/preCrashListDetail/preCrashListDetail?taskId=${taskId}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
editListDetail (taskId) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/preCrashListDetail/preCrashListDetail?taskId=${taskId}&showBtn=0`
|
||||||
|
})
|
||||||
|
},
|
||||||
seeListExamDetail (examList) {
|
seeListExamDetail (examList) {
|
||||||
console.log(examList);
|
console.log(examList);
|
||||||
examList.forEach(item => {
|
examList.forEach(item => {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
v-for="(list, index) in preDetailList"
|
v-for="(list, index) in preDetailList"
|
||||||
:key="list.id"
|
:key="list.id"
|
||||||
>
|
>
|
||||||
<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;"
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
>
|
>
|
||||||
<checkbox :checked="list.checked" />
|
<checkbox :checked="list.checked" />
|
||||||
</checkbox-group>
|
</checkbox-group>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="info-cont">
|
<view class="info-cont">
|
||||||
<view>
|
<view>
|
||||||
<h4>设备类型</h4>
|
<h4>设备类型</h4>
|
||||||
|
|
@ -46,6 +46,19 @@
|
||||||
></image>
|
></image>
|
||||||
</h5>
|
</h5>
|
||||||
</view>
|
</view>
|
||||||
|
<view
|
||||||
|
style="justify-content: right;"
|
||||||
|
v-show="showBtn == '0'"
|
||||||
|
>
|
||||||
|
<view>
|
||||||
|
<uni-data-checkbox
|
||||||
|
v-model="list.chooseStatus"
|
||||||
|
:localdata="range"
|
||||||
|
mode="tag"
|
||||||
|
>
|
||||||
|
</uni-data-checkbox>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<!-- <h3 v-show="list.status == '0' && showBtn == '0'">
|
<!-- <h3 v-show="list.status == '0' && showBtn == '0'">
|
||||||
<text
|
<text
|
||||||
@click="togglePass(list)"
|
@click="togglePass(list)"
|
||||||
|
|
@ -90,6 +103,30 @@
|
||||||
:pathMode="true"
|
:pathMode="true"
|
||||||
@selectChange="treeChange"
|
@selectChange="treeChange"
|
||||||
></custom-tree-select> -->
|
></custom-tree-select> -->
|
||||||
|
<view class="btm-sticky" v-show="showBtn == '0'">
|
||||||
|
<!-- <view class="checked">
|
||||||
|
<checkbox-group @tap="checkAll" style="margin-right: 15rpx;">
|
||||||
|
<checkbox :checked="allChecked" />
|
||||||
|
</checkbox-group>
|
||||||
|
<text>全选</text>
|
||||||
|
</view> -->
|
||||||
|
<view style="display: flex;">
|
||||||
|
<view
|
||||||
|
class="exam"
|
||||||
|
style="margin-right: 15rpx;"
|
||||||
|
@click="clickSub"
|
||||||
|
>
|
||||||
|
提交
|
||||||
|
</view>
|
||||||
|
<!-- <view
|
||||||
|
class="exam"
|
||||||
|
style="background-color: #fff; color: #000; border: 1px solid #EBEBEB;"
|
||||||
|
@click="clickReject"
|
||||||
|
>
|
||||||
|
驳回
|
||||||
|
</view> -->
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -102,7 +139,12 @@
|
||||||
taskId: '',
|
taskId: '',
|
||||||
preDetailList: [],
|
preDetailList: [],
|
||||||
deptList: [],
|
deptList: [],
|
||||||
deptArr: []
|
deptArr: [],
|
||||||
|
range: [
|
||||||
|
{ value: '0', text: '报废' },
|
||||||
|
{ value: '1', text: '合格' },
|
||||||
|
{ value: '2', text: '维修' }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -122,7 +164,7 @@
|
||||||
if (item.fileUrl != null) {
|
if (item.fileUrl != null) {
|
||||||
item.fileUrl = item.fileUrl.split(',')
|
item.fileUrl = item.fileUrl.split(',')
|
||||||
}
|
}
|
||||||
item.checked = false
|
item.chooseStatus = ''
|
||||||
})
|
})
|
||||||
that.preDetailList = res.data.data
|
that.preDetailList = res.data.data
|
||||||
console.log(that.preDetailList);
|
console.log(that.preDetailList);
|
||||||
|
|
@ -159,6 +201,33 @@
|
||||||
|
|
||||||
return model;
|
return model;
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
clickSub () {
|
||||||
|
let that = this
|
||||||
|
let ok = true
|
||||||
|
for (let item of that.preDetailList) {
|
||||||
|
if (item.chooseStatus == '') {
|
||||||
|
ok = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!ok) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '您有未选择状态的机具!'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.showModal({
|
||||||
|
title: '提交列表',
|
||||||
|
content: '确认提交机具列表吗?',
|
||||||
|
confirmText: '提交',
|
||||||
|
success: (res) => {
|
||||||
|
if (res.confirm) {
|
||||||
|
console.log(that.preDetailList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(params) {
|
onLoad(params) {
|
||||||
|
|
@ -188,6 +257,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
border-bottom: 1px solid #D7D7D7;
|
||||||
.info-cont{
|
.info-cont{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -253,4 +323,24 @@
|
||||||
}
|
}
|
||||||
} */
|
} */
|
||||||
}
|
}
|
||||||
|
.btm-sticky{
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 15rpx 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
justify-content: right;
|
||||||
|
align-items: center;
|
||||||
|
.exam{
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 10rpx 50rpx;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
background-color: #3788FF;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
@ -72,6 +72,11 @@
|
||||||
pic: '/static/newCheck.png',
|
pic: '/static/newCheck.png',
|
||||||
url: 'newCheck'
|
url: 'newCheck'
|
||||||
}, */
|
}, */
|
||||||
|
{
|
||||||
|
name: '综合服务中心审核',
|
||||||
|
pic: '/static/serviceCenterExam.png',
|
||||||
|
url: 'serviceCenterExam'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: '新购入库',
|
name: '新购入库',
|
||||||
pic: '/static/newInStore.png',
|
pic: '/static/newInStore.png',
|
||||||
|
|
|
||||||
|
|
@ -454,6 +454,13 @@ const router = createRouter({
|
||||||
"meta": {
|
"meta": {
|
||||||
"needAuth": "true"
|
"needAuth": "true"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "/pages/serviceCenterExam/serviceCenterExam",
|
||||||
|
"name": 'serviceCenterExam',
|
||||||
|
"meta": {
|
||||||
|
"needAuth": "true"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
Loading…
Reference in New Issue