|
@@ -44,6 +44,15 @@
|
|
|
@click="printCode">二维码打印
|
|
|
</el-button>
|
|
|
</template>
|
|
|
+ <template #menu-right="{}">
|
|
|
+ <el-button class="ml-3" @click="
|
|
|
+ data2.Utils.exportData(
|
|
|
+ '/api/v1/stock/export'
|
|
|
+ )
|
|
|
+ ">
|
|
|
+ <template #icon> <i-ep-download /> </template>导出
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
</avue-crud>
|
|
|
<el-dialog
|
|
|
v-model="dialog1.visible"
|
|
@@ -71,6 +80,11 @@ const { form, data, option, search, page, toDeleteIds, Methords, Utils } =
|
|
|
const { dataList, createRow, updateRow, deleteRow, searchChange, resetChange } = Methords; //增删改查
|
|
|
const { selectionChange, multipleDelete } = Methords; //选中和批量删除事件
|
|
|
const { checkBtnPerm, downloadTemplate, exportData } = Utils; //按钮权限等工具
|
|
|
+const data2 = ref(
|
|
|
+ useCrud({
|
|
|
+ src: "/api/v1/wms",
|
|
|
+ })
|
|
|
+);
|
|
|
|
|
|
const crudRef = ref(null); //crudRef.value 获取avue-crud对象
|
|
|
const dialog1 = reactive({
|