bug修复

This commit is contained in:
hongchao 2025-03-18 16:56:04 +08:00
parent e591c13c60
commit 300ff032e5
4 changed files with 41 additions and 12 deletions

View File

@ -561,5 +561,15 @@
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#dcf4ff",
"backgroundColor": "#f8f8f8"
}
},
"condition" : { //
"current": 0, //(list )
"list": [
{
"name": "", //
"path": "", //
"query": "" //onLoad
}
]
}
}

View File

@ -295,7 +295,7 @@ const getUnitOut = () => {
}
getUnitList(obj)
.then((res) => {
console.log(res)
console.log("xxxxxxxxxx",res)
unitListOut.value = res.data
// getAgreement()
if (formDataOut.value.unitId && formDataOut.value.projectId) {
@ -487,7 +487,10 @@ onReady((opt) => {
console.log('🚀 ~ opt:', opt)
onLoad((options) => {
console.log("uuuuuuuuuuuuu",options)
if(options && options.params){
opt = JSON.parse(options.params)
}
if (opt.type == 'edit') {
isEdit.value = true
getDetails()

View File

@ -391,6 +391,22 @@ const getMaCode = () => {
//
const selectMaCode = (e) => {
console.log(e)
// typeList typeId
const exists = typeList.value.some(existingItem => existingItem.typeId === e);
if (exists) {
let name = ''
maCodeSelectList.value.forEach(item => {
if (item.typeId === e) {
name = item.typeName
}
})
uni.showToast({
title: `${name} 已添加到列表中`,
icon: 'none',
duration: 1000
})
return
}
maCodeSelectList.value.forEach(item=>{
console.log(item)
if(item.typeId==e){

View File

@ -184,11 +184,11 @@ const pickingList = ref([
url: '',
iconSrc: '../../static/workbench/backCreate.png',
},
{
title: '退料接收',
url: '/pages/back/index',
iconSrc: '../../static/workbench/backCreate.png',
},
// {
// title: '退',
// url: '/pages/back/index',
// iconSrc: '../../static/workbench/backCreate.png',
// },
{
title: '修试入库',
url: '/pages/repair/testedInBound/index',
@ -208,11 +208,11 @@ const partList = ref([
url: '',
iconSrc: '../../static/workbench/partIn.png',
},
{
title: '配件领用申请',
url: '',
iconSrc: '../../static/workbench/partApprove.png',
}
// {
// title: '',
// url: '',
// iconSrc: '../../static/workbench/partApprove.png',
// }
])
//