index.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <title>ims首页</title>
  7. <meta name="description" content="">
  8. <meta name="keywords" content="">
  9. <link href="/css/ims/base.css" rel="stylesheet">
  10. <link href="/css/ims/ims.css" rel="stylesheet">
  11. <style>
  12. .ims-box {
  13. margin: 20px;
  14. }
  15. .function-box {
  16. margin-bottom: 40px;
  17. overflow: hidden;
  18. }
  19. .function-box .title {
  20. height: 24px;
  21. }
  22. .function-box .title .icon-title {
  23. display: inline-block;
  24. width: 4px;
  25. height: 24px;
  26. background-color: #009966;
  27. vertical-align: middle;
  28. }
  29. .function-box .title h1 {
  30. display: inline-block;
  31. line-height: 24px;
  32. }
  33. .function-wrap>a {
  34. float: left;
  35. margin-top: 10px;
  36. margin-right: 70px;
  37. width: 70px;
  38. text-align: center;
  39. }
  40. </style>
  41. </head>
  42. <body>
  43. <div class="ims-box">
  44. <div class="function-box">
  45. <div class="title">
  46. <i class="icon-title"></i>
  47. <h1>销售类</h1>
  48. </div>
  49. <div class="function-wrap">
  50. <?php if($coachStatus!=5):?>
  51. <a href="<?php echo $this->createUrl('imsSale/trialTable');?>">
  52. <img src="/images/ims/logo-trial.png" alt="产品试用">
  53. <div>
  54. <span>产品试用</span>
  55. <i class="icon-new-_tips"></i>
  56. </div></a>
  57. <?php endif;?>
  58. <a href="<?php echo $this->createUrl('imsSale/trialRestart');?>">
  59. <img src="/images/ims/logo-trial.png" alt="产品试用">
  60. <div>
  61. <span>试用重启</span>
  62. <i class="icon-new-_tips"></i>
  63. </div></a>
  64. <a href="<?php echo $this->createUrl('imsSale/trialDeleteList');?>">
  65. <img src="/images/ims/logo-trial.png" alt="产品试用">
  66. <div>
  67. <span>试用学生删除</span>
  68. <i class="icon-new-_tips"></i>
  69. </div></a>
  70. <a href="<?php echo $this->createUrl('imsSale/purposeTable');?>">
  71. <img src="/images/ims/logo-intention.png" alt="销售订单">
  72. <div>
  73. <span>销售订单</span>
  74. <i class="icon-new-_tips"></i>
  75. </div></a>
  76. <a href="<?php echo $this->createUrl('imsSale/officialTable');?>">
  77. <img src="/images/ims/logo-order.png" alt="财务订单">
  78. <div>
  79. <span>财务订单</span>
  80. <i class="icon-new-_tips"></i>
  81. </div></a>
  82. <a href="<?php echo $this->createUrl('imsSale/detailOrder');?>">
  83. <img src="/images/ims/logo-detailed.png" alt="明细订单">
  84. <div>
  85. <span>明细订单</span>
  86. <i class="icon-new-_tips"></i>
  87. </div></a>
  88. <a href="<?php echo $this->createUrl('imsSale/cloudPrintTask');?>">
  89. <img src="/images/ims/logo-detailed.png" alt="云印任务">
  90. <div>
  91. <span>云印任务</span>
  92. <i class="icon-new-_tips"></i>
  93. </div>
  94. </a>
  95. <a href="<?php echo $this->createUrl('imsSale/productSign');?>">
  96. <img src="/images/ims/logo-detailed.png" alt="产品签名">
  97. <div>
  98. <span>产品签名</span>
  99. <i class="icon-new-_tips"></i>
  100. </div>
  101. </a>
  102. <a href="<?php echo $this->createUrl('imsSale/goodsChange');?>">
  103. <img src="/images/ims/logo-huikuan.png" alt="商品变更">
  104. <div>
  105. <span>商品变更</span>
  106. <i class="icon-new-_tips"></i>
  107. </div>
  108. </a>
  109. </div>
  110. </div>
  111. <div class="function-box">
  112. <div class="title">
  113. <i class="icon-title"></i>
  114. <h1>仓库类</h1>
  115. </div>
  116. <div class="function-wrap">
  117. <a href="<?php echo Yii::app()->createUrl('imsStore/allocation');?>">
  118. <img src="/images/ims/logo-warehouse.png" alt="仓库调拨">
  119. <div>
  120. <span>仓库调拨</span>
  121. <i class="icon-new-_tips"></i>
  122. </div></a>
  123. <a href="<?php echo Yii::app()->createUrl('imsStore/delivery');?>">
  124. <img src="/images/ims/logo-sale.png" alt="销售出库">
  125. <div>
  126. <span>销售出库</span>
  127. <i class="icon-new-_tips"></i>
  128. </div></a>
  129. <!-- <a href="--><?php // echo Yii::app()->createUrl('imsStore/stock');?><!--">-->
  130. <!-- <img src="/images/ims/logo-stock-checks.png" alt="库存盘点">-->
  131. <!-- <div>-->
  132. <!-- <span>库存盘点</span>-->
  133. <!-- <i class="icon-new-_tips"></i>-->
  134. <!-- </div></a>-->
  135. <a href="<?php echo Yii::app()->createUrl('imsStore/transferlist');?>">
  136. <img src="/images/ims/logo-transfer.png" alt="品目转移">
  137. <div>
  138. <span>品目转移</span>
  139. <i class="icon-new-_tips"></i>
  140. </div></a>
  141. <a href="<?php echo Yii::app()->createUrl('imsStore/report');?>">
  142. <img src="/images/ims/logo-Stock.png" alt="库存报表">
  143. <div>
  144. <span>库存报表</span>
  145. <i class="icon-new-_tips"></i>
  146. </div></a>
  147. <a href="<?php echo Yii::app()->createUrl('imsStore/account');?>">
  148. <img src="/images/ims/logo-account.png" alt="出入库账簿">
  149. <div>
  150. <span>出入库账簿</span>
  151. <i class="icon-new-_tips"></i>
  152. </div></a>
  153. <a href="<?php echo Yii::app()->createUrl('imsStore/useOut');?>">
  154. <img src="/images/ims/out-stock.png" alt="领用出库">
  155. <div>
  156. <span>领用出库</span>
  157. <i class="icon-new-_tips"></i>
  158. </div></a>
  159. <a href="<?php echo Yii::app()->createUrl('imsStore/newStock');?>">
  160. <img src="/images/newplan.png" alt="库存盘点">
  161. <div>
  162. <span>新库存盘点</span>
  163. <i class="icon-new-_tips"></i>
  164. </div></a>
  165. <?php if($coachStatus!=3 && $coachStatus!=5):?>
  166. <a href="<?php echo $this->createUrl('imsDevice/repairOrder');?>">
  167. <img src="/images/ims/repair-order.png" alt="维修工单">
  168. <div>
  169. <span>维修工单</span>
  170. <i class="icon-new-_tips"></i>
  171. </div></a>
  172. <a href="<?php echo $this->createUrl('imsDevice/repairRecord');?>">
  173. <img src="/images/ims/repair-record.png" alt="维修记录">
  174. <div>
  175. <span>维修记录</span>
  176. <i class="icon-new-_tips"></i>
  177. </div></a>
  178. <a href="<?php echo $this->createUrl('imsDevice/printUploadList');?>">
  179. <img src="/images/ims/print_upload.png" alt="印量上传">
  180. <div>
  181. <span>印量上传</span>
  182. <i class="icon-new-_tips"></i>
  183. </div>
  184. </a>
  185. <a href="<?php echo $this->createUrl('imsDevice/taskClean');?>">
  186. <img src="/images/ims/task-clean.png" alt="清洁任务">
  187. <div>
  188. <span>清洁任务</span>
  189. <i class="icon-new-_tips"></i>
  190. </div>
  191. </a>
  192. <a href="<?php echo $this->createUrl('imsDevice/taskVerify');?>">
  193. <img src="/images/ims/task-verify.png" alt="清洁任务审核">
  194. <div>
  195. <span>清洁任务审核</span>
  196. <i class="icon-new-_tips"></i>
  197. </div>
  198. </a>
  199. <?php endif;?>
  200. </div>
  201. </div>
  202. <?php if($coachStatus!=3 && $coachStatus!=5):?>
  203. <div class="function-box">
  204. <div class="title">
  205. <i class="icon-title"></i>
  206. <h1>财务类</h1>
  207. </div>
  208. <div class="function-wrap">
  209. <a href="<?php echo $this->createUrl('imsSale/payment');?>">
  210. <img src="/images/ims/ims_hkfk.png" width="50" height="50" alt="回款反馈">
  211. <div>
  212. <span>回款反馈</span>
  213. <i class="icon-new-_tips"></i>
  214. </div>
  215. </a>
  216. <a href="<?php echo Yii::app()->createUrl('imsSale/serviceCharge');?>">
  217. <img src="/images/ims/ims_fwf.png" width="50" height="50" alt="服务费查询">
  218. <div>
  219. <span>服务费查询</span>
  220. <i class="icon-new-_tips"></i>
  221. </div></a>
  222. <a href="<?php echo $this->createUrl('imsSale/paymentApply');?>">
  223. <img src="/images/ims/ims_hkfk.png" width="50" height="50" alt="修改回款反馈申请">
  224. <div>
  225. <span>修改回款反馈申请 </span>
  226. <i class="icon-new-_tips"></i>
  227. </div>
  228. </a>
  229. </div>
  230. </div>
  231. <?php endif;?>
  232. </div>
  233. <!--30天问调表-->
  234. <div id="survey-form">
  235. <h3>XXX30天问调表</h3>
  236. <form action="" method="post" name="survey-form" id="survey">
  237. <p><span class="red">*</span>1.外观成色</p>
  238. <label><input type="radio" name="appearanceFineness" value="25">良好 </label>
  239. <label> <input type="radio" name="appearanceFineness" value="20">一般</label>
  240. <p><span class="red">*</span>2.打印效果</p>
  241. <label> <input type="radio" name="printingEffect" value="25">良好</label>
  242. <label> <input type="radio" name="printingEffect" value="20">一般</label>
  243. <p><span class="red">*</span>3.扫描卡纸</p>
  244. <label> <input type="radio" name="scanPaperJam" value="25">良好:500张左右卡一张</label>
  245. <label><input type="radio" name="scanPaperJam" value="20">一般:300张左右卡一张</label>
  246. <label><input type="radio" name="scanPaperJam" value="15">较差:100张左右卡一张</label>
  247. <p><span class="red">*</span>4.打印卡纸</p>
  248. <label><input type="radio" name="printPaperJam" value="25">良好:500张左右卡一张</label>
  249. <label><input type="radio" name="printPaperJam" value="20">一般:300张左右卡一张</label>
  250. <label><input type="radio" name="printPaperJam" value="15">较差:100张左右卡一张</label>
  251. </form>
  252. </div>
  253. </body>
  254. <script src="/js/productset/jquery.min.js"></script>
  255. <script src="/js/ims/xsgl.js"></script>
  256. <script src="/js/layer/layer.js"></script>
  257. <script>
  258. $(document).ready(function () {
  259. //收货提醒
  260. $.ajax({
  261. type: 'post',
  262. url: "<?php echo Yii::app()->createUrl('imsSale/confirmWaning');?>",
  263. data: {},
  264. dataType: 'json',
  265. success: function (res) {
  266. // var handleUrl = "<?php echo Yii::app()->createUrl('imsStore/allocation');?>";
  267. if (res.msg) {
  268. if(res.data <= 0){
  269. return false;
  270. }
  271. layer.open({
  272. type: 1,
  273. title: '温馨提示',
  274. btn: [ '下次再说'],
  275. area: ['800px', '280px'], //宽高
  276. btnAlign: 'c',
  277. content: res.msg,
  278. //yes: function (index, layero) {
  279. // window.location.href = "<?php //echo Yii::app()->createUrl('imsStore/allocation');?>//";
  280. //},
  281. btn1: function (index, layero) {
  282. //取消按钮
  283. // console.log(111)
  284. //return false 开启该代码可禁止点击该按钮关闭
  285. }
  286. });
  287. }
  288. },
  289. error: function () {
  290. layer.msg("网络异常");
  291. }
  292. });
  293. var surveyBtn=true;
  294. $('body')
  295. .on('click','.survey',function(){
  296. var id=$(this).attr('id');
  297. var fixedCode=$(this).attr('fixedCode');
  298. document.getElementById('survey').reset();
  299. $('#survey-form').find('h3').html(fixedCode+'设备30天问调表');
  300. layer.open({
  301. type: 1,
  302. title: fixedCode+'设备30天问调表',
  303. btn: [ '提交'],
  304. area: ['800px', '680px'], //宽高
  305. btnAlign: 'c',
  306. content: $('#survey-form'),
  307. yes: function (index, layero) {
  308. if(!surveyBtn){
  309. return false;
  310. }
  311. appearanceFineness=$('input[name=appearanceFineness]:checked').val();
  312. printingEffect=$('input[name=printingEffect]:checked').val();
  313. scanPaperJam=$('input[name=scanPaperJam]:checked').val();
  314. printPaperJam=$('input[name=printPaperJam]:checked').val();
  315. if(appearanceFineness==undefined){
  316. layer.msg('请选择外观成色');
  317. return false;
  318. }
  319. if(printingEffect==undefined){
  320. layer.msg('请选择打印效果');
  321. return false;
  322. }
  323. if(scanPaperJam==undefined){
  324. layer.msg('请选择扫描卡纸');
  325. return false;
  326. }
  327. if(printPaperJam==undefined){
  328. layer.msg('请选择打印卡纸');
  329. return false;
  330. }
  331. surveyBtn=false;
  332. $.ajax({
  333. type: 'post',
  334. url: "<?php echo Yii::app()->createUrl('imsSale/editExperience');?>",
  335. data: {"appearanceFineness":appearanceFineness,"printingEffect":printingEffect,"scanPaperJam":scanPaperJam,"printPaperJam":printPaperJam,"id":id},
  336. dataType: 'json',
  337. success:function(res){
  338. surveyBtn=true;
  339. if(res.status==1){
  340. layer.msg('提交成功',{
  341. icon: 1
  342. }, function(){
  343. layer.closeAll();
  344. });
  345. }else{
  346. if(res.msg!=undefined){
  347. layer.msg(res.msg)
  348. }else{
  349. layer.msg('提交失败')
  350. }
  351. }
  352. }
  353. });
  354. }
  355. });
  356. })
  357. //清洁提醒
  358. //$.ajax({
  359. // type: 'post',
  360. // url: "<?php //echo Yii::app()->createUrl('imsSale/cleanConfirmWaning');?>//",
  361. // data: {},
  362. // dataType: 'json',
  363. // success: function (res) {
  364. // var handleUrl = "<?php //echo Yii::app()->createUrl('imsDevice/taskClean');?>//";
  365. // if (res.status) {
  366. // if(res.data <= 0){
  367. // return false;
  368. // }
  369. // layer.open({
  370. // type: 1,
  371. // title: '温馨提示',
  372. // btn: [ '下次再说'],
  373. // area: ['400px', '260px'], //宽高
  374. // btnAlign: 'c',
  375. // content: '<div style="padding:10px 20px;"><p style="line-height:30px;color:green;">清洁任务提醒</p><p style="line-height:20px;">你有待提交的清洁任务,请及时处理,否则会判定为不合格 <a style="color:blue;" href='+handleUrl+'>立即处理</a></p></div>',
  376. // //yes: function (index, layero) {
  377. // // window.location.href = "<?php ////echo Yii::app()->createUrl('imsStore/allocation');?>////";
  378. // //},
  379. // btn1: function (index, layero) {
  380. // //取消按钮
  381. // // console.log(111)
  382. // //return false 开启该代码可禁止点击该按钮关闭
  383. // }
  384. // });
  385. // }
  386. // },
  387. // error: function () {
  388. // layer.msg("网络异常");
  389. // }
  390. //});
  391. //
  392. ////发货提醒
  393. //$.ajax({
  394. // type: 'post',
  395. // url: "<?php //echo Yii::app()->createUrl('imsSale/sendConfirmWaning');?>//",
  396. // data: {},
  397. // dataType: 'json',
  398. // success: function (res) {
  399. // var handleUrl = "<?php //echo Yii::app()->createUrl('imsStore/allocation');?>//";
  400. // if (res.status) {
  401. // if(res.data <= 0){
  402. // return false;
  403. // }
  404. // layer.open({
  405. // type: 1,
  406. // title: '温馨提示',
  407. // btn: [ '下次再说'],
  408. // area: ['400px', '260px'], //宽高
  409. // btnAlign: 'c',
  410. // content: '<div style="padding:10px 20px;"><p style="line-height:30px;color:green;">挑拨单提醒</p><p style="line-height:20px;">您有待发货的调拨单,请及时处理 <a style="color:blue;" href='+handleUrl+'>立即处理</a></p></div>',
  411. // //yes: function (index, layero) {
  412. // // window.location.href = "<?php ////echo Yii::app()->createUrl('imsStore/allocation');?>////";
  413. // //},
  414. // btn1: function (index, layero) {
  415. // //取消按钮
  416. // // console.log(111)
  417. // //return false 开启该代码可禁止点击该按钮关闭
  418. // }
  419. // });
  420. // }
  421. // },
  422. // error: function () {
  423. // layer.msg("网络异常");
  424. // }
  425. //});
  426. });
  427. </script>
  428. </html>