|
@@ -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,
|