chenlu
2024-06-27 4228413fb94652826d623f991775d78e3cf0eb29
north-glass-erp/northglass-erp/src/views/sd/product/SelectProduct.vue
@@ -208,7 +208,7 @@
  },
  columns:[
    {type:'expand',fixed:"left",slots: { content:'content' },width: 60},
    {title: t('basicData.operate'), width: 110, slots: { default: 'button_slot' },fixed:"left"},
    {title: t('basicData.operate'), width: 120, slots: { default: 'button_slot' },fixed:"left"},
    {field:'state',title: t('basicData.review'), width: 40, slots: { default: 'state' }},
    {type: 'seq',fixed:"left", title: t('basicData.Number'), width: 80 },
    {field: 'id', title: t('basicData.number'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: false},
@@ -280,9 +280,10 @@
    'getProductRow'
])
const emitParent = (row) => {
  emit('getProductRow', row)
const emitParent = (row,type) => {
    emit('getProductRow', row,type)
}
/*后端返回结果多层嵌套展示*/
@@ -356,7 +357,8 @@
        </el-popconfirm>
      </template>
      <template #button_slot="{ row }" v-else>
        <el-button @click="emitParent(row)" link type="primary" size="small">{{ $t('basicData.add') }}</el-button>
        <el-button @click="emitParent(row,1)" link type="primary" size="small">{{ $t('basicData.add') }}</el-button>
        <el-button @click="emitParent(row,2)" link type="primary" size="small">{{ $t('product.usingAbbreviations') }}</el-button>
      </template>
      <template #num1_filter="{ column, $panel }">