Explorar el Código

更改列大小

qinhb hace 1 año
padre
commit
c822e4b47d

+ 17 - 19
src/views/base/materials/columns.ts

@@ -1,12 +1,12 @@
 import { useDictionaryStoreHook } from "@/store";
 const { dicts } = useDictionaryStoreHook();
 export const columns = [
-  { label: "物料编码", prop: "materialCode", search: true ,rules: [{
+  { label: "物料编码", prop: "materialCode", width: 130,overHidden: true,search: true ,rules: [{
       required: true,
       message: "请填写物料编码",
       trigger: "blur"
     }],},
-  { label: "物料名称", prop: "materialName", search: true ,rules: [{
+  { label: "物料名称", prop: "materialName", width: 140,overHidden: true,search: true ,rules: [{
       required: true,
       message: "请填写物料名称",
       trigger: "blur"
@@ -17,6 +17,7 @@ export const columns = [
     search: true,
     filterable: true,
     type: 'select',
+    width: 100,overHidden: true,
     dicData:dicts.material_properties,
     props: { label: "dictLabel", value: "dictValue" },
     rules: [{
@@ -25,7 +26,7 @@ export const columns = [
       trigger: "blur"
     }],
   },
-  { label: "物料规格", prop: "spec", search: true,rules: [{
+  { label: "物料规格", prop: "spec", width: 100,overHidden: true,search: true,rules: [{
       required: true,
       message: "请填写物料规格",
       trigger: "blur"
@@ -50,6 +51,7 @@ export const columns = [
     search: true,
     filterable: true,
     type: "select",
+    width: 100,overHidden: true,
     dicData:dicts.material_level,
     props: { label: "dictLabel", value: "dictValue" },
     rules: [{
@@ -58,7 +60,7 @@ export const columns = [
       trigger: "blur"
     }],
   },
-  { label: "生产厂家", prop: "manufacturer", search: true ,rules: [{
+  { label: "生产厂家", prop: "manufacturer",width: 100,overHidden: true ,rules: [{
       required: true,
       message: "请填写生产厂家",
       trigger: "blur"
@@ -69,6 +71,7 @@ export const columns = [
     search: true,
     filterable: true,
     type: "select",
+    width: 100,overHidden: true,
     dicData:dicts.quality_testing_plan,
     props: { label: "dictLabel", value: "dictValue" },
   },
@@ -78,6 +81,7 @@ export const columns = [
     search: true,
     filterable: true,
     type: "select",
+    width: 100,overHidden: true,
     dicData:dicts.applicable_platforms,
     props: { label: "dictLabel", value: "dictValue" },
     rules: [{
@@ -89,6 +93,7 @@ export const columns = [
     label: "质量等级",
     prop: "qualityLevelDictValue",
     search: true,
+    width: 100,overHidden: true,
     filterable: true,
     type: "select",
     dicData:dicts.quality_grade,
@@ -104,6 +109,7 @@ export const columns = [
     prop: "selectionDictValue",
     search: true,
     filterable: true,
+    width: 100,overHidden: true,
     type: "select",
     dicData:dicts.selection_type,
     props: { label: "dictLabel", value: "dictValue" },
@@ -113,22 +119,18 @@ export const columns = [
     prop: "stageDictValue",
     search: true,
     filterable: true,
+    width: 100,overHidden: true,
     type: "select",
     dicData:dicts.stage,
     props: { label: "dictLabel", value: "dictValue" },
   },
-  { label: "客户型号", prop: "customerModel", search: true },
-  { label: "保质期(天)", prop: "qualityGuaranteePeriod", search: true },
-
-
-
-
-
-
+  { label: "客户型号", prop: "customerModel",width: 100,overHidden: true, search: true },
+  { label: "保质期(天)", prop: "qualityGuaranteePeriod",width: 100,overHidden: true, search: true },
   {
     label: "封装方法",
     prop: "packageDictValue",
     search: true,
+    width: 100,overHidden: true,
     filterable: true,
     type: "select",
     dicData:dicts.packaging_method,
@@ -139,6 +141,7 @@ export const columns = [
     label: "是否工装",
     prop: "frock",
     search: true,
+    width: 90,overHidden: true,
     filterable: true,
     type: "radio", //类型为单选框
     dicData: [
@@ -159,12 +162,7 @@ export const columns = [
       trigger: "blur"
     }],
   },
+  { label: "筛选规范", prop: "selectionSpec",width: 150,overHidden: true, search: true , type: "textarea",span:18},
 
-
-
-
-
-  { label: "筛选规范", prop: "selectionSpec", search: true , type: "textarea",span:18},
-
-  { label: "备注", prop: "remark", type: "textarea", span:18 },
+  { label: "备注", prop: "remark", width: 150,overHidden: true,type: "textarea", span:18 },
 ];

+ 15 - 8
src/views/base/materials/components/choice-item-page.vue

@@ -59,13 +59,14 @@ option.value = Object.assign(option.value, {
   viewBtn: false,
   menu: false,
   column: [
-    { label: "物料编码",width: 120, prop: "materialCode", search: true },
-    { label: "物料名称",width: 120, prop: "materialName", search: true },
+    { label: "物料编码",width: 150,overHidden: true, prop: "materialCode", search: true },
+    { label: "物料名称",width: 150,overHidden: true, prop: "materialName", search: true },
     {
       label: "物料属性",
       prop: "attributeDictValue",
       search: true,
       width: 120,
+      overHidden: true,
       type: 'select',
       dicData:dicts.material_properties,
       props: { label: "dictLabel", value: "dictValue" },
@@ -82,15 +83,17 @@ option.value = Object.assign(option.value, {
       label: "物料级别",
       prop: "levelDictValue",
       width: 100,
+      overHidden: true,
       type: "select",
       dicData:dicts.material_level,
       props: { label: "dictLabel", value: "dictValue" },
     },
-    { label: "生产厂家",width: 120, prop: "manufacturer"},
+    { label: "生产厂家",width: 120, overHidden: true,prop: "manufacturer"},
     {
       label: "质检方案",
       prop: "inspectDictValue",
       width: 120,
+      overHidden: true,
       type: "select",
       dicData:dicts.quality_testing_plan,
       props: { label: "dictLabel", value: "dictValue" },
@@ -100,6 +103,7 @@ option.value = Object.assign(option.value, {
       prop: "applicablePlatformsDictValue",
       width: 120,
       type: "select",
+      overHidden: true,
       dicData:dicts.applicable_platforms,
       props: { label: "dictLabel", value: "dictValue" },
     },
@@ -108,6 +112,7 @@ option.value = Object.assign(option.value, {
       prop: "qualityLevelDictValue",
       width: 120,
       type: "select",
+      overHidden: true,
       dicData:dicts.quality_grade,
       props: { label: "dictLabel", value: "dictValue" },
     },
@@ -115,6 +120,7 @@ option.value = Object.assign(option.value, {
       label: "选用类型",
       prop: "selectionDictValue",
       width: 100,
+      overHidden: true,
       type: "select",
       dicData:dicts.selection_type,
       props: { label: "dictLabel", value: "dictValue" },
@@ -123,18 +129,19 @@ option.value = Object.assign(option.value, {
       label: "产品阶段",
       prop: "stageDictValue",
       search: true,
+      overHidden: true,
       width: 100,
       filterable: true,
       type: "select",
       dicData:dicts.stage,
       props: { label: "dictLabel", value: "dictValue" },
     },
-    { label: "客户型号",width: 100, prop: "customerModel",  },
-    { label: "保质期(天)",width: 100, prop: "qualityGuaranteePeriod", },
+    { label: "客户型号",width: 100, overHidden: true,prop: "customerModel",  },
+    { label: "保质期(天)",width: 100, overHidden: true,prop: "qualityGuaranteePeriod", },
     {
       label: "封装方法",
       prop: "packageDictValue",
-      width: 100,
+      width: 100,overHidden: true,
       type: "select",
       dicData:dicts.packaging_method,
       props: { label: "dictLabel", value: "dictLabel" },
@@ -162,8 +169,8 @@ option.value = Object.assign(option.value, {
         trigger: "blur"
       }],
     },
-    { label: "筛选规范",width: 100, prop: "selectionSpec", type: "textarea",span:18},
-    { label: "备注",width: 100, prop: "remark", type: "textarea", span:18 },
+    { label: "筛选规范",width: 100,overHidden: true, prop: "selectionSpec", type: "textarea",span:18},
+    { label: "备注",width: 100,overHidden: true, prop: "remark", type: "textarea", span:18 },
   ],
 });
 

+ 19 - 10
src/views/plan/order/components/order-page.vue

@@ -63,36 +63,42 @@ option.value = Object.assign(option.value, {
       label: "订单编号",
       prop: "orderCode",
       search: true,
-      width: "125",
+      width: 120,
+      overHidden: true,
       display: false,
     },
     {
       label: "订单名称",
       prop: "orderName",
       search: true,
-      width: "100",
+      width: 150,
+      overHidden: true,
     },
     {
       label: "ERP号",
       prop: "erpCode",
       search: true,
-      width: "100",
+      width: 120,
+      overHidden: true,
     },
     {
       label: "产品编码",
       prop: "materialCode",
       search: true,
-      width: "100",
+      width: 120,
+      overHidden: true,
     },
     {
       label: "产品名称",
       prop: "materialName",
       search: true,
-      width: "100",
+      width: 130,
+      overHidden: true,
     },
     {
       label: "产品规格",
-      width: "100",
+      width: 130,
+      overHidden: true,
       prop: "materialModel",
     },
     {
@@ -162,7 +168,8 @@ option.value = Object.assign(option.value, {
     {
       label: "所属公司",
       prop: "companyId",
-      width: "100",
+      width: 130,
+      overHidden: true,
       type: "select", //类型为下拉选择框
       dicUrl: import.meta.env.VITE_APP_BASE_API + "/api/v1/sys/dept/orgList",
       props: {
@@ -172,7 +179,8 @@ option.value = Object.assign(option.value, {
     },
     {
       label: "项目号",
-      width: "100",
+      width: 130,
+      overHidden: true,
       prop: "projectCode",
     },
     {
@@ -195,7 +203,8 @@ option.value = Object.assign(option.value, {
     {
       label: "备注",
       prop: "remark",
-      width: "100",
+      width: 130,
+      overHidden: true,
       minRows: 2, //最小行/最小值
       type: "textarea", //类型为多行文本域框
       maxlength: 512, //最大输入长度
@@ -203,7 +212,7 @@ option.value = Object.assign(option.value, {
     {
       label: "创建时间",
       prop: "created",
-      width: "140",
+      width: 140,
       overHidden: true,
       type: "datetime",
       valueFormat: "yyyy-MM-dd HH:mm:ss",

+ 32 - 16
src/views/plan/order/index.vue

@@ -179,14 +179,16 @@ option.value = {
       label: "订单编号",
       prop: "orderCode",
       search: true,
-      width: "125",
+      width: 130,
+      overHidden: true,
       display: false,
     },
     {
       label: "订单名称",
       prop: "orderName",
       search: true,
-      width: "100",
+      width: 150,
+      overHidden: true,
       rules: [
         {
           required: true,
@@ -199,7 +201,8 @@ option.value = {
       label: "ERP号",
       prop: "erpCode",
       search: true,
-      width: "100",
+      width: 130,
+      overHidden: true,
       rules: [
         {
           required: true,
@@ -212,7 +215,8 @@ option.value = {
       label: "产品编码",
       prop: "materialCode",
       search: true,
-      width: "100",
+      width: 130,
+      overHidden: true,
       rules: [
         {
           required: true,
@@ -230,6 +234,8 @@ option.value = {
       label: "产品名称",
       prop: "materialName",
       search: true,
+      width: 130,
+      overHidden: true,
       rules: [
         {
           required: true,
@@ -238,11 +244,11 @@ option.value = {
         },
       ],
       disabled: true,
-      width: "100",
     },
     {
       label: "产品规格",
-      width: "100",
+      width: 130,
+      overHidden: true,
       disabled: true,
       prop: "materialModel",
     },
@@ -250,7 +256,8 @@ option.value = {
       label: "订单状态",
       prop: "orderState",
       display: false,
-      width: "100",
+      width: 100,
+      overHidden: true,
       type: "select", //类型为下拉选择框
       dicUrl:
         dictDataUtil.request_url + dictDataUtil.TYPE_CODE.plan_order_state,
@@ -265,7 +272,8 @@ option.value = {
       label: "订单类型",
       prop: "orderType",
       type: "select", //类型为下拉选择框
-      width: "100",
+      width: 100,
+      overHidden: true,
       dicUrl: dictDataUtil.request_url + dictDataUtil.TYPE_CODE.plan_order_type,
       props: {
         label: "dictLabel",
@@ -285,7 +293,8 @@ option.value = {
       label: "订单数量",
       prop: "orderNum",
       type: "number",
-      width: "100",
+      width: 100,
+      overHidden: true,
       min: 1,
       max: 99999,
       rules: [
@@ -299,13 +308,15 @@ option.value = {
     {
       label: "排产数量",
       prop: "scheduledNum",
-      width: "100",
+      width: 100,
+      overHidden: true,
       display: false,
     },
     {
       label: "优先级",
       prop: "priority",
-      width: "100",
+      width: 100,
+      overHidden: true,
       type: "select", //类型为下拉选择框
       dicUrl:
         dictDataUtil.request_url + dictDataUtil.TYPE_CODE.plan_order_priority,
@@ -327,7 +338,8 @@ option.value = {
       label: "交付日期",
       prop: "deliverTime",
       type: "date",
-      width: "100",
+      width: 100,
+      overHidden: true,
       format: "YYYY-MM-DD", //前端展示格式
       valueFormat: "YYYY-MM-DD", //设置后端接收的日期格式
       rules: [
@@ -341,7 +353,8 @@ option.value = {
     {
       label: "所属公司",
       prop: "companyId",
-      width: "100",
+      width: 100,
+      overHidden: true,
       type: "select", //类型为下拉选择框
       dicUrl: import.meta.env.VITE_APP_BASE_API + "/api/v1/sys/dept/orgList",
       props: {
@@ -358,7 +371,8 @@ option.value = {
     },
     {
       label: "项目号",
-      width: "100",
+      width: 100,
+      overHidden: true,
       prop: "projectCode",
     },
     {
@@ -381,7 +395,8 @@ option.value = {
     {
       label: "备注",
       prop: "remark",
-      width: "100",
+      width: 100,
+      overHidden: true,
       minRows: 2, //最小行/最小值
       type: "textarea", //类型为多行文本域框
       maxlength: 512, //最大输入长度
@@ -413,7 +428,8 @@ const queryExpandAlias = () => {
           option.value.column.push({
             label: item.label,
             prop: item.field,
-            width: "100",
+            width: 100,
+            overHidden: true,
           });
         });
       }

+ 2 - 0
src/views/storage/inTask/index.vue

@@ -64,6 +64,8 @@ option.value = Object.assign(option.value, {
     },
     {
       label: "物料编号",
+      width: 130,
+      overHidden: true,
       prop: "materialNo",
     },
     {

+ 2 - 0
src/views/storage/outTask/index.vue

@@ -64,6 +64,8 @@ option.value = Object.assign(option.value, {
     },
     {
       label: "物料编号",
+      width: 130,
+      overHidden: true,
       prop: "materialNo",
     },
     {

+ 2 - 0
src/views/storage/returnTask/index.vue

@@ -64,6 +64,8 @@ option.value = Object.assign(option.value, {
     },
     {
       label: "物料编号",
+      width: 130,
+      overHidden: true,
       prop: "materialNo",
     },
     {

+ 8 - 0
src/views/storage/stock/index.vue

@@ -106,6 +106,8 @@ option.value = Object.assign(option.value, {
       prop: "houseType",
       type: "select",
       search: true,
+      width: 90,
+      overHidden: true,
       editDisabled: true,
       dicUrl:
           dictDataUtil.request_url +
@@ -148,16 +150,22 @@ option.value = Object.assign(option.value, {
     },
     {
       label: "批次号",
+      width: 120,
+      overHidden: true,
       prop: "batchCode",
       search: true
     },
     {
       label: "序列号",
+      width: 130,
+      overHidden: true,
       prop: "seqNo",
     },
     {
       label: "物料名称",
       prop: "materialName",
+      width: 130,
+      overHidden: true,
       click: ({ value, column }) => {
         if(column.boxType){
           dialog1.visible = true