|
@ -9,10 +9,11 @@ import AppCheck from "./_check.js"; |
|
|
export default { |
|
|
export default { |
|
|
components: { AppList, AppCheck }, |
|
|
components: { AppList, AppCheck }, |
|
|
template: html`<app-list ref="appListRef" :config="config" @command="onCommand" />
|
|
|
template: html`<app-list ref="appListRef" :config="config" @command="onCommand" />
|
|
|
<app-check v-if="visable" v-model="visable" :businessType="businessType" :data="data" :isBusiness="true" />`,
|
|
|
<app-check v-if="visable" v-model="visable" :businessType="businessType" :row="row" :data="data" :isBusiness="true" />`,
|
|
|
setup() { |
|
|
setup() { |
|
|
const appListRef = ref(null); |
|
|
const appListRef = ref(null); |
|
|
const visable = ref(false); |
|
|
const visable = ref(false); |
|
|
|
|
|
const row = ref(null); |
|
|
const data = ref(null); |
|
|
const data = ref(null); |
|
|
const route = useRoute(); |
|
|
const route = useRoute(); |
|
|
const businessType = route.meta.businessType; |
|
|
const businessType = route.meta.businessType; |
|
@ -50,11 +51,12 @@ export default { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} else if (item.path === "invbillNum" || item.path === "invGroupNum") { |
|
|
} else if (item.path === "invbillNum" || item.path === "invGroupNum") { |
|
|
|
|
|
row.value = rows[0]; |
|
|
data.value = { [item.path]: rows[0][item.path] }; |
|
|
data.value = { [item.path]: rows[0][item.path] }; |
|
|
visable.value = true; |
|
|
visable.value = true; |
|
|
} |
|
|
} |
|
|
console.log(item.path, item, rows); |
|
|
console.log(item.path, item, rows); |
|
|
}; |
|
|
}; |
|
|
return { appListRef, config, onCommand, visable, data, businessType }; |
|
|
return { appListRef, config, onCommand, visable, row, data, businessType }; |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|