Browse Source

fix:金税开票限制不能开电子专用发票

snow 2 years ago
parent
commit
2cbddf245a

+ 1 - 1
src/api/system/updates/index.ts

@@ -14,7 +14,7 @@ export const httpAdd = (data: object): ResponseType => {
 };
 // 菜单列表
 export const httpList = (data: object): ResponseType => {
-  return http.request("post", `${yewuApi}supplierlist`, { data });
+  return http.request("post", `${yewuApi}systemlist`, { data });
 };
 // 菜单更新
 export const httpUpdate = (data: object): ResponseType => {

+ 4 - 0
src/views/InvoiceSales/invoiceApply/components/approval-process/src/upload-invoice.vue

@@ -79,6 +79,10 @@ function handleSaveStatus() {
       return ElMessage.error("扫描识别的发票类型与开票类型不一致");
     }
 
+    if (formData.open_type === "1" && String(props.invType) === "4") {
+      return ElMessage.error("金税开票暂不支持电子专用发票");
+    }
+
     switch (status) {
       case "5":
         params = { status: "5", remark: formData.remark };

+ 21 - 80
src/views/system/updates/config/content.config.ts

@@ -1,101 +1,42 @@
 import { ContentConfig } from "/@/components/PageContent";
-import { httpList, httpDelete } from "/@/api/purchase/purchPayRelive";
-
-import dayjs from "dayjs";
-import { h } from "vue";
-import { ElTag } from "element-plus";
-import { statusOptions } from "./_options";
+import { httpList, httpDelete } from "/@/api/system/updates";
 
 const columns = [
   {
-    type: "selection",
-    minWidth: 55,
-    align: "left",
-    hide: ({ checkList }) => !checkList.includes("勾选列")
-  },
-  {
-    label: "序号",
-    type: "index",
-    minWidth: 60,
-    align: "left",
-    hide: ({ checkList }) => !checkList.includes("序号列")
-  },
-  {
-    label: "退款申请编号",
-    prop: "returnCode",
-    minWidth: 180,
-    align: "left"
+    type: "expand",
+    slot: "expand"
   },
   {
-    label: "对账编号",
-    prop: "payNo",
-    minWidth: 180,
-    align: "left"
-  },
-  {
-    label: "卖方公司编号",
-    prop: "supplierNo",
-    minWidth: 180,
-    align: "left"
-  },
-  {
-    label: "买方公司名称",
-    prop: "companyName",
+    label: "版本号",
+    prop: "version",
     minWidth: 180
   },
   {
-    label: "买方公司编号",
-    prop: "companyNo",
+    label: "更新模块",
+    prop: "module",
     minWidth: 180
   },
   {
-    label: "买方公司名称",
-    prop: "companyNo",
-    minWidth: 180
-  },
-  {
-    label: "状态",
-    prop: "status",
-    minWidth: 120,
-    cellRenderer: ({ row, props }) =>
-      h(
-        ElTag,
-        {
-          size: props.size
-        },
-        {
-          default: () =>
-            statusOptions.find(s => String(row.status) === s.value)?.label
-        }
-      )
-  },
-  {
-    label: "申请人",
-    prop: "apply_name",
-    minWidth: 90,
-    align: "left"
-  },
-  {
-    label: "申请时间",
-    minWidth: 180,
+    label: "更新时间",
     prop: "addtime",
-    formatter: ({ addtime }) => dayjs(addtime).format("YYYY-MM-DD HH:mm:ss")
-  },
-  {
-    label: "操作",
-    fixed: "right",
-    width: 100,
-    slot: "operation"
+    minWidth: 180
   }
+  // {
+  //   label: "内容",
+  //   prop: "system",
+  //   minWidth: 180
+  // },
+  // {
+  //   label: "类型",
+  //   prop: "sys_type",
+  //   minWidth: 180
+  // }
 ];
 
 const contentConfig: ContentConfig = {
-  title: "采购付款",
+  title: "版本更新",
   columns,
-  deleteProp: "dzNo",
-  showDelete: ({ dstatus }) => Number(dstatus) !== 3,
-  companyProp: "supplierNo",
-  superUserNoAction: true,
+  isTree: true,
   apis: {
     httpList,
     httpDelete,

+ 0 - 0
src/views/system/updates/config/采购付款解除.md


+ 5 - 1
src/views/system/updates/index.vue

@@ -24,6 +24,10 @@ const events: PageEvents = {
       :events="events"
       :contentConfig="contentConfig"
       :search-config="searchConfig"
-    />
+    >
+      <template #expand="row">
+        {{ row.system }}
+      </template>
+    </PageContainer>
   </PageAuth>
 </template>