2022-06-21 09:53:12 +00:00
|
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<statusNav returnColor="#c2c2c2" navBarTitle="审核工单"></statusNav>
|
|
|
|
|
<container-subgroup-two>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view slot="content" style="margin: 0 -30rpx;" class="bacf">
|
|
|
|
|
<view class="work-order-audit">
|
2022-07-25 10:26:45 +00:00
|
|
|
|
<view class="item disac">
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view class="title">工单编号:</view>
|
|
|
|
|
<input type="text" disabled class="input" :value="auditData.order_number" />
|
|
|
|
|
</view>
|
2022-07-25 10:26:45 +00:00
|
|
|
|
<view class="item disac">
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view class="title">项目名称:</view>
|
|
|
|
|
<input type="text" disabled class="input input-black" :value="auditData.project_name" />
|
|
|
|
|
</view>
|
2022-07-25 10:26:45 +00:00
|
|
|
|
<view class="item disac">
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view class="title">客户名称:</view>
|
|
|
|
|
<input type="text" disabled class="input input-black" :value="auditData.member_name" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item">
|
2022-07-25 10:26:45 +00:00
|
|
|
|
<view class="son disac">
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view class="title">结算方式:</view>
|
|
|
|
|
<input type="text" disabled class="input" :value="auditData.settlement_type" />
|
|
|
|
|
</view>
|
2022-07-25 10:26:45 +00:00
|
|
|
|
<view class="son disac">
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view class="title">支付方式:</view>
|
|
|
|
|
<input type="text" disabled class="input" :value="auditData.pay_type" />
|
|
|
|
|
</view>
|
2022-06-21 09:53:12 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view class="work-order-cost">
|
|
|
|
|
<view class="list">
|
2022-07-25 10:26:45 +00:00
|
|
|
|
<view class="item disac">
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view class="title">上门费</view>
|
|
|
|
|
<input type="text" disabled class="input" :value="auditData.artificial_price" />
|
2022-06-21 09:53:12 +00:00
|
|
|
|
</view>
|
2022-07-25 10:26:45 +00:00
|
|
|
|
<view class="item disac">
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view class="title">税金</view>
|
|
|
|
|
<input type="text" disabled class="input" :value="auditData.tax_price" />
|
|
|
|
|
</view>
|
2022-07-25 10:26:45 +00:00
|
|
|
|
<view class="item disac">
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view class="title">材料费</view>
|
|
|
|
|
<input type="text" disabled class="input" :value="auditData.material_price" />
|
|
|
|
|
</view>
|
2022-07-25 10:26:45 +00:00
|
|
|
|
<view class="item disac">
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view class="title">其他费用</view>
|
|
|
|
|
<input type="text" disabled class="input" :value="auditData.other_price" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item item-center">实际付款:<view class="title-price">¥{{auditData.pay_price}}</view></view>
|
|
|
|
|
<view class="item">
|
|
|
|
|
<view class="title">是否开票</view>
|
|
|
|
|
<view class="btns btns-invoicing">
|
|
|
|
|
<view class="input-radio">
|
|
|
|
|
<view :class="auditData.invoice_type==1?'checked btn':'btn'">
|
|
|
|
|
<image class="img" src="../../static/iocn/icon-yes.png" mode="aspectFill" ></image>
|
2022-06-21 09:53:12 +00:00
|
|
|
|
</view>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
是
|
2022-06-21 09:53:12 +00:00
|
|
|
|
</view>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<view class="input-radio">
|
|
|
|
|
<view :class="auditData.invoice_type==0?'checked btn':'btn'">
|
|
|
|
|
<image class="img" src="../../static/iocn/icon-yes.png" mode="aspectFill"></image>
|
2022-06-21 09:53:12 +00:00
|
|
|
|
</view>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
否
|
2022-06-21 09:53:12 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
</view>
|
|
|
|
|
<view class="item">
|
|
|
|
|
<view class="title">是否收款</view>
|
|
|
|
|
<view class="btns btns-collection">
|
|
|
|
|
<view class="input-radio">
|
|
|
|
|
<view :class="auditData.is_collection==1?'checked btn':'btn'">
|
|
|
|
|
<image class="img" src="../../static/iocn/icon-yes.png" mode="aspectFill" ></image>
|
2022-06-21 09:53:12 +00:00
|
|
|
|
</view>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
是
|
|
|
|
|
</view>
|
|
|
|
|
<view class="input-radio">
|
|
|
|
|
<view :class="auditData.is_collection==0?'checked btn':'btn'">
|
|
|
|
|
<image class="img" src="../../static/iocn/icon-yes.png" mode="aspectFill"></image>
|
2022-06-21 09:53:12 +00:00
|
|
|
|
</view>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
否
|
2022-06-21 09:53:12 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
</view>
|
|
|
|
|
<view class="item">
|
2022-07-25 10:26:45 +00:00
|
|
|
|
<view class="title disac">提交时间:</view>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<input type="text" disabled class="input" :value="setTime" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item item-textarea">
|
|
|
|
|
<view class="title">备注内容:</view>
|
|
|
|
|
<textarea name="msg" v-model="remarksMsg" cols="30" rows="10" placeholder="请输入备注内容"></textarea>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="form-btns">
|
|
|
|
|
<view class="btn" @tap="setFormEv(1)">审核通过</view>
|
|
|
|
|
<view class="btn" @tap="setFormEv(0)">审核不通过</view>
|
|
|
|
|
</view>
|
2022-06-21 09:53:12 +00:00
|
|
|
|
</view>
|
|
|
|
|
</container-subgroup-two>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
<!-- 底部tab -->
|
|
|
|
|
<foot-tab></foot-tab>
|
2022-06-21 09:53:12 +00:00
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import containerSubgroupTwo from '@/components/containers/container-subgroup-two.vue';
|
|
|
|
|
import statusNav from '../../components/status-nav.vue';
|
|
|
|
|
import footTabOne from "../../components/foot-tabs/foot-tab-one.vue"
|
|
|
|
|
import {
|
|
|
|
|
handleWorkOrderGet
|
|
|
|
|
} from '../../jsFile/public-api.js';
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
2022-06-22 08:16:26 +00:00
|
|
|
|
'foot-tab' :footTabOne,
|
2022-06-21 09:53:12 +00:00
|
|
|
|
statusNav,
|
|
|
|
|
containerSubgroupTwo
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2022-06-22 08:16:26 +00:00
|
|
|
|
remarksMsg:'', //备注信息
|
|
|
|
|
auditData:[], //工单展示数据
|
|
|
|
|
setTime:'', //提交时间
|
|
|
|
|
type: 0, //接口状态
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
2022-07-25 10:26:45 +00:00
|
|
|
|
|
2022-06-21 09:53:12 +00:00
|
|
|
|
},
|
|
|
|
|
onLoad(op) {
|
|
|
|
|
if (op.orderId != undefined) {
|
|
|
|
|
this.orderId = op.orderId;
|
|
|
|
|
// 调取获取工单详情事件
|
2022-06-22 08:16:26 +00:00
|
|
|
|
this.getDetail();
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2022-06-22 08:16:26 +00:00
|
|
|
|
// 获取当前时间
|
|
|
|
|
getDate() {
|
|
|
|
|
const date = new Date();
|
|
|
|
|
let year = date.getFullYear();
|
|
|
|
|
let month = date.getMonth() + 1;
|
|
|
|
|
let day = date.getDate();
|
|
|
|
|
let hour = date.getHours();
|
|
|
|
|
let minute = date.getMinutes();
|
|
|
|
|
|
|
|
|
|
month = month > 9 ? month : '0' + month;
|
|
|
|
|
day = day > 9 ? day : '0' + day;
|
|
|
|
|
this.setTime = `${year}-${month}-${day} ${hour}:${minute}`
|
|
|
|
|
},
|
|
|
|
|
// 获取工单详情
|
|
|
|
|
getDetail() {
|
2022-06-21 09:53:12 +00:00
|
|
|
|
let params = {
|
|
|
|
|
order_id: this.orderId,
|
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
this.$requst.get('/universal/api.order/audit', params).then(res => {
|
|
|
|
|
console.log('查询接口')
|
2022-06-21 09:53:12 +00:00
|
|
|
|
if (res.code) {
|
2022-06-22 08:16:26 +00:00
|
|
|
|
this.auditData = res.data;
|
|
|
|
|
this.getDate();
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2022-06-22 08:16:26 +00:00
|
|
|
|
// 提交审核结果
|
|
|
|
|
setFormEv(audit) {
|
|
|
|
|
if(this.checkEmpty()){
|
|
|
|
|
// 提交审核结果
|
|
|
|
|
let params = {
|
|
|
|
|
order_id: this.orderId,
|
|
|
|
|
is_audit: audit,
|
|
|
|
|
settlement_remark: this.remarksMsg
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
this.$requst.post('/universal/api.order/audit', params).then(res => {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
this.$toolAll.tools.showToast('提交成功');
|
|
|
|
|
setTimeout(()=>{
|
2022-07-25 10:26:45 +00:00
|
|
|
|
uni.navigateBack({
|
|
|
|
|
delta:1
|
2022-06-22 08:16:26 +00:00
|
|
|
|
})
|
2022-07-25 10:26:45 +00:00
|
|
|
|
// uni.navigateTo({
|
|
|
|
|
// url:`/pagesA/workOrder/workOrderLlsit?status='待审批'&statusId=6`
|
|
|
|
|
// })
|
2022-06-22 08:16:26 +00:00
|
|
|
|
},500)
|
|
|
|
|
}
|
|
|
|
|
})
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2022-06-22 08:16:26 +00:00
|
|
|
|
// 判空事件
|
|
|
|
|
checkEmpty(){
|
|
|
|
|
let result = false;
|
|
|
|
|
if(this.remarksMsg == '') {
|
|
|
|
|
this.$toolAll.tools.showToast('请填写备注信息');
|
|
|
|
|
} else {
|
|
|
|
|
result = true;
|
|
|
|
|
}
|
|
|
|
|
return result;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.work-order-audit {
|
|
|
|
|
margin-top: -10rpx;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
background-color: #FFFFFF;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.work-order-audit .item {
|
2022-06-21 09:53:12 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
padding: 20rpx 40rpx;
|
|
|
|
|
border-bottom: 2rpx solid #ececec;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.work-order-audit .item .title {
|
|
|
|
|
width: 150rpx;
|
|
|
|
|
font-size: 28rpx;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
white-space: nowrap;
|
|
|
|
|
/* flex: 1; */
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.work-order-audit .item .input {
|
|
|
|
|
width: calc(100% - 150rpx);
|
|
|
|
|
font-size: 27rpx;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
color: #8b8b8b;
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
|
|
|
|
|
.work-order-audit .item .son{
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 50%;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.work-order-audit .item:last-child{
|
|
|
|
|
border-bottom: 0;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
|
|
|
|
|
.work-order-cost{
|
|
|
|
|
width: 96%;
|
|
|
|
|
padding: 0 2%;
|
|
|
|
|
background-color: #f7f7f7;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
|
|
|
|
|
.work-order-cost .item{
|
2022-06-21 09:53:12 +00:00
|
|
|
|
display: flex;
|
2022-06-22 08:16:26 +00:00
|
|
|
|
padding: 20rpx;
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
background-color: #FFFFFF;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
|
|
|
|
|
.work-order-cost .item .title {
|
|
|
|
|
width: 150rpx;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
/* flex: 1; */
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
|
|
|
|
|
.work-order-cost .item .input {
|
|
|
|
|
width: calc(100% - 150rpx);
|
|
|
|
|
font-size: 27rpx;
|
|
|
|
|
color: #8b8b8b;
|
|
|
|
|
padding-left: 0;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
|
|
|
|
|
.work-order-cost .list{
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
flex-wrap: wrap;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
|
|
|
|
|
.work-order-cost .list .item{
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
width: calc(50% - 5rpx);
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.work-order-cost .list .item .title{
|
|
|
|
|
color: #999999;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.work-order-cost .list .item .input{
|
|
|
|
|
color: #333333;
|
|
|
|
|
text-align: right;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.work-order-cost .item.item-center{
|
|
|
|
|
justify-content: center;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
white-space: nowrap;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.work-order-cost .item.item-center .title-price{
|
|
|
|
|
color: #e52e2e;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
|
|
|
|
|
.work-order-cost .item .btns{
|
2022-06-21 09:53:12 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
|
|
|
|
|
.btns .input-radio{
|
2022-06-21 09:53:12 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2022-06-22 08:16:26 +00:00
|
|
|
|
font-size: 27rpx;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.btns .input-radio:nth-of-type(1){
|
|
|
|
|
margin-right: 40rpx;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.btns .input-radio .btn{
|
2022-06-21 09:53:12 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2022-06-22 08:16:26 +00:00
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
width: 28rpx;
|
|
|
|
|
height: 28rpx;
|
|
|
|
|
border-radius: 100%;
|
|
|
|
|
background-color: #f7f7f7;
|
|
|
|
|
border: 2rpx solid #eee;
|
|
|
|
|
margin-right: 14rpx;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.btns .input-radio .btn image{
|
|
|
|
|
width: 0;
|
|
|
|
|
height: 0;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.btns .input-radio .btn.checked{
|
|
|
|
|
background-color: #00a2e9;
|
|
|
|
|
border: 2rpx solid #00a2e9;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.btns .input-radio .btn.checked image{
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.work-order-cost .item.item-textarea{
|
|
|
|
|
flex-wrap: wrap;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.work-order-cost .item.item-textarea textarea{
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 160rpx;
|
|
|
|
|
font-size: 27rpx;
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
padding: 16rpx;
|
|
|
|
|
margin-top: 20rpx;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.item-textarea textarea::-webkit-input-placeholder {
|
|
|
|
|
color: #ccc;
|
|
|
|
|
}
|
|
|
|
|
.item-textarea textarea:-moz-placeholder {
|
|
|
|
|
color: #ccc;
|
|
|
|
|
}
|
|
|
|
|
.item-textarea textarea::-moz-placeholder {
|
|
|
|
|
color: #ccc;
|
|
|
|
|
}
|
|
|
|
|
.item-textarea textarea:-ms-input-placeholder {
|
|
|
|
|
color: #ccc;
|
|
|
|
|
}
|
|
|
|
|
.form-btns{
|
2022-06-21 09:53:12 +00:00
|
|
|
|
display: flex;
|
2022-06-22 08:16:26 +00:00
|
|
|
|
justify-content: space-around;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background-color: #f7f7f7;
|
|
|
|
|
padding: 50rpx 0;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.form-btns .btn{
|
2022-06-21 09:53:12 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2022-06-22 08:16:26 +00:00
|
|
|
|
width: 40%;
|
|
|
|
|
height: 88rpx;
|
|
|
|
|
border-radius: 44rpx;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
background-color: #d50606;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
2022-06-22 08:16:26 +00:00
|
|
|
|
.form-btns .btn:nth-of-type(1){
|
|
|
|
|
background-color: #009944;
|
2022-06-21 09:53:12 +00:00
|
|
|
|
}
|
|
|
|
|
</style>
|