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