业务办理,领料审核修正
This commit is contained in:
parent
fc0438b76d
commit
044bae7c62
|
|
@ -485,7 +485,7 @@ const onHandleOutbound = async () => {
|
|||
}
|
||||
|
||||
.step-title {
|
||||
font-size: 11px;
|
||||
font-size: 10px;
|
||||
font-weight: 400;
|
||||
margin-bottom: 3px;
|
||||
text-align: center;
|
||||
|
|
|
|||
|
|
@ -41,16 +41,10 @@
|
|||
class="table-list-item"
|
||||
:key="index"
|
||||
v-for="(item, index) in tableList"
|
||||
@click="handleItem(item)"
|
||||
@click="onReview(item)"
|
||||
>
|
||||
<uni-swipe-action class="swipe-action">
|
||||
<uni-swipe-action-item
|
||||
:right-options="(item.taskStatus === 3 || item.taskStatus === 2) ? viewOptions :
|
||||
(item.taskStatus === 1 || item.taskStatus === 0) &&
|
||||
typeof item.configValue === 'string' &&
|
||||
item.configValue.includes(userId) ? reviewOptions : []"
|
||||
@click="onReview($event, item)"
|
||||
>
|
||||
<uni-swipe-action-item>
|
||||
<div class="title">
|
||||
<span class="code">{{ item.code }}</span>
|
||||
<div class="cont">
|
||||
|
|
@ -177,19 +171,41 @@ const viewOptions = reactive([
|
|||
|
||||
|
||||
// 审核/查看
|
||||
const onReview = (e, item) => {
|
||||
console.log('e', e)
|
||||
const params = {
|
||||
id: item.id,
|
||||
taskId: item.taskId,
|
||||
flowId: item.flowId,
|
||||
nodeId: item.nodeId,
|
||||
type: e.content.text ==='审核' ? 1 : 2,
|
||||
const onReview = (item) => {
|
||||
if(item.taskStatus === 3 || item.taskStatus === 2){
|
||||
uni.navigateTo({
|
||||
url: `/pages/picking/review/details?params=${JSON.stringify({
|
||||
id: item.id,
|
||||
taskId: item.taskId,
|
||||
flowId: item.flowId,
|
||||
nodeId: item.nodeId,
|
||||
type: 2,
|
||||
})}`,
|
||||
})
|
||||
}else if((item.taskStatus === 1 || item.taskStatus === 0) && typeof item.configValue === 'string' && item.configValue.includes(userId.value)){
|
||||
console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",userId)
|
||||
uni.navigateTo({
|
||||
url: `/pages/picking/review/details?params=${JSON.stringify({
|
||||
id: item.id,
|
||||
taskId: item.taskId,
|
||||
flowId: item.flowId,
|
||||
nodeId: item.nodeId,
|
||||
type: 1,
|
||||
})}`,
|
||||
})
|
||||
}
|
||||
console.log('params', params)
|
||||
uni.navigateTo({
|
||||
url: `/pages/picking/review/details?params=${JSON.stringify(params)}`,
|
||||
})
|
||||
|
||||
// const params = {
|
||||
// id: item.id,
|
||||
// taskId: item.taskId,
|
||||
// flowId: item.flowId,
|
||||
// nodeId: item.nodeId,
|
||||
// type: e.content.text ==='审核' ? 1 : 2,
|
||||
// }
|
||||
// console.log('params', params)
|
||||
// uni.navigateTo({
|
||||
// url: `/pages/picking/review/details?params=${JSON.stringify(params)}`,
|
||||
// })
|
||||
}
|
||||
|
||||
const handleItemxxxx = (item) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue