|
@@ -9,6 +9,7 @@
|
|
|
<h1>剑鱼项目数据维护
|
|
|
<small>
|
|
|
<button class="btn btn-instagram btn-sm" onclick="modifySingle()"><i class="fa fa-fw fa-edit fa-lg"></i>单条修改</button>
|
|
|
+ <button class="btn btn-instagram btn-sm" onclick="findPid()"><i class="fa fa-fw fa-edit fa-lg"></i>查询项目id</button>
|
|
|
<form style="display:none" id='uploadform' method='post'>
|
|
|
<input type='file' name='xlsx' id='file'/>
|
|
|
</form>
|
|
@@ -99,6 +100,31 @@
|
|
|
</div><!-- /.modal-content -->
|
|
|
</div><!-- /.modal -->
|
|
|
</div>
|
|
|
+<div class="modal fade" id="modal-proid" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
+ <div class="modal-dialog">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <div class="modal-header">
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
+ <div class="edit-form">
|
|
|
+ <div class="edit-info">
|
|
|
+ <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
|
|
|
+ <span>输入标讯id</span>
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-12">
|
|
|
+ <input type="text" class="form-control" id="input_pid_f" placeholder="请输入查询项目id"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <input type="button" onclick="findPidF()" class="btn btn-primary saveBtn" value="查询">
|
|
|
+ <input type="button" onclick="cancelModel()" class="btn btn-default" style="margin-left: 24px"
|
|
|
+ value="取消">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div><!-- /.modal-content -->
|
|
|
+ </div><!-- /.modal -->
|
|
|
+</div>
|
|
|
{{include "com/footer.html"}}
|
|
|
<script>
|
|
|
menuActive("/service/jy/repair/pro");
|
|
@@ -165,6 +191,7 @@
|
|
|
function cancelModel() {
|
|
|
$('#modal-pro-id').modal("hide")
|
|
|
$('#modal-pro-modify').modal("hide")
|
|
|
+ $('#modal-proid').modal("hide")
|
|
|
}
|
|
|
function confirmModel() {
|
|
|
var pid = $('#input_pid').val()
|
|
@@ -238,4 +265,28 @@
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ function findPid() {
|
|
|
+ $('#modal-proid').modal("show")
|
|
|
+ }
|
|
|
+ function findPidF() {
|
|
|
+ var sid = $('#input_pid_f').val()
|
|
|
+ if (sid === "") {
|
|
|
+ showTip("请输入标讯id")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ url: "/service/jy/repair/queryPid",
|
|
|
+ type: 'POST',
|
|
|
+ data: {"sid": sid},
|
|
|
+ success: function (r) {
|
|
|
+ $('#modal-proid').modal("hide")
|
|
|
+ if (r.rep) {
|
|
|
+ showMsg("查询到项目:\n"+r.pid)
|
|
|
+ } else {
|
|
|
+ showTip("未查询到项目信息")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
</script>
|