Browse Source

Merge branch 'sit' of http://120.46.155.214:3000/xiaodai2022/accout-vue3-ui into sit

snow 2 years ago
parent
commit
35211cf459

+ 1 - 0
src/views/InvoiceSales/capitalClaim/index.vue

@@ -22,6 +22,7 @@ import { CAPITAL_STATUS } from "/@/utils/details/tragelog";
 import { httpWithdraw } from "/@/api/InvoiceSales/capitalClaim";
 import { httpRequsetExport } from "/@/utils/export";
 
+
 const { push } = useRouter();
 
 const execlUploadRef = ref<InstanceType<typeof ExeclUpload>>(null);

+ 43 - 0
src/views/parameter/commission/config/detail.ts

@@ -0,0 +1,43 @@
+export default [
+  {
+    value: "710",
+    label: "回款核销明细表",
+    time: "",
+    end: "",
+    url: "ole"
+  },
+  {
+    value: "711",
+    label: "回票明细表",
+    time: "",
+    end: "",
+    url: "ie"
+  },
+  {
+    value: "712",
+    label: "经营分析报表",
+    time: "",
+    end: "",
+    url: "ae"
+  },
+  {
+    value: "713",
+    label: "收入成本明细表",
+    time: "",
+    url: "oie"
+  },
+  {
+    value: "714",
+    label: "应收台账表",
+    time: "",
+    end: "",
+    url: "sbe"
+  },
+  {
+    value: "715",
+    label: "用友销票表",
+    time: "",
+    end: "",
+    url: "pie"
+  }
+];

+ 93 - 0
src/views/parameter/commission/index.vue

@@ -0,0 +1,93 @@
+<script setup lang="ts">
+import getColumns from "./config/detail";
+import { reactive, ref, onMounted, unref } from "vue";
+
+import { useUserStoreHook } from "/@/store/modules/user";
+import { httpRequsetExport } from "/@/utils/export";
+import { ElMessage } from "element-plus";
+import { getRelaComNo } from "/@/utils/auth";
+defineOptions({
+  name: "commission"
+});
+
+const dataList = ref<Array<Record<string, string>>>(getColumns);
+const powers = ref<Array<string>>([]);
+//导出模板
+async function onDownloadOpenInv(row) {
+  const relaComNo = getRelaComNo() ?? "";
+  if (relaComNo == "") {
+    ElMessage.warning("请选择公司!");
+    return;
+  }
+  if (row.time.length === 2) {
+    await httpRequsetExport({
+      url: row.url,
+      name: row.label,
+      params: {
+        start: row.time[0],
+        company: relaComNo,
+        end: row.time[1]
+      }
+    });
+  } else {
+    ElMessage.warning("请选择时间区间!");
+  }
+}
+onMounted(() => {
+  const p = useUserStoreHook().getMenuActions("commission");
+  powers.value = p;
+});
+</script>
+
+<template>
+  <div class="main">
+    <PagePower :is-show="powers.some(i => i === '001')">
+      <div style="width: 100%; text-align: center">
+        <div
+          style="
+            width: 700px;
+            text-align: left;
+            display: inline-block;
+            margin: 14vh 2vh 0 0;
+          "
+        >
+          <div
+            v-for="(si, sii) in dataList"
+            :key="si.value + sii"
+            style="padding: 10px 20px"
+          >
+            <el-row style="width: 100%">
+              <el-col
+                :span="7"
+                class="tr"
+                style="padding: 0 30px 0 0; line-height: 32px"
+                >{{ si.label }}</el-col
+              >
+              <el-col :span="14">
+                <el-date-picker
+                  v-model="si.time"
+                  type="daterange"
+                  range-separator="至"
+                  value-format="YYYY-MM-DD"
+                  start-placeholder="开始日期"
+                  end-placeholder="结束日期"
+                />
+              </el-col>
+              <el-col :span="3"
+                ><el-button type="primary" @click="onDownloadOpenInv(si)">
+                  导出
+                </el-button></el-col
+              >
+            </el-row>
+          </div>
+        </div>
+      </div>
+    </PagePower>
+  </div>
+</template>
+
+<style scoped lang="scss">
+:deep(.el-dropdown-menu__item i) {
+  margin: 0;
+}
+</style>

+ 23 - 28
src/views/parameter/invoiceheader/config/content.config.ts

@@ -20,56 +20,51 @@ const columns = [
     width: 70,
     hide: ({ checkList }) => !checkList.includes("序号列")
   },
-
   {
-    label: "业务公司",
+    label: "企业纳税识别号",
+    prop: "invoice_code",
+    width: 150
+  },
+  {
+    label: "发票抬头",
     prop: "invoice_title",
-    width: 100
+    width: 160
+  },
+
+  {
+    label: "对公银行",
+    prop: "invoice_bank",
+    "min-width": 120
   },
   {
-    label: "企业法人",
-    prop: "invoice_people",
-    width: 100
+    label: "对公银行账户",
+    prop: "invoice_bankNo",
+    "min-width": 120
   },
   {
     label: "企业注册地址",
     prop: "invoice_addr",
-    width: 120
+    "min-width": 120
   },
   {
     label: "企业联系方式",
     prop: "invoice_mobile",
-    width: 120
-  },
-  {
-    label: "企业纳税识别号",
-    prop: "invoice_code",
-    width: 140
-  },
-  {
-    label: "对公银行",
-    prop: "invoice_bank",
-    width: 120
-  },
-  {
-    label: "对公银行账户",
-    prop: "invoice_bankNo",
-    width: 120
+    "min-width": 120
   },
   {
     label: "创建人",
     prop: "apply_name",
-    width: 80
+    width: 70
   },
   {
     label: "创建时间",
-    prop: "addTime",
-    formatter: ({ addtime }) => dayjs(addtime).format("YYYY-MM-DD HH:mm:ss")
+    prop: "addtime",
+    width: 145
   },
   {
     label: "操作",
     fixed: "right",
-    width: 120,
+    width: 80,
     slot: "operation"
   }
 ];
@@ -80,7 +75,7 @@ const contentConfig: ContentConfig = {
   apis: {
     httpList,
     httpAdd,
-    httpDelete,
+    // httpDelete,
     httpUpdate
   }
 };

+ 1 - 1
src/views/parameter/invoiceheader/config/search.config.ts

@@ -10,7 +10,7 @@ const searchFormConfig: FormConfig = {
     {
       field: "invoice_code",
       type: "input",
-      placeholder: "发票编号"
+      placeholder: "纳税识别号"
     }
   ]
 };