|
@@ -173,20 +173,28 @@ export const TabColumns = [
|
|
title: "物料名称",
|
|
title: "物料名称",
|
|
key: "materialName",
|
|
key: "materialName",
|
|
inputType: "PopoverSelect",
|
|
inputType: "PopoverSelect",
|
|
- width: 200,
|
|
|
|
|
|
+ width: 300,
|
|
referName: "MATERIAL_PARAM",
|
|
referName: "MATERIAL_PARAM",
|
|
dataMapping: {
|
|
dataMapping: {
|
|
|
|
+ model: "model",
|
|
material: "id",
|
|
material: "id",
|
|
- unit: "unitId",
|
|
|
|
materialCode: "code",
|
|
materialCode: "code",
|
|
materialName: "name",
|
|
materialName: "name",
|
|
|
|
+ unitName: "unitIdName",
|
|
|
|
+ puUnitName: "unitIdName",
|
|
specification: "specification",
|
|
specification: "specification",
|
|
- manufacturer: "manufacturerIdName",
|
|
|
|
|
|
+ manufacturer: "manufacturerId",
|
|
|
|
+ manufacturerName: "manufacturerIdName",
|
|
},
|
|
},
|
|
|
|
+ require: true,
|
|
},
|
|
},
|
|
{ title: "物料编码", key: "materialCode" },
|
|
{ title: "物料编码", key: "materialCode" },
|
|
{
|
|
{
|
|
title: "生产厂家",
|
|
title: "生产厂家",
|
|
|
|
+ key: "manufacturerName",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "生产厂家编码",
|
|
key: "manufacturer",
|
|
key: "manufacturer",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -201,10 +209,11 @@ export const TabColumns = [
|
|
title: "单位名称",
|
|
title: "单位名称",
|
|
key: "unitName",
|
|
key: "unitName",
|
|
inputType: "PopoverSelect",
|
|
inputType: "PopoverSelect",
|
|
- width: 200,
|
|
|
|
|
|
+ width: 300,
|
|
referName: "UNIT_PARAM",
|
|
referName: "UNIT_PARAM",
|
|
dataMapping: {
|
|
dataMapping: {
|
|
- unit: "name",
|
|
|
|
|
|
+ unit: "code",
|
|
|
|
+ unitName: "name",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -215,10 +224,11 @@ export const TabColumns = [
|
|
title: "采购单位名称",
|
|
title: "采购单位名称",
|
|
key: "puUnitName",
|
|
key: "puUnitName",
|
|
inputType: "PopoverSelect",
|
|
inputType: "PopoverSelect",
|
|
- width: 200,
|
|
|
|
|
|
+ width: 300,
|
|
referName: "UNIT_PARAM",
|
|
referName: "UNIT_PARAM",
|
|
dataMapping: {
|
|
dataMapping: {
|
|
- puUnit: "name",
|
|
|
|
|
|
+ puUnit: "code",
|
|
|
|
+ puUnitName: "name",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -229,7 +239,8 @@ export const TabColumns = [
|
|
title: "采购换算率",
|
|
title: "采购换算率",
|
|
key: "conversionRate",
|
|
key: "conversionRate",
|
|
inputType: "InputNumber",
|
|
inputType: "InputNumber",
|
|
- width: 200,
|
|
|
|
|
|
+ width: 300,
|
|
|
|
+ require: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "税率%",
|
|
title: "税率%",
|
|
@@ -239,25 +250,28 @@ export const TabColumns = [
|
|
dataMapping: {
|
|
dataMapping: {
|
|
tax: "ntaxrate",
|
|
tax: "ntaxrate",
|
|
},
|
|
},
|
|
- width: 200,
|
|
|
|
|
|
+ width: 300,
|
|
|
|
+ require: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "含税单价",
|
|
title: "含税单价",
|
|
key: "taxPrice",
|
|
key: "taxPrice",
|
|
inputType: "InputNumber",
|
|
inputType: "InputNumber",
|
|
- width: 200,
|
|
|
|
|
|
+ width: 300,
|
|
|
|
+ require: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "无税单价",
|
|
title: "无税单价",
|
|
- key: "taxFreePrice",
|
|
|
|
|
|
+ key: "price",
|
|
inputType: "ComputedInput",
|
|
inputType: "ComputedInput",
|
|
- width: 200,
|
|
|
|
|
|
+ width: 300,
|
|
computed: (prop) => {
|
|
computed: (prop) => {
|
|
const { tax, taxPrice } = prop;
|
|
const { tax, taxPrice } = prop;
|
|
const newTax = Number(tax) / 100;
|
|
const newTax = Number(tax) / 100;
|
|
- const taxFreePrice = (taxPrice / (1 + newTax)).toFixed(8);
|
|
|
|
- return taxFreePrice === "NaN" ? null : taxFreePrice;
|
|
|
|
|
|
+ const price = (taxPrice / (1 + newTax)).toFixed(8);
|
|
|
|
+ return price === "NaN" ? null : price;
|
|
},
|
|
},
|
|
|
|
+ require: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
key: "currencyName",
|
|
key: "currencyName",
|
|
@@ -279,6 +293,7 @@ export const TabColumns = [
|
|
inputType: "DatePicker",
|
|
inputType: "DatePicker",
|
|
valueFormat: "yyyy-MM-dd",
|
|
valueFormat: "yyyy-MM-dd",
|
|
value: new Date(),
|
|
value: new Date(),
|
|
|
|
+ require: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
key: "periodEnd",
|
|
key: "periodEnd",
|
|
@@ -290,12 +305,13 @@ export const TabColumns = [
|
|
return time.getTime() < Date.now() + 3600 * 1000 * 24 * 365;
|
|
return time.getTime() < Date.now() + 3600 * 1000 * 24 * 365;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ require: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "客户名称",
|
|
title: "客户名称",
|
|
key: "customerName",
|
|
key: "customerName",
|
|
inputType: "PopoverSelect",
|
|
inputType: "PopoverSelect",
|
|
- width: 200,
|
|
|
|
|
|
+ width: 300,
|
|
referName: "CUSTOMER_PARAM",
|
|
referName: "CUSTOMER_PARAM",
|
|
dataMapping: {
|
|
dataMapping: {
|
|
customer: "code",
|
|
customer: "code",
|
|
@@ -313,14 +329,14 @@ export const TabColumns = [
|
|
{
|
|
{
|
|
title: "首次报批",
|
|
title: "首次报批",
|
|
key: "isApprovalFirst",
|
|
key: "isApprovalFirst",
|
|
- width: 200,
|
|
|
|
|
|
+ width: 300,
|
|
inputType: "Select",
|
|
inputType: "Select",
|
|
referName: "is_effective",
|
|
referName: "is_effective",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "价格调整",
|
|
title: "价格调整",
|
|
key: "isPriceAdjustment",
|
|
key: "isPriceAdjustment",
|
|
- width: 200,
|
|
|
|
|
|
+ width: 300,
|
|
inputType: "Select",
|
|
inputType: "Select",
|
|
referName: "is_effective",
|
|
referName: "is_effective",
|
|
},
|
|
},
|
|
@@ -333,9 +349,10 @@ export const TabColumns = [
|
|
{
|
|
{
|
|
title: "配送价",
|
|
title: "配送价",
|
|
key: "isDistributionPrice",
|
|
key: "isDistributionPrice",
|
|
- width: 200,
|
|
|
|
|
|
+ width: 300,
|
|
inputType: "Select",
|
|
inputType: "Select",
|
|
referName: "is_effective",
|
|
referName: "is_effective",
|
|
|
|
+ require: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "创建人名称",
|
|
title: "创建人名称",
|