|
@@ -20,16 +20,7 @@ export default function useColumns() {
|
|
|
attr: { is: "el-input" },
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "status", title: "状态" },
|
|
|
- attr: {
|
|
|
- is: "el-select",
|
|
|
- dictName: "documents_status",
|
|
|
- disabled: true,
|
|
|
- value: "0",
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- item: { key: "lastPuMoney", title: "上年度采购额", width: 100 },
|
|
|
+ item: { key: "lastPuMoney", title: "年度采购额", width: 100 },
|
|
|
attr: {
|
|
|
is: "el-input-number",
|
|
|
},
|
|
@@ -48,21 +39,17 @@ export default function useColumns() {
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
item: {
|
|
|
- key: "supplierName",
|
|
|
- title: "供应商",
|
|
|
+ key: "isPartya",
|
|
|
+ title: "采购是否甲方",
|
|
|
required: true,
|
|
|
width: 100,
|
|
|
},
|
|
|
attr: {
|
|
|
- is: "el-popover-select-v2",
|
|
|
- valueKey: "name",
|
|
|
- referName: "SUPPLIER_PARAM",
|
|
|
- dataMapping: {
|
|
|
- supplier: "code",
|
|
|
- supplierName: "name",
|
|
|
- },
|
|
|
+ is: "el-select",
|
|
|
+ dictName: "sys_yes_no",
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -75,7 +62,7 @@ export default function useColumns() {
|
|
|
attr: { is: "el-select", dictName: "puarchase_contract_contract_type" },
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "puMoneyYear", title: "本年度采购额", width: 100 },
|
|
|
+ item: { key: "puMoneyYear", title: "合同总金额", width: 100 },
|
|
|
attr: {
|
|
|
is: "el-input-number",
|
|
|
},
|
|
@@ -99,12 +86,20 @@ export default function useColumns() {
|
|
|
},
|
|
|
{
|
|
|
item: {
|
|
|
- key: "supplierTier",
|
|
|
- title: "供应商层级",
|
|
|
+ key: "supplierName",
|
|
|
+ title: "供应商",
|
|
|
required: true,
|
|
|
width: 100,
|
|
|
},
|
|
|
- attr: { is: "el-select", dictName: "puarchase_contract_supplier_tier" },
|
|
|
+ attr: {
|
|
|
+ is: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "SUPPLIER_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ supplier: "code",
|
|
|
+ supplierName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
item: {
|
|
@@ -138,15 +133,12 @@ export default function useColumns() {
|
|
|
},
|
|
|
{
|
|
|
item: {
|
|
|
- key: "consumableClass",
|
|
|
- title: "耗材类别",
|
|
|
+ key: "supplierTier",
|
|
|
+ title: "供应商层级",
|
|
|
required: true,
|
|
|
width: 100,
|
|
|
},
|
|
|
- attr: {
|
|
|
- is: "el-select",
|
|
|
- dictName: "puarchase_contract_consumable_class",
|
|
|
- },
|
|
|
+ attr: { is: "el-select", dictName: "puarchase_contract_supplier_tier" },
|
|
|
},
|
|
|
{
|
|
|
item: {
|
|
@@ -166,10 +158,11 @@ export default function useColumns() {
|
|
|
title: "同类品牌及毛利率 (%)",
|
|
|
required: true,
|
|
|
},
|
|
|
- attr: {
|
|
|
- is: "el-input-number",
|
|
|
- precision: 2,
|
|
|
- },
|
|
|
+ // attr: {
|
|
|
+ // is: "el-input-number",
|
|
|
+ // precision: 2,
|
|
|
+ // },
|
|
|
+ attr: { is: "el-input", },
|
|
|
},
|
|
|
{
|
|
|
item: {
|
|
@@ -185,12 +178,15 @@ export default function useColumns() {
|
|
|
},
|
|
|
{
|
|
|
item: {
|
|
|
- key: "productName",
|
|
|
- title: "产品类别&名称",
|
|
|
+ key: "consumableClass",
|
|
|
+ title: "耗材类别",
|
|
|
required: true,
|
|
|
width: 100,
|
|
|
},
|
|
|
- attr: { is: "el-input" },
|
|
|
+ attr: {
|
|
|
+ is: "el-select",
|
|
|
+ dictName: "puarchase_contract_consumable_class",
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
item: {
|
|
@@ -234,10 +230,19 @@ export default function useColumns() {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "project", title: "项目医院", required: true, width: 100 },
|
|
|
+ item: {
|
|
|
+ key: "productName",
|
|
|
+ title: "产品类别&名称",
|
|
|
+ required: true,
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
attr: { is: "el-input" },
|
|
|
},
|
|
|
{
|
|
|
+ item: { key: "signDate", title: "合同签订日期", width: 100 },
|
|
|
+ attr: { is: "el-date-picker", valueFormat: "yyyy-MM-dd" },
|
|
|
+ },
|
|
|
+ {
|
|
|
item: {
|
|
|
key: "deliveryType",
|
|
|
title: "交货方式",
|
|
@@ -251,16 +256,8 @@ export default function useColumns() {
|
|
|
attr: { is: "el-input", value: "自制", disabled: true },
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "contractPartycName", title: "合同丙方", width: 100 },
|
|
|
- attr: {
|
|
|
- is: "el-popover-select-v2",
|
|
|
- valueKey: "name",
|
|
|
- referName: "SUPPLIER_PARAM",
|
|
|
- dataMapping: {
|
|
|
- contractPartyc: "code",
|
|
|
- contractPartycName: "name",
|
|
|
- },
|
|
|
- },
|
|
|
+ item: { key: "principalManufacturers", title: "主要厂家", width: 100 },
|
|
|
+ attr: { is: "el-input", },
|
|
|
},
|
|
|
{
|
|
|
item: {
|
|
@@ -269,7 +266,8 @@ export default function useColumns() {
|
|
|
required: true,
|
|
|
width: 100,
|
|
|
},
|
|
|
- attr: { is: "el-input-number", precision: 2 },
|
|
|
+ // attr: { is: "el-input-number", precision: 2 },
|
|
|
+ attr: { is: "el-input", },
|
|
|
},
|
|
|
{
|
|
|
item: { key: "freightMethods", title: "运费承担方式", width: 100 },
|
|
@@ -279,10 +277,40 @@ export default function useColumns() {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "signDate", title: "合同签订日期", width: 100 },
|
|
|
+ item: { key: "create_time", title: "合同创建时间", width: 100 },
|
|
|
attr: { is: "el-date-picker", valueFormat: "yyyy-MM-dd" },
|
|
|
},
|
|
|
{
|
|
|
+ item: { key: "project", title: "项目医院", required: true, width: 100 },
|
|
|
+ attr: { is: "el-input" },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "contractPartycName", title: "合同丙方", width: 100 },
|
|
|
+ attr: {
|
|
|
+ is: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "SUPPLIER_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ contractPartyc: "code",
|
|
|
+ contractPartycName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ item: {
|
|
|
+ key: "exemptionPostageCondtion",
|
|
|
+ title: "包邮条件",
|
|
|
+ span: 12,
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ attr: {
|
|
|
+ is: "el-input",
|
|
|
+ placeholder:
|
|
|
+ "当运费承担方式为供应商有条件承担时,该字段必填,填写要求,写明什么条件下供应商承担全部,什么条件下我方承担,什么条件下分别承担",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
item: {
|
|
|
key: "isTarget",
|
|
|
title: "是否有指标",
|
|
@@ -300,18 +328,18 @@ export default function useColumns() {
|
|
|
},
|
|
|
attr: { is: "el-input", placeholder: '当【是否有指标】="有"时,必填' },
|
|
|
},
|
|
|
+ // {
|
|
|
+ // item: { key: "", title: "交易类型", required: true, span: 12,},
|
|
|
+ // attr: { is: "el-input" },
|
|
|
+ // },
|
|
|
{
|
|
|
item: {
|
|
|
- key: "exemptionPostageCondtion",
|
|
|
- title: "包邮条件",
|
|
|
+ key: "rollbackPolicy",
|
|
|
+ title: "退换货政策",
|
|
|
+ required: true,
|
|
|
span: 12,
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- attr: {
|
|
|
- is: "el-input",
|
|
|
- placeholder:
|
|
|
- "当运费承担方式为供应商有条件承担时,该字段必填,填写要求,写明什么条件下供应商承担全部,什么条件下我方承担,什么条件下分别承担",
|
|
|
},
|
|
|
+ attr: { is: "el-input" },
|
|
|
},
|
|
|
{
|
|
|
item: {
|
|
@@ -322,6 +350,7 @@ export default function useColumns() {
|
|
|
},
|
|
|
attr: { is: "el-select", dictName: "sys_yes_no" },
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
item: {
|
|
|
key: "rebatePolicy",
|
|
@@ -335,72 +364,74 @@ export default function useColumns() {
|
|
|
placeholder: '当【是否有返利】="有"时,必填',
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- item: { key: "externalContract", title: "外部合同号", width: 100 },
|
|
|
- attr: { is: "el-input" },
|
|
|
- },
|
|
|
+
|
|
|
{
|
|
|
item: {
|
|
|
- key: "rollbackPolicy",
|
|
|
- title: "退换货政策",
|
|
|
+ key: "contractContent",
|
|
|
+ title: "合同主要内容",
|
|
|
required: true,
|
|
|
+ span: 24,
|
|
|
width: 100,
|
|
|
},
|
|
|
- attr: { is: "el-input" },
|
|
|
+ attr: { is: "el-input", type: "textarea",rows:3, },
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
item: { key: "enquiryCode", title: "询价单号", width: 100 },
|
|
|
attr: { is: "el-input" },
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
{
|
|
|
- item: {
|
|
|
- key: "contractContent",
|
|
|
- title: "合同主要内容",
|
|
|
- required: true,
|
|
|
- span: 24,
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- attr: { is: "el-input", type: "textarea" },
|
|
|
+ item: { key: "electronicContract", title: "电子合同", span: 6, width: 100 },
|
|
|
+ attr: { is: "el-input" },
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
- item: { key: "refusalReasons", title: "拒绝理由", span: 24, width: 100 },
|
|
|
+ item: { key: "refusalReasons", title: "拒绝理由", span: 6, width: 100 },
|
|
|
attr: { is: "el-input" },
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "externalFile", title: "对外附件", span: 24, width: 100 },
|
|
|
- attr: { is: "el-file-upload", fileType: ["pdf"] },
|
|
|
+ item: { key: "status", title: "状态" },
|
|
|
+ attr: {
|
|
|
+ is: "el-select",
|
|
|
+ dictName: "documents_status",
|
|
|
+ disabled: true,
|
|
|
+ value: "0",
|
|
|
+ },
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
- item: {
|
|
|
- key: "puFile",
|
|
|
- title: "采购商盖章合同附件",
|
|
|
- span: 24,
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- attr: { is: "el-file-upload", fileType: ["pdf"] },
|
|
|
+ item: { key: "externalFile", title: "附件", span: 12, width: 100 },
|
|
|
+ attr: { is: "el-file-upload", fileType: ["pdf","doc","docx","png","jpg","xls","xlsx"] },
|
|
|
},
|
|
|
{
|
|
|
item: {
|
|
|
- key: "supplierFile",
|
|
|
- title: "供应商盖章合同附件",
|
|
|
- span: 24,
|
|
|
+ key: "puFile",
|
|
|
+ title: "盖章合同附件",
|
|
|
+ span: 12,
|
|
|
width: 100,
|
|
|
},
|
|
|
attr: { is: "el-file-upload", fileType: ["pdf"] },
|
|
|
},
|
|
|
- {
|
|
|
- item: { key: "projectCode", title: "项目编号", width: 100 },
|
|
|
- attr: { is: "el-input" },
|
|
|
- },
|
|
|
- {
|
|
|
- item: { key: "projectName", title: "项目名称", width: 100 },
|
|
|
- attr: { is: "el-input" },
|
|
|
- },
|
|
|
- { item: { key: "area", title: "区域" }, attr: { is: "el-input" } },
|
|
|
- {
|
|
|
- item: { key: "consigneePhone", title: "收货人联系方式", width: 100 },
|
|
|
- attr: { is: "el-input" },
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // item: {
|
|
|
+ // key: "supplierFile",
|
|
|
+ // title: "供应商盖章合同附件",
|
|
|
+ // span:12,
|
|
|
+ // width: 100,
|
|
|
+ // },
|
|
|
+ // attr: { is: "el-file-upload", fileType: ["pdf"] },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // item: {
|
|
|
+ // key: "",
|
|
|
+ // title: "电子合同供应商附件",
|
|
|
+ // span: 12,
|
|
|
+ // width: 100,
|
|
|
+ // },
|
|
|
+ // attr: { is: "el-file-upload", fileType: ["pdf"] },
|
|
|
+ // },
|
|
|
{
|
|
|
item: {
|
|
|
key: "paymentAgreement",
|
|
@@ -442,11 +473,45 @@ export default function useColumns() {
|
|
|
is: "el-input-number",
|
|
|
},
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ // {
|
|
|
+ // item: { key: "externalContract", title: "外部合同号", width: 100 },
|
|
|
+ // attr: { is: "el-input" },
|
|
|
+ // },
|
|
|
+
|
|
|
+ // {
|
|
|
+ // item: { key: "projectCode", title: "项目编号", width: 100 },
|
|
|
+ // attr: { is: "el-input" },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // item: { key: "projectName", title: "项目名称", width: 100 },
|
|
|
+ // attr: { is: "el-input" },
|
|
|
+ // },
|
|
|
+ // { item: { key: "area", title: "区域" }, attr: { is: "el-input" } },
|
|
|
+ // {
|
|
|
+ // item: { key: "consigneePhone", title: "收货人联系方式", width: 100 },
|
|
|
+ // attr: { is: "el-input" },
|
|
|
+ // },
|
|
|
+
|
|
|
].map(({ item, attr }) => ({
|
|
|
attr,
|
|
|
item: { ...item, hidden: true, span: item.span || 6 },
|
|
|
}));
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
const TabColumns = [
|
|
|
{
|
|
|
item: { title: "物料基本信息", key: "contractItemList" },
|