123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- export const FormColumns = [
- {
- key: "priceName",
- title: "价格名称",
- inputType: "Input",
- value: "价格申报单",
- },
- {
- key: "supplierName",
- title: "供应商",
- inputType: "PopoverSelect",
- referName: "SUPPLIER_PARAM",
- valueKey: "name",
- dataMapping: {
- supplier: "code",
- supplierName: "name",
- },
- require: true,
- },
- {
- key: "supplier",
- title: "供应商编码",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "puOrgName",
- title: "采购组织",
- inputType: "PopoverSelect",
- referName: "ORG_PARAM",
- valueKey: "name",
- dataMapping: {
- puOrg: "code",
- puOrgName: "name",
- },
- require: true,
- },
- {
- key: "puOrg",
- title: "采购组织编码",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "currencyName",
- title: "币种",
- inputType: "PopoverSelect",
- referName: "CURRENCY_PARAM",
- dataMapping: {
- currency: "code",
- currencyName: "name",
- },
- require: true,
- },
- {
- key: "currency",
- title: "币种编码",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "explainStr",
- title: "价格合理性说明",
- inputType: "Input",
- require: true,
- },
- {
- key: "buyerName",
- title: "采购员",
- inputType: "PopoverSelect",
- referName: "CONTACTS_PARAM",
- dataMapping: {
- buyer: "code",
- buyerName: "name",
- },
- require: true,
- },
- {
- key: "buyer",
- title: "采购员编码",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "puDeptName",
- title: "采购部门",
- inputType: "PopoverSelect",
- referName: "DEPT_PARAM",
- dataMapping: {
- puDept: "code",
- puDeptName: "name",
- },
- require: true,
- },
- {
- key: "puDept",
- title: "采购部门编码",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "createByName",
- title: "创建人",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "source",
- title: "来源单据号",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "id",
- title: "来源单据id",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "isEffective",
- title: "是否已推价格",
- inputType: "Select",
- referName: "is_effective",
- },
- {
- key: "effectiveDate",
- title: "生效日期",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "file",
- title: "附件",
- inputType: "Upload",
- span: 24,
- disabled: true,
- readonly: true,
- value: [],
- },
- {
- key: "sourceType",
- title: "来源单据类型",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "status",
- title: "单据状态",
- inputType: "Select",
- referName: "sys_status",
- disabled: true,
- readonly: true,
- value: "0",
- },
- ];
- export const TabColumns = [
- {
- title: "物料信息表",
- key: "priceApplyItems",
- tableColumns: [
- {
- title: "物料名称",
- key: "materialName",
- inputType: "PopoverSelect",
- width: 200,
- referName: "MATERIAL_PARAM",
- dataMapping: {
- material: "id",
- materialCode: "code",
- materialName: "name",
- puUnit: "unitIdName",
- specification: "specification",
- manufacturer: "manufacturerIdName",
- },
- },
- { title: "物料编码", key: "materialCode" },
- {
- title: "生产厂家",
- key: "manufacturer",
- },
- {
- title: "规格",
- key: "specification",
- },
- {
- title: "型号",
- key: "model",
- },
- {
- title: "单位名称",
- key: "unitName",
- inputType: "PopoverSelect",
- width: 200,
- referName: "UNIT_PARAM",
- dataMapping: {
- puUnit: "name",
- },
- },
- {
- title: "单位",
- key: "unit",
- },
- {
- title: "采购单位名称",
- key: "puUnitName",
- inputType: "PopoverSelect",
- width: 200,
- referName: "UNIT_PARAM",
- dataMapping: {
- puUnit: "name",
- },
- },
- {
- title: "采购单位",
- key: "puUnit",
- },
- {
- title: "采购换算率",
- key: "conversionRate",
- inputType: "InputNumber",
- width: 200,
- },
- {
- title: "税率%",
- key: "tax",
- inputType: "PopoverSelect",
- referName: "TAX_RATE_PARAM",
- dataMapping: {
- tax: "ntaxrate",
- },
- width: 200,
- },
- {
- title: "含税单价",
- key: "taxPrice",
- inputType: "InputNumber",
- width: 200,
- },
- {
- title: "无税单价",
- key: "taxFreePrice",
- inputType: "ComputedInput",
- width: 200,
- computed: (prop) => {
- const { tax, taxPrice } = prop;
- const newTax = Number(tax) / 100;
- const taxFreePrice = (taxPrice / (1 + newTax)).toFixed(8);
- return taxFreePrice === "NaN" ? null : taxFreePrice;
- },
- },
- {
- key: "currencyName",
- title: "币种名称",
- inputType: "PopoverSelect",
- referName: "CURRENCY_PARAM",
- dataMapping: {
- currency: "code",
- currencyName: "name",
- },
- },
- {
- title: "币种",
- key: "currency",
- },
- {
- key: "periodBegin",
- title: "价格有效期(起)",
- inputType: "DatePicker",
- valueFormat: "yyyy-MM-dd",
- },
- {
- key: "periodEnd",
- title: "价格有效期(止)",
- inputType: "DatePicker",
- valueFormat: "yyyy-MM-dd",
- },
- {
- title: "客户名称",
- key: "customerName",
- inputType: "PopoverSelect",
- width: 200,
- referName: "CUSTOMER_PARAM",
- dataMapping: {
- customer: "code",
- customerName: "name",
- },
- },
- {
- title: "客户",
- key: "customer",
- },
- {
- title: "首次报批",
- key: "isApprovalFirst",
- width: 200,
- inputType: "Select",
- referName: "sys_yes_no",
- },
- {
- title: "价格调整",
- key: "isPriceAdjustment",
- width: 200,
- inputType: "Select",
- referName: "sys_yes_no",
- },
- {
- key: "priceType",
- title: "价格类型",
- inputType: "Select",
- referName: "sys_price_type",
- },
- {
- title: "配送价",
- key: "isDistributionPrice",
- width: 200,
- inputType: "Select",
- referName: "sys_yes_no",
- },
- {
- title: "创建人名称",
- key: "createByName",
- },
- {
- title: "更新人名称",
- key: "updateByName",
- },
- ],
- },
- {
- title: "合同执行组织范围",
- key: "priceApplyOrgs",
- tableColumns: [
- {
- title: "组织名称",
- key: "orgName",
- inputType: "PopoverSelect",
- referName: "ORG_PARAM",
- dataMapping: {
- org: "code",
- orgName: "name",
- },
- },
- { title: "组织编码", key: "org" },
- {
- title: "创建人名称",
- key: "createByName",
- },
- {
- title: "更新人名称",
- key: "updateByName",
- },
- ],
- },
- ];
- export default { FormColumns, TabColumns };
|