@ -19,14 +19,25 @@
< view style = "padding:0 24upx;" >
< view style = "padding:0 24upx;" >
< u -cell -group >
< u -cell -group >
< u -cell size = "large" center title = "炉号" :value ="info.heat_num" :titleStyle ="{color:'#0076F6'}" > < / u - c e l l >
< u -cell size = "large" center title = "炉号" :value ="info.heat_num" :titleStyle ="{color:'#0076F6'}" > < / u - c e l l >
< u -cell size = "large" title = "不良品选项" center @ click = "sheetShow = true" >
< u -cell size = "large" title = "不良品选项" center :disabled ="info.status==3?true:false" @ click = "sheetShow = true" >
< view slot = "value" style = "flex:1;position: relative; " class = "u-slot-value" >
< view slot = "value" style = "flex:1;position: relative; " class = "u-slot-value" >
{ { contentInfo . rejects } }
{ { contentInfo . rejects } }
< u -icon name = "arrow-down" :class ="!contentInfo.rejects?'isEmpty':'notEmpty'"
< u -icon name = "arrow-down" :class ="!contentInfo.rejects?'isEmpty':'notEmpty'"
color = "#333333" size = "21" > < / u - i c o n >
color = "#333333" size = "21" > < / u - i c o n >
< / view >
< / view >
< / u - c e l l >
< / u - c e l l >
< u -cell size = "large" title = "不良品数量" :value ="contentInfo.rejects_num.toString()" center > < / u - c e l l >
< u -cell size = "large" title = "不良品数量" center >
< view slot = "value" class = "u-slot-value" >
< u - -input
placeholder = "请输入不良品数量"
border = "none"
style = "background: #ffffff;"
: disabled = "info.status==3?true:false"
v - model = "contentInfo.rejects_num"
clearable
> < / u - - i n p u t >
< / view >
< / u - c e l l >
< u -cell size = "large" :key ="index" v-for ="(item,index) in contentInfo.content" :titleStyle="{color:'#E03023'}" :title="item.key" center :value="item.value" > < / u -cell >
< u -cell size = "large" :key ="index" v-for ="(item,index) in contentInfo.content" :titleStyle="{color:'#E03023'}" :title="item.key" center :value="item.value" > < / u -cell >
< u -cell size = "large" title = "待质检数量" :value ="contentInfo.member_num.toString()" center > < / u - c e l l >
< u -cell size = "large" title = "待质检数量" :value ="contentInfo.member_num.toString()" center > < / u - c e l l >
@ -39,7 +50,8 @@
< view slot = "value" class = "u-slot-value fujian" @click ="downLoad(contentInfo.file)" style = "display: flex;align-items: center;" >
< view slot = "value" class = "u-slot-value fujian" @click ="downLoad(contentInfo.file)" style = "display: flex;align-items: center;" >
< image src = "../../static/img.png" v-if ="contentInfo.file_suffix=='png'" mode="" > < / image >
< image src = "../../static/img.png" v-if ="contentInfo.file_suffix=='png'" mode="" > < / image >
< image src = "../../static/pdf.png" v-if ="contentInfo.file_suffix=='pdf'" mode="" > < / image >
< image src = "../../static/pdf.png" v-if ="contentInfo.file_suffix=='pdf'" mode="" > < / image >
< text style = "overflow: hidden;width:400upx;text-overflow: ellipsis;" > { { contentInfo . file } } < / text >
<!-- < text style = "overflow: hidden;width:400upx;text-overflow: ellipsis;" > { { contentInfo . file } } < / text > -- >
< text style = "color:#0076F6;text-decoration: underline;" > 查看 < / text >
< / view >
< / view >
< / u - c e l l >
< / u - c e l l >
< u -cell size = "large" title = "拍照" center class = "img" :border ="false" >
< u -cell size = "large" title = "拍照" center class = "img" :border ="false" >
@ -49,6 +61,7 @@
@ afterRead = "afterRead"
@ afterRead = "afterRead"
@ delete = "deletePic"
@ delete = "deletePic"
name = "5"
name = "5"
: disabled = "info.status==3?true:false"
: previewFullImage = "true"
: previewFullImage = "true"
multiple
multiple
: maxCount = "3"
: maxCount = "3"
@ -57,11 +70,12 @@
< / u - c e l l >
< / u - c e l l >
< / u - c e l l - g r o u p >
< / u - c e l l - g r o u p >
< / view >
< / view >
< view class = "submitContent" >
< view class = "submitContent" v-if ="info.status!=3" >
< u - -input
< u - -input
placeholder = "请输入完成数量"
placeholder = "请输入完成数量"
border = "surround"
border = "surround"
v - model = "num"
v - model = "num"
: disabled = "info.status==3?true:false"
class = "input"
class = "input"
shape = "circle"
shape = "circle"
> < / u - - i n p u t >
> < / u - - i n p u t >
@ -83,7 +97,7 @@
v - for = "(item, index) in checkboxList1"
v - for = "(item, index) in checkboxList1"
: key = "index"
: key = "index"
: label = "item.name"
: label = "item.name"
: name = "item.id "
: name = "item.name "
>
>
< / u - c h e c k b o x >
< / u - c h e c k b o x >
< / u - c h e c k b o x - g r o u p >
< / u - c h e c k b o x - g r o u p >
@ -110,14 +124,14 @@
< script >
< script >
import { getDeails , logout , submitHandle } from "@/api/user.js"
import { getDeails , logout , submitHandle , confirmProcedureHandle } from "@/api/user.js"
export default {
export default {
data ( ) {
data ( ) {
return {
return {
info : { } ,
info : { } ,
show : false ,
show : false ,
contentInfo : {
contentInfo : {
rejects : null ,
rejects : '' ,
rejects _num : 0 ,
rejects _num : 0 ,
statusName : null ,
statusName : null ,
member _num : 0 ,
member _num : 0 ,
@ -151,8 +165,8 @@
let params = {
let params = {
id : this . info . id ,
id : this . info . id ,
num : this . num ,
num : this . num ,
rejects : this . checkboxValue1 . join ( ',' ) ,
rejects : this . contentInfo . rejects ,
rejects _num : this . checkboxValue1 . length ,
rejects _num : this . contentInfo . rejects _num ,
imgs : imgs . join ( ',' )
imgs : imgs . join ( ',' )
}
}
console . log ( params )
console . log ( params )
@ -165,7 +179,7 @@
title : '操作成功'
title : '操作成功'
} )
} )
uni . redirectTo ( {
uni . redirectTo ( {
url : '/pages/processList/processList?id=' + this . info . taskId
url : '/pages/processList/processList?id=' + this . info . taskId + '&heat_num=' + this . info . heat _num
} )
} )
}
}
} )
} )
@ -248,16 +262,7 @@
} ,
} ,
besure ( ) {
besure ( ) {
let text = "" ;
this . contentInfo . rejects = this . checkboxValue1 . join ( "," )
this . checkboxValue1 . forEach ( item => {
let obj = this . checkboxList1 . filter ( i => {
return i . id == item
} )
text += obj [ 0 ] . name + ','
} )
console . log ( text )
this . contentInfo . rejects = text
this . contentInfo . rejects _num = this . checkboxValue1 . length ;
this . sheetShow = false
this . sheetShow = false
} ,
} ,
rejectHandle ( ) {
rejectHandle ( ) {
@ -267,12 +272,7 @@
close ( ) {
close ( ) {
this . show = false
this . show = false
} ,
} ,
getData ( ) {
getTaskList ( ) . then ( res => {
console . log ( res )
this . taskList = res . data
} )
} ,
changeUser ( ) {
changeUser ( ) {
logout ( ) . then ( res => {
logout ( ) . then ( res => {
console . log ( res )
console . log ( res )
@ -285,9 +285,17 @@
this . $store . commit ( 'logout' )
this . $store . commit ( 'logout' )
} )
} )
} ,
} ,
confirmProcedureHandle ( id ) {
confirmProcedureHandle ( { id : id } ) . then ( res => {
if ( res . code == 200 ) {
this . getDeails ( id )
}
} )
} ,
getDeails ( id ) {
getDeails ( id ) {
getDeails ( { id : id } ) . then ( res => {
getDeails ( { id : id } ) . then ( res => {
console . log ( res . data , "ppppp" )
this . contentInfo . rejects _num = res . data . rejects _num ;
this . contentInfo . rejects _num = res . data . rejects _num ;
this . contentInfo . content = res . data . content
this . contentInfo . content = res . data . content
this . contentInfo . member _num = res . data . procedure _member . member _num
this . contentInfo . member _num = res . data . procedure _member . member _num
@ -315,19 +323,19 @@
this . contentInfo . needing _remake = res . data . needing _remake
this . contentInfo . needing _remake = res . data . needing _remake
this . checkboxList1 = res . data . rejects _list ;
this . checkboxList1 = res . data . rejects _list ;
let text = "" ;
res . data . rejects . split ( "," ) . forEach ( item => {
if ( res . data . rejects ) {
this . checkboxValue1 . push ( Number ( item ) )
res . data . rejects . split ( "," ) . forEach ( item => {
let obj = this . checkboxList1 . filter ( i => {
this . checkboxValue1 . push ( item )
return i . id == item
} )
} )
text += obj [ 0 ] . name + ','
}
} )
this . contentInfo . rejects = res . data . rejects
console . log ( text )
if ( res . data . procedure _member . imgs ) {
this . contentInfo . rejects = text
res . data . procedure _member . imgs . forEach ( i => {
res . data . procedure _member . imgs . forEach ( i => {
this . fileList . push ( { url : i , path : i . substr ( 25 ) } )
this . fileList . push ( { url : i , path : i . substr ( 25 ) } )
} )
} )
}
if ( this . contentInfo . needing _remake ) {
if ( this . contentInfo . needing _remake ) {
this . startVisible = true ;
this . startVisible = true ;
@ -352,7 +360,8 @@
if ( uni . getStorageSync ( 'userToken' ) ) {
if ( uni . getStorageSync ( 'userToken' ) ) {
console . log ( option , "0000" )
console . log ( option , "0000" )
this . info = option
this . info = option
this . getDeails ( option . id )
this . confirmProcedureHandle ( option . id )
/ / t h i s . g e t D e a i l s ( o p t i o n . i d )
} else {
} else {
uni . redirectTo ( {
uni . redirectTo ( {
url : '/pages/login/login'
url : '/pages/login/login'