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