|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <el-card class="box-card">
|
|
|
|
|
|
+ <el-card :class="props.selectStatus ? 'select-card' : 'box-card'">
|
|
<byTable
|
|
<byTable
|
|
:source="sourceList.data"
|
|
:source="sourceList.data"
|
|
:pagination="sourceList.pagination"
|
|
:pagination="sourceList.pagination"
|
|
@@ -9,10 +9,12 @@
|
|
:searchConfig="searchConfig"
|
|
:searchConfig="searchConfig"
|
|
highlight-current-row
|
|
highlight-current-row
|
|
:action-list="[
|
|
:action-list="[
|
|
- {
|
|
|
|
- text: '操作日志',
|
|
|
|
- action: () => viewLogs(),
|
|
|
|
- },
|
|
|
|
|
|
+ props.selectStatus
|
|
|
|
+ ? {}
|
|
|
|
+ : {
|
|
|
|
+ text: '操作日志',
|
|
|
|
+ action: () => viewLogs(),
|
|
|
|
+ },
|
|
]"
|
|
]"
|
|
@get-list="getList"
|
|
@get-list="getList"
|
|
@clickReset="clickReset">
|
|
@clickReset="clickReset">
|
|
@@ -71,6 +73,9 @@ import byTable from "@/components/byTable/index";
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
+const props = defineProps({
|
|
|
|
+ selectStatus: Boolean,
|
|
|
|
+});
|
|
const departmentList = ref([{ dictKey: "0", dictValue: "胜德体育" }]);
|
|
const departmentList = ref([{ dictKey: "0", dictValue: "胜德体育" }]);
|
|
const sourceList = ref({
|
|
const sourceList = ref({
|
|
data: [],
|
|
data: [],
|
|
@@ -298,18 +303,30 @@ const config = computed(() => {
|
|
},
|
|
},
|
|
renderHTML(row) {
|
|
renderHTML(row) {
|
|
return [
|
|
return [
|
|
- {
|
|
|
|
- attrs: {
|
|
|
|
- label: "税率",
|
|
|
|
- type: "primary",
|
|
|
|
- text: true,
|
|
|
|
- },
|
|
|
|
- el: "button",
|
|
|
|
- click() {
|
|
|
|
- clickChangeTaxRate(row);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- row.status == 0 || row.status == 10 || row.status == 20
|
|
|
|
|
|
+ props.selectStatus
|
|
|
|
+ ? {
|
|
|
|
+ attrs: {
|
|
|
|
+ label: "选择",
|
|
|
|
+ type: "primary",
|
|
|
|
+ text: true,
|
|
|
|
+ },
|
|
|
|
+ el: "button",
|
|
|
|
+ click() {
|
|
|
|
+ clickSelect(row);
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ : {
|
|
|
|
+ attrs: {
|
|
|
|
+ label: "税率",
|
|
|
|
+ type: "primary",
|
|
|
|
+ text: true,
|
|
|
|
+ },
|
|
|
|
+ el: "button",
|
|
|
|
+ click() {
|
|
|
|
+ clickChangeTaxRate(row);
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ (row.status == 0 || row.status == 10 || row.status == 20) && !props.selectStatus
|
|
? {
|
|
? {
|
|
attrs: {
|
|
attrs: {
|
|
label: "删除",
|
|
label: "删除",
|
|
@@ -351,6 +368,9 @@ const getList = async (req, status) => {
|
|
} else {
|
|
} else {
|
|
sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
}
|
|
}
|
|
|
|
+ if (props.selectStatus) {
|
|
|
|
+ sourceList.value.pagination.linkedStatementOfAccount = 0;
|
|
|
|
+ }
|
|
loading.value = true;
|
|
loading.value = true;
|
|
proxy.post("/orderInfo/page", sourceList.value.pagination).then((res) => {
|
|
proxy.post("/orderInfo/page", sourceList.value.pagination).then((res) => {
|
|
sourceList.value.data = res.rows;
|
|
sourceList.value.data = res.rows;
|
|
@@ -480,6 +500,10 @@ const submitChangeTaxRate = () => {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+const emit = defineEmits(["selectOrder"]);
|
|
|
|
+const clickSelect = (item) => {
|
|
|
|
+ emit("selectOrder", item);
|
|
|
|
+};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -490,4 +514,9 @@ const submitChangeTaxRate = () => {
|
|
margin-top: 10px !important;
|
|
margin-top: 10px !important;
|
|
margin-bottom: 10px !important;
|
|
margin-bottom: 10px !important;
|
|
}
|
|
}
|
|
|
|
+.select-card {
|
|
|
|
+ height: calc(100vh - 184px);
|
|
|
|
+ overflow-y: auto;
|
|
|
|
+ overflow-x: hidden;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|