|
|
@ -1,5 +1,7 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import * as SupplierApi from '@/api/wms/supplier' |
|
|
|
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
const recordTypeList = [{ label:'收货单号', value:'1' },{ label:'退货单号', value:'2' },{ label:'索赔单号', value:'3' }] |
|
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
@ -23,15 +25,26 @@ const userDept = userStore.userSelfInfo.dept |
|
|
|
* @returns {Array} 供应商发票申请主表 |
|
|
|
*/ |
|
|
|
export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '供应商信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '调增金额', |
|
|
|
field: 'adjustAmount', |
|
|
@ -366,22 +379,11 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
label: '货主代码', |
|
|
|
field: 'ownerCode' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装号', |
|
|
|
field: 'packingNumber' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '器具号', |
|
|
|
field: 'containerNumber' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批次', |
|
|
|
field: 'batch' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '替代批次', |
|
|
|
field: 'altBatch' |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '订单号', |
|
|
|
field: 'poNumber' |
|
|
@ -390,41 +392,12 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
label: '订单行', |
|
|
|
field: 'poLine' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '标包数量', |
|
|
|
field: 'stdPackQty', |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '标包单位', |
|
|
|
field: 'stdPackUnit', |
|
|
|
dictType: DICT_TYPE.PACK_UNIT, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商计量数量', |
|
|
|
field: 'supplierPackQty', |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商计量单位', |
|
|
|
field: 'supplierPackUnit', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '转换率', |
|
|
|
field: 'convertRate', |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '物品代码', |
|
|
|
field: 'itemCode' |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '单价', |
|
|
|
field: 'singlePrice', |
|
|
@ -439,20 +412,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
component: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
isTableForm: false, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物品代码', |
|
|
|
field: 'itemCode' |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|