sendDatas.js 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. /**
  2. * 高度修复
  3. */
  4. // import curdPost from '@/business/platform/form/utils/custom/joinCURD.js'
  5. export default {
  6. methods: {
  7. /* 遍历配置,分发配置参数*/
  8. getMatchingData(matching){
  9. let matchArr = []
  10. // for (let i = 0; i < this.dataScope.length; i++) {
  11. // matchArr.push(this.relData[matching+this.dataScope[i]])
  12. // }
  13. // for (let i = 0; i < this.dataScope.length; i++) {
  14. if(typeof this.relData[matching+this.endDate] === "undefined"){
  15. matchArr.push(0)
  16. // console.log(matchArr,'1hiuhkj')
  17. }else{
  18. matchArr.push(this.relData[matching+this.endDate])
  19. // console.log('2nhkjhiuhkj')
  20. }
  21. // }
  22. return matchArr
  23. },
  24. getMatchingDataSame(matching){
  25. let matchArr = []
  26. // for (let i = 0; i < this.dataScope.length; i++) {
  27. // matchArr.push(this.relData[matching+'S'+this.dataScope[i]])
  28. // }
  29. // for (let i = 0; i < this.dataScope.length; i++) {
  30. if(typeof this.relData[matching+'S'+this.endDate] === "undefined"){
  31. matchArr.push(0)
  32. // console.log(matchArr,'1hiuhkj')
  33. }else{
  34. matchArr.push(this.relData[matching+'S'+this.endDate])
  35. // console.log('2nhkjhiuhkj')
  36. }
  37. // }
  38. return matchArr
  39. },
  40. getJiaoYanObjNum(){
  41. let name = []
  42. let val =[]
  43. let valAll = []
  44. let e = []
  45. let that = this
  46. let a=0
  47. let b=0
  48. let c=0
  49. // console.log('3423sdfsd',that.jiaoyanObj)
  50. if(that.jiaoyanObj.length === 0){
  51. val = [0]
  52. valAll = [0]
  53. e = [0]
  54. name = [0]
  55. }else{
  56. for (let i = 0; i < that.jiaoyanObj.length; i++) {
  57. let num=0
  58. let nameMid =''
  59. if (that.jiaoyanObj[i].t_mjsbjdxzjhzb===0) {
  60. num =0
  61. } else {
  62. num =Math.floor(that.jiaoyanObj[i].t_mjsbjdxzjhzbS/that.jiaoyanObj[i].t_mjsbjdxzjhzb * 10000) / 100
  63. }
  64. if (!that.jiaoyanObj[i].t_mjsbjdxzjhzbName) {
  65. name.push(that.jiaoyanObj[i].t_mjsbjdxzjhzbZhName)
  66. } else {
  67. nameMid=that.jiaoyanObj[i].t_mjsbjdxzjhzbZhName.split("—")
  68. if(nameMid.length===2){
  69. name.push(nameMid[1]+that.jiaoyanObj[i].t_mjsbjdxzjhzbName)
  70. }else{
  71. name.push(nameMid[0]+that.jiaoyanObj[i].t_mjsbjdxzjhzbName)
  72. }
  73. }
  74. valAll.push(that.jiaoyanObj[i].t_mjsbjdxzjhzb)
  75. val.push(that.jiaoyanObj[i].t_mjsbjdxzjhzbS)
  76. e.push(num)
  77. // name.push(that.jiaoyanObj[i].t_mjsbjdxzjhzbName)
  78. }
  79. }
  80. val.forEach( function(item){
  81. a += item ;
  82. });
  83. valAll.forEach( function(item){
  84. b += item ;
  85. });
  86. if(b===0){
  87. c=0
  88. }else{
  89. c= Math.floor(a/b * 10000) / 100
  90. }
  91. // console.log(val,valAll,e,name,a,b,c,"jsoi39")
  92. return {
  93. "t_mjsbjdxzjhzbNum" :{"date": this.endDate,"number": val, "numberAll": valAll, "val": e, "name": name, "valnum":a,"valAll":b,"valna":c},
  94. "config":this.getMyConfig("检测") //返回需要的对应参数
  95. }
  96. },
  97. gethechaObjNum(){
  98. let name = []
  99. let val =[]
  100. let valAll = []
  101. let e = []
  102. let that = this
  103. let a=0
  104. let b=0
  105. let c=0
  106. if(that.hechaObj.length === 0){
  107. val = [0]
  108. valAll = [0]
  109. e = [0]
  110. name = [0]
  111. }else{
  112. for (let i = 0; i < that.hechaObj.length; i++) {
  113. let nameMid = ''
  114. // let num=0
  115. if (!that.hechaObj[i].t_sbhcjlbZhname) {
  116. name.push(that.hechaObj[i].t_sbhcjlbName)
  117. } else {
  118. nameMid=that.hechaObj[i].t_sbhcjlbName.split("—")
  119. if(nameMid.length===2){
  120. name.push(nameMid[1]+that.hechaObj[i].t_sbhcjlbZhname)
  121. }else{
  122. name.push(nameMid[0]+that.hechaObj[i].t_sbhcjlbZhname)
  123. }
  124. }
  125. valAll.push(that.hechaObj[i].t_sbhcjlb)
  126. val.push(that.hechaObj[i].t_sbhcjlbS)
  127. // e.push(num)
  128. }
  129. }
  130. val.forEach( function(item){
  131. a += item ;
  132. });
  133. valAll.forEach( function(item){
  134. b += item ;
  135. });
  136. if(b===0){
  137. c=0
  138. }else{
  139. c= Math.floor(a/b * 10000) / 100
  140. }
  141. return {
  142. "t_sbhcjlbNum" :{"date": this.endDate,"number": val, "numberAll": valAll, "name": name,"valnum":a,"valAll":b,"valna":c},
  143. "config":this.getMyConfig("检测") //返回需要的对应参数
  144. }
  145. },
  146. getnengtliObjNum(){
  147. let name = []
  148. let val =[]
  149. let valAll = []
  150. let e = []
  151. let that = this
  152. let a=that.nengliObj[0].num
  153. let b=that.nengliObj[1].num
  154. let c=0
  155. console.log(that.nengliObj,'904380439034904343')
  156. // if(that.nengliObj.length === 0){
  157. // val = [0]
  158. // valAll = [0]
  159. // e = [0]
  160. // name = [0]
  161. // }else{
  162. // for (let i = 0; i < that.nengliObj.length; i++) {
  163. // // let num=0
  164. // // if (that.hechaObj[i].t_sbhcjlb===0) {
  165. // // num =0
  166. // // } else {
  167. // // num =Math.floor(that.hechaObj[i].t_sbhcjlbS/that.hechaObj[i].t_sbhcjlb * 10000) / 100
  168. // // }
  169. // // valAll.push(that.hechaObj[i].t_sbhcjlb)
  170. // val.push(that.nengliObj[i].num)
  171. // valAll.push(that.nengliObj[i].numS)
  172. // // e.push(num)
  173. // let nameMid = that.nengliObj[i].enname.split("—")
  174. // if(nameMid.length===2){
  175. // name.push(nameMid[1])
  176. // }else{
  177. // name.push(nameMid[0])
  178. // }
  179. // }
  180. // }
  181. // val.forEach( function(item){
  182. // a += item ;
  183. // });
  184. // valAll.forEach( function(item){
  185. // b += item ;
  186. // });
  187. if(b===0){
  188. c=0
  189. }else{
  190. c= Math.floor(b/a * 10000) / 100
  191. }
  192. return {
  193. "Num" :{"date": this.endDate,"number": val, "name": name,"numberAll":valAll,"valnum":a,"valAll":b,"valna":c},
  194. "config":this.getMyConfig("检测") //返回需要的对应参数
  195. }
  196. },
  197. getbiaozhunObjNum(){
  198. let name = []
  199. let val =[]
  200. let valAll = []
  201. let e = []
  202. let a=0
  203. let b=0
  204. let c=0
  205. let numm = 0
  206. let that = this
  207. if(that.biaozhunObj.length === 0){
  208. val = [0]
  209. valAll = [0]
  210. e = [0]
  211. name = [0]
  212. }else{
  213. for (let i = 0; i < that.biaozhunObj.length; i++) {
  214. // let num=0
  215. // if (that.hechaObj[i].t_sbhcjlb===0) {
  216. // num =0
  217. // } else {
  218. // num =Math.floor(that.hechaObj[i].t_sbhcjlbS/that.hechaObj[i].t_sbhcjlb * 10000) / 100
  219. // }
  220. // valAll.push(that.hechaObj[i].t_sbhcjlb)
  221. val.push(that.biaozhunObj[i].num)
  222. valAll.push(that.biaozhunObj[i].numS)
  223. // e.push(num)
  224. name.push(that.biaozhunObj[i].name)
  225. }
  226. }
  227. val.forEach( function(item){
  228. a += item ;
  229. });
  230. valAll.forEach( function(item){
  231. b += item ;
  232. });
  233. if (that.biaozhunTObj.length===0) {
  234. numm = 1
  235. } else {
  236. numm = Math.floor((12-that.biaozhunTObj[0].time)/3) + 1
  237. }
  238. a=a*numm
  239. // console.log(numm,'numm')
  240. if(b===0){
  241. c=0
  242. }else{
  243. c= Math.floor(b/a * 10000) / 100
  244. }
  245. return {
  246. "Num" :{"date": this.endDate,"number": val, "name": name, "numberAll": valAll,"valnum":a,"valAll":b,"valna":c},
  247. "config":this.getMyConfig("检测") //返回需要的对应参数
  248. }
  249. },
  250. getbzJunZhujNum(){
  251. let name = []
  252. let val =[]
  253. let valAll = []
  254. let e = []
  255. let a=0
  256. let b=0
  257. let c=0
  258. let numm = 0
  259. let that = this
  260. if(that.bzJunZhuObj.length === 0){
  261. val = [0]
  262. valAll = [0]
  263. e = [0]
  264. name = [0]
  265. }else{
  266. for (let i = 0; i < that.bzJunZhuObj.length; i++) {
  267. // let num=0
  268. // if (that.hechaObj[i].t_sbhcjlb===0) {
  269. // num =0
  270. // } else {
  271. // num =Math.floor(that.hechaObj[i].t_sbhcjlbS/that.hechaObj[i].t_sbhcjlb * 10000) / 100
  272. // }
  273. // valAll.push(that.hechaObj[i].t_sbhcjlb)
  274. val.push(that.bzJunZhuObj[i].num)
  275. valAll.push(that.bzJunZhuObj[i].numS)
  276. // e.push(num)
  277. name.push(that.bzJunZhuObj[i].name)
  278. }
  279. }
  280. val.forEach( function(item){
  281. a += item ;
  282. });
  283. valAll.forEach( function(item){
  284. b += item ;
  285. });
  286. if (that.bzJunZhuTObj.length===0) {
  287. numm = 1
  288. } else {
  289. numm = Math.floor((12-that.bzJunZhuTObj[0].time)/3) + 1
  290. }
  291. a=a*numm
  292. // console.log(numm,'numm')
  293. if(b===0){
  294. c=0
  295. }else{
  296. c= Math.floor(b/a * 10000) / 100
  297. }
  298. return {
  299. "Num" :{"date": this.endDate,"number": val, "name": name, "numberAll": valAll,"valnum":a,"valAll":b,"valna":c},
  300. "config":this.getMyConfig("检测") //返回需要的对应参数
  301. }
  302. },
  303. getbzXiBaoObjNum(){
  304. let name = []
  305. let val =[]
  306. let valAll = []
  307. let e = []
  308. let a=0
  309. let b=0
  310. let c=0
  311. let numm = 0
  312. let that = this
  313. if(that.bzXiBaoObj.length === 0){
  314. val = [0]
  315. valAll = [0]
  316. e = [0]
  317. name = [0]
  318. }else{
  319. for (let i = 0; i < that.bzXiBaoObj.length; i++) {
  320. // let num=0
  321. // if (that.hechaObj[i].t_sbhcjlb===0) {
  322. // num =0
  323. // } else {
  324. // num =Math.floor(that.hechaObj[i].t_sbhcjlbS/that.hechaObj[i].t_sbhcjlb * 10000) / 100
  325. // }
  326. // valAll.push(that.hechaObj[i].t_sbhcjlb)
  327. val.push(that.bzXiBaoObj[i].num)
  328. valAll.push(that.bzXiBaoObj[i].numS)
  329. // e.push(num)
  330. name.push(that.bzXiBaoObj[i].name)
  331. }
  332. }
  333. val.forEach( function(item){
  334. a += item ;
  335. });
  336. valAll.forEach( function(item){
  337. b += item ;
  338. });
  339. if (that.bzXiBaoTObj.length===0) {
  340. numm = 1
  341. } else {
  342. numm = Math.floor((12-that.bzXiBaoTObj[0].time)/3) + 1
  343. }
  344. a=a*numm
  345. // console.log(numm,'numm')
  346. if(b===0){
  347. c=0
  348. }else{
  349. c= Math.floor(b/a * 10000) / 100
  350. }
  351. return {
  352. "Num" :{"date": this.endDate,"number": val, "name": name, "numberAll": valAll,"valnum":a,"valAll":b,"valna":c},
  353. "config":this.getMyConfig("检测") //返回需要的对应参数
  354. }
  355. },
  356. getMyConfig(name){
  357. if(this.config.length == 0) return
  358. for(let i in this.config){
  359. if (this.config[i]['pei_zhi_biao_ming'] == name){
  360. return this.config[i]['pei_zhi_can_shu_'] //返回需要的对应参数
  361. }
  362. }
  363. },
  364. getS1renwu(){
  365. let jchzbNum = this.getMatchingData('t_lhjczb')
  366. let jchzbSNum = this.getMatchingDataSame('t_lhjczb')
  367. let barData = []
  368. // for (let i = 0; i < this.dataScope.length; i++) {
  369. let e=0
  370. if (jchzbSNum[0]===0) {
  371. e =0
  372. } else {
  373. e =Math.floor(jchzbNum[0]/jchzbSNum[0] * 10000) / 100
  374. }
  375. barData.push(e)
  376. // }
  377. // console.log(jchzbNum,jchzbSNum,'hsuihsahiu')
  378. return {
  379. "t_jchzbNum" :{"date": this.endDate,"number": jchzbNum, "numberAll": jchzbSNum, "res": barData},
  380. "config":this.getMyConfig("检测") //返回需要的对应参数
  381. }
  382. },
  383. getS1jianCe(){
  384. return {
  385. // "t_mjjcbgNum" :{"date": this.dataScope,"number": mjjcbgNum, "numberAll": mjjcbgSNum, "res": barData},
  386. "t_gdyrqcwtBegin" :{"date": this.BeginDate,"number": this.relData['t_gdyrqcwt'+this.BeginDate]},
  387. "t_gdyrqcwtEnd" :{"date": this.endDate,"number": this.relData['t_gdyrqcwt'+this.endDate]},
  388. "t_gdyrqcwt2Begin" :{"date": this.BeginDate,"number": this.relData['t_gdyrqcwt2'+this.BeginDate]},
  389. "t_gdyrqcwt2End" :{"date": this.endDate,"number": this.relData['t_gdyrqcwt2'+this.endDate]},
  390. "t_gdyrqcwt3Begin" :{"date": this.BeginDate,"number": this.relData['t_gdyrqcwt3'+this.BeginDate]},
  391. "t_gdyrqcwt3End" :{"date": this.endDate,"number": this.relData['t_gdyrqcwt3'+this.endDate]},
  392. "t_gdyrqcwt4Begin" :{"date": this.BeginDate,"number": this.relData['t_gdyrqcwt4'+this.BeginDate]},
  393. "t_gdyrqcwt4End" :{"date": this.endDate,"number": this.relData['t_gdyrqcwt4'+this.endDate]},
  394. "t_gdyrqcwt5Begin" :{"date": this.BeginDate,"number": this.relData['t_gdyrqcwt5'+this.BeginDate]},
  395. "t_gdyrqcwt5End" :{"date": this.endDate,"number": this.relData['t_gdyrqcwt5'+this.endDate]},
  396. "t_gdyrqcwt6Begin" :{"date": this.BeginDate,"number": this.relData['t_gdyrqcwt6'+this.BeginDate]},
  397. "t_gdyrqcwt6End" :{"date": this.endDate,"number": this.relData['t_gdyrqcwt6'+this.endDate]},
  398. "config":this.getMyConfig("检测") //返回需要的对应参数
  399. }
  400. },
  401. getS2jianCe(){
  402. let mjjcbgNum = this.getMatchingData('t_mjjcbg')
  403. let mjjcbgSNum = this.getMatchingDataSame('t_mjjcbg')
  404. let barData = []
  405. // for (let i = 0; i < this.dataScope.length; i++) {
  406. let e=0
  407. if (mjjcbgSNum[0]===0) {
  408. e =0
  409. } else {
  410. e =Math.floor(mjjcbgNum[0]/mjjcbgSNum[0] * 10000) / 100
  411. }
  412. barData.push(e)
  413. // }
  414. return {
  415. "t_mjjcbgNum" :{"date": this.endDate,"number": mjjcbgNum, "numberAll": mjjcbgSNum, "res": barData},
  416. "t_gdyrqcwtBegin" :{"date": this.BeginDate,"number": this.relData['t_gdyrqcwt'+this.BeginDate]},
  417. "t_gdyrqcwtEnd" :{"date": this.endDate,"number": this.relData['t_gdyrqcwt'+this.endDate]},
  418. "config":this.getMyConfig("检测") //返回需要的对应参数
  419. }
  420. },
  421. getS2manYiDu(){
  422. let khmydtjbNum = this.getMatchingData('t_khmydtjb')
  423. let khmydtjbNumN = this.getMatchingData('t_khmydtjbnum') * 50
  424. let khmydtjbSNum = this.getMatchingDataSame('t_khmydtjb')
  425. let barData = []
  426. // for (let i = 0; i < this.dataScope.length; i++) {
  427. let e=0
  428. if (khmydtjbNumN===0) {
  429. e =0
  430. } else {
  431. e =Math.floor(khmydtjbNum[0]/khmydtjbNumN * 10000) / 100
  432. }
  433. // console.log(e,'eeeeee')
  434. barData.push(e)
  435. // }
  436. return {
  437. "t_myddcBegin" :{"date": this.BeginDate,"number": this.relData['t_myddc'+this.BeginDate]},
  438. "t_myddcEnd" :{"date": this.endDate,"number": this.relData['t_myddc'+this.endDate]},
  439. "t_myddc1Begin" :{"date": this.BeginDate,"number": this.relData['t_myddc1'+this.BeginDate]},
  440. "t_myddc1End" :{"date": this.endDate,"number": this.relData['t_myddc1'+this.endDate]},
  441. "t_myddc2Begin" :{"date": this.BeginDate,"number": this.relData['t_myddc2'+this.BeginDate]},
  442. "t_myddc2End" :{"date": this.endDate,"number": this.relData['t_myddc2'+this.endDate]},
  443. "t_myddc3Begin" :{"date": this.BeginDate,"number": this.relData['t_myddc3'+this.BeginDate]},
  444. "t_myddc3End" :{"date": this.endDate,"number": this.relData['t_myddc3'+this.endDate]},
  445. "t_myddc4Begin" :{"date": this.BeginDate,"number": this.relData['t_myddc4'+this.BeginDate]},
  446. "t_myddc4End" :{"date": this.endDate,"number": this.relData['t_myddc4'+this.endDate]},
  447. "t_myddc5Begin" :{"date": this.BeginDate,"number": this.relData['t_myddc5'+this.BeginDate]},
  448. "t_myddc5End" :{"date": this.endDate,"number": this.relData['t_myddc5'+this.endDate]},
  449. "t_myddc6Begin" :{"date": this.BeginDate,"number": this.relData['t_myddc6'+this.BeginDate]},
  450. "t_myddc6End" :{"date": this.endDate,"number": this.relData['t_myddc6'+this.endDate]},
  451. "t_khmydtjbNum" :{"date": this.endDate,"number": khmydtjbNum, "numberAll": khmydtjbSNum, "res": barData,'num':khmydtjbNumN},
  452. "config":this.getMyConfig("客户满意度") //返回需要的对应参数
  453. }
  454. },
  455. getS3tousu(){
  456. let complaintNum = this.getMatchingData('t_complaint')
  457. let complainNum = this.getMatchingDataSame('t_complain')
  458. let complaintNumS = this.getMatchingDataSame('t_complaint')
  459. let mjwtsqbNum = this.getMatchingData('t_mjwtsqb')
  460. let e=0
  461. let barData =[]
  462. let e1=0
  463. let barData1 =[]
  464. let e2=0
  465. let barData2 =[]
  466. if (mjwtsqbNum[0]===0) {
  467. e =0
  468. } else {
  469. e =Math.floor(complaintNum[0]/mjwtsqbNum[0] * 10000) / 100
  470. }
  471. if (complaintNum[0]===0) {
  472. e1 =0
  473. } else {
  474. e1 =Math.floor(complaintNumS[0]/complaintNum[0] * 10000) / 100
  475. }
  476. if (complaintNum[0]===0) {
  477. e2 =0
  478. } else {
  479. e2 =Math.floor(complainNum[0]/complaintNum[0] * 10000) / 100
  480. }
  481. barData.push(e)
  482. barData1.push(e1)
  483. barData2.push(e2)
  484. return {
  485. "t_complaintNum" :{"date": this.endDate,"number": complaintNum,"numberAll":mjwtsqbNum,"res":barData,"num48":complaintNumS,"res1":barData1,"numtong":complainNum,"res2":barData2},
  486. "t_mjwtsqbNum" :{"date": this.dataScope,"number": mjwtsqbNum},
  487. "config":this.getMyConfig("客户投诉率") //返回需要的对应参数
  488. }
  489. },
  490. getS4renYuanPeiXun(){
  491. let ryywpxjNum = this.getMatchingData('t_ryywpxjl')
  492. let ryywpxjSNum = this.getMatchingDataSame('t_ryywpxjl')
  493. let barData = []
  494. // for (let i = 0; i < this.dataScope.length; i++) {
  495. let e=0
  496. if (ryywpxjSNum[0]===0) {
  497. e =0
  498. } else {
  499. e =Math.floor(ryywpxjNum[0]/ryywpxjSNum[0] * 10000) / 100
  500. }
  501. barData.push(e)
  502. // }
  503. return {
  504. "t_ryywpxjlNum" :{"date": this.endDate,"number": ryywpxjNum, "numberAll": ryywpxjSNum, "res": barData},
  505. "t_ryndpxjhBegin" :{"date": this.BeginDate,"number": this.relData['t_ryndpxjh'+this.BeginDate]},
  506. "t_ryndpxjhEnd" :{"date": this.endDate,"number": this.relData['t_ryndpxjh'+this.endDate]},
  507. "t_rypxjlnkBegin" :{"date": this.BeginDate,"number": this.relData['t_rypxjlnk'+this.BeginDate]},
  508. "t_rypxjlnkEnd" :{"date": this.endDate,"number": this.relData['t_rypxjlnk'+this.endDate]},
  509. "config":this.getMyConfig("人员培训") //返回需要的对应参数
  510. }
  511. },
  512. getS5renYuanJianDu(){
  513. let zljdNum = this.getMatchingData('t_zljd')
  514. let zljdSNum = this.getMatchingDataSame('t_zljd')
  515. let barData = []
  516. // for (let i = 0; i < this.dataScope.length; i++) {
  517. let e=0
  518. if (zljdSNum[0]===0) {
  519. e =0
  520. } else {
  521. e =Math.floor(zljdNum[0]/zljdSNum[0] * 10000) / 100
  522. }
  523. barData.push(e)
  524. // }
  525. return {
  526. "t_zljdNum" :{"date": this.endDate,"number": zljdNum, "numberAll": zljdSNum, "res": barData},
  527. "t_zljdBegin" :{"date": this.BeginDate,"number": this.relData['t_zljd'+this.BeginDate]},
  528. "t_zljdEnd" :{"date": this.endDate,"number": this.relData['t_zljd'+this.endDate]},
  529. "t_zljdssBegin" :{"date": this.BeginDate,"number": this.relData['t_zljdss'+this.BeginDate]},
  530. "t_zljdssEnd" :{"date": this.endDate,"number": this.relData['t_zljdss'+this.endDate]},
  531. "config":this.getMyConfig("人员监督") //返回需要的对应参数
  532. }
  533. },
  534. getS6sheBeiWeiHu(){
  535. return {
  536. "t_yqsbwhjhxmtBegin" :{"date": this.BeginDate,"number": this.relData['t_yqsbwhjhxmt'+this.BeginDate]},
  537. "t_yqsbwhjhxmtEnd" :{"date": this.endDate,"number": this.relData['t_yqsbwhjhxmt'+this.endDate]},
  538. "t_yqsbwhjhxmzBegin" :{"date": this.BeginDate,"number": this.relData['t_yqsbwhjhxmz'+this.BeginDate]},
  539. "t_yqsbwhjhxmzEnd" :{"date": this.endDate,"number": this.relData['t_yqsbwhjhxmz'+this.endDate]},
  540. "t_yqsbwhjhxmyBegin" :{"date": this.BeginDate,"number": this.relData['t_yqsbwhjhxmy'+this.BeginDate]},
  541. "t_yqsbwhjhxmyEnd" :{"date": this.endDate,"number": this.relData['t_yqsbwhjhxmy'+this.endDate]},
  542. "t_whbyxxBegin" :{"date": this.BeginDate,"number": this.relData['t_whbyxx'+this.BeginDate]},
  543. "t_whbyxxEnd" :{"date": this.endDate,"number": this.relData['t_whbyxx'+this.endDate]},
  544. "t_whbyxmxxmzBegin" :{"date": this.BeginDate,"number": this.relData['t_whbyxmxxmz'+this.BeginDate]},
  545. "t_whbyxmxxmzEnd" :{"date": this.endDate,"number": this.relData['t_whbyxmxxmz'+this.endDate]},
  546. "t_whbyxxmyBegin" :{"date": this.BeginDate,"number": this.relData['t_whbyxxmy'+this.BeginDate]},
  547. "t_whbyxxmyEnd" :{"date": this.endDate,"number": this.relData['t_whbyxxmy'+this.endDate]},
  548. "t_yqsbwhjhfbBegin" :{"date": this.BeginDate,"number": this.relData['t_yqsbwhjhfb'+this.BeginDate]},
  549. "t_yqsbwhjhfbEnd" :{"date": this.endDate,"number": this.relData['t_yqsbwhjhfb'+this.endDate]},
  550. "t_yqsbwhjlfbBegin" :{"date": this.BeginDate,"number": this.relData['t_yqsbwhjlfb'+this.BeginDate]},
  551. "t_yqsbwhjlfbEnd" :{"date": this.endDate,"number": this.relData['t_yqsbwhjlfb'+this.endDate]},
  552. "config":this.getMyConfig("设备维护") //返回需要的对应参数
  553. }
  554. },
  555. getS7sheBeiJiaoZhun(){
  556. let mjsbjdxzjhzbNum = this.getMatchingData('t_mjsbjdxzjhzb')
  557. return {
  558. "t_ndsbxzjdjhBegin" :{"date": this.BeginDate,"number": this.relData['t_ndsbxzjdjh'+this.BeginDate]},
  559. "t_ndsbxzjdjhEnd" :{"date": this.endDate,"number": this.relData['t_ndsbxzjdjh'+this.endDate]},
  560. "t_yqsbxzjgBegin" :{"date": this.BeginDate,"number": this.relData['t_yqsbxzjg'+this.BeginDate]},
  561. "t_yqsbxzjgEnd" :{"date": this.endDate,"number": this.relData['t_yqsbxzjg'+this.endDate]},
  562. "allDate" :{"date": this.endDate,"number": this.relData['t_yqsbxzjg'+this.endDate]},
  563. "config":this.getMyConfig("设备校准") //返回需要的对应参数
  564. }
  565. },
  566. getS8sheBeiHeCha(){
  567. return {
  568. "t_sbhcjhBegin" :{"date": this.BeginDate,"number": this.relData['t_sbhcjh'+this.BeginDate]},
  569. "t_sbhcjhEnd" :{"date": this.endDate,"number": this.relData['t_sbhcjh'+this.endDate]},
  570. "t_sbhcjlbBegin" :{"date": this.BeginDate,"number": this.relData['t_sbhcjlb'+this.BeginDate]},
  571. "t_sbhcjlbEnd" :{"date": this.endDate,"number": this.relData['t_sbhcjlb'+this.endDate]},
  572. "config":this.getMyConfig("设备核查") //返回需要的对应参数
  573. }
  574. },
  575. getS9neiBuZhiLiang(){
  576. //年度总
  577. let mjzlkzxbNum = this.getMatchingData('t_mjzlkzxb')
  578. //年度条件
  579. let mjzlkzxbSNum = this.getMatchingDataSame('t_mjzlkzxb')
  580. //部门总
  581. let mjzlkzjlbNum = this.getMatchingData('t_mjzlkzjlb')
  582. //部门条件
  583. let mjzlkzjlbSNum = this.getMatchingDataSame('t_mjzlkzjlb')
  584. let numData = []
  585. let numAData = []
  586. let barData = []
  587. let a=0
  588. let b=0
  589. let c=0
  590. // for (let i = 0; i < this.dataScope.length; i++) {
  591. // let e=0
  592. // if (mjzlkzxbSNum[0]===0) {
  593. // e =0
  594. // } else {
  595. // e =Math.floor(mjzlkzxbNum[0]/mjzlkzxbSNum[0] * 10000) / 100
  596. // }
  597. numData.push('计划内')
  598. numData.push(mjzlkzxbNum[0])
  599. numData.push(mjzlkzxbSNum[0])
  600. numAData.push('计划外')
  601. numAData.push(mjzlkzjlbNum[0])
  602. numAData.push(mjzlkzjlbSNum[0])
  603. barData.push(numData)
  604. barData.push(numAData)
  605. a=mjzlkzxbSNum[0]+mjzlkzjlbSNum[0]
  606. b=mjzlkzxbNum[0]+mjzlkzjlbNum[0]
  607. if(b===0){
  608. c=0
  609. }else{
  610. c= Math.floor(a/b * 10000) / 100
  611. }
  612. // }
  613. return {
  614. "t_mjzlkzxbNum" :{"date": this.endDate,"number": numData, "numberAll": numAData,'val':barData,"valnum":a,"valAll":b,"valna":c},
  615. "config":this.getMyConfig("内部质量") //返回需要的对应参数
  616. }
  617. },
  618. getS12fengXian(){
  619. //年度总
  620. let mjsyshdfxsbykzjhxbNum = this.getMatchingData('t_mjsyshdfxsbykzjhxb')
  621. //年度条件
  622. let mjsyshdfxsbykzjhxbSNum = this.getMatchingDataSame('t_mjsyshdfxsbykzjhxb')
  623. let numData = []
  624. let numAData = []
  625. let barData = []
  626. // for (let i = 0; i < this.dataScope.length; i++) {
  627. let e=0
  628. if (mjsyshdfxsbykzjhxbNum[0]===0) {
  629. e =0
  630. } else {
  631. e =Math.floor(mjsyshdfxsbykzjhxbSNum[0]/mjsyshdfxsbykzjhxbNum[0] * 10000) / 100
  632. }
  633. numData.push(mjsyshdfxsbykzjhxbSNum[0])
  634. numData.push(mjsyshdfxsbykzjhxbNum[0])
  635. barData.push(e)
  636. // }
  637. return {
  638. "t_mjsyshdfxsbykzjhxbNum" :{"date": this.endDate,"number": mjsyshdfxsbykzjhxbSNum, "numberAll":mjsyshdfxsbykzjhxbNum, "res":barData},
  639. "config":this.getMyConfig("内部质量") //返回需要的对应参数
  640. }
  641. },
  642. getS14bufuhexiang(){
  643. //年度总
  644. let bfhxbgyjzcsjlbxNum = this.getMatchingData('t_bfhxbgyjzcsjlbx')
  645. //年度条件
  646. let bfhxbgyjzcsjlbxSNum = this.getMatchingDataSame('t_bfhxbgyjzcsjlbx')
  647. let numData = []
  648. let numAData = []
  649. let barData = []
  650. // for (let i = 0; i < this.dataScope.length; i++) {
  651. let e=0
  652. if (bfhxbgyjzcsjlbxNum[0]===0) {
  653. e =0
  654. } else {
  655. e =Math.floor(bfhxbgyjzcsjlbxSNum[0]/bfhxbgyjzcsjlbxNum[0] * 10000) / 100
  656. }
  657. numData.push(bfhxbgyjzcsjlbxSNum[0])
  658. numData.push(bfhxbgyjzcsjlbxNum[0])
  659. barData.push(e)
  660. // }
  661. return {
  662. "t_bfhxbgyjzcsjlbxNum" :{"date": this.endDate,"number": bfhxbgyjzcsjlbxSNum, "numberAll":bfhxbgyjzcsjlbxNum, "res":barData},
  663. "config":this.getMyConfig("内部质量") //返回需要的对应参数
  664. }
  665. },
  666. }
  667. }