田源
2023-12-08 d1d276eb9bc247dba1a11542fa38a656703e15f1
编码规则日期码段校验
已修改1个文件
6 ■■■■■ 文件已修改
Source/UBCS-WEB/src/views/code/code.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/code/code.vue
@@ -2313,6 +2313,7 @@
    },
    /** 上移下移等操作的保存*/
    async saveCodeFixedOrClassifyValueOption(condition, editOrderNumdata) {
      //保存对固定码段码值的上移下移移出等操作
      if (condition == "fixedValue") {
        let data = {
@@ -2789,6 +2790,11 @@
    },
    /** 新增基础码段*/
    async saveOrEditBasicCode() {
      const Formats = ['yy', 'yyyy', 'yyyy-MM', 'yy-MM', 'yyyy-MM-dd', 'yy-MM-dd', 'yyyy-MM-dd HH:mm:ss', 'yy-MM-dd HH:mm:ss', 'HH:mm:ss'];
      if (!Formats.includes(this.form.codeDateFormatStr)) {
        this.$message.error('请检查日期格式!');
        return;
      }
      if (
        this.selectionList[0].oid == null ||
        this.selectionList[0].oid == ""