123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- import { ContentConfig } from "/@/components/PageContent";
- import { httpList, httpAdd } from "/@/api/InvoiceSales/refund";
- import { h } from "vue";
- import { ElTag } from "element-plus";
- import { RETRUN_STATUS } from "/@/utils/details/refund";
- import { refund_type } from "./search.config";
- import {
- xs_order_source_options,
- xs_order_type_options
- } from "/@/utils/status";
- const columns = [
- // {
- // type: "selection",
- // width: 40,
- // align: "center",
- // hide: ({ checkList }) => !checkList.includes("勾选列")
- // },
- // {
- // label: "序号",
- // type: "index",
- // width: 70,
- // hide: ({ checkList }) => !checkList.includes("序号列")
- // },
- {
- label: "退款编码",
- prop: "returnCode",
- width: "150px"
- },
- {
- label: "资金认领编码",
- prop: "logNo",
- width: 150
- },
- {
- label: "销售订单编码",
- prop: "orderCode",
- width: "150px"
- },
- {
- label: "资金编码",
- prop: "tradNo",
- width: 150
- },
- {
- label: "退款金额",
- width: "110px",
- prop: "cancel_fee"
- },
- // {
- // label: "退款类型",
- // prop: "status",
- // width: "160px",
- // cellRenderer: ({ row }) => {
- // return h(ElTag, null, {
- // default: () =>
- // refund_type.find(s => s.value === String(row.type))?.label || "--"
- // });
- // }
- // },
- {
- label: "状态",
- prop: "status",
- width: 100,
- cellRenderer: ({ row }) => {
- return h(ElTag, null, {
- default: () =>
- RETRUN_STATUS.find(s => s.value === String(row.status))?.label || "--"
- });
- }
- },
- {
- label: "订单来源",
- prop: "qrdSource",
- width: "100px",
- cellRenderer({ row }) {
- return h(ElTag, null, {
- default: () =>
- xs_order_source_options.find(s => s.value === row.qrdSource)?.label
- });
- }
- },
- {
- label: "商品类型",
- prop: "qrdType",
- width: "100px",
- cellRenderer({ row }) {
- return h(ElTag, null, {
- default: () =>
- xs_order_type_options.find(s => s.value === row.qrdType)?.label
- });
- }
- },
- {
- label: "商品编码",
- prop: "goodNo",
- width: "150px"
- },
- {
- label: "商品名称",
- prop: "goodName",
- minWidth: "160px"
- },
- {
- label: "平台名称",
- prop: "platName",
- width: "100px"
- },
- {
- label: "客户编码",
- width: "150px",
- prop: "companyNo"
- },
- {
- label: "客户名称",
- width: "180px",
- prop: "customerName"
- },
- {
- label: "申请人",
- prop: "apply_name",
- width: "80px"
- },
- {
- label: "添加时间",
- prop: "addtime",
- width: "140px"
- },
- {
- label: "操作",
- fixed: "right",
- width: 50,
- slot: "operation"
- }
- ];
- const contentConfig: ContentConfig = {
- title: "退款申请管理",
- superUserNoAction: true,
- columns,
- apis: {
- httpList,
- httpAdd
- }
- };
- export default contentConfig;
|