sendDatas.js 39 KB

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