forked from kidgrow-microservices-platform

kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital_form_base.html
@@ -60,8 +60,8 @@
    </div>
    <div class="layui-form-item">
        <div class="layui-row">
            <div class="layui-col-sm6">
                <label class="layui-form-label">是否筛查科室</label>
            <div class="layui-col-sm4">
                <label class="layui-form-label" style="width: 100px;">是否筛查科室</label>
                <div class="layui-input-block">
                    <input type="radio" name="isScreen" value="1" title="是">
                    <input type="radio" name="isScreen" value="0" title="否" >
@@ -73,6 +73,25 @@
                <div class="layui-input-block">
                    <input type="radio" name="isNewScreenclient" value="1" title="是">
                    <input type="radio" name="isNewScreenclient" value="0" title="否" >
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-row">
            <div class="layui-col-sm4">
                <label class="layui-form-label">是否私有云</label>
                <div class="layui-input-block">
                    <input type="radio" name="isPrivate" value="1" title="是">
                    <input type="radio" name="isPrivate" value="0" title="否" >
                    &emsp;
                </div>
            </div>
            <div class="layui-col-sm8">
                <label class="layui-form-label" style="width: 150px;">私有云服务器GUUID</label>
                <div class="layui-input-block" >
                    <input name="privateServerGuuid" id="privateServerGuuid" type="text" class="layui-input" maxlength="50"
                           style="width: 300px;" />
                </div>
            </div>
        </div>
@@ -370,6 +389,7 @@
                let isNewScreenclient = data.field.isNewScreenclient
                delete data.field.isScreen
                delete data.field.isNewScreenclient
                let isPrivate = data.field.isPrivate
                admin.req('api-user/syshospital', JSON.stringify(data.field), function (data) {
                    if (data.code === 0) {
                        //存储科室数据
@@ -390,6 +410,8 @@
                            departmentLink: $("#departmentLink").val(),
                            isScreen,
                            isNewScreenclient,
                            isPrivate,
                            privateServerGuuid: $("#privateServerGuuid").val(),
                        };
                        admin.req('api-user/sysdepartment/' + data.data.id, JSON.stringify(departmentData),
                            function (data) {
@@ -504,16 +526,13 @@
                                        }
                                        $("#serverUserId").val(departData[0].serverUserId);
                                        $('#serverUserName').val(departData[0]
                                            .serverUserId);
                                        $('#serverUserName').val(departData[0].serverUserId);
                                        $("#departmentName").val(departData[0]
                                            .departmentName);
                                        $("#departmentName").val(departData[0].departmentName);
                                        $("#departmentId").val(departData[0].id);
                                        $("#departmentOrgId").val(departData[0].orgId);
                                        $("#saleUserId").val(departData[0].saleUserId);
                                        $("#accountsCount").val(departData[0]
                                            .accountsCount);
                                        $("#accountsCount").val(departData[0].accountsCount);
                                        $('#saleUserName').val(departData[0].saleUserId);
                                        $('#departmentLink').val(departData[0].departmentLink);
                                        $('#departmentTel').val(departData[0].departmentTel);
@@ -521,6 +540,9 @@
                                        $("input[name=isScreen][value=0]").attr("checked", departData[0].isScreen == null || departData[0].isScreen==0 ? true : false);
                                        $("input[name=isNewScreenclient][value=1]").attr("checked", departData[0].isNewScreenclient == 1 ? true : false);
                                        $("input[name=isNewScreenclient][value=0]").attr("checked", departData[0].isNewScreenclient == null || departData[0].isNewScreenclient==0? true : false);
                                        $("input[name=isPrivate][value='1']").attr("checked", departData[0].isPrivate == 1 ? true : false);
                                        $("input[name=isPrivate][value='0']").attr("checked", departData[0].isPrivate == null || departData[0].isPrivate==0 ? true : false);
                                        $("#privateServerGuuid").val(departData[0].privateServerGuuid);
                                        if (hosIdForEdit != "") {
                                            $("#serverUserTel").val(departData[0]
                                                .serverUserTel);