payne
2024-04-25 2306e1ff0c47d95864986f7e27c9d53a2d65ab59
iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/index.vue
@@ -176,7 +176,9 @@
          <a-button type="info" v-if="hasPerm('WmsMaterial:exportExcel')" icon="download" @click="WmsMaterialToExcel()">
            导出
          </a-button>
         <a-button type="primary" v-if="hasPerm('WmsMaterial:add')" icon="plus" @click="$refs.addForm.add()">新增物料信息表</a-button>
         <!-- <a-button type="primary" v-if="hasPerm('WmsMaterial:add')" icon="plus" @click="$refs.addForm.add()">新增物料信息表</a-button> -->
         <!-- 自定义 -->
         <a-button type="primary" v-if="hasPerm('WmsMaterial:add')" icon="plus" @click="$refs.tabForm.add()">新增物料信息</a-button>
      </div>
      </template>
        <span slot="isDisabledscopedSlots" slot-scope="text">
@@ -190,7 +192,9 @@
         </span>
        <span slot="action" slot-scope="text, record">
         
         <a v-if="hasPerm('WmsMaterial:edit')" @click="$refs.editForm.edit(record)">编辑</a>
         <!-- <a v-if="hasPerm('WmsMaterial:edit')" @click="$refs.editForm.edit(record)">编辑</a> -->
         <a v-if="hasPerm('WmsMaterial:edit')" @click="$refs.tabForm.add(record)">编辑</a>
          <a-divider type="vertical" v-if="hasPerm('WmsMaterial:edit') & hasPerm('WmsMaterial:delete')"/>
          <a-popconfirm v-if="hasPerm('WmsMaterial:delete')" placement="topRight" title="确认删除?" @confirm="() => WmsMaterialDelete(record)">
            <a>删除</a>
@@ -200,6 +204,9 @@
      <add-form ref="addForm" @ok="handleOk" />
      <edit-form ref="editForm" @ok="handleOk" />
     <excel-form ref="excelForm" @ok="handleOk" />
     <!-- 自定义 -->
     <tab-form ref="tabForm" @ok="handleOk" />
    </a-card>
  </div>
</template>
@@ -210,6 +217,9 @@
   //自定义table高度
   import setTableHtMixin from '@/mixins/handleTableHt.js'
   import addForm from './addForm.vue'
//自定义
   import tabForm from './tabForm.vue'
   import { exportExcel } from '@/utils/exportToExcel'
   import { downloadFile } from '@/utils/util'
   import editForm from './editForm.vue'
@@ -220,7 +230,8 @@
   STable,
   addForm,
   editForm,
   excelForm
   excelForm,
   tabForm //自定义
   },
   data () {
   return {