From 47ab3b599d4765161d4adaf5b9a368429b152845 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 11 四月 2024 14:30:00 +0800 Subject: [PATCH] 添加按钮 --- src/views/technology/routing/routing-form.vue | 29 ++++++++++++++++------------- 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/views/technology/routing/routing-form.vue b/src/views/technology/routing/routing-form.vue index 2ebb8ad..9b71564 100644 --- a/src/views/technology/routing/routing-form.vue +++ b/src/views/technology/routing/routing-form.vue @@ -62,7 +62,7 @@ </el-col> <el-col :span="6"> <el-form-item label="BOM" prop="bomId"> - <el-select style="width:100%" :disabled="dataForm.id != null" v-model="dataForm.bomId" placeholder="" filterable> + <el-select style="width:100%" v-model="dataForm.bomId" placeholder="" filterable> <el-option v-for="item in bomList" :key="item.id" @@ -136,16 +136,8 @@ '--dragitemwidth': '250px' }" > - <div - :style="{ - width: 265 * dataForm.operations.length - 15 + 'px' - }" - > - <div - class="dragHead" - v-for="x in dataForm.operations.length" - :key="x" - > + <div :style="{ width: 265 * dataForm.operations.length - 15 + 'px' }"> + <div class="dragHead" v-for="x in dataForm.operations.length" :key="x" > <div class="idx">{{ x }}</div> </div> <zttdraggable @@ -453,7 +445,7 @@ effect="dark" > {{ item.label }} - </el-tag> + </el-tag> </div> --> <el-divider content-position="left">澶囨敞</el-divider> <div class="node-content-remark"> @@ -703,7 +695,7 @@ dataRule: { partNo: [ { required: true, message: '闆朵欢涓嶈兘涓虹┖', trigger: 'blur' } - ], + ], bomTypeDb: [ { required: true, message: '宸ヨ壓绫诲瀷涓嶈兘涓虹┖', trigger: 'change' } ], @@ -1405,6 +1397,17 @@ // 淇濆瓨鎵�鏈夊弬鏁扮殑淇敼 saveAllParamChange() { const paramJson = { routingOperationParam: this.paramData } + let num = 0 + this.paramData.forEach(e=>{ + var regex=/^[^\(\)|^,]+$/; + if(!regex.test(e.paramValue)){ + num+=1 + } + }) + if(num>0){ + this.$message.error("鍙傛暟鍊间笉鑳藉寘鍚嫳鏂囨嫭鍙锋垨閫楀彿,璇锋鏌�") + return + } putRoutingTemplateParam(paramJson).then((response) => { const data = response.data if (data.code == 0) { -- Gitblit v1.9.3