123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428 |
- export const FormColumns = [
- {
- key: "priceName",
- title: "价格名称",
- inputType: "Input",
- value: "价格申报单",
- },
- {
- key: "priceCode",
- title: "价格编码",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "supplierName",
- title: "供应商",
- inputType: "PopoverSelect",
- referName: "SUPPLIER_PARAM",
- valueKey: "name",
- dataMapping: {
- supplier: "id",
- supplierCode: "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: "id",
- puOrgCode: "code",
- puOrgName: "name",
- },
- require: true,
- },
- {
- key: "puOrg",
- title: "采购组织编码",
- inputType: "Input",
- disabled: true,
- readonly: true,
- },
- {
- key: "currencyName",
- title: "币种",
- inputType: "PopoverSelect",
- referName: "CURRENCY_PARAM",
- dataMapping: {
- currency: "id",
- currencyCode: "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: "id",
- puDeptCode: "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,
- require: 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: 300,
- referName: "MATERIAL_PARAM",
- dataMapping: {
- model: "model",
- material: "id",
- materialCode: "code",
- materialName: "name",
- unitName: "unitIdName",
- puUnitName: "unitIdName",
- specification: "specification",
- manufacturer: "manufacturerId",
- manufacturerName: "manufacturerIdName",
- },
- require: true,
- },
- { title: "物料编码", key: "materialCode" },
- // { title: "物料ID", key: "material" },
- {
- title: "生产厂家",
- key: "manufacturerName",
- },
- {
- title: "生产厂家编码",
- key: "manufacturer",
- },
- {
- title: "规格",
- key: "specification",
- },
- {
- title: "型号",
- key: "model",
- },
- {
- title: "单位名称",
- key: "unitName",
- inputType: "PopoverSelect",
- width: 300,
- referName: "UNIT_PARAM",
- dataMapping: {
- unit: "id",
- unitCode: "code",
- unitName: "name",
- },
- },
- {
- title: "单位编码",
- key: "unitCode",
- },
- // {
- // title: "单位ID",
- // key: "unit",
- // },
- {
- title: "采购单位名称",
- key: "puUnitName",
- inputType: "PopoverSelect",
- width: 300,
- referName: "UNIT_PARAM",
- dataMapping: {
- puUnit: "id",
- puUnitCode: "code",
- puUnitName: "name",
- },
- },
- {
- title: "采购单位编码",
- key: "puUnitCode",
- },
- // {
- // title: "采购单位ID",
- // key: "puUnit",
- // },
- {
- title: "采购换算率",
- key: "conversionRate",
- inputType: "InputNumber",
- width: 300,
- require: true,
- },
- {
- title: "税率%",
- key: "tax",
- inputType: "PopoverSelect",
- referName: "TAX_RATE_PARAM",
- dataMapping: {
- tax: "ntaxrate",
- },
- width: 300,
- require: true,
- },
- {
- title: "含税单价",
- key: "taxPrice",
- inputType: "InputNumber",
- width: 300,
- require: true,
- },
- {
- title: "无税单价",
- key: "price",
- inputType: "ComputedInput",
- width: 300,
- computed: (prop) => {
- const { tax, taxPrice } = prop;
- const newTax = Number(tax) / 100;
- const price = (taxPrice / (1 + newTax)).toFixed(8);
- return price === "NaN" ? null : price;
- },
- require: true,
- },
- {
- key: "currencyName",
- title: "币种名称",
- inputType: "PopoverSelect",
- referName: "CURRENCY_PARAM",
- dataMapping: {
- currency: "id",
- currencyCode: "code",
- currencyName: "name",
- },
- },
- {
- title: "币种编码",
- key: "currencyCode",
- },
- // {
- // title: "币种ID",
- // key: "currency",
- // },
- {
- key: "periodBegin",
- title: "价格有效期(起)",
- inputType: "DatePicker",
- valueFormat: "yyyy-MM-dd",
- value: new Date(),
- require: true,
- },
- {
- key: "periodEnd",
- title: "价格有效期(止)",
- inputType: "DatePicker",
- valueFormat: "yyyy-MM-dd",
- pickerOptions: {
- disabledDate(time) {
- return time.getTime() < Date.now() + 3600 * 1000 * 24 * 365;
- },
- },
- value: new Date(new Date().getTime() + 3600 * 1000 * 24 * 366),
- require: true,
- },
- {
- title: "客户",
- key: "customerName",
- inputType: "PopoverSelect",
- width: 300,
- referName: "CUSTOMER_PARAM",
- dataMapping: {
- customer: "id",
- customerCode: "code",
- customerName: "name",
- },
- },
- {
- title: "客户编码",
- key: "customerCode",
- },
- // {
- // title: "客户ID",
- // key: "customer",
- // },
- {
- title: "最近价格",
- key: "recentlyPrice",
- },
- {
- title: "首次报批",
- key: "isApprovalFirst",
- width: 300,
- inputType: "Select",
- referName: "is_effective",
- },
- {
- title: "价格调整",
- key: "isPriceAdjustment",
- width: 300,
- inputType: "Select",
- referName: "is_effective",
- },
- {
- key: "priceType",
- title: "价格类型",
- inputType: "Select",
- referName: "sys_price_type",
- },
- {
- title: "配送价",
- key: "isDistributionPrice",
- width: 300,
- inputType: "Select",
- referName: "is_effective",
- require: true,
- },
- {
- title: "创建人名称",
- key: "createByName",
- },
- {
- title: "更新人名称",
- key: "updateByName",
- },
- ],
- },
- {
- title: "合同执行组织范围",
- key: "priceApplyOrgs",
- tableColumns: [
- {
- title: "组织名称",
- key: "orgName",
- inputType: "PopoverSelect",
- referName: "ORG_PARAM",
- dataMapping: {
- org: "id",
- orgCode: "code",
- orgName: "name",
- },
- },
- { title: "组织编码", key: "org" },
- // { title: "组织ID", key: "org" },
- {
- title: "创建人名称",
- key: "createByName",
- },
- {
- title: "更新人名称",
- key: "updateByName",
- },
- ],
- },
- ];
- export default { FormColumns, TabColumns };
|