Browse Source

fix: 去掉维修工验证

master
zhang_li 8 months ago
parent
commit
f13f888128
  1. 16
      src/pages/repairOrder/detail.vue
  2. 2
      src/pages/repairOrder/index.vue

16
src/pages/repairOrder/detail.vue

@ -19,7 +19,7 @@
</view>
<u-form :model="data" ref="form1" label-width="160rpx"
style="border-top: 1px solid rgba(220,220,220,0.5);border-bottom: 1px solid rgba(220,220,220,0.5);margin-bottom: 20rpx;"
v-if="data.status == 'PECEIVED'&& store.post.code == 'worker'">
v-if="data.status == 'PECEIVED'">
<u-form-item label="班次" prop="classes" required>
<view class="select" @click="openSingleColumn('classes',data.classes,maintenanceShift)">
<view class="input" v-if='data.classes||data.classes==0'>
@ -43,11 +43,11 @@
</view>
</u-form-item>
</u-form>
<view class="dec-item" v-if="data.status != 'PECEIVED'|| store.post.code != 'worker'">
<view class="dec-item" v-if="data.status != 'PECEIVED'">
<view>班次</view>
<view>{{data.classesName}}</view>
</view>
<view class="dec-item" v-if="data.status != 'PECEIVED'||store.post.code != 'worker'">
<view class="dec-item" v-if="data.status != 'PECEIVED'">
<view>故障类型</view>
<view>{{data.faultTypeName}}</view>
</view>
@ -143,7 +143,7 @@
{{item.describes}}
</view>
<u-icon name="trash" color="#aaaaaa" size="40"
v-if="(data.status == 'PENDING' || data.status == 'PECEIVED')&& store.post.code == 'worker'"
v-if="data.status == 'PENDING' || data.status == 'PECEIVED'"
@click.native.stop="delService(item)"></u-icon>
</view>
<view class="dec2">
@ -178,7 +178,7 @@
<!-- <u-icon name="minus-circle" color="#aaaaaa" size="60" ></u-icon> -->
</view>
<view class="add-btn"
v-if="(data.status == 'PENDING' || data.status == 'PECEIVED')&& store.post.code == 'worker'">
v-if="data.status == 'PENDING' || data.status == 'PECEIVED'">
<u-button type="primary" @click="addSubForm('creat')"><u-icon name="plus-circle" color="#ffffff"
size="36"></u-icon>添加维修内容</u-button>
</view>
@ -186,17 +186,17 @@
</view>
</view>
<view class="footer">
<view class="btns" v-if="data.status == 'PENDING'&& store.post.code == 'worker'">
<view class="btns" v-if="data.status == 'PENDING'>
<u-button type="primary" @click="orderClick(1)" :loading='loading' :disabled='loading'>接单</u-button>
</view>
<view class="btns" v-if="data.status == 'PECEIVED'&& store.post.code == 'worker'">
<view class="btns" v-if="data.status == 'PECEIVED'>
<u-button shape="shape" type="warning" style="min-width: 120rpx;" :loading='loading1' @click="editForm"
:disabled='loading1'>修改工单</u-button>
<u-button type="primary" @click="orderClickSuccess()" :loading='loading'
:disabled='loading'>完成</u-button>
</view>
<view class="btns" v-if="data.status == 'COMPLETED'&& store.post.code == 'engineer'">
<view class="btns" v-if="data.status == 'COMPLETED'>
<u-button type="primary" @click="orderClick(3)" :loading='loading' :disabled='loading'>验证完结</u-button>
</view>
<view style="height: constant(safe-area-inset-bottom); height: env(safe-area-inset-bottom);"></view>

2
src/pages/repairOrder/index.vue

@ -4,7 +4,7 @@
<u-navbar back-icon-color='#fff' :background="{ background: '#409eff'}" back-text="" title-color='#fff'
title="维修工单">
<template v-slot:right>
<u-icon name="plus" color="#fff" size="36" style="padding-right: 30rpx;" @click="addForm" v-if=" store.post.code == 'worker'"></u-icon>
<u-icon name="plus" color="#fff" size="36" style="padding-right: 30rpx;" @click="addForm"></u-icon>
</template>
</u-navbar>
<view class="list">

Loading…
Cancel
Save