This commit is contained in:
parent
5f740e5b75
commit
2e64d68854
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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: {
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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({
|
||||||
|
|
|
||||||
|
|
@ -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({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue