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.
 
 
 
 

606 lines
19 KiB

  1. var jtone=document.getElementById('jtone');
  2. var jtsec=document.getElementById('jtsec');
  3. var LastMonth=document.getElementById('LastMonth');
  4. var NowMonth=document.getElementById('NowMonth');
  5. var NowYear=document.getElementById('NowYear');
  6. var futureMonth=document.getElementById('futureMonth');
  7. var rili=document.getElementById('rili');
  8. var kc=document.getElementById('kc');
  9. //var imgs = $('#rili').is('img');
  10. var imgs=rili.getElementsByTagName('img');
  11. var quan=document.getElementById('quan');
  12. var selectweek=document.getElementById('selectweek');
  13. //var iptweek = $('#rili').is('input');
  14. var iptweek=selectweek.getElementsByTagName('input');
  15. //var iptrili = $('#rili').is('input');
  16. var iptrili=rili.getElementsByTagName('input');
  17. var kg=document.getElementById('kg');
  18. var rkc=document.getElementById('rkc');
  19. var rcg=document.getElementById('rcg');
  20. var rls=document.getElementById('rls');
  21. var rqd=document.getElementById('rqd');
  22. var crsele1=document.getElementById('crsele1');
  23. //var opt1 = $('#crsele1').is('option');
  24. var opt1=crsele1.getElementsByTagName('option');
  25. var crsele2=document.getElementById('crsele2');
  26. //var opt2 = $('#crsele2').is('option');
  27. var opt2=crsele2.getElementsByTagName('option');
  28. var aa='<div class="xk"><div><span>[day_info]</span><input class="se allse xian" type="checkbox"></div><div class="kc" id="kc"><span>[sell]</span><span>/</span><span >[all]</span><span style="font-size:10px; margin-left:10px;">[type]</span><img class="switchs" index="1" src="images/close.jpg" alt=""></div><div class="jg"><span>采购:</span><span>[purchasing price]</span></div><div class="jg"><span>分销:</span><span>[distribution price]</span></div><div class="jg"><span>零售:</span><span>[retail price]</span></div></div>'
  29. var pro_names_ary = new Array();
  30. var pro_names_count = '';
  31. var prod_id = '';
  32. var ttttttt='';
  33. var product_name = document.getElementById("product_name_search");
  34. window.onload=function(){
  35. }
  36. //加月份
  37. function addMonth () {
  38. var LM=parseInt(LastMonth.innerHTML);
  39. var NM=parseInt(NowMonth.innerHTML);
  40. var fM=parseInt(futureMonth.innerHTML);
  41. var NY=parseInt(NowYear.innerHTML);
  42. if (LM==1) {LM=13};
  43. if (LM==12) {NM=13; NY=NY-1};
  44. if (fM==1) {fM=13};
  45. LM--;
  46. NM--;
  47. fM--;
  48. LastMonth.innerHTML=LM;
  49. NowMonth.innerHTML=NM;
  50. futureMonth.innerHTML=fM;
  51. NowYear.innerHTML=NY;
  52. }
  53. //日历相关 减月份
  54. function MinusMonth () {
  55. var LM=parseInt(LastMonth.innerHTML);
  56. var NM=parseInt(NowMonth.innerHTML);
  57. var fM=parseInt(futureMonth.innerHTML);
  58. var NY=parseInt(NowYear.innerHTML);
  59. if (fM==12) {fM=0};
  60. if (LM==12) {LM=0};
  61. if (fM==1) {NY=NY+1;NM=0};
  62. LM++;
  63. NM++;
  64. fM++;
  65. LastMonth.innerHTML=LM;
  66. NowMonth.innerHTML=NM;
  67. futureMonth.innerHTML=fM;
  68. NowYear.innerHTML=NY;
  69. }
  70. jtone.onclick=function () {
  71. addMonth();
  72. rili.innerHTML=aa;
  73. getjson(NowYear.innerHTML,NowMonth.innerHTML);
  74. // SW();
  75. }
  76. jtsec.onclick=function () {
  77. MinusMonth();
  78. rili.innerHTML=aa;
  79. getjson(NowYear.innerHTML,NowMonth.innerHTML);
  80. }
  81. var m=0;
  82. //右下角开关
  83. kg.onclick=function (){
  84. // if (m==0) {
  85. // kg.src="images/close.jpg";
  86. // $('#kaiguanStyle').val('144');
  87. // m=1;
  88. // }else{
  89. // kg.src="images/open.jpg";
  90. // $('#kaiguanStyle').val('143');
  91. // m=0;
  92. // }
  93. var switch_val = $('#kaiguanStyle').val();
  94. if(switch_val==144){
  95. kg.src='images/open.jpg';
  96. $('#kaiguanStyle').val('143');
  97. $('#see_switch').html('开');
  98. }else{
  99. kg.src='images/close.jpg';
  100. $('#kaiguanStyle').val('144');
  101. $('#see_switch').html('关');
  102. }
  103. }
  104. //控制开关函数
  105. //function SW(data) {
  106. // for(var i = 0; i < imgs.length; i++){
  107. // imgs[i].index=parseInt(data["calender_Info"][i]["switchStyle"]);
  108. // }
  109. // for (var n = 0; n < imgs.length; n++) {
  110. // imgs[n].onclick=function (){
  111. // for (var i = 0; i < imgs.length; i++) {
  112. // if(imgs[i]==this&&imgs[i].index=="开"){
  113. // imgs[i].src="images/open.jpg";
  114. // imgs[i].index=2;
  115. // }else if(imgs[i]==this&&imgs[i].index=="关"){
  116. // imgs[i].src="images/close.jpg";
  117. // imgs[i].index=1;
  118. // }
  119. // };
  120. // }
  121. // };
  122. //}
  123. //控制打钩
  124. function Check(){
  125. quan.checked=false;
  126. for (var i = 0; i < iptweek.length; i++) {
  127. iptweek[i].checked=false;
  128. };
  129. for (var i = 0; i < iptrili.length; i++) {
  130. iptrili[i].checked=false;
  131. };
  132. quan.onclick=function (){
  133. var sss=0
  134. if (quan.checked==true) {
  135. for (var i = 0; i < iptweek.length; i++) {
  136. iptweek[i].checked=true;
  137. };
  138. for (var i = 0; i < iptrili.length; i++) {
  139. iptrili[i].checked=true;
  140. if (iptrili[i].className!="se allse xian") {
  141. sss=i;
  142. };
  143. };
  144. sss=sss+1;
  145. var mm=rili.getElementsByTagName("input")[sss];
  146. var youbian1="";
  147. var youbian2="";
  148. // youbian1=mm.parentNode.parentNode.children[1].children[0].innerHTML;
  149. // youbian1+=mm.parentNode.parentNode.children[1].children[1].innerHTML;
  150. youbian1+=mm.parentNode.parentNode.children[1].children[2].innerHTML;
  151. rkc.value=youbian1;
  152. youbian2=mm.parentNode.parentNode.children[1].children[3].innerHTML;
  153. for (var i = 0; i < opt1.length; i++) {
  154. if(opt1[i].innerHTML==youbian2){opt1[i].selected=true;};
  155. };
  156. rcg.value=mm.parentNode.parentNode.children[2].children[1].innerHTML;
  157. rfx.value=mm.parentNode.parentNode.children[3].children[1].innerHTML;
  158. rls.value=mm.parentNode.parentNode.children[4].children[1].innerHTML;
  159. kg.src=mm.parentNode.parentNode.children[1].children[4].src;
  160. }else{
  161. for (var i = 0; i < iptweek.length; i++) {
  162. iptweek[i].checked=false;
  163. };
  164. for (var i = 0; i < iptrili.length; i++) {
  165. iptrili[i].checked=false;
  166. };
  167. }
  168. }
  169. for (var i = 0; i < iptweek.length; i++) {
  170. iptweek[i].onclick=function (){
  171. for (var i = 0; i < iptweek.length; i++) {
  172. if(iptweek[i]==this&&iptweek[i].checked==true){
  173. for (var j = i; j < iptrili.length; j=j+7) {
  174. iptrili[j].checked=true;
  175. };
  176. }else if(iptweek[i]==this&&iptweek[i].checked==false){
  177. for (var j = i; j < iptrili.length; j=j+7) {
  178. iptrili[j].checked=false;
  179. };
  180. }
  181. }
  182. }
  183. };
  184. }
  185. //控制右边修改框
  186. function Changecontent (){
  187. for (var i = 0; i < iptrili.length; i++) {
  188. iptrili[i].onclick=function (){
  189. var youbian1="";
  190. var youbian2="";
  191. // youbian1=this.parentNode.parentNode.children[1].children[0].innerHTML;
  192. // youbian1+=this.parentNode.parentNode.children[1].children[1].innerHTML;
  193. youbian1+=this.parentNode.parentNode.children[1].children[2].innerHTML;
  194. rkc.value=youbian1;
  195. youbian2=this.parentNode.parentNode.children[1].children[3].innerHTML;
  196. for (var i = 0; i < opt1.length; i++) {
  197. if(opt1[i].innerHTML==youbian2){opt1[i].selected=true;};
  198. };
  199. rcg.value=this.parentNode.parentNode.children[2].children[1].innerHTML;
  200. rfx.value=this.parentNode.parentNode.children[3].children[1].innerHTML;
  201. rls.value=this.parentNode.parentNode.children[4].children[1].innerHTML;
  202. kg.src=this.parentNode.parentNode.children[1].children[4].src;
  203. // if(kg.src == "./images/open.jpg"){
  204. // var t = $('#see_switch').html('开');
  205. // }else{
  206. // var t1 = $('#see_switch').html('关');
  207. // }
  208. var a_str = kg.src;
  209. if(a_str.indexOf("open.jpg")>0 ){
  210. var t = $('#see_switch').html('开');
  211. }else{
  212. var t1 = $('#see_switch').html('关');
  213. }
  214. }
  215. };
  216. rqd.onclick=function(){
  217. var xian = $('.xian');
  218. var dateStr = ''
  219. for(var k = 0; k<xian.length;k++){
  220. var nowdate = getDateTime(0);
  221. var seldate = xian[k].getAttribute('id');
  222. if(seldate>=nowdate && xian[k].checked==true){
  223. dateStr = dateStr+xian[k].getAttribute('id')+',';
  224. }
  225. }
  226. dateStr = dateStr.substr(0,dateStr.length-1);
  227. if_can_send(dateStr);
  228. }
  229. }
  230. //判断是否可以提交数据
  231. function if_can_send(dateTimeStr){
  232. var prod_id = getPar("prod_id");
  233. //库存
  234. var kucun = $('#rkc').val();
  235. //采购
  236. var caigou = $('#rcg').val();
  237. //分销
  238. var fenxiao = $('#rfx').val();
  239. //零售
  240. var lingshou = $('#rls').val();
  241. //采购类型
  242. var caigouStyle = $('#crsele1').val();
  243. //早餐
  244. var zaocan = $('#crsele2').val();
  245. var kaiguan = $('#kaiguanStyle').val();
  246. var parStr = caigouStyle+','+kucun+','+caigou+','+fenxiao+','+lingshou+','+zaocan+','+kaiguan;
  247. if (caigou&&kucun&&fenxiao&&lingshou&&caigouStyle&&zaocan&&dateTimeStr){
  248. $.ajax({
  249. // var urlStr = 'http://temp.zhizhuchuxing.com/st-xm/Api/hotel_stock.php'
  250. url:'./st-xm/Api/hotel_stock.php', //请求地址
  251. type: "post", //请求方式
  252. data: {method:'add',prod_id:prod_id,info:parStr,dateTime:dateTimeStr}, //请求参数
  253. async:false,
  254. dataType: "json",
  255. success: function (data) {
  256. if(data.code == 0){
  257. var xian = $('.xian');
  258. for(var k = 0; k<xian.length;k++){
  259. var nowdate = getDateTime(0);
  260. var seldate = xian[k].getAttribute('id');
  261. if(xian[k].checked==true && seldate>=nowdate){
  262. xian[k].parentNode.parentNode.children[2].children[1].innerHTML=rcg.value;
  263. xian[k].parentNode.parentNode.children[2].children[1].innerHTML=rcg.value;
  264. xian[k].parentNode.parentNode.children[3].children[1].innerHTML=rfx.value;
  265. xian[k].parentNode.parentNode.children[4].children[1].innerHTML=rls.value;
  266. xian[k].parentNode.parentNode.children[1].children[4].src=kg.src;
  267. // alert(kg.value);
  268. if(crsele1.value == 229){
  269. xian[k].parentNode.parentNode.children[1].children[3].innerHTML='现询';
  270. }else if(crsele1.value == 230){
  271. xian[k].parentNode.parentNode.children[1].children[3].innerHTML='保留';
  272. }else if(crsele1.value == 228){
  273. xian[k].parentNode.parentNode.children[1].children[3].innerHTML='买断';
  274. }else{
  275. }
  276. //开关状态
  277. // xian[k].parentNode.parentNode.children[1].children[3].innerHTML='====';
  278. // alert(crsele1.value);
  279. // xian[k].parentNode.parentNode.children[1].children[0].innerHTML=rkc.value.split("/")[0];
  280. xian[k].parentNode.parentNode.children[1].children[2].innerHTML=rkc.value;
  281. }else{
  282. }
  283. }
  284. alert('保存成功');
  285. }
  286. },
  287. fail: function (status) {
  288. // 此处放失败后执行的代码
  289. alert('添加失败');
  290. }
  291. });
  292. }else{
  293. alert("信息输入不完成!");
  294. }
  295. }
  296. $(document).ready(function(){
  297. var n=new Date();
  298. var y=n.getFullYear();
  299. var m=n.getMonth();
  300. NowYear.innerHTML=y;
  301. NowMonth.innerHTML=m+1;
  302. LastMonth.innerHTML=m;
  303. futureMonth.innerHTML=m+2;
  304. prod_id=getPar('prod_id');
  305. var hotel_id = getPar('hotelName');
  306. get_hotel_name(prod_id,hotel_id);
  307. getjson(NowYear.innerHTML,NowMonth.innerHTML);
  308. ttttttt=rili.innerHTML;
  309. })
  310. function get_hotel_name(prod_id,hotel_id){
  311. var prod_ida=getPar('prod_id');
  312. var hotel_ida = getPar('hotelName');
  313. $.getJSON("./st-xm/Api/calender_productName.php?hotel_id="+hotel_ida+'&prod_id='+prod_ida,function(data){
  314. $('#product').html(data['hotelName']);
  315. $('#pro_name').val(data['select_prod_name']);
  316. $('#pro_name_value').val(prod_ida);
  317. pro_names_count = data['detailInfo'].length;
  318. });
  319. }
  320. //检测输入框的变化
  321. function hotelname_change(value){
  322. var div = document.getElementById("product_name_search");
  323. div.style.display = "";
  324. // var valueStr = 'http://192.168.6.185/system2.0/zsq/add_hotel.php?hotelName='+value;
  325. var valueStr = './st-xm/Api/products_search.php?productName='+value;
  326. var htmlStr = "";
  327. $.getJSON(valueStr, function(data) {
  328. if (data['code'] != "0") {
  329. alert(data.info);
  330. return;
  331. }
  332. // 得到数据中的数据
  333. var list = data['pro_names'];
  334. var productName = list['prod_name'];
  335. for (var i = 0; i < list.length; i++) {
  336. console.log(list[i]['prod_name'])
  337. htmlStr += '<div class="div_input" onclick="click_select_supplier(' + '\'' + list[i].prod_name + '\',\'' + list[i].prod_id+ '\')">' + list[i].prod_name + '</div>';
  338. }
  339. product_name.innerHTML = htmlStr;
  340. });
  341. }
  342. function click_select_supplier(name,id){
  343. var pro_name = document.getElementById("pro_name");
  344. pro_name.value = name;
  345. // var pro_name_value = document.getElementById("pro_name_value");
  346. // console.log(pro_name_value);
  347. // console.log(id);
  348. // pro_name_value.value = id;
  349. var div = document.getElementById("product_name_search");
  350. div.style.display = "none";
  351. var htl_id = getPar('hotelName');
  352. var year = $('#NowYear').html();
  353. var month = $('#NowMonth').html();
  354. if(month.length == 1){
  355. month="0"+month;
  356. }
  357. var dateStr = year+'-'+month;
  358. var listURL = "ccss.html?prod_id=" + id+"&hotelName="+htl_id;
  359. // 跳转前将URL编码
  360. listURL = encodeURI(listURL);
  361. window.location.href = listURL;
  362. }
  363. function getjson (year,month){
  364. if(month.length==1){
  365. month="0"+month;
  366. }
  367. var prod_id=getPar('prod_id');
  368. var hotel_name = getPar('hotelName');
  369. // $.getJSON("riliJson.html?rand="+Math.random()+"&date="+year+"."+month,function(data){
  370. $.getJSON("./st-xm/Api/calender_productInfo.php?productID="+prod_id+'&dateTime='+year+'-'+month,function(data){
  371. $("#product").innerHTML=data["calender_Info"];
  372. ProcessingData (data,year,month);
  373. // SW(data);
  374. Check();
  375. Changecontent ();
  376. get_hotel_name();
  377. // hotelname_change();
  378. });
  379. kg.src = "images/close.jpg";
  380. $('#see_switch').html('关');
  381. }
  382. function ProcessingData (data,year,month){
  383. var firDay = new Date(year,month-1).getDay();
  384. var newstr="";
  385. for(var i=0;i<firDay;i++){
  386. newstr += "<div class='xk kong'><input style='display:none;' type='checkbox' /><div></div></div>";
  387. };
  388. for(var i=0;i<data["calender_Info"].length;i++){
  389. var nullstr = ttttttt;
  390. nullstr=nullstr.replace("[开关状态]",data["calender_Info"][i]["can_sale"]);
  391. nullstr=nullstr.replace("[day_info]",data["calender_Info"][i]["dateTime"]);
  392. nullstr=nullstr.replace("[sell]",data["calender_Info"][i]["saleCount"]);
  393. nullstr=nullstr.replace("[all]",data["calender_Info"][i]["totalCount"]);
  394. console.log(data["calender_Info"][i]["totalCount"]+data["calender_Info"][i]["saleCount"]);
  395. nullstr=nullstr.replace("[type]",data["calender_Info"][i]["buyStyle"]);
  396. nullstr=nullstr.replace("[purchasing price]",data["calender_Info"][i]["buyPrice"]);
  397. nullstr=nullstr.replace("[distribution price]",data["calender_Info"][i]["distributionPrice"]);
  398. nullstr=nullstr.replace("[retail price]",data["calender_Info"][i]["retailPrice"]);
  399. // var str = data["calender_Info"][i]["dateTime"].substr(0,7);
  400. nullstr=nullstr.replace("[xian_check]",data["calender_Info"][i]["dateTime"]);
  401. var img_src="";
  402. if(data["calender_Info"][i]["can_sale"]=="143"){
  403. img_src='src="images/open.jpg"';
  404. $('#see_switch').html('开');
  405. }else{
  406. img_src='src="images/close.jpg"';
  407. $('#see_switch').html('关');
  408. }
  409. nullstr=nullstr.replace('src="images/close.jpg"',img_src);
  410. newstr+=nullstr;
  411. };
  412. rili.innerHTML=newstr;
  413. var xian = $('.xian');
  414. for(var k = 0; k<xian.length;k++){
  415. var nowdate = getDateTime(0);
  416. var seldate = xian[k].getAttribute('id');
  417. var nowdate1 = new Date(nowdate.replace(/\-/g, '/'));
  418. var seldate1 = new Date(seldate.replace(/\-/g, '/'));
  419. if(seldate1<nowdate1){
  420. // xian[k].closest('.xk').css('background-color',"red");
  421. xian[k].closest('.xk').style.backgroundColor='lightgray';
  422. xian[k].setAttribute('disabled','disabled');
  423. xian[k].style.display = 'none';
  424. }else{
  425. }
  426. }
  427. }
  428. function getPar(par){
  429. //获取当前URL
  430. var local_url = document.location.href;
  431. local_url = decodeURI(local_url);
  432. //获取要取得的get参数位置
  433. var get = local_url.indexOf(par +"=");
  434. if(get == -1){
  435. return false;
  436. }
  437. //截取字符串
  438. var get_par = local_url.slice(par.length + get + 1);
  439. //判断截取后的字符串是否还有其他get参数
  440. var nextPar = get_par.indexOf("&");
  441. if(nextPar != -1){
  442. get_par = get_par.slice(0, nextPar);
  443. }
  444. return get_par;
  445. }
  446. function getDateTime(nTypeFlag) {
  447. var tNowTime = new Date();
  448. var myYear = ';' + tNowTime.getFullYear() + ';';
  449. var myMonth = ';' + (tNowTime.getMonth() + 1 - 0) + ';';
  450. var myDay = ';' + tNowTime.getDate() + ';';
  451. var myHour = ';' + tNowTime.getHours() + ';';
  452. var myMinu = ';' + tNowTime.getMinutes() + ';';
  453. var mySecond = ';' + tNowTime.getSeconds() + ';';
  454. if (myMonth.length < 4) myMonth = '0' + myMonth;
  455. if (myDay.length < 4) myDay = '0' + myDay;
  456. if (myHour.length < 4) myHour = '0' + myHour;
  457. if (myMinu.length < 4) myMinu = '0' + myMinu;
  458. if (mySecond.length < 4) mySecond = '0' + mySecond;
  459. var cNewTimeStr;
  460. switch (nTypeFlag + 1 - 1) {
  461. case 0:
  462. cNewTimeStr = myYear + '-' + myMonth + '-' + myDay;
  463. break;
  464. case 1:
  465. cNewTimeStr = myYear + myMonth + myDay;
  466. break;
  467. case 2:
  468. cNewTimeStr = myHour + ':' + myMinu + ':' + mySecond;
  469. break;
  470. case 3:
  471. cNewTimeStr = myHour + myMinu + mySecond;
  472. break;
  473. case 4:
  474. cNewTimeStr = myYear + myMonth + myDay + myHour + myMinu + mySecond;
  475. break;
  476. case 5:
  477. cNewTimeStr = myYear + '年' + myMonth + '月' + myDay + '日';
  478. break;
  479. case 6:
  480. cNewTimeStr = myYear;
  481. break;
  482. case 7:
  483. cNewTimeStr = myYear + '-' + myMonth;
  484. break;
  485. default:
  486. cNewTimeStr = myYear + '-' + myMonth + '-' + myDay + ' ' + myHour + ':' + myMinu + ':' + mySecond;
  487. break;
  488. }
  489. cNewTimeStr = cNewTimeStr.replace(/;/g, "");
  490. return cNewTimeStr;
  491. }
  492. //删除库存
  493. function delInfo(){
  494. // del_db_info();
  495. var dateStr = '';
  496. var xian = $('.xian');
  497. for(var k = 0; k<xian.length;k++){
  498. var nowdate = getDateTime(0);
  499. var seldate = xian[k].getAttribute('id');
  500. if(seldate>=nowdate && xian[k].checked==true){
  501. dateStr = dateStr+xian[k].getAttribute('id')+',';
  502. }
  503. }
  504. dateStr = dateStr.substr(0,dateStr.length-1);
  505. if(dateStr!=''){
  506. del_db_info(dateStr);
  507. }else{
  508. alert('未选择删除产品');
  509. }
  510. }
  511. //删除数据库信息
  512. function del_db_info(dateStr){
  513. var prod_id = getPar("prod_id");
  514. $.ajax({
  515. url:'./st-xm/Api/hotel_stock.php', //请求地址
  516. type: "post", //请求方式
  517. data: {method:'del',prod_id:prod_id,dateTime:dateStr}, //请求参数
  518. async:false,
  519. dataType: "json",
  520. success: function (data) {
  521. if(data.code == 0){
  522. alert("删除成功");
  523. del_cur_info();
  524. }
  525. },
  526. fail: function (status) {
  527. alert('删除失败');
  528. }
  529. });
  530. }
  531. //更改本地页面
  532. function del_cur_info() {
  533. var xian = $('.xian');
  534. //库存
  535. var kucun = $('#rkc').val('');
  536. //采购
  537. var caigou = $('#rcg').val('');
  538. //分销
  539. var fenxiao = $('#rfx').val('');
  540. //零售
  541. var lingshou = $('#rls').val('');
  542. for (var k = 0; k < xian.length; k++) {
  543. var nowdate = getDateTime(0);
  544. var seldate = xian[k].getAttribute('id');
  545. if (xian[k].checked == true && seldate >= nowdate) {
  546. xian[k].parentNode.parentNode.children[2].children[1].innerHTML = "";
  547. xian[k].parentNode.parentNode.children[2].children[1].innerHTML = "";
  548. xian[k].parentNode.parentNode.children[3].children[1].innerHTML = "";
  549. xian[k].parentNode.parentNode.children[4].children[1].innerHTML = "";
  550. // xian[k].parentNode.parentNode.children[1].children[4].src = "";
  551. xian[k].parentNode.parentNode.children[1].children[3].innerHTML = "";
  552. // xian[k].parentNode.parentNode.children[1].children[0].innerHTML=""
  553. xian[k].parentNode.parentNode.children[1].children[2].innerHTML="-";
  554. }
  555. }
  556. }