|
@@ -4,16 +4,15 @@
|
|
|
<view class="d-flex px3 py2">
|
|
<view class="d-flex px3 py2">
|
|
|
<view class="top d-flex a-center bg-color-white flex1 one-ellipsis">
|
|
<view class="top d-flex a-center bg-color-white flex1 one-ellipsis">
|
|
|
<view class="img" style="cursor:pointer">
|
|
<view class="img" style="cursor:pointer">
|
|
|
- <image :src="
|
|
|
|
|
- imgSrc
|
|
|
|
|
- ? imgSrc
|
|
|
|
|
- : $BaseTool.UserUtil.getFileUrl(sbInfo.qrCode)
|
|
|
|
|
- " mode="widthFix"></image>
|
|
|
|
|
|
|
+ <image :src="imgSrc
|
|
|
|
|
+ ? imgSrc
|
|
|
|
|
+ : $BaseTool.UserUtil.getFileUrl(sbInfo.qrCode)
|
|
|
|
|
+ " mode="widthFix"></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="pl-3">
|
|
<view class="pl-3">
|
|
|
<view class="f-size-36 text-color-3 one-ellipsis">{{
|
|
<view class="f-size-36 text-color-3 one-ellipsis">{{
|
|
|
- sbInfo.name
|
|
|
|
|
- }}</view>
|
|
|
|
|
|
|
+ sbInfo.name
|
|
|
|
|
+ }}</view>
|
|
|
<view class="d-flex f-size-28 f-weight-6 f-wrap" style="margin: 20rpx 0">
|
|
<view class="d-flex f-size-28 f-weight-6 f-wrap" style="margin: 20rpx 0">
|
|
|
</view>
|
|
</view>
|
|
|
<view class="d-flex">
|
|
<view class="d-flex">
|
|
@@ -38,8 +37,9 @@
|
|
|
<view class="d-flex py3 border-bottom">
|
|
<view class="d-flex py3 border-bottom">
|
|
|
<view class="f-size-26 text-color-9 w200">报修图片</view>
|
|
<view class="f-size-26 text-color-9 w200">报修图片</view>
|
|
|
<view class="f-size-26 text-color-3 d-flex ">
|
|
<view class="f-size-26 text-color-3 d-flex ">
|
|
|
- <block v-for="(item,index) in imagesList" :key="index">
|
|
|
|
|
- <u-image width="100" class="mr-2" :src="item" @click="handlePre(index)" mode="widthFix"><u-loading slot="loading"></u-loading></u-image>
|
|
|
|
|
|
|
+ <block v-for="(item, index) in imagesList" :key="index">
|
|
|
|
|
+ <u-image width="100" class="mr-2" :src="item" @click="handlePre(index)" mode="widthFix"><u-loading
|
|
|
|
|
+ slot="loading"></u-loading></u-image>
|
|
|
</block>
|
|
</block>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -47,7 +47,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="divider"></view>
|
|
<view class="divider"></view>
|
|
|
- <view class="mt-3 px3" v-show="infoData.status>=2">
|
|
|
|
|
|
|
+ <view class="mt-3 px3" v-show="infoData.status >= 2">
|
|
|
<view class="f-size-30 f-weight-bold py2 border-bottom">维修信息</view>
|
|
<view class="f-size-30 f-weight-bold py2 border-bottom">维修信息</view>
|
|
|
<view class="mx3 my2 p3 bg-color-white" style="border-radius: 16rpx; border: 1px solid #eee">
|
|
<view class="mx3 my2 p3 bg-color-white" style="border-radius: 16rpx; border: 1px solid #eee">
|
|
|
<equipment-line title="故障类别" :content="infoData.repairErrorTypeName" />
|
|
<equipment-line title="故障类别" :content="infoData.repairErrorTypeName" />
|
|
@@ -55,16 +55,19 @@
|
|
|
<equipment-line title="维修结束" :content="infoData.repairEndTime" />
|
|
<equipment-line title="维修结束" :content="infoData.repairEndTime" />
|
|
|
<equipment-line title="维修耗时" :content="infoData.repairMinutes" />
|
|
<equipment-line title="维修耗时" :content="infoData.repairMinutes" />
|
|
|
<equipment-line title="维修人员1" :content="infoData.repairUserName" />
|
|
<equipment-line title="维修人员1" :content="infoData.repairUserName" />
|
|
|
- <equipment-line v-if="infoData.secondRepairUser" title="维修人员2" :content="getUserName(infoData.secondRepairUser)" />
|
|
|
|
|
- <equipment-line v-if="infoData.threeRepairUser" title="维修人员3" :content="getUserName(infoData.threeRepairUser)" />
|
|
|
|
|
|
|
+ <equipment-line v-if="infoData.secondRepairUser" title="维修人员2"
|
|
|
|
|
+ :content="getUserName(infoData.secondRepairUser)" />
|
|
|
|
|
+ <equipment-line v-if="infoData.threeRepairUser" title="维修人员3"
|
|
|
|
|
+ :content="getUserName(infoData.threeRepairUser)" />
|
|
|
<equipment-line v-if="infoData.fourRepairUser" title="维修人员4" :content="getUserName(infoData.fourRepairUser)" />
|
|
<equipment-line v-if="infoData.fourRepairUser" title="维修人员4" :content="getUserName(infoData.fourRepairUser)" />
|
|
|
<equipment-line title="维修描述" :content="infoData.repairContent" />
|
|
<equipment-line title="维修描述" :content="infoData.repairContent" />
|
|
|
<equipment-line title="备注" :content="infoData.repairRemark" />
|
|
<equipment-line title="备注" :content="infoData.repairRemark" />
|
|
|
<view class="d-flex py3 border-bottom">
|
|
<view class="d-flex py3 border-bottom">
|
|
|
<view class="f-size-26 text-color-9 w200">维修图片</view>
|
|
<view class="f-size-26 text-color-9 w200">维修图片</view>
|
|
|
<view class="f-size-26 text-color-3 d-flex ">
|
|
<view class="f-size-26 text-color-3 d-flex ">
|
|
|
- <block v-for="(item,index) in repairImagesList" :key="index">
|
|
|
|
|
- <u-image width="100" class="mr-2" :src="item" @click="handlePreRepair(index)" mode="widthFix"><u-loading slot="loading"></u-loading></u-image>
|
|
|
|
|
|
|
+ <block v-for="(item, index) in repairImagesList" :key="index">
|
|
|
|
|
+ <u-image width="100" class="mr-2" :src="item" @click="handlePreRepair(index)" mode="widthFix"><u-loading
|
|
|
|
|
+ slot="loading"></u-loading></u-image>
|
|
|
</block>
|
|
</block>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -72,7 +75,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="divider"></view>
|
|
<view class="divider"></view>
|
|
|
<view class="mt-3 px3">
|
|
<view class="mt-3 px3">
|
|
|
- <view v-for="(item,index) in dispatchList" :key="index" class="mx3 my2 p3 bg-color-white" style="border-radius: 16rpx">
|
|
|
|
|
|
|
+ <view v-for="(item, index) in dispatchList" :key="index" class="mx3 my2 p3 bg-color-white"
|
|
|
|
|
+ style="border-radius: 16rpx">
|
|
|
<view>
|
|
<view>
|
|
|
<equipment-line title="转派人" :content="item.username" />
|
|
<equipment-line title="转派人" :content="item.username" />
|
|
|
<equipment-line title="转派时间" :content="item.time" />
|
|
<equipment-line title="转派时间" :content="item.time" />
|
|
@@ -92,7 +96,7 @@
|
|
|
<view class="iconfont icon-baoxiu" style="color: #0f6fb9"></view>
|
|
<view class="iconfont icon-baoxiu" style="color: #0f6fb9"></view>
|
|
|
<view class="grid-text">拒单</view>
|
|
<view class="grid-text">拒单</view>
|
|
|
</u-grid-item>
|
|
</u-grid-item>
|
|
|
- <u-grid-item v-show="!infoData.fourRepairUser && infoData.repairUserId" @tap="handleTransfer()">
|
|
|
|
|
|
|
+ <u-grid-item v-show="!infoData.fourRepairUser && infoData.repairUserId" @tap="handleTransfer()">
|
|
|
<view class="iconfont icon-baoxiu" style="color: #0f6fb9"></view>
|
|
<view class="iconfont icon-baoxiu" style="color: #0f6fb9"></view>
|
|
|
<view class="grid-text">转派</view>
|
|
<view class="grid-text">转派</view>
|
|
|
</u-grid-item>
|
|
</u-grid-item>
|
|
@@ -154,39 +158,39 @@ export default {
|
|
|
this.detailId = options.detailId
|
|
this.detailId = options.detailId
|
|
|
|
|
|
|
|
this.statusMap = this.$DictCache.getLabelByValueMapByType(this.$DictCache.TYPE.REPAIR_APPLICATION_FORM_STATUS)
|
|
this.statusMap = this.$DictCache.getLabelByValueMapByType(this.$DictCache.TYPE.REPAIR_APPLICATION_FORM_STATUS)
|
|
|
- this.$Http
|
|
|
|
|
- .queryUserDept({
|
|
|
|
|
- deptCode: this.$DictCache.VALUE.SYS_DEPT_CODE.SYS_DEPT_CODE_XIAN_CHANG_WEI_XIU_ZU,
|
|
|
|
|
- userStatus: 1
|
|
|
|
|
- })
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- console.log(res.data);
|
|
|
|
|
- const temp = []
|
|
|
|
|
- res.data.forEach((item, index) => {
|
|
|
|
|
- temp.push({
|
|
|
|
|
- label: item.realName,
|
|
|
|
|
- value: item.userId
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
- this.zjList.push(...temp)
|
|
|
|
|
- });
|
|
|
|
|
- this.$Http
|
|
|
|
|
- .queryUserDept({
|
|
|
|
|
- deptCode: this.$DictCache.VALUE.SYS_DEPT_CODE.SYS_DEPT_CODE_CHANG_NEI_WEI_XIU_ZU,
|
|
|
|
|
- userStatus: 1
|
|
|
|
|
- })
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- console.log(res.data);
|
|
|
|
|
- const temp = []
|
|
|
|
|
- res.data.forEach((item, index) => {
|
|
|
|
|
- temp.push({
|
|
|
|
|
- label: item.realName,
|
|
|
|
|
- value: item.userId
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
- this.zjList.push(...temp)
|
|
|
|
|
|
|
+ this.$Http
|
|
|
|
|
+ .queryUserDept({
|
|
|
|
|
+ deptCode: this.$DictCache.VALUE.SYS_DEPT_CODE.SYS_DEPT_CODE_XIAN_CHANG_WEI_XIU_ZU,
|
|
|
|
|
+ userStatus: 1
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ console.log(res.data);
|
|
|
|
|
+ const temp = []
|
|
|
|
|
+ res.data.forEach((item, index) => {
|
|
|
|
|
+ temp.push({
|
|
|
|
|
+ label: item.realName,
|
|
|
|
|
+ value: item.userId
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ this.zjList.push(...temp)
|
|
|
|
|
+ });
|
|
|
|
|
+ this.$Http
|
|
|
|
|
+ .queryUserDept({
|
|
|
|
|
+ deptCode: this.$DictCache.VALUE.SYS_DEPT_CODE.SYS_DEPT_CODE_CHANG_NEI_WEI_XIU_ZU,
|
|
|
|
|
+ userStatus: 1
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ console.log(res.data);
|
|
|
|
|
+ const temp = []
|
|
|
|
|
+ res.data.forEach((item, index) => {
|
|
|
|
|
+ temp.push({
|
|
|
|
|
+ label: item.realName,
|
|
|
|
|
+ value: item.userId
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ this.zjList.push(...temp)
|
|
|
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
this.getInfo()
|
|
this.getInfo()
|
|
@@ -237,14 +241,14 @@ export default {
|
|
|
uni.previewImage({
|
|
uni.previewImage({
|
|
|
urls: this.imagesList,
|
|
urls: this.imagesList,
|
|
|
current: this.imagesList[index],
|
|
current: this.imagesList[index],
|
|
|
- success() {}
|
|
|
|
|
|
|
+ success() { }
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
handlePreRepair(index) {
|
|
handlePreRepair(index) {
|
|
|
uni.previewImage({
|
|
uni.previewImage({
|
|
|
urls: this.repairImagesList,
|
|
urls: this.repairImagesList,
|
|
|
current: this.repairImagesList[index],
|
|
current: this.repairImagesList[index],
|
|
|
- success() {}
|
|
|
|
|
|
|
+ success() { }
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 接收
|
|
// 接收
|
|
@@ -368,10 +372,12 @@ export default {
|
|
|
.d-flex.mb-2 {
|
|
.d-flex.mb-2 {
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.state-r {
|
|
.state-r {
|
|
|
padding: 8rpx 20rpx;
|
|
padding: 8rpx 20rpx;
|
|
|
border-radius: 30rpx;
|
|
border-radius: 30rpx;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.state-g {
|
|
.state-g {
|
|
|
padding: 8rpx 20rpx;
|
|
padding: 8rpx 20rpx;
|
|
|
border-radius: 30rpx;
|
|
border-radius: 30rpx;
|