|
|
@ -18,7 +18,7 @@ |
|
|
|
<view>{{data.describes}}</view> |
|
|
|
</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.state.user.post.code == 'worker'"> |
|
|
|
<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'"> |
|
|
|
<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'> |
|
|
@ -42,11 +42,11 @@ |
|
|
|
</view> |
|
|
|
</u-form-item> |
|
|
|
</u-form> |
|
|
|
<view class="dec-item" v-if="data.status != 'PECEIVED'|| $store.state.user.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.state.user.post.code != 'worker'"> |
|
|
|
<view class="dec-item" v-if="data.status != 'PECEIVED'"> |
|
|
|
<view>故障类型:</view> |
|
|
|
<view>{{data.faultTypeName}}</view> |
|
|
|
</view> |
|
|
@ -141,7 +141,7 @@ |
|
|
|
<view class="title-txt"> |
|
|
|
{{item.describes}} |
|
|
|
</view> |
|
|
|
<u-icon name="trash" color="#aaaaaa" size="40" v-if="(data.status == 'PENDING' || data.status == 'PECEIVED')&& $store.state.user.post.code == 'worker'" |
|
|
|
<u-icon name="trash" color="#aaaaaa" size="40" v-if="(data.status == 'PENDING' || data.status == 'PECEIVED')" |
|
|
|
@click.native.stop="delService(item)"></u-icon> |
|
|
|
</view> |
|
|
|
<view class="dec2"> |
|
|
@ -174,7 +174,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.state.user.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> |
|
|
@ -182,11 +182,11 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="footer"> |
|
|
|
<view class="btns" v-if="data.status == 'PENDING'&& $store.state.user.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.state.user.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> |
|
|
@ -292,10 +292,6 @@ |
|
|
|
orderClickSuccess() { |
|
|
|
// 如果点击完成是否与接单人员一致 |
|
|
|
if (this.data.status == 'PECEIVED') { |
|
|
|
if (this.$store.state.user.id != this.data.maintenance) { |
|
|
|
this.$modal.showToast('当前人员与接单人员不一致') |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (!this.serviceList || this.serviceList && this.serviceList.length == 0) { |
|
|
|
this.$modal.showToast('请添加维修内容') |
|
|
|