Переглянути джерело

修改个数据输入框,step值的设置

raolu 7 роки тому
батько
коміт
e3a72c939f
2 змінених файлів з 36 додано та 8 видалено
  1. 34 6
      js/buz/followup/template_gxy.js
  2. 2 2
      page/followup/questionaires.html

+ 34 - 6
js/buz/followup/template_gxy.js

@ -99,11 +99,13 @@ var gTemplate = {
                "textType": "number",
                "type": 1,
                "name": "BP_D", //收缩压
                "step": 1,
                "width": "60px"
            },{
                "textType": "number",
                "type": 1,
                "name": "BP_U", //舒张压
                "step": 1,
                "width": "60px"
            }]
        },
@ -112,6 +114,7 @@ var gTemplate = {
            "type":1,
            "unit":"cm",
            "textType": "number",
            "step": 0.1,
            "width": "100px"
        },
        "WEIGHT":{
@ -119,6 +122,7 @@ var gTemplate = {
            "type":1,
            "unit":"Kg",
            "textType": "number",
            "step": 0.1,
            "width": "100px"
        },
        "BMI":{
@ -133,6 +137,7 @@ var gTemplate = {
            "type":1,
            "unit":"Kg",
            "textType": "number",
            "step": 0.1,
            "width": "100px"
        },
        "BMI_EXP":{
@ -147,6 +152,7 @@ var gTemplate = {
            "type":1,
            "unit":"次/分",
            "textType": "number",
            "step": 1,
            "width": "100px"
        },
        "POFDA_MARK":{
@ -181,6 +187,7 @@ var gTemplate = {
            "type":1,
            "unit":"mmol/L",
            "textType": "number",
            "step": 0.01,
            "width": "80px"
        },
        "NO_BS_FPG":{
@ -188,6 +195,7 @@ var gTemplate = {
            "type":1,
            "unit":"mmol/L",
            "textType": "number",
            "step": 0.01,
            "width": "80px"
        },
        "RANDOM_BLOOD_SUGAR": {
@ -195,6 +203,7 @@ var gTemplate = {
            "type":1,
            "unit":"mmol/L",
            "textType": "number",
            "step": 0.01,
            "width": "80px"
        },
        "GHB":{
@ -202,6 +211,7 @@ var gTemplate = {
            "type":1,
            "unit":"%",
            "textType": "number",
            "step": 0.1,
            "width": "80px"
        },
        "BLOOD_FAT_TRIGLYCERIDE":{
@ -209,6 +219,7 @@ var gTemplate = {
            "type":1,
            "unit":"mmol/L",
            "textType": "number",
            "step": 0.01,
            "width": "80px"
        },
        "BLOOD_FAT_TC":{
@ -216,6 +227,7 @@ var gTemplate = {
            "type":1,
            "unit":"mmol/L",
            "textType": "number",
            "step": 0.01,
            "width": "80px"
        },
        "BLOOD_FAT_LDLC":{
@ -223,6 +235,7 @@ var gTemplate = {
            "type":1,
            "unit":"mmol/L",
            "textType": "number",
            "step": 0.01,
            "width": "80px"
        },
        "RENAL_FUNCTION_CREATININE":{
@ -230,6 +243,7 @@ var gTemplate = {
            "type":1,
            "unit":"umol/L",
            "textType": "number",
            "step": 0.1,
            "width": "80px"
        },
        "RENAL_FUNCTION_BUN":{
@ -237,6 +251,7 @@ var gTemplate = {
            "type":1,
            "unit":"mmol/L",
            "textType": "number",
            "step": 0.1,
            "width": "80px"
        },
        "MICROALBUMINURIA":{
@ -244,6 +259,7 @@ var gTemplate = {
            "type":1,
            "unit":"μg/min",
            "textType": "number",
            "step": 0.01,
            "width": "80px"
        }
    },
@ -254,6 +270,7 @@ var gTemplate = {
            "type":1,
            "unit":"支",
            "textType": "number",
            "step": 1,
            "width": "60px"
        },
        "SOMKING_EXP":{
@ -261,6 +278,7 @@ var gTemplate = {
            "type":1,
            "unit":"支",
            "textType": "number",
            "step": 1,
            "width": "60px"
        },
        "DAILY_DRINKING":{
@ -268,6 +286,7 @@ var gTemplate = {
            "type":1,
            "unit":"两",
            "textType": "number",
            "step": 1,
            "width": "60px"
        },
        "DRINK_EXP":{
@ -275,6 +294,7 @@ var gTemplate = {
            "type":1,
            "unit":"两",
            "textType": "number",
            "step": 1,
            "width": "60px"
        },
        "EXERCISE_FREQ_CODE":{
@ -308,6 +328,7 @@ var gTemplate = {
                "name": "EXERCISE_DURATION_MINS",
                "type": 1,
                "textType": "number",
                "step": 1,
                "width": "60px"
            }]
        },
@ -342,6 +363,7 @@ var gTemplate = {
                "name": "EXERCISE_DURATION_MINS_EXP",
                "type": 1,
                "textType": "number",
                "step": 1,
                "width": "60px"
            }]
        },
@ -421,6 +443,7 @@ var gTemplate = {
            "type":1,
            "unit":"克/天",
            "textType":"number",
            "step": 1,
            "width": "60px"
        }
    },
@ -526,11 +549,13 @@ var gTemplate = {
                "name": "CONTROL_BP_U",
                "type": 1,
                "textType": "number",
                "step": 1,
                "width": "60px"
            },{
                "name": "CONTROL_BP_D",
                "type": 1,
                "textType": "number",
                "step": 1,
                "width": "60px"
            }]
        },
@ -540,6 +565,7 @@ var gTemplate = {
            "type":1,
            "unit": "mmol/L",
            "textType": "number",
            "step": 0.01,
            "width": "60px"
        },
        "CONTROL_NO_BS_FPG":{
@ -547,6 +573,7 @@ var gTemplate = {
            "type":1,
            "unit": "mmol/L",
            "textType": "number",
            "step": 0.01,
            "width": "60px"
        },
        "CONTROL_GHB":{
@ -554,6 +581,7 @@ var gTemplate = {
            "type":1,
            "unit": "%",
            "textType": "number",
            "step": 0.1,
            "width": "60px"
        },
        "CONTROL_TRIGLYCERIDE":{
@ -561,6 +589,7 @@ var gTemplate = {
            "type":1,
            "unit": "mmol/L",
            "textType": "number",
            "step": 0.01,
            "width": "60px"
        },
        "CONTROL_TOTAL_CHOLESTEROL":{
@ -568,6 +597,7 @@ var gTemplate = {
            "type":1,
            "unit": "mmol/L",
            "textType": "number",
            "step": 0.01,
            "width": "60px"
        },
        "CONTROL_LDL":{
@ -575,6 +605,7 @@ var gTemplate = {
            "type":1,
            "unit": "mmol/L",
            "textType": "number",
            "step": 0.1,
            "width": "60px"
        },
        "CONTROL_WEIGHT":{
@ -582,6 +613,7 @@ var gTemplate = {
            "type":1,
            "unit": "Kg",
            "textType": "number",
            "step": 0.1,
            "width": "60px"
        },
        "CONTROL_EXERCISE_FREQ_CODE":{
@ -613,6 +645,7 @@ var gTemplate = {
                "name": "CONTROL_EXERCISE_DURATION_MINS",
                "type": 1,
                "textType": "number",
                "step": 1,
                "width": "60px"
            }]
            
@ -719,12 +752,7 @@ var gTemplate = {
            "required": true,
            "row": 3,
            "maxLength": 200,
            "width": "100%",
//          "link":{
//              "text": "从代预约记录获取",
//              "url": "dyy_history.html",
//              "type":"dyy"
//          }
            "width": "100%"
        }
    }
}

+ 2 - 2
page/followup/questionaires.html

@ -67,7 +67,7 @@
                <input type="text" name="{{key}}" id="{{key}}" value="{{it.value}}" {{if it.readonly}}readonly="{{it.readonly}}"{{/if}}class="form-control input-xs" style="width: {{it.width}};"/>
                {{/if}}
                {{if it.textType == 'number'}}
                <input type="number" name="{{key}}" id="{{key}}" value="{{it.value}}" step="0.01" class="form-control input-xs" style="width: {{it.width}};"/>
                <input type="number" name="{{key}}" id="{{key}}" value="{{it.value}}" step="{{it.step}}" class="form-control input-xs" style="width: {{it.width}};"/>
                {{/if}}
                {{if it.textType == 'date'}}
                <div class="input-group date" style="width:200px">
@ -119,7 +119,7 @@
                    </label>
                    {{/each}}
                {{else}}
                <input type="{{op.textType}}" value="{{op.value}}" name="{{op.name}}" step="0.01" maxlength="{{op.maxLength}}" class="form-control input-sm" style="width: {{op.width}};">
                <input type="{{op.textType}}" value="{{op.value}}" name="{{op.name}}" step="{{op.step}}" maxlength="{{op.maxLength}}" class="form-control input-sm" style="width: {{op.width}};">
                {{/if}}
                {{/each}}
                {{if it.unit}}{{it.unit}}{{/if}}