|
@@ -8,16 +8,6 @@
|
|
|
:loading="loading"
|
|
|
:searchConfig="searchConfig"
|
|
|
highlight-current-row
|
|
|
- :table-events="{
|
|
|
- select: selectRow,
|
|
|
- 'select-all': selectRow,
|
|
|
- }"
|
|
|
- :action-list="[
|
|
|
- {
|
|
|
- text: '批量打印',
|
|
|
- action: () => clickBatchPrinting(),
|
|
|
- },
|
|
|
- ]"
|
|
|
@get-list="getList"
|
|
|
@clickReset="clickReset">
|
|
|
</byTable>
|
|
@@ -78,12 +68,6 @@ const searchConfig = computed(() => {
|
|
|
const config = computed(() => {
|
|
|
return [
|
|
|
{
|
|
|
- type: "selection",
|
|
|
- attrs: {
|
|
|
- checkAtt: "isCheck",
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
attrs: {
|
|
|
label: "维度",
|
|
|
prop: "dimensionality",
|
|
@@ -145,14 +129,7 @@ const config = computed(() => {
|
|
|
const getDemandData = () => {
|
|
|
proxy.post("/department/page", { pageNum: 1, pageSize: 999 }).then((res) => {
|
|
|
if (res.rows && res.rows.length > 0) {
|
|
|
- departmentList.value = departmentList.value.concat(
|
|
|
- res.rows.map((item) => {
|
|
|
- return {
|
|
|
- dictKey: item.id,
|
|
|
- dictValue: item.name,
|
|
|
- };
|
|
|
- })
|
|
|
- );
|
|
|
+ departmentList.value = departmentList.value;
|
|
|
}
|
|
|
});
|
|
|
};
|
|
@@ -188,10 +165,6 @@ getList();
|
|
|
const clickReset = () => {
|
|
|
getList("", true);
|
|
|
};
|
|
|
-const selectData = ref([]);
|
|
|
-const selectRow = (data) => {
|
|
|
- selectData.value = data;
|
|
|
-};
|
|
|
const openPrint = ref(false);
|
|
|
const idGroupConcat = ref("");
|
|
|
const activeName = ref("sku");
|
|
@@ -200,15 +173,6 @@ const clickPrint = (row) => {
|
|
|
idGroupConcat.value = row.idGroupConcat;
|
|
|
openPrint.value = true;
|
|
|
};
|
|
|
-const clickBatchPrinting = () => {
|
|
|
- if (selectData.value && selectData.value.length > 0) {
|
|
|
- idGroupConcat.value = selectData.value.map((item) => item.idGroupConcat).join(",");
|
|
|
- activeName.value = "sku";
|
|
|
- openPrint.value = true;
|
|
|
- } else {
|
|
|
- return ElMessage("请选择需要批量操作的数据");
|
|
|
- }
|
|
|
-};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|