qx
qx
1 天以前 e2ce0493b0978ed2706eed28555bd83ed329cb97
src/views/system/tijian/index.vue
@@ -248,7 +248,7 @@
                <el-button v-show="lishi" type="primary" @click="cope" size="mini">一键复制</el-button>
                <el-button type="primary" @click="inputChanges" v-show="lishi" size="mini"
                  :disabled="confirm">历史体检记录</el-button>
                <el-button :disabled="isDisabled" type="primary" size="mini" @click="submitForm">登记</el-button>
                <el-button :disabled="butopen" type="primary" size="mini" @click="submitForm">登记</el-button>
                <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" @queryTable="getList">重置</el-button>
              </div>
            </el-col>
@@ -943,6 +943,7 @@
      // 非单个禁用
      single: true,
      cardreader: false,
      butopen:false,
      // 非多个禁用
      multiple: true,
      nodeobj: {},
@@ -1745,6 +1746,7 @@
    /** 登记提交按钮 */
    submitForm() {
      let _this = this;
      _this.butopen = true;
      if (!this.form.cusPhone || !this.form.cusName) {
        this.$message.warning("请填选必填项");
        return;
@@ -1781,6 +1783,7 @@
          // }
          addCustomer(formData).then((response) => {
             _this.butopen = false;
            this.responseList = response.data;
            this.form.tjType = this.dict.type.dict_team[0].value;
            this.$modal.msgSuccess("新增成功");
@@ -1788,6 +1791,7 @@
            _this.isDisabled = true;
            _this.top = false;
          }).catch((error) => {
             _this.butopen = false;
            this.$modal.msgError("登记失败,请检查数据");
            console.error("Error in addCustomer:", error);
          });
@@ -1978,7 +1982,7 @@
        if (isChineseChar(resultObj.data.sex)) {
          _this.form.cusSex = resultObj.data.sex == "女" ? 1 : 0
        } else {
          _this.form.cusSex = resultObj.data.sex;
          _this.form.cusSex = resultObj.data.sex ==  "1" ? 0 : 1;
        }
        _this.form.cusNational = resultObj.data.mz;
        _this.form.cusBrithday = resultObj.data.csrq;
@@ -2126,7 +2130,13 @@
        websocket.onmessage = function (event) {
          var resultObj = JSON.parse(event.data);
          _this.form.cusName = resultObj.data.name;
          _this.form.cusSex = resultObj.data.sex;
            const isChineseChar = (char) => /[\u4E00-\u9FA5]/.test(char)
          // _this.form.cusSex = resultObj.data.sex;
           if (isChineseChar(resultObj.data.sex)) {
          _this.form.cusSex = resultObj.data.sex == "女" ? 1 : 0
        } else {
          _this.form.cusSex = resultObj.data.sex ==  "1" ? 0 : 1;
        }
          _this.form.cusNational = resultObj.data.mz;
          _this.form.cusBrithday = resultObj.data.csrq;
          if (_this.form.cusBrithday) {