|
@@ -13,7 +13,7 @@ import {
|
|
|
} from "@/api/modules/basicinfo";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import { localSet, localGet } from "@/utils/index";
|
|
|
-import { useCopyStore } from "@/stores/modules/copy";
|
|
|
+import { useClipboardStore } from "@/stores/modules/copy";
|
|
|
interface defaultState {
|
|
|
/**
|
|
|
* @description 单据当前状态
|
|
@@ -59,7 +59,7 @@ const state = reactive<defaultState>({
|
|
|
LjDetailRightRef: null,
|
|
|
VxeTableMxRef: null
|
|
|
});
|
|
|
-const copyStore = useCopyStore();
|
|
|
+const ClipboardStore = useClipboardStore();
|
|
|
const COPY_KEY = "configure_codemx";
|
|
|
/**
|
|
|
* @description 表格多选数据操作
|
|
@@ -367,7 +367,7 @@ export const useHooks = (t?: any) => {
|
|
|
ElMessage.error("请勾选要复制的数据!");
|
|
|
return;
|
|
|
}
|
|
|
- copyStore.copy(
|
|
|
+ ClipboardStore.copy(
|
|
|
checkDate.map((item: any) => ({
|
|
|
pzcodemx: item.pzcodemx,
|
|
|
namemx: item.namemx
|
|
@@ -379,7 +379,7 @@ export const useHooks = (t?: any) => {
|
|
|
|
|
|
const fPaste = async (type: number) => {
|
|
|
const checkDate = getTableRef(1)?.element.getCurrentRecord();
|
|
|
- const copyData = copyStore.getLatest<Array<{ pzcodemx: string; namemx: string }>>(COPY_KEY);
|
|
|
+ const copyData = ClipboardStore.getLatest<Array<{ pzcodemx: string; namemx: string }>>(COPY_KEY);
|
|
|
|
|
|
if (!copyData?.length) {
|
|
|
ElMessage.error("没有可粘贴的内容,请先执行复制功能");
|