Commit 8805bd7c authored by 李苏's avatar 李苏 💬

登录页面

parent ee4e91fd
let hash=location.hash
let hashindex=hash.indexOf(';')
let idindex=hash.indexOf('+')
let gxindex=hash.indexOf('!')
let smkurl=hash.substring(1,hashindex)
let smkid=hash.substring(hashindex+1,idindex)
let sbzlx=hash.substring(idindex+1,gxindex)
let gxname=hash.substring(gxindex+1,hash.length)
window.gxname=decodeURI(gxname)
window.bzlx=sbzlx
\ No newline at end of file
...@@ -35,9 +35,12 @@ $(function () { ...@@ -35,9 +35,12 @@ $(function () {
let hash=location.hash let hash=location.hash
let hashindex=hash.indexOf(';') let hashindex=hash.indexOf(';')
let idindex=hash.indexOf('+') let idindex=hash.indexOf('+')
let gxindex=hash.indexOf('!')
let smkurl=hash.substring(1,hashindex) let smkurl=hash.substring(1,hashindex)
let smkid=hash.substring(hashindex+1,idindex) let smkid=hash.substring(hashindex+1,idindex)
let sbzlx=hash.substring(idindex+1,hash.length) let sbzlx=hash.substring(idindex+1,gxindex)
let gxname=hash.substring(gxindex+1,hash.length)
console.log("gxname")
window.bzlx=sbzlx window.bzlx=sbzlx
HTTP.post("frame/init", {}, function (result) { HTTP.post("frame/init", {}, function (result) {
let isShow=false let isShow=false
......
<script src="js/pdfshow.js" type="text/javascript" charset="utf-8"></script> <script src="js/pdfshow.js" type="text/javascript" charset="utf-8"></script>
<script src="js/dbenlarge.js" type="text/javascript" charset="utf-8"></script> <script src="js/dbenlarge.js" type="text/javascript" charset="utf-8"></script>
<script src="js/gethash.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="css/zpfk.css"/> <link rel="stylesheet" type="text/css" href="css/zpfk.css"/>
<style type="text/css"> <style type="text/css">
.errdialog{ .errdialog{
...@@ -39,6 +40,10 @@ ...@@ -39,6 +40,10 @@
} }
}) })
/* 取登录值 */
/* 通用代码 */ /* 通用代码 */
/* 大屏内部弹框 */ /* 大屏内部弹框 */
function screenAlert(dom,msg,timeNum){ function screenAlert(dom,msg,timeNum){
...@@ -83,7 +88,7 @@ ...@@ -83,7 +88,7 @@
/* 初始化工序 */ /* 初始化工序 */
function zpfk_getgx(e){ function zpfk_getgx(e){
let that=e let that=e
that.gx=window.bzlx||"获取失败" that.gx=window.gxname||"获取失败"
} }
/* 判定代码类型 登录页面*/ /* 判定代码类型 登录页面*/
function zpfk_hqlx(e){ function zpfk_hqlx(e){
...@@ -127,10 +132,10 @@ ...@@ -127,10 +132,10 @@
let msg="查询工单信息:"+that.xlh+"成功" let msg="查询工单信息:"+that.xlh+"成功"
zpfk_wrz(that,msg) zpfk_wrz(that,msg)
/* 赋值操作 */ /* 赋值操作 */
that.gd = res.data.records.djid; that.gd = res.data.records.woDjid;
that.cpsn = res.data.records.wosnCode; that.cpsn = res.data.records.wosnid;
that.ph = res.data.records.wlxxCode; that.ph = res.data.records.wlxxCode;
let woid = res.data.records.djid; let woid = res.data.records.woDjid;
y(woid) y(woid)
/** wobom查询 **/ /** wobom查询 **/
...@@ -264,7 +269,7 @@ ...@@ -264,7 +269,7 @@
<li>系统管理员</li> <li>系统管理员</li>
<li class="tipuli2">{{systime}}</li> <li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li> <li class="tipuli2" style="margin-right: 200px;">计数:30</li>
<li class="tipuli2">当前工序:焊接</li> <li class="tipuli2">当前工序:{{gx}}</li>
</ul> </ul>
</div> </div>
...@@ -286,7 +291,7 @@ ...@@ -286,7 +291,7 @@
<span>工单</span><input class="easyuitext wid70" v-model="gd" name="gd" /> <span>工单</span><input class="easyuitext wid70" v-model="gd" name="gd" />
</div> </div>
<div class="ery"> <div class="ery">
<span>产品SN</span><input class="easyuitext wid70" v-model="cpsn" name="cpsn" /> <span>SN</span><input class="easyuitext wid70" v-model="cpsn" name="cpsn" />
</div> </div>
<div class="ery"> <div class="ery">
<span>品号</span><input class="easyuitext wid70" v-model="ph" name="ph" /> <span>品号</span><input class="easyuitext wid70" v-model="ph" name="ph" />
...@@ -330,7 +335,7 @@ ...@@ -330,7 +335,7 @@
<li class="tipulmid">ADMIN</li> <li class="tipulmid">ADMIN</li>
<li class="tipulmid">系统管理员</li> <li class="tipulmid">系统管理员</li>
<li class="tipulmid">甲班</li> <li class="tipulmid">甲班</li>
<li class="tipulmid" style="width: 100px;">当前工序:焊接</li> <li class="tipulmid" style="width: 200px;">当前工序:{{gx}}</li>
</ul> </ul>
<ul class="tipul" style="height: 100%;width: 100%;"> <ul class="tipul" style="height: 100%;width: 100%;">
<li style="width: 400px;"> <li style="width: 400px;">
...@@ -354,7 +359,7 @@ ...@@ -354,7 +359,7 @@
<span>工单</span><input class="easyuitext" v-model="gd" style="width: 70%" name="gd" /> <span>工单</span><input class="easyuitext" v-model="gd" style="width: 70%" name="gd" />
</div> </div>
<div class="ery"> <div class="ery">
<span>产品SN</span><input class="easyuitext" v-model="cpsn" style="width: 70%" name="cpsn" /> <span>SN</span><input class="easyuitext" v-model="cpsn" style="width: 70%" name="cpsn" />
</div> </div>
<div class="ery"> <div class="ery">
<span>品号</span><input class="easyuitext" v-model="ph" style="width: 70%" name="ph" /> <span>品号</span><input class="easyuitext" v-model="ph" style="width: 70%" name="ph" />
...@@ -403,7 +408,7 @@ ...@@ -403,7 +408,7 @@
<li class="tipulmid">甲班</li> <li class="tipulmid">甲班</li>
<li class="tipuli2">{{systime}}</li> <li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 10px;">计数:30</li> <li class="tipuli2" style="margin-right: 10px;">计数:30</li>
<li class="tipuli2" style="margin-right: 10px;">当前工序:焊接</li> <li class="tipuli2" style="margin-right: 10px;">当前工序:{{gx}}</li>
</ul> </ul>
</div> </div>
<!-- 标题下信息 --> <!-- 标题下信息 -->
...@@ -416,7 +421,7 @@ ...@@ -416,7 +421,7 @@
<span>工单</span><input class="easyuitext" style="width:70%" name="gd" v-model="gd" /> <span>工单</span><input class="easyuitext" style="width:70%" name="gd" v-model="gd" />
</div> </div>
<div class="titdowinfor"> <div class="titdowinfor">
<span>产品SN</span><input class="easyuitext" style="width:70%" name="cpsn" v-model="cpsn" /> <span>SN</span><input class="easyuitext" style="width:70%" name="cpsn" v-model="cpsn" />
</div> </div>
<div class="titdowinfor"> <div class="titdowinfor">
<span>品号</span><input class="easyuitext" style="width:70%" name="ph" v-model="ph" /> <span>品号</span><input class="easyuitext" style="width:70%" name="ph" v-model="ph" />
......
...@@ -54,13 +54,14 @@ ...@@ -54,13 +54,14 @@
width: 80%; width: 80%;
} }
.errdialog{ .errdialog{
z-index: 99999;
min-width:35%; min-width:35%;
/* width: 35%; */ /* width: 35%; */
height: 40px; height: 40px;
text-align: center; text-align: center;
line-height: 40px; line-height: 40px;
position: absolute; position: absolute;
top: 50px; top: 30px;
right: 50%; right: 50%;
color: #FFFFFF; color: #FFFFFF;
background-color: rgba(255,0,0,0.5); background-color: rgba(255,0,0,0.5);
...@@ -112,7 +113,7 @@ ...@@ -112,7 +113,7 @@
/* 提示框 */ /* 提示框 */
/* 大屏内部弹框 */ /* 大屏内部弹框 */
function logalert(msg){ function logalert(msg){
let getdom=$("#kmessmdl") let getdom=$("body")
getdom.css('position','relative') getdom.css('position','relative')
let dialog="<div class='errdialog'>"+msg+"</div>" let dialog="<div class='errdialog'>"+msg+"</div>"
getdom.prepend(dialog) getdom.prepend(dialog)
...@@ -132,10 +133,11 @@ ...@@ -132,10 +133,11 @@
let mkurl=result.data.records.fkurl let mkurl=result.data.records.fkurl
let mkid=result.data.records.modulecode let mkid=result.data.records.modulecode
let bzlx=result.data.records.id let bzlx=result.data.records.id
window.bzlx=bzlx let gx=result.data.records.name
let url="index#"+mkurl+";"+mkid+"+"+bzlx let url="singleindex?url="+mkurl+"#"+mkurl+";"+mkid+"+"+bzlx+"!"+gx
window.location.href =url window.location.href =url
} else { } else {
logalert(result.message||"登录失败")
$rygh.val("") $rygh.val("")
$gylx.val("") $gylx.val("")
$rygh.focus() $rygh.focus()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment