|
@@ -7,16 +7,10 @@ import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
|
|
import { useCompany } from "/@/hooks/core/useCompany";
|
|
|
import { httpXSList, httpCGList } from "/@/api/invoice/query";
|
|
|
import { INV_OPEN_STATUS } from "/@/utils/details/inv-open";
|
|
|
-import { STATUS_OPTIONS as returnStatus } from "/@/utils/details/ticket-return";
|
|
|
import { useNav } from "/@/layout/hooks/nav";
|
|
|
import { useRouter } from "vue-router";
|
|
|
|
|
|
-import {
|
|
|
- cgInvTypeOptions,
|
|
|
- xsInvTypeOptions,
|
|
|
- xsOpenType,
|
|
|
- cgOpenType
|
|
|
-} from "./../options";
|
|
|
+import { xsOpenType } from "./../options";
|
|
|
import { xs_inv_type_list } from "/@/utils/status";
|
|
|
|
|
|
const { logout } = useNav();
|
|
@@ -44,8 +38,6 @@ const { currentCompany } = useCompany();
|
|
|
|
|
|
const columns = computed(() => xsColumns.value);
|
|
|
|
|
|
-const statusOptions = computed(() => INV_OPEN_STATUS);
|
|
|
-
|
|
|
const toPath = computed(() => "/InvoiceSales/invoiceApplyDetail");
|
|
|
|
|
|
const pagination = reactive<PaginationProps>({
|
|
@@ -102,13 +94,6 @@ const resetForm = (formEl: FormInstance | undefined) => {
|
|
|
onSearch();
|
|
|
};
|
|
|
|
|
|
-function resetType() {
|
|
|
- form.page = 1;
|
|
|
- form.inv_type = "";
|
|
|
- form.timer = [];
|
|
|
- onSearch();
|
|
|
-}
|
|
|
-
|
|
|
function toDetail(data) {
|
|
|
const id = formData.value.type === "0" ? data["invNo"] : data["hpNo"];
|
|
|
push(toPath.value + "?id=" + id + "&back=/invoice/query");
|
|
@@ -183,8 +168,9 @@ onMounted(() => {
|
|
|
|
|
|
<ElTag v-else-if="c.slot === 'status'">
|
|
|
{{
|
|
|
- statusOptions.find(s => s.value === scope.row["status"])
|
|
|
- ?.label || "--"
|
|
|
+ INV_OPEN_STATUS.find(
|
|
|
+ s => s.value === String(scope.row["status"])
|
|
|
+ )?.label || "--"
|
|
|
}}
|
|
|
</ElTag>
|
|
|
|