<!DOCTYPE html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<meta name="viewport"
|
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
<title></title>
|
<script src="../../js/mui.min.js"></script>
|
<script src="../../js/api.js"></script>
|
<script src="../../js/common.js"></script>
|
<script src="../../js/jquery.js"></script>
|
<script src="../../js/jquery-1.11.1.js"></script>
|
<script src="../../js/jquery.xml2json.js.js"></script>
|
<script src="../../js/template-web.js"></script>
|
<link href="../../css/mui.min.css" rel="stylesheet" />
|
<link rel="stylesheet" type="text/css" href="../../css/iconfont.css" />
|
<style type="text/css">
|
.mui-input-group .mui-input-row {
|
height: 3.2rem;
|
}
|
|
.mui-input-row select {
|
font-size: 1.3rem;
|
position: absolute;
|
height: 3rem;
|
}
|
|
.font {
|
font-size: 1.6rem;
|
color: #000000;
|
}
|
|
.mui-input-row label {
|
background-color: #F0F0F0;
|
font-size: 1.6rem;
|
}
|
|
.mui-input-row input {
|
font-size: 1.5rem;
|
}
|
|
.search {
|
border: 1px solid #e0e0e0;
|
border-radius: 5px;
|
display: flex;
|
width: 98%;
|
align-items: center;
|
margin-top: 10px;
|
/* padding:0px 10px 0; */
|
background-color: rgba(255, 255, 255, 1);
|
padding-left: 10px;
|
margin-bottom: 10px;
|
height: 40px;
|
margin-left: 10px;
|
margin-right: 15px;
|
}
|
|
.search input[type=""] {
|
/* margin-bottom: 2px; */
|
padding: 0px 0px;
|
--background: none;
|
border-radius: 5px;
|
/* font-size: 1.6rem; */
|
margin-right: 15px;
|
z-index: 0;
|
}
|
|
|
.search input[type="tel"] {
|
padding: 0px 0px;
|
border-radius: 5px;
|
margin-right: 15px;
|
margin-top: 2%;
|
height: 1.6rem;
|
z-index: 0;
|
}
|
|
.search #xiala {
|
width: 70%;
|
padding: 0px 0px;
|
margin-top: 2.5%;
|
font-size: 1.0625rem;
|
/* border: solid black 1px; */
|
border: 1px solid #e0e0e0;
|
}
|
|
#saveCss {
|
margin-left: 3%;
|
}
|
|
.scrollItem {
|
touch-action: none;
|
}
|
|
.mui-popup {
|
position: fixed;
|
}
|
|
.mui-input-row span {
|
padding: 10px 0px;
|
}
|
|
.radio_inline {
|
display: inline-block;
|
width: 65%;
|
}
|
|
.radio_inline label {
|
width: 20%;
|
padding-left: 40px;
|
padding-right: 40px;
|
}
|
|
.radio_inline input[type=radio] {
|
width: 15%;
|
right: auto;
|
}
|
|
.result-dialog {
|
position: fixed;
|
margin-top: 0.85rem;
|
z-index: 999;
|
}
|
|
.table {
|
padding: 0;
|
border: 1px solid #CCCCCC;
|
color: #666;
|
width: 100%;
|
overflow-y: auto;
|
_overflow: auto;
|
word-break: break-all;
|
word-wrap: break-word;
|
table-layout: fixed;
|
}
|
|
.table th {
|
background-repeat: repeat-x;
|
height: 30px;
|
}
|
|
.table td,
|
.table th {
|
border: 1px solid #CCCCCC;
|
text-align: center;
|
word-break: break-all;
|
}
|
|
.table tr.alter {
|
border-collapse: collapse;
|
background-color: #CCCCCC;
|
}
|
|
.mui-toast-container {
|
top: 50% !important;
|
}
|
|
.mui-toast-message {
|
font-size: 1rem;
|
padding: 10px 25px;
|
text-align: center;
|
color: #fff;
|
border-radius: 6px;
|
background-color: #323232;
|
}
|
</style>
|
</head>
|
<body class="mui-fullscreen">
|
<header class="mui-bar mui-bar-nav">
|
<button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left">
|
<span class="mui-icon mui-icon-left-nav"></span>
|
</button>
|
<h1 class="mui-title font">检验项目录入</h1>
|
<span class="title-right" id="usr"></span>
|
<span class="title-right mui-icon mui-icon-camera" style="color:#ffffff;" id="cameraId"></span>
|
|
</header>
|
<div class="mui-content">
|
<div class="mui-input-group">
|
<div class="mui-input-row">
|
<button type="button" style="width: 50%;" class="mui-btn mui-btn-primary mui-btn-outlined font"
|
id="nextBtn">下一项→</button>
|
<button type="button" style="width: 50%;" class="mui-btn mui-btn-primary mui-btn-outlined font"
|
id="lastBtn">←上一项</button>
|
</div>
|
</div>
|
<div class="mui-input-row">
|
<label>检验项目:</label>
|
<input id="checkName" type="text" disabled="disabled" style="background-color: #F5F5F5;"
|
class="mui-input-clear">
|
</div>
|
<div class="mui-input-row">
|
<label>上限值:</label>
|
<input type="text" id="FUP_ALLOW" disabled style="background: #ccc;" class="mui-input-clear mui-input">
|
</div>
|
<div class="mui-input-row background-color">
|
<label>下限值:</label>
|
<input type="text" id="FDOWN_ALLOW" disabled style="background: #ccc;"
|
class="mui-input-clear mui-input">
|
</div>
|
<div class="mui-input-row background-color">
|
<label>检验个数:</label>
|
<input type="text" id="check_value_num" disabled style="background: #ccc;"
|
class="mui-input-clear mui-input">
|
</div>
|
<div class="mui-input-row background-color">
|
<label>要求:</label>
|
<input type="text" id="check_require" disabled style="background: #ccc;"
|
class="mui-input-clear mui-input">
|
</div>
|
<div class="mui-input-row background-color">
|
<label>检验结果:</label>
|
<input type="text" id="check_result" disabled style="background: #ccc;"
|
class="mui-input-clear mui-input">
|
</div>
|
<br>
|
<span style="margin-left: 15px;font-size: 1.3rem;"> 录入结果(值、值-次数):</span>
|
<div class="search">
|
<input type="text" class="mui-input-clear" placeholder="请录入结果" style="font-size: 1.0625rem;width: 60%;"
|
id="values">
|
<a style="font-size: 1.0625rem;width: 20%;">
|
<select class="mui-icon mui-icon mui-icon-arrowdown" id="xiala"
|
style="height: 1.5rem;margin:auto;width: 100%;color:#ffffff;background-color:#aaaa00;border-radius: 5px;text-align: center;padding-top: 0.3rem;"
|
onchange="getCheckItem()">
|
<option value='' style="display: none;">▼</option>
|
<option value='OK'>OK</option>
|
<option value='NG'>NG</option>
|
<option value='/'>/</option>
|
|
</select>
|
</a>
|
<select id="xiala" style="display: none;width: 70%"></select>
|
<button type="button" class="mui-btn mui-btn-green mui-icon mui-icon-checkmarkempty" id="saveCss"
|
style="font-size:1.0625rem;margin-right: 10px;flex: auto;" data-id="save"
|
onclick="save()">保存</button>
|
<button type="button" class="mui-btn mui-btn-primary"
|
style="font-size:1.0625rem;margin-right: 10px;flex: auto;" data-id="xiegang"
|
onclick="setXiegang()">一键/</button>
|
</div>
|
<div class="mui-content" id="divid"></div>
|
</div>
|
|
<div id="depDiv"></div>
|
<script id='row-template' type="text/template">
|
<% for(var i in record){ var item=record[i];%>
|
<div class="mui-card">
|
<div class="mui-card-content">
|
<ul class="mui-table-view">
|
<li class="mui-table-view-cell mui-media">
|
<div class="mui-media-body">
|
<div style="display: flex;justify-content: space-between;width=100%">
|
<!-- <span style="width: 100%; display: none;">检验值:<%=(item.FCHECK_VALUES)%></span> -->
|
<div style="width: 60%;font-size:1.35rem;margin-top:3%">检验值:<input style="width: 70%;margin-left:5px;font-size:1.35rem" id = "<%=(item.ID)%>" onkeydown="handleKey(<%=(item.ID)%>)" class="mui-input-clear" value= <%=(item.FCHECK_VALUES)%> ></div>
|
<div style="width: 40%;font-size:1.35rem;margin-top:2%;">结果:<!-- <input style="width: 45%;margin-left:2px;" id = "panding<%=(item.ID)%>" onkeydown="handleKey(<%=(item.ID)%>)" class="mui-input-clear" value= <%=(item.FCHECK_RESULT)%> ></span> -->
|
<select style="width: 55%;font-size:1.35rem;margin-top:1%" id = "panding<%=(item.ID)%>" onchange="changeSelectResult(<%=(item.ID)%>)">
|
</select>
|
</div>
|
<button style="width: 20%;margin-left:20px;font-size:1rem" type="button"
|
class="mui-btn mui-btn-danger" onclick="del( <%=(item.ID)%>)">删除</button>
|
</div>
|
</div>
|
</li>
|
</ul>
|
</div>
|
</div>
|
<%}%>
|
|
</script>
|
<script type="text/javascript" charset="utf-8">
|
mui.init({
|
beforeback: function() {
|
var list = plus.webview.currentWebview().opener();
|
mui.fire(list, 'refresh'); //refresh是A页面自定义事件
|
return true; //返回true,继续页面关闭逻辑
|
}
|
});
|
var num = 0;
|
var fmid = GetQueryString('mid'); //就是主表的mid
|
var fdid = GetQueryString('did') // 就是主表的id
|
var fItemInfo = []; //项目信息
|
var fproc = ""; //工序
|
var board_model = ""; //型号
|
var lineType = ""; //产线类型
|
var fname = ""; //检验项目名称
|
mui.plusReady(function() {
|
document.getElementById("usr").innerHTML = setUsrCode()
|
mui.focus(document.getElementById('values'));
|
var fis_quan = plus.webview.currentWebview().fis_quan;
|
if (fis_quan == 1) {
|
$("#values").get(0).setAttribute("type", "tel");
|
// mui.focus(document.getElementById('values'));
|
} else {
|
$("#values").get(0).setAttribute("type", "");
|
// mui.focus(document.getElementById('values'));
|
}
|
num = GetQueryString('num');
|
// fproc = GetQueryString('proc')
|
//将数据绑定到界面上
|
getData()
|
|
// mui('#divid').on('change', "input[type='tel']", function(e) {
|
// doSaveByFiel(this.getAttribute('data-id'), this.value, this)
|
// })
|
//输入法软键盘的搜索
|
mui('#divid').on('tap', '.search button', function(event) {
|
var id = this.getAttribute('data-id');
|
var index = this.getAttribute('data-index');
|
if (id == "xiegang") {
|
setXiegang()
|
} else {
|
save()
|
}
|
});
|
|
});
|
|
//input获取光标自动调出键盘
|
document.addEventListener("plusready", plusReady, false);
|
|
function plusReady() {
|
var Context = plus.android.importClass("android.content.Context");
|
var InputMethodManager =
|
plus.android.importClass("android.view.inputmethod.InputMethodManager");
|
var main = plus.android.runtimeMainActivity();
|
var imm = main.getSystemService(Context.INPUT_METHOD_SERVICE);
|
imm.toggleSoftInput(0, InputMethodManager.SHOW_FORCED);
|
}
|
|
// 下拉选,将选中的值放入valuse中
|
function getCheckItem() {
|
var obj = document.getElementById('xiala'); //定位id
|
var index = obj.selectedIndex; // 选中索引
|
var value = obj.options[index].value; // 选中值
|
if (value == '') {
|
mui.toast('请选择', {
|
duration: 'long',
|
type: 'div'
|
});
|
return false;
|
}
|
document.getElementById('xiala').value = "";
|
document.getElementById('values').value = value;
|
}
|
|
// 保存
|
function save() {
|
var values = document.getElementById('values').value
|
if (values.length == 0) {
|
mui.toast('录入结果不能为空!', {
|
duration: 'long',
|
type: 'div'
|
});
|
return false;
|
}
|
var id = "fcheck_values"
|
setCheckValue(0, -1, values)
|
mui.focus(document.getElementById('values'))
|
}
|
|
//删除
|
function del(id) {
|
var btnArray = ['确认', '取消'];
|
mui.confirm('确定删除此条记录?', '提示', btnArray, function(e) {
|
if (e.index == 0) {
|
if (id) {
|
//alert('执行后台方法');
|
setCheckValue(2, id, '')
|
}
|
}
|
});
|
}
|
|
//保存修改的检验结果
|
function changeSelectResult(id) {
|
// alert(id)
|
var values = document.getElementById("result").value
|
// alert(values)
|
aj.post("/pqc_first_input/checkValueFieldInput", {
|
factory: api_localStorageGet("factory"),
|
company: api_localStorageGet("company"),
|
userNo: api_localStorageGet("code"),
|
checkId: id, //fItemInfo[index - 1].ID,
|
tableName: "pqc_testbill_value",
|
changeValue: values, //字段值
|
changeName: "fcheck_result" //字段名
|
}, function(data) {
|
if (data.result) {
|
mui.toast('修改成功!', {
|
duration: 'long',
|
type: 'div'
|
});
|
} else {
|
mui.toast(data.msg, {
|
duration: 'long',
|
type: 'div'
|
});
|
}
|
});
|
}
|
|
// 改变检验值
|
function handleKey(id) {
|
if (window.event.keyCode == 13) {
|
var values = document.getElementById(id).value
|
setCheckValue(1, id, values)
|
}
|
}
|
|
//获取下拉框选项
|
function getSelectResult(info, id) {
|
aj.post("/pqc_first_input/getBatchNum", {
|
"factory": api_localStorageGet("factory"),
|
"company": api_localStorageGet("company"),
|
"ftype": "检验结果",
|
"procno": "",
|
"modelno": "",
|
"keyword": "",
|
}, function(data) {
|
if (data.result) {
|
var recordCount = document.getElementById("check_value_num").value
|
var list = data.data;
|
$("#panding" + id).append("<option value=''>请选择</option>");
|
for (var i = 0; i < list.length; i++) {
|
$("#panding" + id).append("<option id='result' value=" + list[i].LOOKUP_NAME + ">" + list[i]
|
.LOOKUP_NAME + "</option>");
|
}
|
for (var j = 0; j < recordCount; j++) {
|
if (info != '' && info[j]) {
|
var select = info[j].ID
|
$("#panding" + select).val(info[j].FCHECK_RESULT)
|
}
|
}
|
} else {
|
mui.toast(data.msg, {
|
duration: 'long',
|
type: 'div'
|
});
|
}
|
});
|
|
}
|
//打开页面加载数据
|
function getData() {
|
aj.post("/pqc_first_input/getItemInfo", {
|
"factory": api_localStorageGet("factory"),
|
"company": api_localStorageGet("company"),
|
checkId: fmid,
|
checkItemId: fdid
|
}, function(data) {
|
// console.log(JSON.stringify(data));
|
if (data.result) {
|
var DA = checkZero(data.data.DA[0]);
|
// alert(JSON.stringify(DA))
|
$("#checkName").val(DA.FNAME) //检验项目
|
$("#FUP_ALLOW").val(DA.FUPPER) //上限值
|
$("#FDOWN_ALLOW").val(DA.FLOWER) //下限值
|
$("#check_value_num").val(DA.CHECK_NUMBER) //检验个数
|
$("#check_require").val(DA.FREQU) //检验值要求
|
$("#check_result").val(DA.FCHECK_RESULT) //检验结果
|
|
var recordCount = data.data.DA[0].CHECK_NUMBER
|
var infoList = data.data.INFO
|
// alert(JSON.stringify(infoList))
|
var tempData = []
|
var tempData2 = []
|
if (infoList != "") {
|
// alert(recordCount)
|
for (var i = 0; i < recordCount; i++) {
|
var array = {}
|
var array2 = {}
|
// alert(JSON.stringify(infoList[i]))
|
if (infoList[i] != undefined) {
|
array['ID'] = infoList[i].ID
|
array['FCHECK_VALUES'] = infoList[i].FCHECK_VALUES
|
array['FCHECK_RESULT'] = infoList[i].FCHECK_RESULT
|
array2['FCHECK_RESULT'] = infoList[i].FCHECK_RESULT
|
tempData.push(array)
|
tempData2.push(array2)
|
// alert(JSON.stringify(tempData2))
|
document.getElementById('divid').innerHTML = template('row-template', {
|
"record": tempData,
|
"checkType": tempData2
|
});
|
getSelectResult(data.data.INFO, infoList[i].ID) //获取下拉框选项
|
} else {
|
array['ID'] = ""
|
array['FCHECK_VALUES'] = ""
|
array['FCHECK_RESULT'] = ""
|
array2['FCHECK_RESULT'] = ""
|
}
|
}
|
} else {
|
document.getElementById('divid').innerHTML = template('row-template', {
|
"record": tempData,
|
"checkType": tempData2
|
});
|
}
|
fItemInfo = data.data.INFO
|
} else {
|
mui.toast(data.msg, {
|
duration: 'long',
|
type: 'div'
|
});
|
}
|
});
|
}
|
|
//对小数点前丢失的0进处理
|
function checkZero(cursor) {
|
if (cursor.FLOWER != null) {
|
var f = cursor.FLOWER.substr(0, 1)
|
if (f == ".") {
|
var t = cursor.FLOWER.split(""); // 字符串处理
|
t.splice(0, 0, "0");
|
t = t.join("")
|
cursor.FLOWER = t
|
}
|
}
|
if (cursor.FUPPER != null) {
|
var f = cursor.FUPPER.substr(0, 1)
|
if (f == ".") {
|
var t = cursor.FUPPER.split(""); // 字符串处理
|
t.splice(0, 0, "0");
|
t = t.join("")
|
cursor.FUPPER = t
|
}
|
}
|
if (cursor.FST != null) {
|
var f = cursor.FST.substr(0, 1)
|
if (f == ".") {
|
var t = cursor.FST.split(""); // 字符串处理
|
t.splice(0, 0, "0");
|
t = t.join("")
|
cursor.FST = t
|
}
|
}
|
return cursor;
|
}
|
|
//录入检验值
|
function setCheckValue(type, id1, setValue) {
|
aj.post("/pqc_first_input/checkValueInput", {
|
factory: api_localStorageGet("factory"),
|
company: api_localStorageGet("company"),
|
userNo: api_localStorageGet("code"),
|
checkId: fmid,
|
checkItemId: fdid,
|
testValue: setValue,
|
ptype: type,
|
checkValueId: id1
|
}, function(data) {
|
if (data.result) {
|
getData()
|
document.getElementById('values').value = '';
|
mui.focus(document.getElementById('values'));
|
} else {
|
getData()
|
document.getElementById('values').value = '';
|
mui.focus(document.getElementById('values'));
|
mui.toast(data.msg, {
|
duration: 'long',
|
type: 'div'
|
});
|
}
|
});
|
}
|
|
|
|
//上一项
|
$("#lastBtn").click(function() {
|
mui.focus(document.getElementById('values'))
|
document.getElementById('values').value = '';
|
aj.post("/pqc_first_input/goNextItem", {
|
"factory": api_localStorageGet("factory"),
|
"company": api_localStorageGet("company"),
|
"ftype": "1",
|
"mid": fmid,
|
"pid": fdid,
|
}, function(data) {
|
if (data.result) {
|
var a = checkZero(data.data.DA[0]);
|
//是否是量化项目
|
if (a.FIS_QUAN == 1) {
|
$("#values").get(0).setAttribute("type", "tel");
|
} else {
|
$("#values").get(0).setAttribute("type", "");
|
}
|
// var a = data.data.DA
|
//变更从表id
|
fdid = a.ID
|
$("#checkName").val(a.FNAME) //检验项目
|
$("#FUP_ALLOW").val(a.FUPPER) //上限值
|
$("#FDOWN_ALLOW").val(a.FLOWER) //下限值
|
$("#check_value_num").val(a.CHECK_NUMBER) //检验个数
|
$("#check_require").val(a.FREQU) //检验值要求
|
$("#check_result").val(a.FCHECK_RESULT) //检验结果
|
|
var recordCount = a.CHECK_NUMBER
|
var infoList = data.data.INFO
|
var tempData = []
|
var tempData2 = []
|
if (infoList != "") {
|
|
for (var i = 0; i < recordCount; i++) {
|
var array = {}
|
var array2 = {}
|
if (infoList[i]) {
|
array['ID'] = infoList[i].ID
|
array['FCHECK_VALUES'] = infoList[i].FCHECK_VALUES
|
array['FCHECK_RESULT'] = infoList[i].FCHECK_RESULT
|
array2['FCHECK_RESULT'] = infoList[i].FCHECK_RESULT
|
tempData.push(array)
|
tempData2.push(array2)
|
getSelectResult(data.data.INFO, infoList[i].ID) //获取下拉框选项
|
document.getElementById('divid').innerHTML = template('row-template', {
|
"record": tempData,
|
"checkType": tempData2
|
});
|
} else {
|
array['ID'] = ""
|
array['FCHECK_VALUES'] = ""
|
array['FCHECK_RESULT'] = ""
|
array2['FCHECK_RESULT'] = ""
|
}
|
}
|
|
fItemInfo = data.data.INFO
|
} else {
|
document.getElementById('divid').innerHTML = template('row-template', {
|
"record": tempData,
|
"checkType": tempData2
|
});
|
}
|
} else {
|
mui.toast(data.msg, {
|
duration: 'long',
|
type: 'div'
|
});
|
}
|
});
|
})
|
//下一项
|
$("#nextBtn").click(function() {
|
mui.focus(document.getElementById('values'))
|
document.getElementById('values').value = '';
|
aj.post("/pqc_first_input/goNextItem", {
|
"factory": api_localStorageGet("factory"),
|
"company": api_localStorageGet("company"),
|
"ftype": "2",
|
"mid": fmid,
|
"pid": fdid,
|
}, function(data) {
|
if (data.result) {
|
// console.log(JSON.stringify(data))
|
var a = checkZero(data.data.DA[0]);
|
//是否是量化项目
|
// alert(a.FIS_QUAN)
|
if (a.FIS_QUAN == 1) {
|
$("#values").get(0).setAttribute("type", "tel");
|
} else {
|
$("#values").get(0).setAttribute("type", "");
|
}
|
// var a = data.data.DA
|
//变更从表id
|
fdid = a.ID
|
$("#checkName").val(a.FNAME) //检验项目
|
$("#FUP_ALLOW").val(a.FUPPER) //上限值
|
$("#FDOWN_ALLOW").val(a.FLOWER) //下限值
|
$("#check_value_num").val(a.CHECK_NUMBER) //检验个数
|
$("#check_require").val(a.FREQU) //检验值要求
|
$("#check_result").val(a.FCHECK_RESULT) //检验结果
|
|
var recordCount = a.CHECK_NUMBER
|
var infoList = data.data.INFO
|
var tempData = []
|
var tempData2 = []
|
if (infoList != "") {
|
for (var i = 0; i < recordCount; i++) {
|
var array = {}
|
var array2 = {}
|
if (infoList[i]) {
|
array['ID'] = infoList[i].ID
|
array['FCHECK_VALUES'] = infoList[i].FCHECK_VALUES
|
array['FCHECK_RESULT'] = infoList[i].FCHECK_RESULT
|
array2['FCHECK_RESULT'] = infoList[i].FCHECK_RESULT
|
tempData.push(array)
|
tempData2.push(array2)
|
getSelectResult(data.data.INFO, infoList[i].ID) //获取下拉框选项
|
document.getElementById('divid').innerHTML = template('row-template', {
|
"record": tempData,
|
"checkType": tempData2
|
});
|
} else {
|
array['ID'] = ""
|
array['FCHECK_VALUES'] = ""
|
array['FCHECK_RESULT'] = ""
|
array2['FCHECK_RESULT'] = ""
|
}
|
}
|
|
} else {
|
document.getElementById('divid').innerHTML = template('row-template', {
|
"record": tempData,
|
"checkType": tempData2
|
});
|
}
|
fItemInfo = data.data.INFO
|
|
} else {
|
mui.toast(data.msg, {
|
duration: 'long',
|
type: 'div'
|
});
|
}
|
});
|
})
|
|
//一键斜杠处理
|
function setXiegang() {
|
aj.post("/pqc_first_input/setXieGang", {
|
factory: api_localStorageGet("factory"),
|
company: api_localStorageGet("company"),
|
userNo: api_localStorageGet("code"),
|
pid: fdid,
|
}, function(data) {
|
if (data.result) {
|
getData()
|
mui.toast('操作成功', {
|
duration: 'long',
|
type: 'div'
|
});
|
} else {
|
getData()
|
mui.toast(data.msg, {
|
duration: 'long',
|
type: 'div'
|
});
|
}
|
});
|
}
|
|
function close() {
|
plus.webview.currentWebview().close();
|
}
|
|
//打开扫描页面
|
function clicked(url, f1, urlId) {
|
OpenWindow(f1, url, {
|
urlId: urlId,
|
inputId: f1
|
});
|
};
|
</script>
|
|
</body>
|
</html>
|