123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>耗材调拨申请</title>
- <link href="/css/ims/base.css" rel="stylesheet">
- <link href="/css/ims/ims.css" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css" />
- <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css" />
- <link rel="stylesheet" type="text/css" href="/css/ims/jquery.datetimepicker.css" />
- <style>
- .ims-box {
- margin: 20px;
- }
- .screen {
- padding-left: 20px;
- height: 44px;
- line-height: 44px;
- background-color: #eff4fa;
- }
- .screen li {
- float: left;
- margin-right: 65px;
- }
- .bg-d9bf6e {
- margin-left: 5px;
- padding: 0 20px;
- color: #fff;
- background-color: #d9bf6e;
- }
- .list {
- padding: 0 40px;
- /*margin-top: 40px;*/
- overflow: hidden;
- }
- .list h2 {
- line-height: 30px;
- font-size: 14px;
- }
- .list .student-list_box {
- width: 500px;
- margin-bottom: 15px;
- }
- .list .student-list_box>ul {
- height: 260px;
- overflow: auto;
- padding: 20px;
- background-color: #eef3ff;
- }
- .list .student-list_box li {
- line-height: 30px;
- cursor: pointer;
- }
- .list .student-list {
- display: none;
- margin-left: 20px;
- }
- .list .student-list li.active .btn-select_all {
- display: inline-block;
- }
- .list .student-list span {
- cursor: pointer;
- }
- .list .btn-select_all {
- margin-left: 84px;
- color: #2977ff;
- }
- .student-name_box li {
- position: relative;
- margin-left: 28px;
- line-height: 30px;
- }
- .student-name_box input {
- position: absolute;
- left: 155px;
- top: 8px;
- }
- .btn-select_all,
- .student-name_box {
- display: none;
- }
- .student-selected {
- width: 320px;
- height: 300px;
- overflow: auto;
- }
- .student-selected li {
- float: left;
- margin-right: 24px;
- margin-bottom: 12px;
- width: 280px;
- height: 26px;
- line-height: 26px;
- text-indent: 20px;
- background-color: #f2f2f2;
- }
- .student-selected .btn-delete {
- float: right;
- margin-right: 20px;
- color: red;
- cursor: pointer;
- }
- .btn-confirm_purchase {
- display: block;
- margin: 0 auto;
- margin-top: 100px;
- margin-bottom: 50px;
- width: 430px;
- line-height: 54px;
- color: #fff;
- font-family: PingFangSC-Regular, "PingFang SC";
- font-weight: 400;
- font-style: normal;
- font-size: 20px;
- text-align: center;
- background-color: #2977ff;
- cursor: pointer;
- }
- .sale-table input {
- border: 1px solid #ccc;
- border-radius: 4px;
- }
- #imgPreview {
- display: inline-block;
- margin-top: 12px;
- }
- #imgPreview > img {
- max-width: 100px;
- max-height: 100px;
- margin-right: 5px;
- }
- .layui-layer-btn .layui-layer-btn0 {
- border-color: #2977ff !important;
- background-color: #2977ff !important;
- color: #fff;
- }
- .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
- line-height: 140px;
- text-align: center;
- }
- .disable-btn{
- background-color: #666666;
- border: 1px solid #666666!important;
- }
- </style>
- </head>
- <body>
- <h3 class="sale-title">耗材调拨申请</h3>
- <input type="hidden" name="itemName">
- <input type="hidden" name="itemSpec">
- <input type="hidden" name="itemCode">
- <input type="hidden" name="unitId">
- <div class="sale-table">
- <table width="100%">
- <tr>
- <th><em class="red">*</em>调拨单标题</th>
- <td colspan="3">
- <?php echo $title?>
- </td>
- </tr>
- <tr>
- <th><em class="red">*</em>申请发货仓库</th>
- <td >
- <?php echo $deliverName;?>
- </td>
- <th><em class="red">*</em>发货仓库管理员</th>
- <td >
- <?php echo $consignorName;?>
- </td>
- </tr>
- <tr>
- <th><em class="red">*</em>接收仓库</th>
- <td >
- <?php echo $receiveName?>
- </td>
- <th><em class="red">*</em>申请接收时间</th>
- <td >
- <input type="text" readonly class="" value="<?php echo $receiveDate;?>"/>
- </td>
- </tr>
- <tr>
- <th><em class="red">*</em>收货人</th>
- <td >
- <input type="text" id="receiveUser" readonly name="receiveUser" class="diy_select_input" value="<?php echo $receiveUser;?>">
- </td>
- <th><em class="red">*</em>收货电话</th>
- <td >
- <input type="text" readonly id="telephone" name="telephone" class="diy_select_input" value="<?php echo $telephone;?>">
- </td>
- </tr>
- <tr>
- <th><em class="red">*</em>详细地址</th>
- <td colspan="3">
- <input type="text" readonly id="address" name="address" class="use-explain" value="<?php echo $address;?>">
- </td>
- </tr>
- <tr>
- <th><em class="red">*</em>发货凭证</th>
- <td colspan="3">
- <div id="imgPreview">
- <?php foreach($images as $val):?>
- <img src="<?php echo $val;?>">
- <?php endforeach;?>
- </div>
- </td>
- </tr>
- <tr>
- <th>备注</th>
- <td colspan="3">
- <textarea name="remark" readonly cols="50" class="use-explain" rows="5"><?php echo $remark;?></textarea>
- </td>
- </tr>
- </table>
- <button type="button" class="label-primary-s create-allocation disable-btn">添加品目</button>
- <table width="100%" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" id="P_list">
- <tr>
- <td>品目名称</td>
- <td>品目类型</td>
- <td>品目数量</td>
- <td>库存数</td>
- <td>单位</td>
- <td>操作</td>
- </tr>
- <?php
- if(isset($allocateDetail) && $allocateDetail){
- foreach($allocateDetail as $val){
- ?>
- <tr class="allocateDetail" id="<?php echo $val['itemId']?>">
- <td><?php echo $val['itemName']?></td>
- <td><?php echo $val['typeName']?></td>
- <td><input readonly type="text" name="num" class="num" value="<?php echo $val['applyNo']?>"></td>
- <td><?php echo $val['invNo']?></td>
- <td><?php echo $val['unitName']?></td>
- <td></td>
- </tr>
- <?php
- }
- }
- ?>
- </table>
- <button type="button" class="label-primary-s bth-s create-part disable-btn">添加零件类型</button>
- <table width="100%" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" id="P_list">
- <tr>
- <td>零件类型</td>
- <td>使用设备编号</td>
- <td>设备名称</td>
- <td>设备规格</td>
- <td>申请数量</td>
- <td>操作</td>
- </tr>
- <?php
- if(isset($partDetail) && $partDetail){
- foreach($partDetail as $val){
- ?>
- <tr>
- <td><?php echo $val['partName']?></td>
- <td><?php echo $val['fixedCode']?></td>
- <td><?php echo $val['itemName']?></td>
- <td><?php echo $val['itemSpec']?></td>
- <td><?php echo $val['applyNo']?></td>
- <td></td>
- </tr>
- <?php
- }
- }
- ?>
- </table>
- <button type="button" class="label-primary-s bth-s create-part disable-btn">问调表</button>
- <table width="100%" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" id="P_list">
- <tr>
- <td>品目名称</td>
- <td>问调表</td>
- </tr>
- <?php
- if(isset($survey) && $survey){
- foreach($survey as $val){
- ?>
- <tr id="<?php echo $val['id']?>" fixedCode="<?php echo $val['fixedCode']?>" appearanceFineness="<?php echo $val['appearanceFineness']?>" printingEffect="<?php echo $val['printingEffect']?>" scanPaperJam="<?php echo $val['scanPaperJam']?>" printPaperJam="<?php echo $val['printPaperJam']?>" isSettlement="<?php echo $val['isSettlement']?>">
- <td><?php echo $val['fixedCode']?></td>
- <td>
- <a class="viewSurvey" editable="0">查看</a>
- <?php if($val['isSettlement']==0):?>
- <a class="viewSurvey" editable="1">编辑</a>
- <?php endif;?>
- </td>
- </tr>
- <?php
- }
- }
- ?>
- </table>
- </div>
- <div class="sale-submit" style="margin-top: 25px;">
- <input type="hidden" name="atCode" value='<?php echo $atCode?>'>
- <input type="hidden" name="atId" value='<?php echo $atId?>'>
- <button type="button" class=" label-primary-s bth-s" id="savebutton" onclick="window.history.go(-1);">返回</button>
- <button type="button" class=" label-primary-s bth-s" id="viewLog" >日志</button>
- </div>
- <!-- 编辑名单弹层 -->
- <div class="layer-edit">
- <p class="red"></p>
- <div class="list">
- <div class="student-list_box fl">
- <span>品目类型</span>
- <select name="pm_type" class="pm_type">
- <option value="0">选择类型</option>
- <?php
- if(isset($pm_type) && $pm_type){
- foreach ($pm_type as $val){
- echo '<option value="'.$val['typeId'].'">'.$val['typeName'].'</option>';
- }
- }
- ?>
- </select>
- <span>品目名称</span>
- <input type="text" name="pm_name" value="">
- <button class="search_pm">查询</button>
- </div>
- <table class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
- <tr>
- <td></td>
- <td>品目编号</td>
- <td>品目名称</td>
- <td>品目类型</td>
- <td>库存数</td>
- </tr>
- <tbody class="item_list">
- </tbody>
- </table>
- <div class="fr">
- <a href="#" class="prev">上一页</a>
- <span class="now_page">1</span>/<span class="last_page">1</span>
- <a href="#" class="next">下一页</a>
- </div>
- </div>
- </div>
- <!--日志弹层-->
- <link rel="stylesheet" href="/css/cylet.css" />
- <style>
- .class-modal-body-1{overflow: auto;height:400px;}
- .class-modal-body-1 td{font-size:14px;line-height:200%;}
- </style>
- <div class="confirmbox-mask" style="display: none" id="classModal">
- <div class="class-modal">
- </div>
- </div>
- <div class="confirmbox-mask" style="display: none" id="classModal-1">
- <form name="table_set">
- <div class="class-modal-1">
- <i class="icon icon-close-1"></i><div class="class-modal-head-1">日志</div>
- <div class="class-modal-body-1">
- <table>
- <?php
- if($logList){
- foreach ($logList as $val){
- echo '<tr>';
- echo '<td><img src="/images/right_head.png"></td>';
- echo '<td width="40%">'.$val['createTime'].'</td>';
- echo '<td width="50%">【'.$val['userName'].'】'.$val['info'].'</td>';
- echo '</tr>';
- }
- }
- ?>
- </table>
- </div>
- </div>
- </form>
- </div>
- <!--30天问调表-->
- <div id="survey-form">
- <h3>XXX30天问调表</h3>
- <form action="" method="post" name="survey-form" id="survey">
- <p><span class="red">*</span>1.外观成色</p>
- <label><input type="radio" name="appearanceFineness" value="25">良好 </label>
- <label> <input type="radio" name="appearanceFineness" value="20">一般</label>
- <p><span class="red">*</span>2.打印效果</p>
- <label> <input type="radio" name="printingEffect" value="25">良好</label>
- <label> <input type="radio" name="printingEffect" value="20">一般</label>
- <p><span class="red">*</span>3.扫描卡纸</p>
- <label> <input type="radio" name="scanPaperJam" value="25">良好:500张左右卡一张</label>
- <label><input type="radio" name="scanPaperJam" value="20">一般:300张左右卡一张</label>
- <label><input type="radio" name="scanPaperJam" value="15">较差:100张左右卡一张</label>
- <p><span class="red">*</span>4.打印卡纸</p>
- <label><input type="radio" name="printPaperJam" value="25">良好:500张左右卡一张</label>
- <label><input type="radio" name="printPaperJam" value="20">一般:300张左右卡一张</label>
- <label><input type="radio" name="printPaperJam" value="15">较差:100张左右卡一张</label>
- </form>
- </div>
- </body>
- <script>
- $('.icon-close-1').click(function(){
- $('#classModal-1').hide();
- });
- $('#viewLog').click(function(){
- $('#classModal-1').show();
- });
- $(function(){
- var surveyBtn=true;
- $('.viewSurvey').click(function(){
- objTr=$(this).closest('tr');
- var fixedCode=objTr.attr('fixedCode'),
- id=objTr.attr('id'),
- appearanceFineness=objTr.attr('appearanceFineness'),
- printingEffect=objTr.attr('printingEffect'),
- scanPaperJam=objTr.attr('scanPaperJam'),
- printPaperJam=objTr.attr('printPaperJam'),
- isSettlement=objTr.attr('isSettlement');
- editable=$(this).attr('editable');
- document.getElementById('survey').reset();
- $('#survey-form').find('h3').html(fixedCode+'设备30天问调表');
- $('input[name=appearanceFineness][value='+appearanceFineness+']').prop('checked',true);
- $('input[name=printingEffect][value='+printingEffect+']').prop('checked',true);
- $('input[name=scanPaperJam][value='+scanPaperJam+']').prop('checked',true);
- $('input[name=printPaperJam][value='+printPaperJam+']').prop('checked',true);
- if(editable==0){
- $('#survey-form').find('input').attr('disabled',true);
- layer.open({
- type: 1,
- title: fixedCode+'设备30天问调表',
- btn: [ '关闭'],
- area: ['800px', '680px'], //宽高
- btnAlign: 'c',
- content: $('#survey-form'),
- yes: function (index, layero) {
- layer.closeAll();
- }
- });
- }else{
- $('#survey-form').find('input').attr('disabled',false);
- layer.open({
- type: 1,
- title: fixedCode+'设备30天问调表',
- btn: [ '提交'],
- area: ['800px', '680px'], //宽高
- btnAlign: 'c',
- content: $('#survey-form'),
- yes: function (index, layero) {
- if(!surveyBtn){
- return false;
- }
- appearanceFineness=$('input[name=appearanceFineness]:checked').val();
- printingEffect=$('input[name=printingEffect]:checked').val();
- scanPaperJam=$('input[name=scanPaperJam]:checked').val();
- printPaperJam=$('input[name=printPaperJam]:checked').val();
- if(appearanceFineness==undefined){
- layer.msg('请选择外观成色');
- return false;
- }
- if(printingEffect==undefined){
- layer.msg('请选择打印效果');
- return false;
- }
- if(scanPaperJam==undefined){
- layer.msg('请选择扫描卡纸');
- return false;
- }
- if(printPaperJam==undefined){
- layer.msg('请选择打印卡纸');
- return false;
- }
- surveyBtn=false;
- $.ajax({
- type: 'post',
- url: "<?php echo Yii::app()->createUrl('imsSale/editExperience');?>",
- data: {"appearanceFineness":appearanceFineness,"printingEffect":printingEffect,"scanPaperJam":scanPaperJam,"printPaperJam":printPaperJam,"id":id},
- dataType: 'json',
- success:function(res){
- surveyBtn=true;
- if(res.status==1){
- layer.msg('提交成功',{
- icon: 1
- }, function(){
- layer.closeAll();
- });
- }else{
- if(res.msg!=undefined){
- layer.msg(res.msg)
- }else{
- layer.msg('提交失败')
- }
- }
- }
- });
- }
- });
- }
- });
- })
- </script>
- </html>
|