张立
4 months ago
5 changed files with 582 additions and 271 deletions
@ -1,54 +0,0 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 创建采购索赔子
|
|||
export function createPurchaseClaimRequestDetail(data) { |
|||
return request({ |
|||
url: '/request/purchase-claim-request-detail/create', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 更新采购索赔子
|
|||
export function updatePurchaseClaimRequestDetail(data) { |
|||
return request({ |
|||
url: '/request/purchase-claim-request-detail/update', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除采购索赔子
|
|||
export function deletePurchaseClaimRequestDetail(id) { |
|||
return request({ |
|||
url: '/request/purchase-claim-request-detail/delete?id=' + id, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 获得采购索赔子
|
|||
export function getPurchaseClaimRequestDetail(id) { |
|||
return request({ |
|||
url: '/request/purchase-claim-request-detail/get?id=' + id, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 获得采购索赔子分页
|
|||
export function getPurchaseClaimRequestDetailPage(query) { |
|||
return request({ |
|||
url: '/request/purchase-claim-request-detail/page', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 导出采购索赔子 Excel
|
|||
export function exportPurchaseClaimRequestDetailExcel(query) { |
|||
return request({ |
|||
url: '/request/purchase-claim-request-detail/export-excel', |
|||
method: 'get', |
|||
params: query, |
|||
responseType: 'blob' |
|||
}) |
|||
} |
@ -0,0 +1,41 @@ |
|||
import request from '@/config/axios' |
|||
// 获得采购索赔子分页
|
|||
export const getPurchaseClaimRequestDetailPage = async (params) => { |
|||
if (params.isSearch) { |
|||
delete params.isSearch |
|||
const data = {...params} |
|||
return await request.post({ url: '/wms/purchase-claim-request-detai/senior', data }) |
|||
} else { |
|||
return await request.get({ url: `/wms/purchase-claim-request-detai/page`, params }) |
|||
} |
|||
} |
|||
|
|||
// 创建采购索赔子
|
|||
export const createPurchaseClaimRequestDetail = async (data) => { |
|||
return await request.post({ url: `/wms/purchase-claim-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改采购索赔子
|
|||
export const updatePurchaseClaimRequestDetail = async (data) => { |
|||
return await request.put({ url: `/wms/purchase-claim-request-detail/update`, data }) |
|||
} |
|||
// 删除采购索赔子
|
|||
export const deletePurchaseClaimRequestDetail = async (id) => { |
|||
return await request.delete({ url: `/wms/purchase-claim-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 获得采购索赔子
|
|||
export const getPurchaseClaimRequestDetail = async (id) => { |
|||
return await request.get({ url: `/wms/purchase-claim-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
|
|||
// 导出采购索赔子 Excel
|
|||
export const exportPurchaseClaimRequestDetailExcel = async (params) => { |
|||
if (params.isSearch) { |
|||
const data = {...params} |
|||
return await request.downloadPost({url: `/wms/purchase-claim-request-detail/export-excel-senior`, data}) |
|||
} else { |
|||
return await request.download({ url: `/wms/purchase-claim-request-detail/export-excel`, params }) |
|||
} |
|||
} |
@ -0,0 +1,287 @@ |
|||
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import { |
|||
CustomerStatementMain, |
|||
} from '../../../deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data' |
|||
import * as CustomerStatementMainApi from '@/api/wms/customerStatementMain' |
|||
|
|||
// 表单校验
|
|||
export const PurchaseClaimRequestMainRules = reactive({ |
|||
beforeTaxAmount: [required], |
|||
taxRate: [required], |
|||
taxAmount: [required], |
|||
adTaxAmount: [required], |
|||
}) |
|||
|
|||
export const PurchaseClaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|||
{ |
|||
label: '单据号', |
|||
field: 'number', |
|||
sort: 'custom', |
|||
isSearch: true, |
|||
isForm: false, |
|||
}, |
|||
{ |
|||
label: '状态', |
|||
field: 'status', |
|||
sort: 'custom', |
|||
isSearch: true, |
|||
isForm: false, |
|||
// 0:新增1:已发布2已作废
|
|||
}, |
|||
{ |
|||
label: '客户对账单', |
|||
field: 'customerStatementNumber', |
|||
sort: 'custom', |
|||
isSearch: true, |
|||
form: { |
|||
componentProps: { |
|||
enterSearch: true, |
|||
isSearchList: true, // 开启查询弹窗
|
|||
searchListPlaceholder: '请选择客户对账单', // 输入框占位文本
|
|||
searchField: 'number', // 查询弹窗赋值字段
|
|||
searchTitle: '客户对账单信息', // 查询弹窗标题
|
|||
searchAllSchemas: CustomerStatementMain.allSchemas, // 查询弹窗所需类
|
|||
searchPage: CustomerStatementMainApi.getCustomerStatementMainPage, // 查询弹窗所需分页方法
|
|||
searchCondition: [{ |
|||
key: 'available', |
|||
value: 'TRUE', |
|||
isMainValue: false |
|||
}] |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
label: '客户代码', |
|||
field: 'customer', |
|||
sort: 'custom', |
|||
isSearch: true, |
|||
form: { |
|||
componentProps: { |
|||
disabled: true |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
label: '客户名称', |
|||
field: 'customerName', |
|||
sort: 'custom', |
|||
form: { |
|||
componentProps: { |
|||
disabled: true |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
label: '未税金额', |
|||
field: 'beforeTaxAmount', |
|||
sort: 'custom', |
|||
form: { |
|||
componentProps: { |
|||
disabled: true |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
label: '税率(%)', |
|||
field: 'taxRate', |
|||
dictType: DICT_TYPE.TAX_RATE_DICT, |
|||
dictClass: 'string', |
|||
sortTableDefault: 3, |
|||
isTable: true, |
|||
sort: 'custom', |
|||
table: { |
|||
width: 150 |
|||
}, |
|||
}, |
|||
{ |
|||
label: '税额', |
|||
field: 'taxAmount', |
|||
sort: 'custom', |
|||
form: { |
|||
componentProps: { |
|||
disabled: true |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
label: '价税合计金额', |
|||
field: 'adTaxAmount', |
|||
sort: 'custom', |
|||
form: { |
|||
componentProps: { |
|||
disabled: true |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
label: '金税票号', |
|||
field: 'goldenTaxInvoiceNumber', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '开票日期', |
|||
field: 'invoiceTime', |
|||
sort: 'custom', |
|||
formatter: dateFormatter, |
|||
search: { |
|||
component: 'DatePicker', |
|||
componentProps: { |
|||
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|||
type: 'daterange', |
|||
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|||
} |
|||
}, |
|||
form: { |
|||
component: 'DatePicker', |
|||
componentProps: { |
|||
type: 'datetime', |
|||
valueFormat: 'x' |
|||
} |
|||
}, |
|||
}, |
|||
|
|||
{ |
|||
label: '备注', |
|||
field: 'remark', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '是否可用默认TRUE', |
|||
field: 'available', |
|||
sort: 'custom', |
|||
isTable: false, |
|||
isForm: false |
|||
}, |
|||
{ |
|||
label: '创建时间', |
|||
field: 'createTime', |
|||
sort: 'custom', |
|||
formatter: dateFormatter, |
|||
search: { |
|||
component: 'DatePicker', |
|||
componentProps: { |
|||
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|||
type: 'daterange', |
|||
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|||
} |
|||
}, |
|||
isForm: false, |
|||
}, |
|||
{ |
|||
label: '操作', |
|||
field: 'action', |
|||
isForm: false, |
|||
table: { |
|||
width: 150, |
|||
fixed: 'right' |
|||
} |
|||
} |
|||
])) |
|||
// 表单校验
|
|||
export const PurchaseClaimRequestDetailRules = reactive({ |
|||
beforeTaxAmount: [required], |
|||
taxRate: [required], |
|||
taxAmount: [required], |
|||
adTaxAmount: [required], |
|||
}) |
|||
|
|||
export const PurchaseClaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|||
{ |
|||
label: '品番', |
|||
field: 'number', |
|||
sort: 'custom', |
|||
isSearch: true, |
|||
isForm: false, |
|||
tableForm: { |
|||
disabled: true |
|||
} |
|||
}, |
|||
{ |
|||
label: '品号', |
|||
field: 'articleNumber', |
|||
sort: 'custom', |
|||
isSearch: true, |
|||
isForm: false, |
|||
// 0:新增1:已发布2已作废
|
|||
}, |
|||
{ |
|||
label: '数量', |
|||
field: 'qty', |
|||
sort: 'custom', |
|||
isSearch: true, |
|||
form: { |
|||
componentProps: { |
|||
enterSearch: true, |
|||
isSearchList: true, // 开启查询弹窗
|
|||
searchListPlaceholder: '请选择客户对账单', // 输入框占位文本
|
|||
searchField: '', // 查询弹窗赋值字段
|
|||
searchTitle: '客户对账单信息', // 查询弹窗标题
|
|||
searchAllSchemas: CustomerStatementMain.allSchemas, // 查询弹窗所需类
|
|||
searchPage: CustomerStatementMainApi.getCustomerStatementMainPage, // 查询弹窗所需分页方法
|
|||
searchCondition: [{ |
|||
key: 'available', |
|||
value: 'TRUE', |
|||
isMainValue: false |
|||
}] |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
label: '销售单价', |
|||
field: 'price', |
|||
sort: 'custom', |
|||
isSearch: true, |
|||
form: { |
|||
componentProps: { |
|||
disabled: true |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
label: '模具分摊单价', |
|||
field: 'allocationPrice', |
|||
sort: 'custom', |
|||
form: { |
|||
componentProps: { |
|||
disabled: true |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
label: '合计单价', |
|||
field: 'beforeTaxAmount', |
|||
sort: 'custom', |
|||
form: { |
|||
componentProps: { |
|||
disabled: true |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
label: '未税金额', |
|||
field: 'taxRate', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '税额', |
|||
field: 'taxAmount', |
|||
sort: 'custom', |
|||
form: { |
|||
componentProps: { |
|||
disabled: true |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
label: '含税金额', |
|||
field: 'adTaxAmount', |
|||
sort: 'custom', |
|||
form: { |
|||
componentProps: { |
|||
disabled: true |
|||
} |
|||
} |
|||
}, |
|||
|
|||
])) |
@ -1,117 +0,0 @@ |
|||
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import { fa } from 'element-plus/es/locale' |
|||
|
|||
// 表单校验
|
|||
export const InvoicingcalendarRules = reactive({ |
|||
beginDay: [required], |
|||
endDay: [required], |
|||
concurrencyStamp: [required], |
|||
}) |
|||
|
|||
export const Invoicingcalendar = useCrudSchemas(reactive<CrudSchema[]>([ |
|||
{ |
|||
label: 'id', |
|||
field: 'id', |
|||
sort: 'custom', |
|||
isForm: false, |
|||
isTable: false |
|||
}, |
|||
{ |
|||
label: '开始日期', |
|||
field: 'beginDay', |
|||
sort: 'custom', |
|||
dictType: DICT_TYPE.SYSTEM_DAY, |
|||
dictClass: 'string', |
|||
}, |
|||
{ |
|||
label: '结束日期', |
|||
field: 'endDay', |
|||
sort: 'custom', |
|||
dictType: DICT_TYPE.SYSTEM_DAY, |
|||
dictClass: 'string', |
|||
}, |
|||
{ |
|||
label: '描述', |
|||
field: 'descriiption', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '是否可用', |
|||
field: 'available', |
|||
sort: 'custom', |
|||
isSearch: true, |
|||
dictType: DICT_TYPE.TRUE_FALSE, |
|||
dictClass: 'string', |
|||
form: { |
|||
component: 'Switch', |
|||
value: 'TRUE', |
|||
componentProps: { |
|||
inactiveValue: 'FALSE', |
|||
activeValue: 'TRUE' |
|||
} |
|||
}, |
|||
}, |
|||
{ |
|||
label: '备注', |
|||
field: 'remark', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '扩展属性', |
|||
field: 'extraProperties', |
|||
sort: 'custom', |
|||
isTable: false, |
|||
isForm:false, |
|||
}, |
|||
{ |
|||
label: '并发乐观锁', |
|||
field: 'concurrencyStamp', |
|||
sort: 'custom', |
|||
isTable: false, |
|||
isForm:false, |
|||
form: { |
|||
component: 'InputNumber', |
|||
value: 0 |
|||
}, |
|||
}, |
|||
{ |
|||
label: '地点ID', |
|||
field: 'siteId', |
|||
sort: 'custom', |
|||
isTable: false, |
|||
isForm:false, |
|||
}, |
|||
{ |
|||
label: '创建时间', |
|||
field: 'createTime', |
|||
sort: 'custom', |
|||
formatter: dateFormatter, |
|||
search: { |
|||
component: 'DatePicker', |
|||
componentProps: { |
|||
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|||
type: 'daterange', |
|||
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|||
} |
|||
}, |
|||
isForm: false, |
|||
isTable: true, |
|||
}, |
|||
{ |
|||
label: '创建人', |
|||
field: 'creator', |
|||
sort: 'custom', |
|||
isTable: true, |
|||
isForm:false, |
|||
}, |
|||
{ |
|||
label: '操作', |
|||
field: 'action', |
|||
isForm: false, |
|||
table: { |
|||
width: 150, |
|||
fixed: 'right' |
|||
} |
|||
} |
|||
])) |
Loading…
Reference in new issue