This commit is contained in:
bb_pan 2025-06-09 10:17:01 +08:00
parent 5f740e5b75
commit 2e64d68854
5 changed files with 16 additions and 8 deletions

View File

@ -141,7 +141,8 @@
if (redata && redata.length > 0) {
let obj = {
...element,
children: redata
children: redata,
expanded: true //
};
newarr.push(obj);
}

View File

@ -30,7 +30,12 @@
inject: ['defaultProps', 'onClickItem'],
data() {
return {
show: false
show: !!this.item.expanded
}
},
watch: {
'item.expanded'(val) {
this.show = !!val;
}
},
methods: {

View File

@ -267,12 +267,12 @@
"navigationBarTitleText": "OCR出库"
}
},
{
"path": "pages/toolsLease/rfidOut",
"style": {
"navigationBarTitleText": "rfid出库"
}
},
// {
// "path": "pages/toolsLease/rfidOut",
// "style": {
// "navigationBarTitleText": "rfid出库"
// }
// },
// 4.
{
"path": "pages/picking/outbound/num-outbound",

View File

@ -396,6 +396,7 @@ const submit = (isBack) => {
.validate()
.then(async (valid) => {
formData.isBack = isBack
formData.createBy = uni.getStorageSync('username') || ''
console.log('🚀 ~ form.value.validate.then ~ valid:', valid)
if (tableData.value.length === 0) {
await uni.showToast({

View File

@ -418,6 +418,7 @@ const submit = (isOut) => {
.validate()
.then(async (valid) => {
formData.isOut = isOut
formData.createBy = uni.getStorageSync('username') || ''
console.log('🚀 ~ form.value.validate.then ~ valid:', valid)
if (tableData.value.length === 0) {
await uni.showToast({