guoyuji
2024-07-02 8ae1ac45da7400f8e47e8026ea6391f18427103f
产品查询 选择下拉框直接查询产品
2个文件已修改
18 ■■■■ 已修改文件
north-glass-erp/northglass-erp/src/components/sd/product/GlassType.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/views/sd/product/SelectProduct.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/components/sd/product/GlassType.vue
@@ -18,12 +18,19 @@
    ElMessage.warning(res.msg)
  }
})
let emit = defineEmits([
  'getProduct'
])
const emitParent = () => {
  emit('getProduct')
}
</script>
<template>
  <div>
    <el-cascader
        @change="emitParent"
        v-model="productGlassTypeStore.GlassType"
        :options="options"
        clearable
north-glass-erp/northglass-erp/src/views/sd/product/SelectProduct.vue
@@ -223,6 +223,9 @@
  data:null,//表格数据
  toolbarConfig: {
    buttons: [],
    slots:{
      buttons: "toolbar_buttons"
    },
    // import: false,
    // export: true,
    // print: true,
@@ -317,11 +320,11 @@
<template>
  <div style="width: 100%;height: 100%">
      <glass-type   style="float: left" />
<!--      <glass-type   style="float: left" />
      <el-button
          @click="getProduct"
          id="select"
          type="primary" :icon="Search">{{ $t('basicData.search') }}</el-button>
          type="primary" :icon="Search">{{ $t('basicData.search') }}</el-button>-->
@@ -332,7 +335,6 @@
        ref="xGrid"
        v-bind="gridOptions"
        @scroll ="scrollEvnt"
    >
      <!--      @toolbar-button-click="toolbarButtonClickEvent"-->
      <!--      下拉显示所有信息插槽-->
@@ -371,6 +373,9 @@
      <template #state="{ row,column}">
        <el-checkbox @click.native.prevent   :checked="row[column.field]===1"/>
      </template>
      <template #toolbar_buttons>
        <glass-type  @getProduct="getProduct"  />
      </template>
    </vxe-grid>