sendDatas.js 43 KB

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