|
@@ -1,82 +1,90 @@
|
|
import { useDictionaryStoreHook } from "@/store";
|
|
import { useDictionaryStoreHook } from "@/store";
|
|
const { dicts } = useDictionaryStoreHook();
|
|
const { dicts } = useDictionaryStoreHook();
|
|
-
|
|
|
|
|
|
+import dictDataUtil from "@/common/configs/dictDataUtil";
|
|
export const columns = [
|
|
export const columns = [
|
|
- { label: "客户型号", prop: "customervodel", search: true },
|
|
|
|
- { label: "生产厂家", prop: "manufacturer", search: true },
|
|
|
|
- { label: "物料编码", prop: "materialCode", search: true },
|
|
|
|
- { label: "物料名称", prop: "materialName", search: true },
|
|
|
|
- { label: "保质期", prop: "qualityGuaranteePeriod", search: true },
|
|
|
|
-
|
|
|
|
- { label: "筛选规范", prop: "selectionSpec", search: true },
|
|
|
|
- { label: "物料规格", prop: "spec", search: true },
|
|
|
|
- {
|
|
|
|
- label: "适用平台",
|
|
|
|
- prop: "applicablePlatformsDictValue",
|
|
|
|
- search: true,
|
|
|
|
- filterable: true,
|
|
|
|
- type: "select",
|
|
|
|
- dataType: "string",
|
|
|
|
- dicData: dicts.applicable_platforms,
|
|
|
|
- props: { label: "dictLabel", value: "dictValue" },
|
|
|
|
- },
|
|
|
|
|
|
+ { label: "物料编码", prop: "materialCode", search: true ,rules: [{
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请填写物料编码",
|
|
|
|
+ trigger: "blur"
|
|
|
|
+ }],},
|
|
|
|
+ { label: "物料名称", prop: "materialName", search: true ,rules: [{
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请填写物料名称",
|
|
|
|
+ trigger: "blur"
|
|
|
|
+ }],},
|
|
{
|
|
{
|
|
label: "物料属性",
|
|
label: "物料属性",
|
|
prop: "attributeDictValue",
|
|
prop: "attributeDictValue",
|
|
search: true,
|
|
search: true,
|
|
filterable: true,
|
|
filterable: true,
|
|
- type: "select",
|
|
|
|
- dataType: "string",
|
|
|
|
- dicData: dicts.material_properties,
|
|
|
|
|
|
+ type: 'select',
|
|
|
|
+ dicUrl:dictDataUtil.request_url+dictDataUtil.TYPE_CODE.material_properties,
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
|
|
+ rules: [{
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请选择物料属性",
|
|
|
|
+ trigger: "blur"
|
|
|
|
+ }],
|
|
},
|
|
},
|
|
|
|
+ { label: "物料规格", prop: "spec", search: true,rules: [{
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请填写物料规格",
|
|
|
|
+ trigger: "blur"
|
|
|
|
+ }], },
|
|
{
|
|
{
|
|
- label: "是否工装",
|
|
|
|
- prop: "frock",
|
|
|
|
|
|
+ label: "单位",
|
|
|
|
+ prop: "unitDictValue",
|
|
search: true,
|
|
search: true,
|
|
filterable: true,
|
|
filterable: true,
|
|
- type: "radio", //类型为单选框
|
|
|
|
- dicData: [
|
|
|
|
- {
|
|
|
|
- label: "否",
|
|
|
|
- value: 0,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: "是",
|
|
|
|
- value: 1,
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- value: 0,
|
|
|
|
|
|
+ type: "select",
|
|
|
|
+ dicUrl:dictDataUtil.request_url+dictDataUtil.TYPE_CODE.unit,
|
|
|
|
+ props: { label: "dictLabel", value: "dictValue" },
|
|
|
|
+ rules: [{
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请选择单位",
|
|
|
|
+ trigger: "blur"
|
|
|
|
+ }],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: "质检方案",
|
|
|
|
- prop: "inspectDictValue",
|
|
|
|
|
|
+ label: "物料级别",
|
|
|
|
+ prop: "levelDictValue",
|
|
search: true,
|
|
search: true,
|
|
filterable: true,
|
|
filterable: true,
|
|
type: "select",
|
|
type: "select",
|
|
- dataType: "string",
|
|
|
|
- dicData: dicts.quality_testing_plan,
|
|
|
|
|
|
+ dicUrl:dictDataUtil.request_url+dictDataUtil.TYPE_CODE.material_level,
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
|
|
+ rules: [{
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请选择物料级别",
|
|
|
|
+ trigger: "blur"
|
|
|
|
+ }],
|
|
},
|
|
},
|
|
|
|
+ { label: "生产厂家", prop: "manufacturer", search: true ,rules: [{
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请填写生产厂家",
|
|
|
|
+ trigger: "blur"
|
|
|
|
+ }],},
|
|
{
|
|
{
|
|
- label: "物料级别",
|
|
|
|
- prop: "levelDictValue",
|
|
|
|
|
|
+ label: "质检方案",
|
|
|
|
+ prop: "inspectDictValue",
|
|
search: true,
|
|
search: true,
|
|
filterable: true,
|
|
filterable: true,
|
|
type: "select",
|
|
type: "select",
|
|
- dataType: "string",
|
|
|
|
- dicData: dicts.material_level,
|
|
|
|
|
|
+ dicUrl:dictDataUtil.request_url+dictDataUtil.TYPE_CODE.quality_testing_plan,
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: "封装方法",
|
|
|
|
- prop: "packageDictValue",
|
|
|
|
|
|
+ label: "适用平台",
|
|
|
|
+ prop: "applicablePlatformsDictValue",
|
|
search: true,
|
|
search: true,
|
|
filterable: true,
|
|
filterable: true,
|
|
type: "select",
|
|
type: "select",
|
|
- dataType: "string",
|
|
|
|
- dicData: dicts.packaging_method,
|
|
|
|
|
|
+ dicUrl:dictDataUtil.request_url+dictDataUtil.TYPE_CODE.applicable_platforms,
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
|
|
+ rules: [{
|
|
|
|
+ required: true, message: "请选择适用平台",
|
|
|
|
+ trigger: "blur"
|
|
|
|
+ }],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "质量等级",
|
|
label: "质量等级",
|
|
@@ -84,9 +92,13 @@ export const columns = [
|
|
search: true,
|
|
search: true,
|
|
filterable: true,
|
|
filterable: true,
|
|
type: "select",
|
|
type: "select",
|
|
- dataType: "string",
|
|
|
|
- dicData: dicts.quality_grade,
|
|
|
|
|
|
+ dicUrl:dictDataUtil.request_url+dictDataUtil.TYPE_CODE.quality_grade,
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
|
|
+ rules: [{
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请选择质量等级",
|
|
|
|
+ trigger: "blur"
|
|
|
|
+ }],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "选用类型",
|
|
label: "选用类型",
|
|
@@ -94,29 +106,66 @@ export const columns = [
|
|
search: true,
|
|
search: true,
|
|
filterable: true,
|
|
filterable: true,
|
|
type: "select",
|
|
type: "select",
|
|
- dataType: "string",
|
|
|
|
- dicData: dicts.selection_type,
|
|
|
|
|
|
+ dicUrl:dictDataUtil.request_url+dictDataUtil.TYPE_CODE.selection_type,
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: "阶段",
|
|
|
|
|
|
+ label: "产品阶段",
|
|
prop: "stageDictValue",
|
|
prop: "stageDictValue",
|
|
search: true,
|
|
search: true,
|
|
filterable: true,
|
|
filterable: true,
|
|
type: "select",
|
|
type: "select",
|
|
- dataType: "string",
|
|
|
|
- dicData: dicts.stage,
|
|
|
|
|
|
+ dicUrl:dictDataUtil.request_url+dictDataUtil.TYPE_CODE.stage,
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
},
|
|
},
|
|
|
|
+ { label: "客户型号", prop: "customerModel", search: true },
|
|
|
|
+ { label: "保质期(天)", prop: "qualityGuaranteePeriod", search: true },
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
{
|
|
{
|
|
- label: "物料单位",
|
|
|
|
- prop: "unitDictValue",
|
|
|
|
|
|
+ label: "封装方法",
|
|
|
|
+ prop: "packageDictValue",
|
|
search: true,
|
|
search: true,
|
|
filterable: true,
|
|
filterable: true,
|
|
type: "select",
|
|
type: "select",
|
|
- dataType: "string",
|
|
|
|
- dicData: dicts.danwei_type,
|
|
|
|
|
|
+ dicUrl:dictDataUtil.request_url+dictDataUtil.TYPE_CODE.packaging_method,
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
props: { label: "dictLabel", value: "dictValue" },
|
|
},
|
|
},
|
|
- { label: "备注", prop: "remark", type: "textarea", search: true },
|
|
|
|
|
|
+
|
|
|
|
+ {
|
|
|
|
+ label: "是否工装",
|
|
|
|
+ prop: "frock",
|
|
|
|
+ search: true,
|
|
|
|
+ filterable: true,
|
|
|
|
+ type: "radio", //类型为单选框
|
|
|
|
+ dicData: [
|
|
|
|
+ {
|
|
|
|
+ label: "是",
|
|
|
|
+ value: 1,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: "否",
|
|
|
|
+ value: 0,
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ ],
|
|
|
|
+ value: 1,
|
|
|
|
+ rules: [{
|
|
|
|
+ required: true,
|
|
|
|
+ message: "是否工装",
|
|
|
|
+ trigger: "blur"
|
|
|
|
+ }],
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ { label: "筛选规范", prop: "selectionSpec", search: true , type: "textarea",span:18},
|
|
|
|
+
|
|
|
|
+ { label: "备注", prop: "remark", type: "textarea", span:18 },
|
|
];
|
|
];
|