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) { if (redata && redata.length > 0) {
let obj = { let obj = {
...element, ...element,
children: redata children: redata,
expanded: true //
}; };
newarr.push(obj); newarr.push(obj);
} }

View File

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

View File

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

View File

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

View File

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