Merge remote-tracking branch 'origin/master'
# Conflicts: # pages-order/addOrder/addOrder.vue # pages/myCar/carDetail.vue
This commit is contained in:
commit
0d562e92cd
3
App.vue
3
App.vue
@ -28,4 +28,7 @@
|
|||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
.image-view-img{
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -42,10 +42,15 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="footer">
|
<view class="footer">
|
||||||
<view @click="projectDis" v-if="order.ticketsStatus == '04' && roleCanPg" class="btn pg">
|
<view @click="projectDis" v-if="order.ticketsStatus == '04' && (userInfo.roleCodes.includes('service_advisor') || userInfo.roleCodes.includes('general_inspection'))" class="btn pg">
|
||||||
项目派工
|
项目派工
|
||||||
</view>
|
</view>
|
||||||
<view @click="projectDis" v-if="order.ticketsStatus == '05' && roleCanPg" class="btn pg">
|
<view @click="projectDis" v-if="order.ticketsStatus == '05' && userInfo.roleCodes.includes('repair_staff') && ifLeader && order.canOperate" class="btn pg">
|
||||||
|
<!--维修班组长且当前施工人是本班组内的人,可以重新派工-->
|
||||||
|
重新派工
|
||||||
|
</view>
|
||||||
|
<view @click="projectDis" v-if="order.ticketsStatus == '05' && (userInfo.roleCodes.includes('service_advisor') || userInfo.roleCodes.includes('general_inspection'))" class="btn pg">
|
||||||
|
<!--服务顾问和总检,可以重新派工-->
|
||||||
重新派工
|
重新派工
|
||||||
</view>
|
</view>
|
||||||
<view @click="receiveOrder(order.id)" v-if="order.ticketsStatus == '05' && order.ticketsWorkStatus=='01' && roleCanJd" class="btn qc">
|
<view @click="receiveOrder(order.id)" v-if="order.ticketsStatus == '05' && order.ticketsWorkStatus=='01' && roleCanJd" class="btn qc">
|
||||||
@ -92,27 +97,29 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
//当前角色是否可以派工
|
|
||||||
roleCanPg:false,
|
|
||||||
//当前角色是否可以告知取车
|
//当前角色是否可以告知取车
|
||||||
roleCanQc:false,
|
roleCanQc:false,
|
||||||
//当前角色是否可以接单
|
//当前角色是否可以接单
|
||||||
roleCanJd:false,
|
roleCanJd:false,
|
||||||
//当前用户是否可以进行施工、施工过程、结束施工操作---
|
//当前用户是否可以进行施工、施工过程、结束施工操作---
|
||||||
roleCanSg:false,
|
roleCanSg:false,
|
||||||
|
//当前用户
|
||||||
|
userInfo:{},
|
||||||
|
ifLeader:false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
let userInfo = getUserInfo()
|
this.ifLeader = getStrData('ifLeader')
|
||||||
if(userInfo.roleCodes.includes("service_advisor") || userInfo.roleCodes.includes("general_inspection") || (userInfo.roleCodes.includes("repair_staff") && getStrData("ifLeader"))){
|
this.userInfo = getUserInfo()
|
||||||
//服务顾问、总检、维修班组长可以派工
|
if(this.userInfo.roleCodes.includes("service_advisor") || this.userInfo.roleCodes.includes("general_inspection") || (this.userInfo.roleCodes.includes("repair_staff") && getStrData("ifLeader"))){
|
||||||
|
//服务顾问、总检可以派工,维修班组长需要判断是否可以派工
|
||||||
this.roleCanPg = true
|
this.roleCanPg = true
|
||||||
}
|
}
|
||||||
if(userInfo.roleCodes.includes("service_advisor")){
|
if(this.userInfo.roleCodes.includes("service_advisor")){
|
||||||
//服务顾问可以告知取车
|
//服务顾问可以告知取车
|
||||||
this.roleCanQc = true
|
this.roleCanQc = true
|
||||||
}
|
}
|
||||||
if(userInfo.roleCodes.includes("repair_staff") && this.order.nowRepairId==userInfo.id){
|
if(this.userInfo.roleCodes.includes("repair_staff") && this.order.nowRepairId==userInfo.id){
|
||||||
//维修工角色,并且指派处理的人就是当前用户可以接单
|
//维修工角色,并且指派处理的人就是当前用户可以接单
|
||||||
this.roleCanJd = true
|
this.roleCanJd = true
|
||||||
}
|
}
|
||||||
|
@ -97,14 +97,6 @@ export default {
|
|||||||
params:params
|
params:params
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
res.data.map((item)=>{
|
|
||||||
getDictTextByCodeAndValue("repair_unit",item.wares.unit).then(value => {
|
|
||||||
item.wares.unit = value
|
|
||||||
}).catch(error => {
|
|
||||||
item.wares.unit = "未知"
|
|
||||||
console.error(error);
|
|
||||||
});
|
|
||||||
})
|
|
||||||
this.repairList = res.data
|
this.repairList = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -553,14 +553,14 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(this.loginUser.roleCodes.includes("repair_staff")){
|
if(this.loginUser.roleCodes.includes("repair_staff")){
|
||||||
//维修工角色
|
//维修工角色,可以提交配件申请
|
||||||
if(this.ticketInfo.nowRepairId==this.loginUser.id && "05"==this.ticketInfo.ticketsStatus){
|
|
||||||
//当前用户就是施工人,,订单状态处于维修中 可以提交配件申请
|
|
||||||
this.content.push({
|
this.content.push({
|
||||||
text: '配件申请', active: false, code: "apply"
|
text: '配件申请', active: false, code: "apply"
|
||||||
})
|
})
|
||||||
|
if ("05" == this.ticketInfo.ticketsStatus && this.ticketInfo.nowRepairId == this.loginUser.id) {
|
||||||
|
//订单状态处于维修中 ,且自己就是施工人
|
||||||
if ("02" == this.ticketInfo.ticketsWorkStatus) {
|
if ("02" == this.ticketInfo.ticketsWorkStatus) {
|
||||||
//当前正在施工,可以随时上传图片、也可以结束施工
|
//当前正在施工且可以随时上传图片、也可以结束施工
|
||||||
this.content.push({
|
this.content.push({
|
||||||
text: '拍照上传', active: false, code: "working"
|
text: '拍照上传', active: false, code: "working"
|
||||||
})
|
})
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<VNavigationBar background-color="rgba(0,0,0,0)" title="签名" title-color="#333"></VNavigationBar>
|
<VNavigationBar background-color="rgba(0,0,0,0)" title="客户签名" title-color="#333"></VNavigationBar>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<!-- <view class="instruction">-->
|
<view class="instruction">
|
||||||
<!-- 确定维修项目无误后请签名-->
|
确定维修项目无误后请客户签字确认
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<canvas
|
<canvas
|
||||||
canvas-id="signatureCanvas"
|
canvas-id="signatureCanvas"
|
||||||
class="canvas"
|
class="canvas"
|
||||||
@ -38,6 +38,7 @@ export default {
|
|||||||
onLoad(data) {
|
onLoad(data) {
|
||||||
// 获取 canvas 上下文
|
// 获取 canvas 上下文
|
||||||
this.context = uni.createCanvasContext("signatureCanvas", this);
|
this.context = uni.createCanvasContext("signatureCanvas", this);
|
||||||
|
this.context.fillStyle = "white";
|
||||||
if (data.data){
|
if (data.data){
|
||||||
console.log('传递过来的内容', JSON.parse(data.data))
|
console.log('传递过来的内容', JSON.parse(data.data))
|
||||||
this.data = JSON.parse(data.data)
|
this.data = JSON.parse(data.data)
|
||||||
|
18
pages.json
18
pages.json
@ -67,8 +67,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/project/project",
|
"path": "pages/project/project",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "新增维修项目",
|
"navigationBarTitleText": "新增维修项目"
|
||||||
"enablePullDownRefresh": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -94,29 +93,25 @@
|
|||||||
{
|
{
|
||||||
"path": "choosePeople/choosePeople",
|
"path": "choosePeople/choosePeople",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": ""
|
||||||
"enablePullDownRefresh": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "chooseImg/chooseImg",
|
"path": "chooseImg/chooseImg",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": ""
|
||||||
"enablePullDownRefresh": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "reviewList/reviewList",
|
"path": "reviewList/reviewList",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": ""
|
||||||
"enablePullDownRefresh": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "inWare/inWare",
|
"path": "inWare/inWare",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": ""
|
||||||
"enablePullDownRefresh": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -204,8 +199,7 @@
|
|||||||
{
|
{
|
||||||
"path": "signature/signature",
|
"path": "signature/signature",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": ""
|
||||||
"enablePullDownRefresh": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user