From cb5e7e7ed235e793715e32deb75691c2b2323e42 Mon Sep 17 00:00:00 2001 From: kilo Date: Thu, 1 Dec 2022 18:07:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activiti/form/ProcessUdgetPlanForm.vue | 12 +++++++++++- .../wastematerials/ProcessWasteMaterialsLists.vue | 1 - 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/views/activiti/form/ProcessUdgetPlanForm.vue b/src/views/activiti/form/ProcessUdgetPlanForm.vue index 63c66af..c56e99e 100644 --- a/src/views/activiti/form/ProcessUdgetPlanForm.vue +++ b/src/views/activiti/form/ProcessUdgetPlanForm.vue @@ -539,7 +539,11 @@ materialType: { rules: [{ required: true, message: '请选择物资类型!' }] }, needTime: { rules: [{ required: true, message: '请选择需求时间!' }] }, processPlan: { rules: [{ required: true, message: '请选择流程计划!' }] }, - sort: { rules: [{ required: true, message: '请输入序号!' }] } + sort: { rules: [{ required: true, type: 'number', message: '请输入序号!'}, + { type:'number', max:999999999999, message: '长度在 0 到 12 个字符'} + // {validator: this.lengthCheck} + ] + } }, isBu: undefined, planType: '', @@ -641,6 +645,12 @@ // this.form.setFieldsValue("materialGroup",123123); }, methods: { + // lengthCheck(rule, value, callback){ + // if (value.toString().length >= 12 ){ + // // console.log("长度太长了"); + // callback("长度应当在0 ~ 12 字符") + // } + // }, selectRowChange(a, b, c) { // console.log("执行了",a,b,c); }, diff --git a/src/views/wastematerials/ProcessWasteMaterialsLists.vue b/src/views/wastematerials/ProcessWasteMaterialsLists.vue index 73de79c..fba433c 100644 --- a/src/views/wastematerials/ProcessWasteMaterialsLists.vue +++ b/src/views/wastematerials/ProcessWasteMaterialsLists.vue @@ -366,7 +366,6 @@ materialStorageId: this.$route.query.materialStorageId, del_flag: 0 }, - this.ipagination.current = 1; this.loadData(1); // getAction(this.url.list,this.queryParam).then((res)=>{