|
|
@ -5,7 +5,6 @@ import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/su |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
import * as supplierinvoiceRequestMainApi from '@/api/wms/supplierinvoiceRequestMain' |
|
|
|
import * as supplierinvoiceRequestDetailApi from '@/api/wms/supplierinvoiceRequestDetail' |
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
@ -27,47 +26,30 @@ const requestsettingData = data?.list[0] || {} |
|
|
|
const userDeptArray:any = [userDept] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const PurchaseReceiptOrReturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
/** |
|
|
|
* @returns {Array} 采购订单或者采购退货单 |
|
|
|
*/ |
|
|
|
export const PurchaseReceiptOrReturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number' |
|
|
|
label: '项目编码', |
|
|
|
field: 'projectCode' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierCode' |
|
|
|
label: '单据类型', |
|
|
|
field: 'billType' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '发货单号', |
|
|
|
field: 'asnNumber' |
|
|
|
label: '单据号', |
|
|
|
field: 'recvBillNum' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
label: '发货单号', |
|
|
|
field: 'asnBillNum' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
isTable: true, |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierCode' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 采购订单或者采购退货单 |
|
|
|
*/ |
|
|
|
export const PurchaseReceiptOrReturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '订单号', |
|
|
|
field: 'poNumber' |
|
|
@ -77,41 +59,16 @@ export const PurchaseReceiptOrReturnRecordDetail = useCrudSchemas(reactive<CrudS |
|
|
|
field: 'poLine' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '货主代码', |
|
|
|
field: 'ownerCode' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批次', |
|
|
|
field: 'batch' |
|
|
|
label: '采购价格', |
|
|
|
field: 'purchasePrice' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '数量', |
|
|
|
field: 'qty', |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
} |
|
|
|
label: '可开票数量', |
|
|
|
field: 'invoicableQuantity' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单价', |
|
|
|
field: 'singlePrice', |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '金额', |
|
|
|
field: 'amount', |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
@ -123,12 +80,6 @@ export const PurchaseReceiptOrReturnRecordDetail = useCrudSchemas(reactive<CrudS |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
@ -169,130 +120,173 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单据类型', |
|
|
|
field: 'billType', |
|
|
|
dictType: DICT_TYPE.BILL_TYPE, |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
|
dictType: DICT_TYPE.SUPPLIERINVOICE_REQUEST_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isSearch: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
form: { |
|
|
|
value: '1', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '记录单号', |
|
|
|
field: 'recvBillNum', |
|
|
|
sort: 'custom', |
|
|
|
label: '金额', |
|
|
|
field: 'amount', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择单号', // 输入框占位文本
|
|
|
|
searchField: 'number', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '单号信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: PurchaseReceiptOrReturnRecordMain.allSchemas, |
|
|
|
searchPage: supplierinvoiceRequestMainApi.getNumber, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'supplierCode', |
|
|
|
value: 'supplierCode', |
|
|
|
message: '请填写供应商代码!', |
|
|
|
isMainValue: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'billType', |
|
|
|
value: 'billType', |
|
|
|
message: '请填写单据类型!', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择单号', |
|
|
|
searchField: 'number', |
|
|
|
searchTitle: '单号信息', |
|
|
|
searchAllSchemas: PurchaseReceiptOrReturnRecordMain.allSchemas, |
|
|
|
searchPage: supplierinvoiceRequestMainApi.getNumber, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'supplierCode', |
|
|
|
value: 'supplierCode', |
|
|
|
message: '请填写供应商代码!', |
|
|
|
isMainValue: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'billType', |
|
|
|
value: 'billType', |
|
|
|
message: '请填写单据类型!', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '发货单号', |
|
|
|
field: 'asnBillNum', |
|
|
|
label: '税率', |
|
|
|
field: 'taxRate', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单号', |
|
|
|
field: 'poBillNum', |
|
|
|
sort: 'custom', |
|
|
|
label: '税额', |
|
|
|
field: 'taxAmount', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Select', |
|
|
|
componentProps:{ |
|
|
|
options:[{label:'',value:''}] |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
options:[{label:'',value:''}] |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '调增金额', |
|
|
|
field: 'adjustAmount', |
|
|
|
sort: 'custom', |
|
|
|
label: '税后金额', |
|
|
|
field: 'afterTaxAmount', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm:false, |
|
|
|
isTable:false, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '业务类型', |
|
|
|
field: 'businessType', |
|
|
|
sort: 'custom', |
|
|
|
label: '索赔金额', |
|
|
|
field: 'claimAmount', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable:false, |
|
|
|
isForm:false, |
|
|
|
form: { |
|
|
|
value: 'SupplierInvoice', |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
disabled: true, |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '申请时间', |
|
|
|
field: 'requestTime', |
|
|
|
label: '折扣金额', |
|
|
|
field: 'discountAmount', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '调整税额', |
|
|
|
field: 'adjustingTaxAmount', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '金税票号', |
|
|
|
field: 'afterTaxAmount', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '快递单号', |
|
|
|
field: 'expressTrackingNumber', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '发票时间', |
|
|
|
field: 'invoiceTime', |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
@ -301,19 +295,20 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isForm:false, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '截止时间', |
|
|
|
field: 'dueTime', |
|
|
|
label: '申请时间', |
|
|
|
field: 'requestTime', |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
@ -323,7 +318,6 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isForm:false, |
|
|
|
isTable:false, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -356,33 +350,6 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
|
dictType: DICT_TYPE.REQUEST_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
form: { |
|
|
|
value: '1', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
@ -437,6 +404,15 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '自动提交', |
|
|
|
field: 'autoCommit', |
|
|
@ -444,6 +420,8 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
dictClass: 'string', |
|
|
|
isTable: false, |
|
|
|
isForm:false, |
|
|
|
isTableForm:false, |
|
|
|
isDetail:false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -464,7 +442,9 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
isForm:false, |
|
|
|
isTableForm:false, |
|
|
|
isDetail:false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -485,7 +465,9 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
isForm:false, |
|
|
|
isTableForm:false, |
|
|
|
isDetail:false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -505,8 +487,10 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
field: 'directCreateRecord', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
isForm:false, |
|
|
|
isTableForm:false, |
|
|
|
isDetail:false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -566,35 +550,41 @@ export const SupplierinvoiceRequestMainRules = reactive({ |
|
|
|
* @returns {Array} 供应商发票申请子表 |
|
|
|
*/ |
|
|
|
export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '订单号', |
|
|
|
field: 'poNumber', |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单行', |
|
|
|
field: 'poLine', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择订单号', |
|
|
|
searchField: 'number', |
|
|
|
searchTitle: '订单号信息', |
|
|
|
searchListPlaceholder: '请选择订单行', |
|
|
|
searchField: 'poLine', |
|
|
|
searchTitle: '待开票列表', |
|
|
|
searchAllSchemas: PurchaseReceiptOrReturnRecordDetail.allSchemas, |
|
|
|
searchPage: supplierinvoiceRequestDetailApi.getPoNumberPoLineInfo, |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'recordNumber', |
|
|
|
value: 'recvBillNum', |
|
|
|
message: '请填写单号!', |
|
|
|
isMainValue: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'billType', |
|
|
|
value: 'billType', |
|
|
|
message: '请填写单号类型!', |
|
|
|
isMainValue: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'poNumber', |
|
|
|
value: 'poBillNum', |
|
|
|
message: '请选择订单号', |
|
|
|
key: 'supplierCode', |
|
|
|
value: 'supplierCode', |
|
|
|
message: '请填供应商信息!', |
|
|
|
isMainValue: true |
|
|
|
} |
|
|
|
] |
|
|
@ -602,150 +592,188 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择订单号', |
|
|
|
searchField: 'number', |
|
|
|
searchTitle: '订单号信息', |
|
|
|
searchListPlaceholder: '请选择订单行', |
|
|
|
searchField: 'poLine', |
|
|
|
searchTitle: '待开票列表', |
|
|
|
searchAllSchemas: PurchaseReceiptOrReturnRecordDetail.allSchemas, |
|
|
|
searchPage: supplierinvoiceRequestDetailApi.getPoNumberPoLineInfo, |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'recordNumber', |
|
|
|
value: 'recvBillNum', |
|
|
|
message: '请填写单号!', |
|
|
|
isMainValue: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'billType', |
|
|
|
value: 'billType', |
|
|
|
message: '请填写单号类型!', |
|
|
|
isMainValue: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'poNumber', |
|
|
|
value: 'poBillNum', |
|
|
|
message: '请选择订单号', |
|
|
|
key: 'supplierCode', |
|
|
|
value: 'supplierCode', |
|
|
|
message: '请填供应商信息!', |
|
|
|
isMainValue: true |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
label: '供应商税率', |
|
|
|
field: 'tax', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '货主代码', |
|
|
|
field: 'ownerCode' |
|
|
|
label: '项目编码', |
|
|
|
field: 'projectCode', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批次', |
|
|
|
field: 'batch', |
|
|
|
disabled:true, |
|
|
|
label: '单据类型', |
|
|
|
field: 'billType', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '数量', |
|
|
|
field: 'qty', |
|
|
|
sort: 'custom', |
|
|
|
label: '发货单号', |
|
|
|
field: 'asnBillNum', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
disabled:true, |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
disabled:true, |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierCode', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单价', |
|
|
|
field: 'singlePrice', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
disabled:true, |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
disabled:true, |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
precision: 6, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '金额', |
|
|
|
field: 'amount', |
|
|
|
label: '采购价格', |
|
|
|
field: 'purchasePrice', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
disabled:true, |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
disabled:true, |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '税率', |
|
|
|
field: 'tax', |
|
|
|
sort: 'custom', |
|
|
|
label: '可开票数量', |
|
|
|
field: 'invoicableQuantity', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '比率', |
|
|
|
field: 'rate', |
|
|
|
sort: 'custom', |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料名称', |
|
|
|
field: 'itemName', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '货币', |
|
|
|
field: 'currency', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -756,6 +784,9 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
isTable: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
@ -767,7 +798,10 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
@ -784,25 +818,5 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const SupplierinvoiceRequestDetailRules = reactive({ |
|
|
|
packingNumber: [ |
|
|
|
{ required: true, message: '请输入包装号', trigger: 'blur' } |
|
|
|
], |
|
|
|
poNumber: [ |
|
|
|
{ required: true, message: '请输入订单号', trigger: 'blur' } |
|
|
|
], |
|
|
|
poLine: [ |
|
|
|
{ required: true, message: '请输入订单行', trigger: 'blur' } |
|
|
|
], |
|
|
|
packQty: [ |
|
|
|
{ required: true, message: '请输入包装数量', trigger: 'blur' } |
|
|
|
], |
|
|
|
packUnit: [ |
|
|
|
{ required: true, message: '请输入包装规格', trigger: 'blur' } |
|
|
|
], |
|
|
|
convertRate: [ |
|
|
|
{ required: true, message: '请输入转换率', trigger: 'blur' } |
|
|
|
], |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请输入物料代码', trigger: 'blur' } |
|
|
|
] |
|
|
|
|
|
|
|
}) |
|
|
|