This commit is contained in:
parent
92659d4e5f
commit
6f0bcc7c09
|
|
@ -165,7 +165,7 @@ const getList = async () => {
|
|||
if (!opts.value.isOut && item.taskStatus != 4) {
|
||||
options = options.filter((option) => option.text !== '提交')
|
||||
}
|
||||
if (item.taskStatus == 1 || item.taskStatus == 5) {
|
||||
if (item.taskStatus == 5) {
|
||||
// 未完成状态
|
||||
options = options.filter((option) => option.text !== '编辑' && option.text !== '删除')
|
||||
|
||||
|
|
@ -371,11 +371,6 @@ onLoad((opt) => {
|
|||
console.log('🚀 ~ onLoad ~ opt:', opt)
|
||||
opts.value = opt.params ? JSON.parse(opt.params) : {}
|
||||
title.value = opts.value.isOut ? '工器具出库' : '工器具领料'
|
||||
// isOut 为 false 时,删除提交功能
|
||||
if (!opts.value.isOut) {
|
||||
options.value = options.value.filter((item) => item.text !== '提交')
|
||||
}
|
||||
console.log('🚀 ~ onLoad ~ options.value:', options.value)
|
||||
})
|
||||
onShow(() => {
|
||||
setTimeout(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue