age
lkk
2025-01-07 7fa5cdd283a6323f405a7cffc43c1c0e054ccca6
age
2个文件已修改
46 ■■■■ 已修改文件
src/views/system/package/index.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/tijian/index.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/package/index.vue
@@ -435,7 +435,7 @@
        <el-form-item label="体检类别" prop="tjCategory">
          <el-select
            v-model="form.tjCategory"
            placeholder="请选择是否上架"
            placeholder="请选择体检类别"
            style="width: 150px"
            filterable
            clearable
@@ -515,8 +515,8 @@
        </el-table-column>
      </el-table> -->
      <el-row :gutter="20">
        <el-col :span="7">
      <el-row :gutter="11">
        <el-col :span="11">
          <div
            style="text-align: center; margin-bottom: 10px; margin-top: 10px"
          >
@@ -541,7 +541,7 @@
            </el-tree>
          </div>
        </el-col>
        <el-col :span="6">
       <!--  <el-col :span="6">
          <div
            style="text-align: center; margin-bottom: 10px; margin-top: 10px"
          >
@@ -563,27 +563,27 @@
            >
            </el-tree>
          </div>
        </el-col>
        </el-col> -->
        <el-col :span="11">
          <div class="grid-content bg-purple">
            <div
              style="text-align: center; margin-bottom: 10px; margin-top: 10px"
              style="text-align: center; margin-bottom: 10px; margin-top: 10px; margin-left: 16%;"
            >
              已选项目列表
            </div>
            <el-table
              :data="DataList"
              border
              style="width: 100%"
              style="width: 80%; margin-left: 18%;"
              height="400"
              :span-method="objectSpanMethod"
            >
              <el-table-column prop="propinName" label="检查项目">
              <el-table-column prop="propinName" label="检查项目" >
              </el-table-column>
              <el-table-column prop="proPrice" label="原价" width="56px">
              <el-table-column prop="proPrice" label="原价" align="center" >
              </el-table-column>
              <el-table-column prop="proName" label="明细项目" width="260px">
              </el-table-column>
              <!-- <el-table-column prop="proName" label="明细项目" width="260px">
              </el-table-column> -->
              <!-- <el-table-column
                label="操作"
src/views/system/tijian/index.vue
@@ -2478,6 +2478,7 @@
    // 最新使用webSocket通信
    readCardWebSocket(resultObj) {
      let _this = this;
      if (resultObj.code === 200 && resultObj.data.name != null) {
        //回显相关数据
        _this.form.cusName = resultObj.data.name;
@@ -2489,6 +2490,29 @@
            /^(\d{4})(\d{2})(\d{2})$/,
            "$1-$2-$3"
          );
        } else if (_this.form.cusIdcard) {
          // 从身份证号码提取出生日期
          var org_birthday = _this.form.cusIdcard.substring(6, 14);
          _this.form.cusBrithday =
            org_birthday.substring(0, 4) +
            "-" +
            org_birthday.substring(4, 6) +
            "-" +
            org_birthday.substring(6, 8);
        }
        // 如果出生日期存在,计算年龄
        if (_this.form.cusBrithday) {
          var birthdays = new Date(_this.form.cusBrithday);
          let d = new Date();
          let age =
            d.getFullYear() -
            birthdays.getFullYear() -
            (d.getMonth() < birthdays.getMonth() ||
            (d.getMonth() == birthdays.getMonth() &&
              d.getDate() < birthdays.getDate())
              ? 1
              : 0);
          _this.form.age = age; // 赋值计算的年龄
        }
        _this.form.cusAddr = resultObj.data.addres;
        _this.form.cusIdcard = resultObj.data.card;