|
|
|
|
@ -34,7 +34,7 @@ |
|
|
|
|
</view> |
|
|
|
|
<!-- 维修人员 接单展示--> |
|
|
|
|
<view class="repair_detail" |
|
|
|
|
v-if="(dataTypes == 4 || dataTypes == 2) && (detailForm.status == 1 || detailForm.status == 0)"> |
|
|
|
|
v-if="(dataTypes == 4 || dataTypes == 2) && (detailForm.status == 1 || detailForm.status == 0 || detailForm.status == 100)"> |
|
|
|
|
<view class="repair_title">派单信息</view> |
|
|
|
|
<u-form labelPosition="left" :rules="sendRules" ref="sendOrderForm" :model="sendOrder" :label-width="200" |
|
|
|
|
class="repair_form"> |
|
|
|
|
@ -63,7 +63,7 @@ |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<!-- 维修人员 待提交维修方案 --> |
|
|
|
|
<view class="repair_detail" v-if="dataTypes == 4 && detailForm.status == 2"> |
|
|
|
|
<view class="repair_detail" v-if="dataTypes == 4 && (detailForm.status == 2 || detailForm.status == 101)"> |
|
|
|
|
<view class="repair_title">处理情况</view> |
|
|
|
|
<u-form labelPosition="left" ref="sendOrderForm" :model="detailForm" :label-width="200" class="repair_form"> |
|
|
|
|
<u-form-item label="接单时间:" prop="dispatchTime" :border-bottom="false"> |
|
|
|
|
@ -83,7 +83,7 @@ |
|
|
|
|
</view> |
|
|
|
|
<!-- 维修详情 待提交维修方案 展示 --> |
|
|
|
|
<view class="repair_detail" |
|
|
|
|
v-if="(dataTypes == 4 && detailForm.status == 2) || (dataTypes == 3 && detailForm.status == 3) || (dataTypes == 1 && detailForm.status == 4)"> |
|
|
|
|
v-if="(dataTypes == 4 && (detailForm.status == 2||detailForm.status == 101)) || (dataTypes == 3 && (detailForm.status == 3||detailForm.status == 102)) || (dataTypes == 1 && detailForm.status == 4)"> |
|
|
|
|
<view class="repair_title">维修详情</view> |
|
|
|
|
<u-form labelPosition="left" :rules="repairInfoRules" ref="repairInfoForm" :model="repairInfo" |
|
|
|
|
:label-width="140" class="repair_form"> |
|
|
|
|
@ -133,15 +133,15 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<block |
|
|
|
|
v-if="(dataTypes == 3 && detailForm.status == 3) || (dataTypes == 1 && detailForm.status == 4) && repairInfo.isMaterial == 1"> |
|
|
|
|
v-if="(dataTypes == 3 && (detailForm.status == 3||detailForm.status == 102)) || (dataTypes == 1 && detailForm.status == 4) && repairInfo.isMaterial == 1"> |
|
|
|
|
<u-form-item label="总价:" prop="reportPeople" :border-bottom="false"> |
|
|
|
|
<view>{{ approveInfo.totalPrice }}</view> |
|
|
|
|
</u-form-item> |
|
|
|
|
<u-form-item label="折扣:" prop="reportPeople" :border-bottom="false"> |
|
|
|
|
<!-- <betone-new-input label="" v-model="approveInfo.discount" placeholder="" type="number" |
|
|
|
|
@changevalue="changDiscount" />折 --> |
|
|
|
|
<u-input v-model="approveInfo.discount" :border="true" placeholder="" :disabled="true" |
|
|
|
|
:class="optionDisabled?'sp-new-input-diabled':''" />折 |
|
|
|
|
<u-input v-model="approveInfo.discount" :border="true" placeholder="" :disabled="true" |
|
|
|
|
:class="optionDisabled ? 'sp-new-input-diabled' : ''" />折 |
|
|
|
|
</u-form-item> |
|
|
|
|
<u-form-item label="折扣后的金额:" prop="reportPeople" :border-bottom="false" :label-width="240"> |
|
|
|
|
<view>{{ approveInfo.discountPrice }}</view> |
|
|
|
|
@ -151,7 +151,7 @@ |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<!-- 维修负责人 审批 --> |
|
|
|
|
<view class="repair_detail" v-if="dataTypes == 3 && detailForm.status == 3"> |
|
|
|
|
<view class="repair_detail" v-if="dataTypes == 3 && (detailForm.status == 3||detailForm.status == 102)"> |
|
|
|
|
<view class="repair_title">主管审批</view> |
|
|
|
|
<u-form labelPosition="left" ref="repairInfoForm" :model="approveInfo" :label-width="140" |
|
|
|
|
class="repair_form"> |
|
|
|
|
@ -161,8 +161,9 @@ |
|
|
|
|
|
|
|
|
|
</u-form-item> |
|
|
|
|
<u-form-item label="审批意见:" prop="reportPeople" :border-bottom="false"> |
|
|
|
|
|
|
|
|
|
<u-input v-model="approveInfo.approveRemark" :border="true" placeholder="请输入" type="textarea" :height="120" /> |
|
|
|
|
|
|
|
|
|
<u-input v-model="approveInfo.approveRemark" :border="true" placeholder="请输入" type="textarea" |
|
|
|
|
:height="120" /> |
|
|
|
|
</u-form-item> |
|
|
|
|
</u-form> |
|
|
|
|
</view> |
|
|
|
|
@ -185,22 +186,24 @@ |
|
|
|
|
</u-form-item> |
|
|
|
|
<u-form-item label="审批意见:" prop="reportPeople" :border-bottom="false"> |
|
|
|
|
|
|
|
|
|
<u-input v-model="clientInfo.approveRemark" :border="true" placeholder="请输入" type="textarea" :height="120" /> |
|
|
|
|
<u-input v-model="clientInfo.approveRemark" :border="true" placeholder="请输入" type="textarea" |
|
|
|
|
:height="120" /> |
|
|
|
|
</u-form-item> |
|
|
|
|
</u-form> |
|
|
|
|
</view> |
|
|
|
|
<!-- 客服派单--> |
|
|
|
|
<view class="repair-btn" style="margin-right: 32rpx;width:100%" v-if="dataTypes == 2 && detailForm.status == 0"> |
|
|
|
|
<view class="repair-btn" style="margin-right: 32rpx;width:100%" |
|
|
|
|
v-if="dataTypes == 2 && (detailForm.status == 0 || detailForm.status == 100)"> |
|
|
|
|
<u-button size="medium" @click="endOrderCancel()">取消</u-button> |
|
|
|
|
<u-button size="medium" type="primary" @click="sendOrderSubmit()">确定派单</u-button> |
|
|
|
|
</view> |
|
|
|
|
<!-- 维修人员 提交维修方案 --> |
|
|
|
|
<view class="repair-btn" style="margin-right: 32rpx;width:100%" v-if="dataTypes == 4 && detailForm.status == 2"> |
|
|
|
|
<view class="repair-btn" style="margin-right: 32rpx;width:100%" v-if="dataTypes == 4 && (detailForm.status == 2||detailForm.status == 101)"> |
|
|
|
|
<u-button size="medium" @click="endOrderCancel()">取消</u-button> |
|
|
|
|
<u-button size="medium" type="primary" @click="servicemanSubmit()">提交</u-button> |
|
|
|
|
</view> |
|
|
|
|
<!-- 维修负责人 审批 --> |
|
|
|
|
<view class="repair-btn" style="margin-right: 32rpx;width:100%" v-if="dataTypes == 3 && detailForm.status == 3"> |
|
|
|
|
<view class="repair-btn" style="margin-right: 32rpx;width:100%" v-if="dataTypes == 3 && detailForm.status == 102"> |
|
|
|
|
<u-button size="medium" @click="endOrderCancel()">取消</u-button> |
|
|
|
|
<u-button size="medium" type="primary" @click="approveSubmit()">提交</u-button> |
|
|
|
|
</view> |
|
|
|
|
@ -255,7 +258,7 @@ |
|
|
|
|
<!-- 维修人员驳回 --> |
|
|
|
|
<betone-modal v-model="turnShow" :title="'驳回原因'" @confirm="turnFn" @cancel="turnShow = false"> |
|
|
|
|
<view class="modal-text" style="margin-bottom: 32rpx"> |
|
|
|
|
<u-input v-model="repaiRejectReason" :border="true" placeholder="请输入" /> |
|
|
|
|
<u-input v-model="repaiRejectReason" :border="true" placeholder="请输入" /> |
|
|
|
|
</view> |
|
|
|
|
</betone-modal> |
|
|
|
|
|
|
|
|
|
@ -280,7 +283,7 @@ export default { |
|
|
|
|
return this.$store.state.dataType == 2 ? false : true |
|
|
|
|
}, |
|
|
|
|
optionDisabled() { |
|
|
|
|
return (this.$store.state.dataType == 3 && this.detailForm.status == 3) || (this.$store.state.dataType == 1 && this.detailForm.status == 4) ? true : false |
|
|
|
|
return (this.$store.state.dataType == 3 && (this.detailForm.status == 3||this.detailForm.status == 102)) || (this.$store.state.dataType == 1 && this.detailForm.status == 4) ? true : false |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
@ -450,8 +453,8 @@ export default { |
|
|
|
|
|
|
|
|
|
// 获取审批总价 |
|
|
|
|
this.approveInfo.totalPrice = data |
|
|
|
|
this.approveInfo.discount = this.detailForm.discount |
|
|
|
|
this.approveInfo.discountPrice = this.detailForm.discountPrice |
|
|
|
|
this.approveInfo.discount = this.detailForm.discount |
|
|
|
|
this.approveInfo.discountPrice = this.detailForm.discountPrice |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|