sendDatas.js 39 KB

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