licp
2024-05-13 211fd8e6bf7cd459c757b58a5d7398d1b4b1ae2b
src/views/plan/manufacturingorder/productorder-form.vue
@@ -1670,6 +1670,7 @@
          } else {
            this.dataForm.bomRoot = null
          }
          if (this.dataForm.id) {
            putManufacturingOrder(this.dataForm)
              .then((response) => {
@@ -2100,18 +2101,15 @@
    },
    // 保存所有参数的修改
    saveAllParamChange() {
      const paramJson = { routingOperationParam: this.templateParamList }
      let num = 0
      this.templateParamList.forEach(e=>{
        var regex=/^[^\(\)|^,]+$/;
        if(!regex.test(e.paramValue)){
            num+=1
        if(e.paramValue!=null){
          e.paramValue=e.paramValue.replace(',',',').replace('(','(').replace(')',')')
          if (!isNaN(e.paramValue)) {
            e.paramValue='='+e.paramValue
          }
        }
      })
      if(num>0){
        this.$message.error("参数值不能包含英文括号或逗号,请检查")
        return
      }
      const paramJson = { routingOperationParam: this.templateParamList }
      putRoutingTemplateParamForOrder(paramJson).then((response) => {
        const data = response.data
        if (data.code === 0) {