田源
2025-01-21 96ccda8fecce548ca4b9041967aa99a9640a960e
Source/UBCS-WEB/src/views/code/code.vue
@@ -2,7 +2,7 @@
  <basic-container class="code-total" style=" height: 100%">
    <!-- 编码规则信息展示区域 -->
    <basic-container class="code-rule-container">
      <div style="height: 40vh;overflow: auto;">
      <div style="height: 49vh;overflow: auto;">
        <p
          style="
          margin-top: -5px;
@@ -142,7 +142,6 @@
          </template>
        </avue-crud>
      </div>
    </basic-container>
    <!-- 高级查询对话框 -->
@@ -220,7 +219,7 @@
    <!-- 基础码段展示区域 -->
    <basic-container class="code-basicsec-container">
      <div style="height: 38.5vh;overflow: auto">
      <div style="height: 29.3vh;overflow: auto">
        <p
          style="margin-top: -5px;
          margin-bottom: 4px;
@@ -384,18 +383,12 @@
        <el-col :span="13">
          <basic-container>
            <div class="box" style="height: 60vh; margin-bottom: -40px">
              <el-form>
                <el-form-item :label-width="50" label="码值:" required>
                  <el-input
                    v-model="codeClassifyForm.id"
                    style="width: 18vw"
                  ></el-input>
              <el-form label-width="55px">
                <el-form-item label="名称:" required>
                  <el-input v-model="codeClassifyForm.name"></el-input>
                </el-form-item>
                <el-form-item :label-width="50" label="名称:" required>
                  <el-input
                    v-model="codeClassifyForm.name"
                    style="width: 18vw"
                  ></el-input>
                <el-form-item  label="码值:">
                  <el-input v-model="codeClassifyForm.id"></el-input>
                </el-form-item>
              </el-form>
            </div>
@@ -644,7 +637,7 @@
                v-model="form.prefixCode"
                :readonly="basicSecOnlyRead"
              ></el-input> -->
              <el-select v-model="form.prefixCode" :disabled="basicSecOnlyRead">
              <el-select v-model="form.prefixCode" :disabled="basicSecOnlyRead" clearable>
                <el-option
                  v-for="(option, index) in preFixOrSuffixChars"
                  :key="index"
@@ -661,7 +654,7 @@
                v-model="form.suffixCode"
                :readonly="basicSecOnlyRead">
              </el-input> -->
              <el-select v-model="form.suffixCode" :disabled="basicSecOnlyRead">
              <el-select v-model="form.suffixCode" :disabled="basicSecOnlyRead" clearable>
                <el-option
                  v-for="(option, index) in preFixOrSuffixChars"
                  :key="index"
@@ -852,6 +845,7 @@
                  :disabled="basicSecOnlyRead"
                  filterable
                  placeholder="请选择"
                  clearable
                >
                  <el-option
                    v-for="item in enumParam.codeFillSeparator"
@@ -896,11 +890,12 @@
              </el-form-item>
              <el-form-item
                :label-width="rightFormLabelWidth"
                label="自定义的流水算法:"
                label="自定义流水算法:"
              >
                  <template>
                      <vciWebRefer
                        ref="refer"
                        :disabled="basicSecOnlyRead"
                        :display="true"
                        :referConfig="this.referConfig || {}"
                        :serialType="form.serialType"
@@ -909,8 +904,6 @@
                        @setReferValue="setReferValue"
                      ></vciWebRefer>
                  </template>
              </el-form-item>
            </div>
            <!-- 层级码段 -->
@@ -1157,6 +1150,7 @@
                  :disabled="basicSecOnlyRead"
                  filterable
                  placeholder="请选择"
                  clearable
                >
                  <el-option
                    v-for="item in enumParam.codeFillSeparator"
@@ -1304,7 +1298,6 @@
      </refer-config-dialog>
    </el-dialog>
    <!--自定义流水参照组件-->
  </basic-container>
</template>
@@ -1406,7 +1399,7 @@
        showField: 'customCodeSerialClassText',
        field: 'customCodeSerialClass',
        fieldMap: {
          serialType: "serialType"
          serialType: "serialType",
        },
        placeholder: '请选择自定义流水',
        options: {
@@ -1760,10 +1753,12 @@
    //自定义流水失焦
    setReferValue(data) {
      if (data.field) {
        this.form[data.field] = data.value || "";
        // this.form[data.field] = data.value || "";
        this.form.customCodeSerialClass = data.rawData[0].id || "";
        console.log(this.form.customCodeSerialClass);
        this.form[data.showField] = data.text || "";
        this.form.serialType = data.rawData[0].serialType || "";
        this.form.customCodeSerialType = data.rawData[0].serialType || "";
      }
    },
    /** 转移规则所有者对话框 */
@@ -2044,7 +2039,11 @@
          }
        );
      } else {
        if (!this.tipsCodeSecValueMessage(this.codeClassifyForm.id)) {
        // if (!this.tipsCodeSecValueMessage(this.codeClassifyForm.id)) {
        //   return;
        // }
        if(!this.codeClassifyForm.name){
          this.$message.error('请输入名称');
          return;
        }
        if(!await this.regexCharacter(this.codeClassifyForm.id)){
@@ -2108,7 +2107,7 @@
        if (!this.tipsCodeSecValueMessage(this.codeClassifyForm.id)) {
          return;
        }
        if(!await this.regexCharacter(this.codeFixdForm.id)){
        if(!await this.regexCharacter(this.codeClassifyForm.id)){
          return;
        }
        this.codeClassifyForm.oid =
@@ -2139,7 +2138,7 @@
        );
      }
    },
    /**
    /**
     * 可用字符集码值正则校验
     * @return true:满足限制,false:不满足限制
     */
@@ -2835,7 +2834,6 @@
    },
    /** 打开新增或编辑基础码段对话框*/
    openBasicDialog(condition, row) {
      //console.log(row);
      if (condition == "add") {
        this.basicSecDialogTitle = "添加码段信息";
        this.showbtn = true;
@@ -3494,6 +3492,14 @@
            row != null && row.customCodeSerialClass != ""
              ? row.customCodeSerialClass
              : "", //自定义流水算法
          customCodeSerialClassText:
            row != null && row.customCodeSerialClassText != ""
              ? row.customCodeSerialClassText
              : "", //自定义流水算法显示值
              customCodeSerialType:
            row != null && row.customCodeSerialType != ""
              ? row.customCodeSerialType
              : "", //自定义流水算法类型
        });
        this.loadCodeFillType();
        this.loadCodeFillSeparator();