|
@@ -2,6 +2,7 @@ import {BasicColumn} from '/@/components/Table';
|
|
|
import {FormSchema} from '/@/components/Table';
|
|
|
import { rules} from '/@/utils/helper/validator';
|
|
|
import { render } from '/@/utils/common/renderUtils';
|
|
|
+import { uploadUrl } from '/@/api/common/api';
|
|
|
import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types'
|
|
|
//列表数据
|
|
|
export const columns: BasicColumn[] = [
|
|
@@ -70,8 +71,8 @@ export const paymentDetailColumns: JVxeColumn[] = [
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '销售订单(sale code)',
|
|
|
- key: 'saleCode',
|
|
|
+ title: '采购订单(purchase code)',
|
|
|
+ key: 'purchaseCode',
|
|
|
type: JVxeTypes.normal,
|
|
|
placeholder: '请输入${title}',
|
|
|
width:"200px",
|
|
@@ -86,24 +87,24 @@ export const paymentDetailColumns: JVxeColumn[] = [
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '回款金额(collection amount)',
|
|
|
- key: 'collectionAmount',
|
|
|
+ title: '入库金额(Inbound money)',
|
|
|
+ key: 'inboundAmount',
|
|
|
type: JVxeTypes.normal,
|
|
|
placeholder: '请输入${title}',
|
|
|
- defaultValue:'',
|
|
|
width:"200px",
|
|
|
+ defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '佣金率(commission rate)',
|
|
|
- key: 'commissionRate',
|
|
|
+ title: '回款比例(collection rate)',
|
|
|
+ key: 'collectionRate',
|
|
|
type: JVxeTypes.normal,
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
width:"200px",
|
|
|
},
|
|
|
{
|
|
|
- title: '返利金额(commission money)',
|
|
|
- key: 'commissionMoney',
|
|
|
+ title: '已申请金额(applyed money)',
|
|
|
+ key: 'applyedMoney',
|
|
|
type: JVxeTypes.normal,
|
|
|
placeholder: '请输入${title}',
|
|
|
width:"250px",
|
|
@@ -123,14 +124,35 @@ export const paymentDetailColumns: JVxeColumn[] = [
|
|
|
placeholder: '请输入${title}',
|
|
|
width:"200px",
|
|
|
defaultValue:'',
|
|
|
+ type: JVxeTypes.upload,
|
|
|
+ token: true,
|
|
|
+ responseName: 'message',
|
|
|
+ action: uploadUrl,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '采购合同(sale contract)',
|
|
|
+ key: 'saleContract',
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ width:"200px",
|
|
|
+ defaultValue:'',
|
|
|
type: JVxeTypes.slot,
|
|
|
// slot 的名称,对应 v-slot 冒号后面和等号前面的内容
|
|
|
- slotName: 'invoice',
|
|
|
+ slotName: 'viewDetail',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '入库详情(inventory details)',
|
|
|
+ key: 'inventoryDetails',
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ width:"200px",
|
|
|
+ defaultValue:'',
|
|
|
+ type: JVxeTypes.slot,
|
|
|
+ // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
|
|
|
+ slotName: 'viewDetail',
|
|
|
},
|
|
|
{
|
|
|
title: '备注(notes)',
|
|
|
key: 'notes',
|
|
|
- type: JVxeTypes.normal,
|
|
|
+ type: JVxeTypes.input,
|
|
|
placeholder: '请输入${title}',
|
|
|
width:"200px",
|
|
|
defaultValue:'',
|