This commit is contained in:
parent
5f740e5b75
commit
2e64d68854
|
|
@ -141,7 +141,8 @@
|
|||
if (redata && redata.length > 0) {
|
||||
let obj = {
|
||||
...element,
|
||||
children: redata
|
||||
children: redata,
|
||||
expanded: true // 展开子节点
|
||||
};
|
||||
newarr.push(obj);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,12 @@
|
|||
inject: ['defaultProps', 'onClickItem'],
|
||||
data() {
|
||||
return {
|
||||
show: false
|
||||
show: !!this.item.expanded
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'item.expanded'(val) {
|
||||
this.show = !!val;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue