金豪看板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

927 lines
34 KiB

2 years ago
  1. 
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <!--更多资源: -->
  6. <meta charset="utf-8" />
  7. <meta name="description" content="" />
  8. <meta name="keywords" content="" />
  9. <meta name="viewport"
  10. content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  11. <title>执行看板</title>
  12. <!--大屏-->
  13. <link type="text/css" href="~/Content/Cust003/css/public.css" rel="stylesheet" />
  14. <link type="text/css" href="~/Content/Cust003/css/icon.css" rel="stylesheet" />
  15. <link type="text/css" href="~/Content/Cust003/css/index.css" rel="stylesheet" />
  16. <link rel="stylesheet" href="~/Content/Cust069/fonts/icomoon.css">
  17. <script src="~/Content/js/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
  18. @*<script src="~/Content/Cust003/js/jquery-1.11.0.min.js" type="text/javascript"></script>*@
  19. <script src="~/Content/Cust003/js/jquery.numscroll.js"
  20. type="text/javascript"
  21. charset="utf-8"></script>
  22. <script src="~/Content/js/echarts/echarts5.3.3.js"></script>
  23. <script src="~/Content/js/echarts4.8/echarts-liquidfill.js"></script>
  24. <style>
  25. h3 {
  26. color: #FFFFFF;
  27. text-shadow: #05d1fc 0px 1px 3px, #05d1fc 1px 0px 3px,#05d1fc 0px -1px 3px, #05d1fc -1px 0px 3px;
  28. filter: glow(color=#00FFCC,strength=3);
  29. }
  30. .rightMain_top {
  31. width: 100%;
  32. padding-bottom: 0.1rem;
  33. }
  34. .animationNone {
  35. animation: none !important;
  36. }
  37. .CustDiv1 ul li:nth-child(1), .CustDiv1 div div ul li:nth-child(1) {
  38. width: 5% !important;
  39. }
  40. .CustDiv1 ul li:nth-child(2), .CustDiv1 div div ul li:nth-child(2) {
  41. /* width: 28% !important; */
  42. }
  43. .CustDiv1 ul li:nth-child(3), .CustDiv1 div div ul li:nth-child(3) {
  44. width: 11% !important;
  45. }
  46. .CustDiv1 ul li:nth-child(4), .CustDiv1 div div ul li:nth-child(4) {
  47. width: 11% !important;
  48. }
  49. .CustDiv1 ul li:nth-child(5), .CustDiv1 div div ul li:nth-child(5) {
  50. width: 19% !important;
  51. }
  52. .CustDiv1 ul li:nth-child(6), .CustDiv1 div div ul li:nth-child(6) {
  53. width: 11% !important;
  54. }
  55. .CustDiv4 ul li:nth-child(1), .CustDiv4 div div ul li:nth-child(1) {
  56. width: 5% !important;
  57. }
  58. .CustDiv4 ul li:nth-child(2), .CustDiv4 div div ul li:nth-child(2) {
  59. width: 18% !important;
  60. }
  61. .CustDiv4 ul li:nth-child(3), .CustDiv4 div div ul li:nth-child(3) {
  62. width: 26% !important;
  63. }
  64. .CustDiv4 ul li:nth-child(4), .CustDiv4 div div ul li:nth-child(4) {
  65. width: 11% !important;
  66. }
  67. .CustDiv4 ul li:nth-child(5), .CustDiv4 div div ul li:nth-child(5) {
  68. width: 11% !important;
  69. }
  70. .CustDiv4 ul li:nth-child(6), .CustDiv4 div div ul li:nth-child(6) {
  71. width: 18% !important;
  72. }
  73. .CustDiv4 ul li:nth-child(7), .CustDiv4 div div ul li:nth-child(7) {
  74. width: 11% !important;
  75. }
  76. .CustDiv2 ul li:nth-child(1), .CustDiv2 div div ul li:nth-child(1) {
  77. width: 22% !important;
  78. }
  79. .CustDiv2 ul li:nth-child(2), .CustDiv2 div div ul li:nth-child(2) {
  80. width: 15% !important;
  81. }
  82. .CustDiv2 ul li:nth-child(3), .CustDiv2 div div ul li:nth-child(3) {
  83. width: 15% !important;
  84. }
  85. .CustDiv2 ul li:nth-child(4), .CustDiv2 div div ul li:nth-child(4) {
  86. width: 15% !important;
  87. }
  88. .CustDiv2 ul li:nth-child(5), .CustDiv2 div div ul li:nth-child(5) {
  89. width: 15% !important;
  90. }
  91. .CustDiv2 ul li:nth-child(6), .CustDiv2 div div ul li:nth-child(6) {
  92. width: 8% !important;
  93. }
  94. .CustDiv2 ul li:nth-child(7), .CustDiv2 div div ul li:nth-child(7) {
  95. width: 10% !important;
  96. }
  97. .leftMain_top, .leftMain_bottom {
  98. height: calc(46.5%);
  99. }
  100. .leftMain_topIn, .leftMain_bottomIn, .leftMain_topIn ul:nth-child(1),
  101. .leftMain_bottomIn ul:nth-child(1), .rightMain_bottom, .rightMain_bottomIn {
  102. height: 100%;
  103. }
  104. img {
  105. height: 0.2rem;
  106. width: 0.5rem;
  107. padding-top: 0.05rem;
  108. }
  109. .bg {
  110. padding-top: 0.01rem;
  111. }
  112. .title {
  113. height: 8%;
  114. text-shadow: #01db78 0px 2px 3px, #01db78 1px 0px 3px, #05d1fc 0px -2px 3px, #05d1fc -1px 0px 3px;
  115. }
  116. .TopName {
  117. vertical-align: middle;
  118. text-align: center;
  119. font-size: 30px;
  120. font-weight: 700;
  121. color: white;
  122. }
  123. .TopNameTime {
  124. vertical-align: middle;
  125. text-align: right;
  126. font-size: 10px;
  127. font-weight: 700;
  128. color: white;
  129. }
  130. /*td {
  131. box-sizing:inherit;
  132. }*/
  133. .rightMain_bottomIn .biaoge_list ul li {
  134. overflow: hidden;
  135. padding-right: 0px;
  136. }
  137. #div1 {
  138. display: flex;
  139. }
  140. #div1-C1 {
  141. font-size: 18px;
  142. margin-left: 115px;
  143. margin-top: 50px;
  144. }
  145. #div1-C1 div {
  146. margin-top: 20px;
  147. color: white;
  148. text-align: center;
  149. width: 130px;
  150. }
  151. #div1-C2 {
  152. font-size: 18px;
  153. margin-left: 15px;
  154. margin-top: 50px;
  155. }
  156. #div1-C2 div {
  157. margin-top: 23px;
  158. width: 200px;
  159. height: 20px;
  160. background-color: #0000CD;
  161. text-align: center;
  162. }
  163. #div1-C3 {
  164. font-size: 18px;
  165. margin-left: 15px;
  166. margin-top: 50px;
  167. }
  168. #div1-C3 div {
  169. margin-top: 20px;
  170. color: white;
  171. /*border-left:solid 1px #AFEEEE;
  172. border-right:solid 1px #AFEEEE;
  173. border-radius:25px;*/
  174. text-align: center;
  175. width: 30px;
  176. }
  177. #div3 {
  178. display: flex;
  179. color: white;
  180. }
  181. #div3-C1 {
  182. width: 50%;
  183. }
  184. #div3-C2 {
  185. width: 50%;
  186. }
  187. #div3-C1-C1 {
  188. text-align: center;
  189. width: 100%;
  190. font-size: 25px;
  191. background-color: #6495ED;
  192. }
  193. #div3-C1-C2 {
  194. margin-top: 10px;
  195. display: flex;
  196. }
  197. #div3-C1-C2-div1 {
  198. width: 25px;
  199. margin-left: 20px;
  200. }
  201. #div3-C1-C2-div2 {
  202. width: 25px;
  203. margin-left: 20px;
  204. }
  205. #div3-C2-C1 {
  206. text-align: center;
  207. width: 97%;
  208. font-size: 25px;
  209. background-color: #6495ED;
  210. }
  211. #div3-C2-C2 {
  212. margin-top: 10px;
  213. display: flex;
  214. }
  215. #div3-C2-C2-div1 {
  216. width: 25px;
  217. }
  218. #div3-C2-C2-div2 {
  219. width: 20px;
  220. }
  221. #div3-C1-C2 span {
  222. margin-left: 20px;
  223. text-align: center;
  224. }
  225. #div3-C2-C2 span {
  226. margin-left: 20px;
  227. text-align: center;
  228. }
  229. #div1-C2 {
  230. color: white;
  231. text-align: center;
  232. }
  233. </style>
  234. <script type="text/javascript">
  235. document.documentElement.style.fontSize =
  236. (document.documentElement.clientWidth / 768) * 100 + 'px'
  237. </script>
  238. </head>
  239. <body>
  240. <div class="bg">
  241. <table class="title">
  242. <tr>
  243. <td style="width:20%">
  244. <div class="TopNamelogo" id="TopNamelogo">
  245. <img src="~/Content/img/zhenxiang.png" border="0" class="logoclass" />
  246. @*<img src="~/Content/img/wechat.jpg" border="0" class="logoclass" />*@
  247. </div>
  248. </td>
  249. <td style="width:60%">
  250. <div class="TopName" id="TopName">进度看板</div>
  251. </td>
  252. <td style="width:20%">
  253. <div class="TopNameTime" id="TopNameTime"></div>
  254. </td>
  255. </tr>
  256. </table>
  257. @*<div class="title">执行看板</div>*@
  258. <div class="leftMain_top" style="height:90%">
  259. <div class="leftMain_topIn">
  260. <ul>
  261. <li class="LineLi" style="width:100%">
  262. <div class="rightMain_bottom">
  263. <div class="rightMain_bottomIn">
  264. @*<h3> 插件车间生产加工数据</h3>*@
  265. <div class="biaoge biaoge_list" id="marqueelist2"
  266. style="width: 100%; ">
  267. <div class="biaoge_listIn CustDiv1">
  268. <ul class="ul_title">
  269. <li>序号</li>
  270. <li>生产编号</li>
  271. <li>产品名称</li>
  272. <li>用户单位</li>
  273. <li>客户交货期</li>
  274. <li>生产状态</li>
  275. <li>进度</li>
  276. </ul>
  277. <div class="ul_list" id="marqueeCust2">
  278. <div class="ul_listIn ul_listInCust" id="marqueeCustCH2">
  279. </div>
  280. </div>
  281. </div>
  282. </div>
  283. <span class="border_bg_leftTop"></span>
  284. <span class="border_bg_rightTop"></span>
  285. <span class="border_bg_leftBottom"></span>
  286. <span class="border_bg_rightBottom"></span>
  287. </div>
  288. </div>
  289. </li>
  290. </ul>
  291. </div>
  292. </div>
  293. @*</div>*@
  294. <div style="clear: both"></div>
  295. </div>
  296. <script>
  297. var DataF = 30;// 300;//单位秒 //刷新数据时间
  298. var _BarWidth = "25%";
  299. var _barBorderRadius_M = 2;
  300. $(function () {
  301. getTime();
  302. GetDataZong();
  303. //刷新数据
  304. timer = setInterval(function () {
  305. GetDataZong();
  306. }, DataF * 1000);
  307. });
  308. function getTime() {
  309. var days = new Array("日", "一", "二", "三", "四", "五", "六");
  310. var currentDT = new Date();
  311. var y, m, date, day, hs, ms, ss, theDateStr;
  312. y = currentDT.getFullYear(); //四位整数表示的年份
  313. m = currentDT.getMonth() < 10 ? '0' + (currentDT.getMonth() + 1) : (currentDT.getMonth() + 1); //月
  314. date = currentDT.getDate() < 10 ? '0' + currentDT.getDate() : currentDT.getDate(); //日
  315. day = currentDT.getDay(); //星期
  316. hs = currentDT.getHours() < 10 ? '0' + currentDT.getHours() : currentDT.getHours(); //时
  317. ms = currentDT.getMinutes() < 10 ? '0' + currentDT.getMinutes() : currentDT.getMinutes(); //分
  318. ss = currentDT.getSeconds() < 10 ? '0' + currentDT.getSeconds() : currentDT.getSeconds(); //秒
  319. theDateStr = y + "-" + m + "-" + date + " " + hs + ":" + ms + ":" + ss;
  320. //填充到组件中
  321. $("#TopNameTime").text(theDateStr);
  322. // setTimeout 在执行时,是在载入后延迟指定时间后,去执行一次表达式,仅执行一次
  323. window.setTimeout(getTime, 1000);
  324. }
  325. function GetDataZong() {
  326. //echart1_1();
  327. GetArea1();
  328. GetArea2('marqueeCustCH2', 1);
  329. //GetZhiXing_MO("marqueeCustCH1", "30");
  330. //GetZhiXing_MO("marqueeCustCH2", "60");
  331. //GetZhiXing_MO("marqueeCustCH3", "90");
  332. //GetZhiXing_RCVUnInWare();
  333. // SetIfGo("marqueeCust1", "marqueeCustCH1", "marqueelist1");//判断是否需要滚动
  334. // SetIfGo("marqueeCust2", "marqueeCustCH2", "marqueelist2");//判断是否需要滚动
  335. // SetIfGo("marqueeCust3", "marqueeCustCH3", "marqueelist3");//判断是否需要滚动
  336. //SetIfGo("RCVUNINView", "RCVUNIN", "marqueelist4");//判断是否需要滚动
  337. }
  338. function SetIfGo(DivID, DivCHID, listID) {
  339. var ListDIV = $("#" + listID)[0].clientHeight;
  340. var H_marqueediv = $("#" + DivCHID)[0];
  341. //var H_marquee= H_marqueediv.clientHeight;
  342. var H_marqueeView = $("#" + DivID)[0].clientHeight;
  343. if ((ListDIV - 40) > H_marqueeView) {
  344. if (!$("#" + DivID).hasClass("animationNone")) {
  345. $("#" + DivID).addClass("animationNone");
  346. }
  347. if (!$("#" + DivCHID).hasClass("animationNone")) {
  348. $("#" + DivCHID).addClass("animationNone");
  349. }
  350. }
  351. else {
  352. if ($("#" + DivID).hasClass("animationNone")) {
  353. $("#" + DivID).removeClass("animationNone");
  354. }
  355. if ($("#" + DivCHID).hasClass("animationNone")) {
  356. $("#" + DivCHID).removeClass("animationNone");
  357. }
  358. }
  359. }
  360. //function echart1_1() {
  361. // // 基于准备好的dom,初始化echarts实例
  362. // var myChart = echarts.init(document.getElementById('echart1_1'));
  363. // var MonthArray = new Array();
  364. // var MonthPercent = new Array();
  365. // var MonthPercent_BZ = new Array();
  366. // $.ajax({
  367. // url: "/SRM/WatchPanel/GetZhiXing_OQC?XX=XX&" + Math.random(),
  368. // dataType: "json",
  369. // async: false,
  370. // success: function (data) {
  371. // if (data != false && data != null && data.length > 0) {
  372. // for (var i = 0; i < data.length; i++) {
  373. // MonthArray.push(data[i].月份);
  374. // MonthPercent.push(data[i].PercentNum);
  375. // MonthPercent_BZ.push(99.5);
  376. // }
  377. // //MonthPercent = [80, 75.23, 98, 40, 60,53];//测试
  378. // var colors = ['#9c90e7', '#4ff494', '#f2c290', '#FFD700', '#f3aaf5', '#fcfb68']
  379. // var colors2 = ['#6A5ACD', '#3D9140', '#ED9121', '#DAA569', '#A066D3', '#E3CF57'];
  380. // option = {
  381. // color: colors,
  382. // tooltip: {
  383. // trigger: 'axis',
  384. // axisPointer: { type: 'shadow' },
  385. // formatter: function (params) {
  386. // var showHtm = "";
  387. // showHtm = params[0].name + "月:" + '<br>' +
  388. // params[0].seriesName + ':' + params[0].data + "%" + '<br>' +
  389. // params[2].seriesName + ':' + params[2].data + "%";
  390. // return showHtm;
  391. // }
  392. // },
  393. // grid: {
  394. // "top": "15",
  395. // "right": "20",
  396. // "bottom": "20",
  397. // "left": "40",
  398. // },
  399. // legend: {
  400. // show: false,
  401. // },
  402. // "xAxis": [
  403. // {
  404. // data: MonthArray,
  405. // axisLine: { show: true, lineStyle: { color: "rgba(255,255,255,.9)", } },
  406. // axisTick: { show: true, },
  407. // axisLabel: {
  408. // textStyle: {
  409. // show: true,
  410. // //fontSize: 9,
  411. // color: "rgba(255,255,255,.9)",
  412. // },
  413. // },
  414. // },
  415. // ],
  416. // "yAxis": [
  417. // {
  418. // max: 100,
  419. // "type": "value",
  420. // axisTick: {
  421. // show: true,
  422. // lineStyle: {
  423. // show: true,
  424. // color: "rgba(255,255,255,.9)",
  425. // },
  426. // },
  427. // splitLine: { show: false, },
  428. // axisLine: {
  429. // show: true,
  430. // lineStyle: {
  431. // show: true,
  432. // //fontSize: 9,
  433. // color: "rgba(255,255,255,.9)",
  434. // },
  435. // },
  436. // axisLabel: {
  437. // show: true,
  438. // color: "rgba(255,255,255,.9)"
  439. // },
  440. // axisLine: {
  441. // show: true,
  442. // lineStyle: {
  443. // show: true,
  444. // color: "rgba(255,255,255,.9)",
  445. // },
  446. // },
  447. // }
  448. // ],
  449. // "series": [
  450. // {
  451. // "name": "合格率",
  452. // "type": "bar",
  453. // "data": MonthPercent,
  454. // barWidth: _BarWidth,
  455. // "itemStyle": {
  456. // "normal": {
  457. // barBorderRadius: _barBorderRadius_M,
  458. // //color: function (params)
  459. // //{
  460. // // return colors[params.dataIndex];
  461. // //},
  462. // color: function (params) {
  463. // return new echarts.graphic.LinearGradient(
  464. // 0,
  465. // 0,
  466. // 0,
  467. // 1,
  468. // [
  469. // { offset: 0, color: colors[params.dataIndex] },
  470. // { offset: 1, color: colors2[params.dataIndex] }
  471. // ]
  472. // )
  473. // },
  474. // barBorderRadius: [3, 3, 3, 3],
  475. // }
  476. // },
  477. // animation: false,
  478. // barGap: '-100%',
  479. // barCategoryGap: '40%',
  480. // label: {
  481. // show: true,
  482. // formatter: '{c}%',
  483. // },
  484. // }
  485. // ,
  486. // {
  487. // "name": "合格率",
  488. // "type": "line",
  489. // "data": MonthPercent,
  490. // barWidth: _BarWidth,
  491. // "itemStyle": {
  492. // "normal": {
  493. // color: "#96aef1",
  494. // }
  495. // },
  496. // label: {
  497. // show: false,
  498. // //position: 'outside',
  499. // formatter: '{c}%',
  500. // },
  501. // }
  502. // ,
  503. // {
  504. // "name": "标准值",
  505. // "type": "line",
  506. // "data": MonthPercent_BZ,
  507. // "itemStyle": {
  508. // "normal": {
  509. // }
  510. // },
  511. // label: {
  512. // show: false,
  513. // //position: 'outside',
  514. // formatter: '{c}%',
  515. // }
  516. // },
  517. // ]
  518. // };
  519. // myChart.setOption(option);
  520. // }
  521. // else {
  522. // return null;
  523. // }
  524. // },
  525. // error: function (aa) {
  526. // return null;
  527. // }
  528. // });
  529. //}
  530. //区域一
  531. function GetArea1() {
  532. $.ajax({
  533. url: "/SRM/WatchPanel/GetAreal1",
  534. dataType: "json",
  535. async: false,
  536. success: function (data) {
  537. if (data != false && data != null) {
  538. //月度生产 月度发车 上月实际生产 月度实际发车 上月完成数量 上上月完成数量
  539. $("#mothPlan").html(data[0].月度生产);
  540. $("#motnSales").html(data[0].月度发车);
  541. $("#lastMothSales").html(data[0].上月度发车);
  542. $("#yearSales").html(data[0].年度发车);
  543. } else {
  544. $("#" + marqueeID).html("");
  545. }
  546. },
  547. error: function (aa) {
  548. }
  549. });
  550. }
  551. function GetArea3() {
  552. // 基于准备好的dom,初始化echarts实例
  553. //var MonthArray = new Array();
  554. //var MonthPercent = new Array();
  555. //var MonthPercent_BZ = new Array();
  556. $.ajax({
  557. url: "/SRM/WatchPanel/GetOutput?XX=XX&" + Math.random(),
  558. dataType: "json",
  559. async: false,
  560. success: function (data) {
  561. console.log(data);
  562. if (data != false && data != null && data.length > 0) {
  563. var value = 0;
  564. var value1 = 0;
  565. var value2 = 0;
  566. var value3 = 0;
  567. var value4 = 0;
  568. var value5 = 0;
  569. var value6 = 0;
  570. var value7 = 0;
  571. for (var i = 0; i < data.length; i++) {
  572. value = data[i].上月度生产;
  573. value1 = data[i].上月完成;
  574. value2 = data[i].前月度生产;
  575. value3 = data[i].前月完成;
  576. value4 = data[i].上月比;
  577. value5 = data[i].前月比;
  578. value6 = data[0].前月;
  579. value7 = data[0].上月;
  580. }
  581. $("#div3-C1-C1").html(value7 + "月完成率");
  582. $("#div3-C2-C1").html(value6 + "月完成率");
  583. $("#div3-C1-C2-div1").html(value3);
  584. $("#lastMothPlan").html(value3);
  585. $("#yearProduct").html(data[0].年度生产);
  586. $("#div3-C1-C2-div2").html(value2);
  587. $("#div3-C2-C2-div1").html(value1);
  588. $("#div3-C2-C2-div2").html(value);
  589. //MonthPercent = [80, 75.23, 98, 40, 60,53];//测试
  590. var data = [value5, value5, value5];
  591. var option3 = {
  592. title: [
  593. {
  594. text: value7 + '月完成率',
  595. x: '22%',
  596. y: '90%',
  597. textStyle: {
  598. fontSize: 14,
  599. fontWeight: '100',
  600. color: '#5dc3ea',
  601. lineHeight: 16,
  602. textAlign: 'center',
  603. },
  604. },
  605. {
  606. text: value6 + '月完成率',
  607. x: '76%',
  608. y: '90%',
  609. textStyle: {
  610. fontSize: 14,
  611. fontWeight: '100',
  612. color: '#5dc3ea',
  613. lineHeight: 16,
  614. textAlign: 'center',
  615. },
  616. },
  617. ],
  618. series: [
  619. {
  620. type: 'liquidFill',
  621. radius: '85%',
  622. center: ['30%', '48%'],
  623. color: [
  624. {
  625. type: 'linear',
  626. x: 0,
  627. y: 0,
  628. x2: 0,
  629. y2: 1,
  630. colorStops: [
  631. {
  632. offset: 0,
  633. color: '#446bf5',
  634. },
  635. {
  636. offset: 1,
  637. color: '#0000FF',
  638. },
  639. ],
  640. globalCoord: false,
  641. },
  642. ],
  643. data: [value5, value5, value5], // data个数代表波浪数
  644. backgroundStyle: {
  645. borderWidth: 1,
  646. color: 'RGBA(51, 66, 127, 0.7)',
  647. },
  648. label: {
  649. normal: {
  650. textStyle: {
  651. fontSize: 14,
  652. color: '#fff',
  653. },
  654. },
  655. },
  656. outline: {
  657. // show: false
  658. borderDistance: 0,
  659. itemStyle: {
  660. borderWidth: 6,
  661. borderColor: '#0000FF',
  662. },
  663. },
  664. },
  665. { //第二个球的填充
  666. type: 'liquidFill',
  667. radius: '85%',
  668. center: ['84%', '45%'],
  669. color: [
  670. {
  671. type: 'linear',
  672. x: 0,
  673. y: 0,
  674. x2: 0,
  675. y2: 1,
  676. colorStops: [
  677. {
  678. offset: 0,
  679. color: '#2aa1e3',
  680. },
  681. {
  682. offset: 1,
  683. color: '#08bbc9',
  684. },
  685. ],
  686. globalCoord: false,
  687. },
  688. ],
  689. data: [value4, value4, value4], // data个数代表波浪数
  690. backgroundStyle: {
  691. borderWidth: 1,
  692. color: 'RGBA(51, 66, 127, 0.7)',
  693. },
  694. label: {
  695. normal: {
  696. textStyle: {
  697. fontSize: 28,
  698. color: '#fff',
  699. },
  700. },
  701. },
  702. outline: {
  703. // show: false
  704. borderDistance: 0,
  705. itemStyle: {
  706. borderWidth: 6,
  707. borderColor: '#08bbc9',
  708. },
  709. },
  710. },
  711. ],
  712. };
  713. myChartArea3.setOption(option3);
  714. }
  715. else {
  716. return null;
  717. }
  718. },
  719. error: function (aa) {
  720. return null;
  721. }
  722. });
  723. }
  724. function GetArea2(marqueeID, ItemNumber) {
  725. $.ajax({
  726. url: "/SRM/WatchPanel/GetProductProgress?ItemNumber=" + ItemNumber + "&" + Math.random(),
  727. dataType: "json",
  728. async: false,
  729. success: function (data) {
  730. if (data != false && data != null) {
  731. var html = "";
  732. for (var i = 0; i < data.length; i++) {
  733. html += '<ul class="ul_con">';
  734. html += '<li>' + data[i].序号 + '</li>';
  735. html += '<li>' + data[i].销售车辆号 + '</li><li>' + data[i].产品名称 + '</li><li>' + data[i].用户单位 + '</li>';
  736. html += '<li>' + data[i].客户交货期 + '</li><li>' + data[i].生产状态 + '</li>';
  737. html += '<li>' + data[i].进度 + '</li></ul>';
  738. }
  739. $(".ul_listInCust").css("animation-duration", data.length * 1.3 + "s");
  740. $("#" + marqueeID).html(html);
  741. // Set background color of odd-indexed ul elements to black
  742. $("#" + marqueeID + " ul:nth-child(odd)").css("background-color", "rgba(0, 1, 0, 0.1)");
  743. } else {
  744. $("#" + marqueeID).html("");
  745. }
  746. },
  747. error: function (aa) {
  748. // Handle error
  749. }
  750. });
  751. }
  752. function GetZhiXing_RCVUnInWare() {
  753. $.ajax({
  754. url: "/SRM/WatchPanel/GetZhiXing_RCVUnInWare?XX=XX&" + Math.random(),
  755. dataType: "json",
  756. async: false,
  757. success: function (data) {
  758. if (data != false && data != null && data.length > 0) {
  759. var html = "";
  760. for (var i = 0; i < data.length; i++) {
  761. html += ' <ul class="ul_con"> <li >' + data[i].LOTNO + '</li> <li >' +
  762. data[i].送货单号 + '</li>';
  763. html += ' <li >' + data[i].采购订单号 + '</li> <li >' + data[i].物料编码 + '</li>';
  764. html += ' <li >' + data[i].物料名称 + '</li> <li >' + data[i].数量 + '</li> ';
  765. html += ' <li >' + data[i].检验人 + '</li> </ul> ';
  766. }
  767. html += "</ul>";
  768. $("#RCVUNIN").html(html);
  769. }
  770. else {
  771. $("#RCVUNIN").html("");
  772. }
  773. },
  774. error: function (aa) {
  775. }
  776. });
  777. }
  778. </script>
  779. </body>
  780. </html>