Compare commits
No commits in common. "60381e7fc8796c24241ec49ae67b89a7b5497329" and "d056d64d15e673152d3f663ad2ecec5995dca03c" have entirely different histories.
60381e7fc8
...
d056d64d15
@ -114,17 +114,18 @@
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="ticketInfo.projects && ticketInfo.projects.length > 0" class="card cardInfo projCard">
|
||||
<view v-if="ticketInfo.items && ticketInfo.items.length > 0" class="card cardInfo projCard">
|
||||
<view class="projTitle">维修项目</view>
|
||||
<view class="projList">
|
||||
<template>
|
||||
<view v-for="item in ticketInfo.projects" :key="item.id" class="projEditItem">
|
||||
<view v-for="item in ticketInfo.items" :key="item.id" class="projEditItem">
|
||||
|
||||
<view class="projEditLine1">
|
||||
<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>
|
||||
</view>
|
||||
<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.itemCount }}</view>
|
||||
<view>单位:{{ item.itemUnit}}</view>
|
||||
@ -173,11 +174,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="ticketInfo.wares && ticketInfo.wares.length > 0" class="card cardInfo projCard">
|
||||
<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="projTitle">维修配件</view>
|
||||
<view class="projList">
|
||||
<template>
|
||||
<view v-for="item in ticketInfo.wares" :key="item.id" class="projEditItem">
|
||||
@ -216,7 +213,7 @@
|
||||
{{ item.remark }}
|
||||
</view>
|
||||
<view class="projImg">
|
||||
<image v-for="(img, imgIndex) in item.itemList" :key="imgIndex" :src="imgUrlPrex + img.image"
|
||||
<image v-for="(img, imgIndex) in item.itemList" :key="imgIndex" :src="imgUrlPrex + item.image"
|
||||
class="projImgItem"></image>
|
||||
</view>
|
||||
<view class="projSend">
|
||||
@ -451,24 +448,6 @@ export default {
|
||||
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