Merge branch 'dwb' of https://e.coding.net/g-cphe0354/cashier/cashier-web
This commit is contained in:
commit
df4ffc30d4
|
|
@ -88,7 +88,7 @@
|
|||
<myDialog title="选择商品" width="50%" ref="myDialogRef" @Confirm="subitgood">
|
||||
<page-search ref="searchRefs" :search-config="searchConfig2" @query-click="searchs"
|
||||
@reset-click="handleResetClick" />
|
||||
<page-content ref="contentRefs" :content-config="contentConfig2" @add-click="handleAddClick"
|
||||
<page-content ref="contentRefs" v-if="switchref" :content-config="contentConfig2" @add-click="handleAddClick"
|
||||
@edit-click="handleEditClick" @export-click="handleExportClick" @search-click="handleSearchClick"
|
||||
@toolbar-click="handleToolbarClick" @operat-click="handleOperatClick" @filter-change="handleFilterChange">
|
||||
<template #status="scope">
|
||||
|
|
@ -184,6 +184,7 @@ const {
|
|||
handleFilterChange,
|
||||
} = usePage();
|
||||
|
||||
let switchref = ref(false)
|
||||
|
||||
// 新增
|
||||
async function handleAddClick() {
|
||||
|
|
@ -211,6 +212,7 @@ let forms = reactive({
|
|||
|
||||
// 添加商品
|
||||
function addgoods() {
|
||||
switchref.value = true
|
||||
myDialogRef.value.open()
|
||||
}
|
||||
const rules = reactive<FormRules<RuleForm>>({
|
||||
|
|
@ -269,6 +271,7 @@ async function addConfirm() {
|
|||
// 添加商品的回调
|
||||
function subitgood() {
|
||||
selectData.value = contentRefs.value.getselectTable()
|
||||
switchref.value = false
|
||||
myDialogRef.value.close()
|
||||
}
|
||||
// 删除商品
|
||||
|
|
|
|||
Loading…
Reference in New Issue