Compare commits
2 Commits
d056d64d15
...
60381e7fc8
Author | SHA1 | Date | |
---|---|---|---|
|
60381e7fc8 | ||
|
eb3ad15810 |
@ -114,18 +114,17 @@
|
|||||||
</template>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="ticketInfo.items && ticketInfo.items.length > 0" class="card cardInfo projCard">
|
<view v-if="ticketInfo.projects && ticketInfo.projects.length > 0" class="card cardInfo projCard">
|
||||||
<view class="projTitle">维修项目</view>
|
<view class="projTitle">维修项目</view>
|
||||||
<view class="projList">
|
<view class="projList">
|
||||||
<template>
|
<template>
|
||||||
<view v-for="item in ticketInfo.items" :key="item.id" class="projEditItem">
|
<view v-for="item in ticketInfo.projects" :key="item.id" class="projEditItem">
|
||||||
|
|
||||||
<view class="projEditLine1">
|
<view class="projEditLine1">
|
||||||
<text>{{ item.itemName }}</text>
|
<text>{{ item.itemName }}</text>
|
||||||
<text v-if="loginUser.roleCodes.includes('weixiu') || loginUser.roleCodes.includes('service_advisor')||loginUser.roleCodes.includes('general_inspection')" class="projAmount">¥{{ item.itemMoney }}</text>
|
<text v-if="loginUser.roleCodes.includes('weixiu') || loginUser.roleCodes.includes('service_advisor')||loginUser.roleCodes.includes('general_inspection')" class="projAmount">¥{{ item.itemMoney }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="projBaseInfo" v-if="loginUser.roleCodes.includes('weixiu') || loginUser.roleCodes.includes('service_advisor')||loginUser.roleCodes.includes('general_inspection')" >
|
<view class="projBaseInfo" v-if="loginUser.roleCodes.includes('weixiu') || loginUser.roleCodes.includes('service_advisor')||loginUser.roleCodes.includes('general_inspection')" >
|
||||||
<view>规格:{{item.project.spec}}</view>
|
|
||||||
<view>售价:{{ item.itemPrice }}</view>
|
<view>售价:{{ item.itemPrice }}</view>
|
||||||
<view>数量:{{ item.itemCount }}</view>
|
<view>数量:{{ item.itemCount }}</view>
|
||||||
<view>单位:{{ item.itemUnit}}</view>
|
<view>单位:{{ item.itemUnit}}</view>
|
||||||
@ -175,6 +174,10 @@
|
|||||||
</view>
|
</view>
|
||||||
<view v-if="ticketInfo.wares && ticketInfo.wares.length > 0" class="card cardInfo projCard">
|
<view v-if="ticketInfo.wares && ticketInfo.wares.length > 0" class="card cardInfo projCard">
|
||||||
<view class="projTitle">维修配件 </view>
|
<view class="projTitle">维修配件 </view>
|
||||||
|
<view class="infoItem" style="flex: 1">
|
||||||
|
<view class="label"><text>是否开放给客户</text><switch :checked="ticketInfo.partShow == '1'" style="transform:scale(0.7)" @change="toPartShow" /></view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="projList">
|
<view class="projList">
|
||||||
<template>
|
<template>
|
||||||
<view v-for="item in ticketInfo.wares" :key="item.id" class="projEditItem">
|
<view v-for="item in ticketInfo.wares" :key="item.id" class="projEditItem">
|
||||||
@ -213,7 +216,7 @@
|
|||||||
{{ item.remark }}
|
{{ item.remark }}
|
||||||
</view>
|
</view>
|
||||||
<view class="projImg">
|
<view class="projImg">
|
||||||
<image v-for="(img, imgIndex) in item.itemList" :key="imgIndex" :src="imgUrlPrex + item.image"
|
<image v-for="(img, imgIndex) in item.itemList" :key="imgIndex" :src="imgUrlPrex + img.image"
|
||||||
class="projImgItem"></image>
|
class="projImgItem"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="projSend">
|
<view class="projSend">
|
||||||
@ -448,6 +451,24 @@ export default {
|
|||||||
fabClick() {
|
fabClick() {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 是否开放给用户
|
||||||
|
*/
|
||||||
|
toPartShow(row){
|
||||||
|
console.log(row.detail.value)
|
||||||
|
const show = row.detail.value?'1':'0'
|
||||||
|
request({
|
||||||
|
url: '/admin-api/repair/tickets/show',
|
||||||
|
method: 'get',
|
||||||
|
params:{id:this.ticketId,show:show}
|
||||||
|
}).then((res)=>{
|
||||||
|
uni.showToast({
|
||||||
|
title: '设置成功!',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查看订单详情
|
* 查看订单详情
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user