tools.js 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733
  1. import { message,Select } from 'antd';
  2. import React from 'react';
  3. import $ from 'jquery/src/ajax';
  4. import {
  5. patentTypeList,
  6. patentStateList,
  7. patentFieldList,
  8. technicalSourceList,
  9. catagoryList,
  10. intellectualGetList,
  11. conversionFormList,
  12. annualReportStateList,
  13. cognizanceStateList,
  14. technologyStateList,
  15. copyrightStateList,
  16. auditStatusList,
  17. scaleList,
  18. companyType,
  19. industryList,
  20. contractTypeList,
  21. contractStateList,
  22. demandTypeList,
  23. achievementCategoryList,
  24. techAuditStatusList,
  25. auditStatusLists,
  26. maturityList,
  27. transferModeList,
  28. innovationList,
  29. orderStatusList,
  30. activityForm,
  31. activityType,
  32. boutique,
  33. hot,
  34. statuslist,
  35. customerTyp,
  36. cityArr,
  37. customerStatus,
  38. intentionalService,
  39. newFollow,
  40. sex,
  41. tag,
  42. contactType,
  43. contact,
  44. Whether,
  45. Certification,
  46. currentMember,
  47. lvl,
  48. industry,
  49. socialAttribute,
  50. station,
  51. post,
  52. patternOrganization,
  53. conditionOrganization,
  54. categoryState,
  55. auditStatusL,
  56. gameState,
  57. messageType,
  58. designated,
  59. featured,
  60. actives,
  61. intentProgress,
  62. transactionProgress,
  63. contractProgress,
  64. projectProgress,
  65. orderType, orderStage, orderState,paymentState, orderChannel, approvedState, lock,paymentMethod,transactionChannel,projectState,transactionProject,
  66. client,
  67. stick,
  68. taskStatus,
  69. publishStatus,
  70. changeState,
  71. distributeState,
  72. customerSource,
  73. slcRedit,
  74. dataGrade,
  75. level,
  76. xiangmoState,
  77. newOrderStatus,refundStatus,approval,projectStatus,processStatus,liquidationStatus,newOrderType
  78. ,jsyPaymentType,
  79. customerType,
  80. orderTypes,
  81. bonusState,
  82. jiedian,
  83. cuikuan,
  84. province,
  85. invoiceStatus,
  86. approvalA,
  87. processStatusNew,
  88. contractChangeStatus,
  89. } from './dataDic.js';
  90. import { provinceList} from './NewDicProvinceList.js';
  91. module.exports = {
  92. splitUrl: function (string, i, url) {
  93. let theList = [];
  94. let theArr = [];
  95. if (string && string.length) {
  96. theArr = string.split(i);
  97. theArr.map(function (item, i) {
  98. let name = item.substring(item.lastIndexOf("_")+1);
  99. theList.push({
  100. uid: -i-1,
  101. name: name,
  102. url: url+item,
  103. response: {
  104. data: item
  105. }
  106. });
  107. });
  108. }
  109. return theList;
  110. },
  111. getBase64: function (img, callback) {
  112. const reader = new FileReader();
  113. reader.addEventListener('load', () => callback(reader.result));
  114. reader.readAsDataURL(img);
  115. },
  116. beforeUpload: function (file) {
  117. const isLt2M = file.size / 1024 / 1024 < 2;
  118. if (!isLt2M) {
  119. message.error('图片小大必须小于2MB!');
  120. }
  121. return isLt2M;
  122. },
  123. beforeUploadFile: function () {
  124. // debugger
  125. // const isJPG = file.type === 'image/jpeg/document';
  126. // if (!isJPG) {
  127. // message.error('You can only upload JPG file!');
  128. // }
  129. // const isLt2M = file.size / 1024 / 1024 < 2;
  130. // if (!isLt2M) {
  131. // message.error('Image must smaller than 2MB!');
  132. // }
  133. // return isJPG && isLt2M;
  134. },
  135. getTime: function (e, t) {
  136. if (e && !t) {
  137. var d = new Date(e);
  138. d = d.getFullYear() + "-" +
  139. ((d.getMonth() + 1) < 10 ? '0' + (d.getMonth() + 1) : (d.getMonth() + 1)) + "-" +
  140. (d.getDate() < 10 ? '0' + d.getDate() : d.getDate()) + " ";
  141. // + (d.getHours() < 10 ? "0" + d.getHours() : d.getHours()) + ":" +
  142. // (d.getMinutes() < 10 ? "0" + d.getMinutes() : d.getMinutes()) + ":" +
  143. // (d.getSeconds() < 10 ? "0" + d.getSeconds() : d.getSeconds());
  144. return d;
  145. } else if (e && t) {
  146. var d1 = new Date(e);
  147. var d2 = new Date(e);
  148. d2 = d2.setMonth(d1.getMonth() + t);
  149. d2 = new Date(d2)
  150. d2 = d2.getFullYear() + "-" +
  151. ((d2.getMonth() + 1) < 10 ? '0' + (d2.getMonth() + 1) : (d2.getMonth() + 1)) + "-" +
  152. (d2.getDate() < 10 ? '0' + d2.getDate() : d2.getDate()) + " ";
  153. return d2;
  154. } else {
  155. return '';
  156. }
  157. },
  158. getPatentType: function (e) {
  159. if (e) {
  160. let theType = '';
  161. patentTypeList.map(function (item) {
  162. if (item.value == e) {
  163. theType = item.key;
  164. };
  165. });
  166. return theType;
  167. }
  168. },
  169. getPatentTypeva: function (e) {
  170. if (e) {
  171. let theType = '';
  172. patentTypeList.map(function (item) {
  173. if (item.key == e) {
  174. theType = item.value;
  175. };
  176. });
  177. return theType;
  178. }
  179. },
  180. getPatentState: function (e) {
  181. if (e) {
  182. let theState = '';
  183. patentStateList.map(function (item) {
  184. if (item.value == e) {
  185. theState = item.key;
  186. };
  187. });
  188. return theState;
  189. }
  190. },
  191. getPatentField: function (e) {
  192. if (e) {
  193. let theState = '';
  194. patentFieldList.map(function (item) {
  195. if (item.value == e) {
  196. theState = item.key;
  197. };
  198. });
  199. return theState;
  200. }
  201. },
  202. getTechnicalSource: function (e) {
  203. if (e) {
  204. let theSource = '';
  205. technicalSourceList.map(function (item) {
  206. if (item.value == e) {
  207. theSource = item.key;
  208. };
  209. });
  210. return theSource;
  211. }
  212. },
  213. getCatagory: function (e) {
  214. if (e) {
  215. let theType = '';
  216. catagoryList.map(function (item) {
  217. if (item.value == e) {
  218. theType = item.key;
  219. };
  220. });
  221. return theType;
  222. }
  223. },
  224. getIntellectualObtainWay: function (e) {
  225. if (e) {
  226. let theType = '';
  227. intellectualGetList.map(function (item) {
  228. if (item.value == e) {
  229. theType = item.key;
  230. };
  231. });
  232. return theType;
  233. }
  234. },
  235. getConversionForm: function (e) {
  236. if (e) {
  237. let theType = '';
  238. conversionFormList.map(function (item) {
  239. if (item.value == e) {
  240. theType = item.key;
  241. };
  242. });
  243. return theType;
  244. }
  245. },
  246. getAnnualReportState: function (e) {
  247. if (e) {
  248. let theType = '';
  249. annualReportStateList.map(function (item) {
  250. if (item.value == e) {
  251. theType = item.key;
  252. };
  253. });
  254. return theType;
  255. }
  256. },
  257. getCognizanceState: function (e) {
  258. if (e) {
  259. let theType = '';
  260. cognizanceStateList.map(function (item) {
  261. if (item.value == e) {
  262. theType = item.key;
  263. };
  264. });
  265. return theType;
  266. }
  267. },
  268. getTechnologyState: function (e) {
  269. if (e) {
  270. let theType = '';
  271. technologyStateList.map(function (item) {
  272. if (item.value == e) {
  273. theType = item.key;
  274. };
  275. });
  276. return theType;
  277. }
  278. },
  279. //显示用户认证状态
  280. getAuditState: function (e) {
  281. if (e) {
  282. let theType = '';
  283. auditStatusList.map(function (item) {
  284. if (item.value == e) {
  285. theType = item.key;
  286. };
  287. });
  288. return theType;
  289. }
  290. },
  291. getCopyrightState: function (e) {
  292. if (e) {
  293. let theType = '';
  294. copyrightStateList.map(function (item) {
  295. if (item.value == e) {
  296. theType = item.key;
  297. };
  298. });
  299. return theType;
  300. }
  301. },
  302. downloadFile: function (path, fileName) {
  303. window.open(globalConfig.context + '/open/downloadFile?path=' + path + '&fileName=' + fileName)
  304. },
  305. techDownloadFile: function (url, id) {
  306. window.open(globalConfig.context + url + '?id=' + id)
  307. },
  308. copyrightDownloadFile: function (id, sign, url) {
  309. window.open(globalConfig.context + url + '?id=' + id + '&sign=' + sign)
  310. },
  311. newDownloadFile: function (id, sign, url,type) {
  312. if (!type ) {
  313. window.open(globalConfig.context + url + '?id=' + id + '&sign=' + sign);
  314. };
  315. if ( type ) {
  316. window.open(globalConfig.context + url + '?id=' + id + '&sign=' + sign + '&type=' + type);
  317. };
  318. },
  319. companySearch(input, option) {
  320. return option.props.children.indexOf(input) >= 0
  321. },
  322. getVacations(ccccc){
  323. let now = new Date();
  324. let theYear = now.getFullYear();
  325. $.ajax({
  326. type: "get",
  327. dataType: "json",
  328. crossDomain: false,
  329. url: globalConfig.context + '/open/html/json/vacations' + theYear,
  330. success: (data)=>{
  331. if (data) {
  332. ccccc(data);
  333. };
  334. }
  335. });
  336. },
  337. getInUrgentTime(date, inUrgent,vocations) {
  338. if ( vocations && vocations.length ){
  339. let now = new Date(date);
  340. for (var i = 1; i <= inUrgent;) {
  341. now.setDate(now.getDate() + 1);
  342. let thebool = true;
  343. vocations.map((item)=>{
  344. if ( item == getKey(now)) {
  345. thebool= false;
  346. }
  347. });
  348. if ( thebool ) {
  349. i++
  350. };
  351. };
  352. return now;
  353. };
  354. function getKey(date) {
  355. var year = date.getFullYear(),
  356. month = date.getMonth() + 1,
  357. day = date.getDate();
  358. year = "" + year;
  359. month = (month > 9 ? "" : "0") + month;
  360. day = (day > 9 ? "" : "0") + day;
  361. return year + month + day;
  362. }
  363. },
  364. //各种通过接口获取下拉列表
  365. setPatentStateOption(permission) {
  366. let theArr = [];
  367. patentStateList.map(function (item) {
  368. for (let i = 0; i < permission.length; i++) {
  369. if (item.value == permission[i]) {
  370. theArr.push(item);
  371. };
  372. };
  373. });
  374. return theArr;
  375. },
  376. setUserContactsList(){
  377. let theOption = [];
  378. $.ajax({
  379. method: "get",
  380. dataType: "json",
  381. crossDomain: false,
  382. url: globalConfig.context + '/api/user/getContacts',
  383. success: function (data) {
  384. if (!data.data) {
  385. if ( data.error && data.error.length ) {
  386. message.warning(data.error[0].message);
  387. };
  388. return;
  389. };
  390. for (let item in data.data) {
  391. let theData = data.data[item];
  392. theOption.push(
  393. <Select.Option value={item} key={theData}>{theData}</Select.Option>
  394. );
  395. };
  396. }
  397. });
  398. return theOption;
  399. },
  400. setAdminContactsList(uid){
  401. let theOption = [];
  402. $.ajax({
  403. method: "get",
  404. dataType: "json",
  405. crossDomain: false,
  406. url: globalConfig.context + '/api/admin/getContacts',
  407. data:{ "uid": uid },
  408. success: function (data) {
  409. if (!data.data) {
  410. if ( data.error && data.error.length ) {
  411. message.warning(data.error[0].message);
  412. };
  413. return;
  414. };
  415. for (let item in data.data) {
  416. let theData = data.data[item];
  417. theOption.push(
  418. <Select.Option value={item} key={theData}>{theData}</Select.Option>
  419. );
  420. };
  421. }
  422. });
  423. return theOption;
  424. },
  425. //高企培育资料完成情况(比重)
  426. getProportion(uid,callback){
  427. $.ajax({
  428. method: "get",
  429. dataType: "json",
  430. crossDomain: false,
  431. url: globalConfig.context + '/api/admin/proportion',
  432. data:{ "uid": uid },
  433. success: function (data) {
  434. if (!data.data) {
  435. if ( data.error && data.error.length ) {
  436. message.warning(data.error[0].message);
  437. };
  438. data.data = {}
  439. callback(data.data);
  440. };
  441. callback(data.data);
  442. }
  443. });
  444. },
  445. //保存高企培育资料完成情况
  446. saveProportion(id,uid,sign,status){
  447. $.ajax({
  448. method: "post",
  449. dataType: "json",
  450. crossDomain: false,
  451. url: globalConfig.context + '/api/admin/confirmProportion',
  452. data:{
  453. "id": id,
  454. "uid":uid,
  455. "sign":sign,
  456. "status":status
  457. },
  458. success: function (data) {
  459. if (!data.data) {
  460. if ( data.error && data.error.length ) {
  461. message.warning(data.error[0].message);
  462. };
  463. return;
  464. };
  465. }
  466. });
  467. },
  468. //获取window.location.search传的值
  469. getSearchUrl(e){
  470. let searchURL = e;
  471. let theObj = {};
  472. searchURL = searchURL.substring(1, searchURL.length);
  473. theObj[searchURL.split("&")[0].split("=")[0]] = searchURL.split("&")[0].split("=")[1];
  474. if ( searchURL.split("&")[1] ) {
  475. theObj[searchURL.split("&")[1].split("=")[0]] = searchURL.split("&")[1].split("=")[1];
  476. if ( searchURL.split("&")[2] ) {
  477. theObj[searchURL.split("&")[2].split("=")[0]] = searchURL.split("&")[2].split("=")[1];
  478. };
  479. };
  480. return theObj;
  481. },
  482. //预览接口
  483. getPreview(id,url,sign,callback){
  484. $.ajax({
  485. method: "get",
  486. dataType: "json",
  487. crossDomain: false,
  488. url: globalConfig.context + "/api/admin/preview/" + url,
  489. data:{
  490. "id": id,
  491. "sign": sign
  492. },
  493. success: function (data) {
  494. if (!data.data) {
  495. if ( data.error && data.error.length ) {
  496. message.warning(data.error[0].message);
  497. };
  498. };
  499. callback('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/preview?" + data.data));
  500. console.log('https://view.officeapps.live.com/op/view.aspx?src=' + (location.origin + globalConfig.context + "/open/preview?" + data.data));
  501. console.log('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/preview?" + data.data));
  502. }
  503. });
  504. },
  505. //预览接口
  506. getPreviews(id,url,sign,callback){
  507. $.ajax({
  508. method: "get",
  509. dataType: "json",
  510. crossDomain: false,
  511. url: globalConfig.context + "/api/admin/customer/" + url,
  512. data:{
  513. "id": id,
  514. "sign": sign
  515. },
  516. success: function (data) {
  517. if (!data.data) {
  518. if ( data.error && data.error.length ) {
  519. message.warning(data.error[0].message);
  520. };
  521. };
  522. callback('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/preview?" + data.data));
  523. console.log('https://view.officeapps.live.com/op/view.aspx?src=' + (location.origin + globalConfig.context + "/open/preview?" + data.data));
  524. console.log('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/preview?" + data.data));
  525. }
  526. });
  527. },
  528. //获取企业规模
  529. getScaleState(e) {
  530. if (e) {
  531. let theType = '';
  532. scaleList.map(function (item) {
  533. if (item.value == e) {
  534. theType = item.key;
  535. };
  536. });
  537. return theType;
  538. }
  539. },
  540. //获取企业类型
  541. getCompanyType(type1, type2) {
  542. let companyTypeList = [];
  543. for (let i = 0; i < companyType.length; i++) {
  544. companyTypeList.push({
  545. value: companyType[i].value,
  546. label: companyType[i].label
  547. });
  548. if (companyType[i].children) {
  549. for (let j = 0; j < companyType[i].children.length; j++) {
  550. companyTypeList.push({
  551. value: companyType[i].children[j].value,
  552. label: companyType[i].children[j].label
  553. });
  554. };
  555. }
  556. };
  557. companyTypeList.sort(function (a, b) {
  558. return a.value - b.value
  559. });
  560. let typeKey = "";
  561. companyTypeList.map(function (item) {
  562. if (type1 == item.value) {
  563. typeKey = item.label;
  564. };
  565. if (type2 == item.value) {
  566. typeKey = typeKey + "/" + item.label;
  567. };
  568. });
  569. return typeKey;
  570. },
  571. //获取企业行业
  572. getIndustryType(e) {
  573. if (e) {
  574. let theType = '';
  575. industryList.map(function (item) {
  576. if (item.value == e) {
  577. theType = item.key;
  578. };
  579. });
  580. return theType;
  581. }
  582. },
  583. //获取合同状态
  584. getContractType: function (e) {
  585. if (e) {
  586. let theType = '';
  587. contractTypeList.map(function (item) {
  588. if (item.value == e) {
  589. theType = item.key;
  590. };
  591. });
  592. return theType;
  593. }
  594. },
  595. //获取合同类型
  596. getContractState: function (e) {
  597. if (e) {
  598. let theType = '';
  599. contractStateList.map(function (item) {
  600. if (item.value == e) {
  601. theType = item.key;
  602. };
  603. });
  604. return theType;
  605. }
  606. },
  607. //获取需求类型
  608. getDemandType: function (e) {
  609. if (e) {
  610. let theType = '';
  611. demandTypeList.map(function (item) {
  612. if (item.value == e) {
  613. theType = item.key;
  614. };
  615. });
  616. return theType;
  617. }
  618. },
  619. //获取成果类型
  620. getAchievementCategory: function (e) {
  621. if (e) {
  622. let theType = '';
  623. achievementCategoryList.map(function (item) {
  624. if (item.value == e) {
  625. theType = item.key;
  626. };
  627. });
  628. return theType;
  629. }
  630. },
  631. //获取需求和成果审核状态
  632. getTechAuditStatus: function (e) {
  633. if (e) {
  634. let theType = '';
  635. techAuditStatusList.map(function (item) {
  636. if (item.value == e) {
  637. theType = item.key;
  638. };
  639. });
  640. return theType;
  641. }
  642. },
  643. //获取政策审核状态
  644. getauditStatus: function (e) {
  645. if (e||e>=0) {
  646. let tt=e.toString()
  647. let theType = '';
  648. auditStatusLists.map(function (item) {
  649. if (item.value == tt) {
  650. theType = item.key;
  651. };
  652. });
  653. return theType;
  654. }
  655. },
  656. //获取需求和成果审核状态
  657. getMaturity: function (e) {
  658. if (e) {
  659. let theType = '';
  660. maturityList.map(function (item) {
  661. if (item.value == e) {
  662. theType = item.key;
  663. };
  664. });
  665. return theType;
  666. }
  667. },
  668. //获取需求和成果审核状态
  669. getTransferMode: function (e) {
  670. if (e) {
  671. let theType = '';
  672. transferModeList.map(function (item) {
  673. if (item.value == e) {
  674. theType = item.key;
  675. };
  676. });
  677. return theType;
  678. }
  679. },
  680. //获取创新度状态
  681. getInnovation: function (e) {
  682. if (e) {
  683. let theType = '';
  684. innovationList.map(function (item) {
  685. if (item.value == e) {
  686. theType = item.key;
  687. };
  688. });
  689. return theType;
  690. }
  691. },
  692. //获取创新度状态
  693. getOrderStatus: function (e) {
  694. if (e) {
  695. let theType = '';
  696. orderStatusList.map(function (item) {
  697. if (item.value == e) {
  698. theType = item.key;
  699. };
  700. });
  701. return theType;
  702. }
  703. },
  704. //科技管理
  705. //活动圈后台管理
  706. getActivityType: function (e) {
  707. if (e) {
  708. let theType = '';
  709. activityType.map(function (item) {
  710. if (item.value == e) {
  711. theType = item.key;
  712. };
  713. });
  714. return theType;
  715. }
  716. },
  717. getActivityForm: function (e) {
  718. if (e) {
  719. let theType = '';
  720. activityForm.map(function (item) {
  721. if (item.value == e) {
  722. theType = item.key;
  723. };
  724. });
  725. return theType;
  726. }
  727. },
  728. //是否展示在首页
  729. gethot: function (e) {
  730. if (e) {
  731. let theType = '';
  732. hot.map(function (item) {
  733. if (item.value == e) {
  734. theType = item.key;
  735. };
  736. });
  737. return theType;
  738. }
  739. },
  740. //是否精品
  741. getboutique: function (e) {
  742. if (e) {
  743. let theType = '';
  744. boutique.map(function (item) {
  745. if (item.value == e) {
  746. theType = item.key;
  747. };
  748. });
  749. return theType;
  750. }
  751. },
  752. //客户类型
  753. getcustomerTyp: function (e) {
  754. if (e) {
  755. let theType = '';
  756. customerTyp.map(function (item) {
  757. if (item.value == e) {
  758. theType = item.key;
  759. };
  760. });
  761. return theType;
  762. }
  763. },
  764. //省份
  765. getcityArr: function (e) {
  766. if (e) {
  767. let theType = '';
  768. cityArr.map(function (item) {
  769. if (item.value == e) {
  770. theType = item.key;
  771. }
  772. });
  773. return theType;
  774. }
  775. },
  776. //客户状态
  777. getcustomerStatue: function (e) {
  778. if (e||e==0) {
  779. let theType = '';
  780. customerStatus.map(function (item) {
  781. if (item.value == e) {
  782. theType = item.key;
  783. };
  784. });
  785. return theType;
  786. }
  787. },
  788. //账户状态
  789. getStatuslist: function (e) {
  790. if (e) {
  791. let theType = '';
  792. statuslist.map(function (item) {
  793. if (item.value == e) {
  794. theType = item.key;
  795. };
  796. });
  797. return theType;
  798. }
  799. },
  800. //意向服务
  801. getCompanyIntention: function (e) {
  802. if (e) {
  803. let theType = '';
  804. intentionalService.map(function (item) {
  805. if (item.value == e) {
  806. theType = item.key;
  807. };
  808. });
  809. return theType;
  810. }
  811. },
  812. //客户标签
  813. getTag: function (e) {
  814. if (e) {
  815. let theType = '';
  816. tag.map(function (item) {
  817. if (item.value == e) {
  818. theType = item.key;
  819. };
  820. });
  821. return theType;
  822. }
  823. },
  824. //最新跟进
  825. getfllowSituation: function (e) {
  826. if (e||e==0) {
  827. let theType = '';
  828. newFollow.map(function (item) {
  829. if (item.value == e) {
  830. theType = item.key;
  831. };
  832. });
  833. return theType;
  834. }
  835. },
  836. //性别
  837. getsex: function (e) {
  838. if (e) {
  839. let theType = '';
  840. sex.map(function (item) {
  841. if (item.value == e) {
  842. theType = item.key;
  843. };
  844. });
  845. return theType;
  846. }
  847. },
  848. //联系方式
  849. getcontact: function (e) {
  850. if (e) {
  851. let theType = '';
  852. contact.map(function (item) {
  853. if (item.value == e) {
  854. theType = item.key;
  855. };
  856. });
  857. return theType;
  858. }
  859. },
  860. //是否文字与数字转换
  861. getWhether: function (e) {
  862. if (e) {
  863. let theType = '';
  864. Whether.map(function (item) {
  865. if (item.value == e) {
  866. theType = item.key;
  867. };
  868. });
  869. return theType;
  870. }
  871. },
  872. //是否实名认证
  873. getCertification: function (e) {
  874. if (e) {
  875. let theType = '';
  876. Certification.map(function (item) {
  877. if (item.value == e) {
  878. theType = item.key;
  879. };
  880. });
  881. return theType;
  882. }
  883. },
  884. //会员状态
  885. getCurrentMember: function (e) {
  886. if (e) {
  887. let theType = '';
  888. currentMember.map(function (item) {
  889. if (item.value == e) {
  890. theType = item.key;
  891. };
  892. });
  893. return theType;
  894. }
  895. },
  896. //会员等级
  897. getLvl: function (e) {
  898. if (e) {
  899. let theType = '';
  900. lvl.map(function (item) {
  901. if (item.value == e) {
  902. theType = item.key;
  903. };
  904. });
  905. return theType;
  906. }
  907. },
  908. //省份转换
  909. getprovince:function(e){
  910. let nub=parseInt(e);
  911. let theType = '';
  912. if (nub<=34) {
  913. provinceList.map(function (item) {
  914. if (item.id == nub) {
  915. theType = item.name;
  916. };
  917. });
  918. }
  919. if(nub>34&&nub<380){
  920. provinceList.map(function (item) {
  921. item.cityList.map(function (city) {
  922. if (city.id == nub) {
  923. theType = city.name;
  924. };
  925. });
  926. });
  927. }
  928. if(nub>=380){
  929. provinceList.map(function (item) {
  930. item.cityList.map(function (city) {
  931. city.areaList.map(function (areas) {
  932. if (areas.id == nub) {
  933. theType = areas.name;
  934. };
  935. });
  936. });
  937. })
  938. }
  939. return theType;
  940. },
  941. //我的业务跟进状态
  942. getStatusFollow:function(e){
  943. let theType = '';
  944. if(e){
  945. theType ='跟进中' ;
  946. }else{
  947. theType ='停止跟进';
  948. }
  949. return theType;
  950. },
  951. //我的业务跟进状态
  952. getContactType:function(e){
  953. if (e) {
  954. let theType = '';
  955. contactType.map(function (item) {
  956. if (item.value == e) {
  957. theType = item.key;
  958. };
  959. });
  960. return theType;
  961. }
  962. },
  963. //社会属性
  964. getSocialAttribute:function(e){
  965. if (e) {
  966. let theType = '';
  967. socialAttribute.map(function (item) {
  968. if (item.value == e) {
  969. theType = item.key;
  970. };
  971. });
  972. return theType;
  973. }
  974. },
  975. //行业
  976. getIndustry:function(e){
  977. if (e) {
  978. let theType = '';
  979. industry.map(function (item) {
  980. if (item.value == e) {
  981. theType = item.key;
  982. };
  983. });
  984. return theType;
  985. }
  986. },
  987. //岗位
  988. getStation:function(e){
  989. if (e) {
  990. let theType = '';
  991. station.map(function (item) {
  992. if (item.value == e) {
  993. theType = item.key;
  994. };
  995. });
  996. return theType;
  997. }
  998. },
  999. //职务
  1000. getPost:function(e){
  1001. if (e) {
  1002. let theType = '';
  1003. post.map(function (item) {
  1004. if (item.value == e) {
  1005. theType = item.key;
  1006. };
  1007. });
  1008. return theType;
  1009. }
  1010. },
  1011. //组织类型
  1012. getPattern:function(e){
  1013. if (e) {
  1014. let theType = '';
  1015. patternOrganization.map(function (item) {
  1016. if (item.value == e) {
  1017. theType = item.key;
  1018. };
  1019. });
  1020. return theType;
  1021. }
  1022. },
  1023. //组织状态
  1024. getCondition:function(e){
  1025. if (e) {
  1026. let theType = '';
  1027. conditionOrganization.map(function (item) {
  1028. if (item.value == e) {
  1029. theType = item.key;
  1030. };
  1031. });
  1032. return theType;
  1033. }
  1034. },
  1035. //品类状态
  1036. getCategoryState:function(e){
  1037. if (e) {
  1038. let theType = '';
  1039. categoryState.map(function (item) {
  1040. if (item.value == e) {
  1041. theType = item.key;
  1042. };
  1043. });
  1044. return theType;
  1045. }
  1046. },
  1047. //实名认证
  1048. getAuditStatus:function(index){
  1049. let e=index?index.toString():'';
  1050. if (e) {
  1051. let theType = '';
  1052. auditStatusL.map(function (item) {
  1053. if (item.value == e) {
  1054. theType = item.key;
  1055. };
  1056. });
  1057. return theType;
  1058. }
  1059. },
  1060. //品类状态
  1061. getGameState:function(index){
  1062. let e=index?index.toString():'';
  1063. if (e) {
  1064. let theType = '';
  1065. gameState.map(function (item) {
  1066. if (item.value == e) {
  1067. theType = item.key;
  1068. };
  1069. });
  1070. return theType;
  1071. }
  1072. },
  1073. //消息类型
  1074. getMessageType:function(index){
  1075. let e=index?index.toString():'';
  1076. if (e) {
  1077. let theType = '';
  1078. messageType.map(function (item) {
  1079. if (item.value == e) {
  1080. theType = item.key;
  1081. };
  1082. });
  1083. return theType;
  1084. }
  1085. },
  1086. //发送目标
  1087. getDesignated:function(index){
  1088. let e=index?index.toString():'';
  1089. if (e) {
  1090. let theType = '';
  1091. designated.map(function (item) {
  1092. if (item.value == e) {
  1093. theType = item.key;
  1094. };
  1095. });
  1096. return theType;
  1097. }
  1098. },
  1099. //客户端
  1100. getClient:function(index){
  1101. let e=index?index.toString():'';
  1102. if (e) {
  1103. let theType = '';
  1104. client.map(function (item) {
  1105. if (item.value == e) {
  1106. theType = item.key;
  1107. };
  1108. });
  1109. return theType;
  1110. }
  1111. },
  1112. //是否置顶
  1113. getStick:function(index){
  1114. let e=index?index.toString():'';
  1115. if (e) {
  1116. let theType = '';
  1117. stick.map(function (item) {
  1118. if (item.value == e) {
  1119. theType = item.key;
  1120. };
  1121. });
  1122. return theType;
  1123. }
  1124. },
  1125. getFeatured:function(index){
  1126. let e=index?index.toString():'';
  1127. if (e) {
  1128. let theType = '';
  1129. featured.map(function (item) {
  1130. if (item.value == e) {
  1131. theType = item.key;
  1132. };
  1133. });
  1134. return theType;
  1135. }
  1136. },
  1137. getActives:function(e){
  1138. if (e) {
  1139. let theType = '';
  1140. actives.map(function (item) {
  1141. if (item.value == e) {
  1142. theType = item.key;
  1143. };
  1144. });
  1145. return theType;
  1146. }
  1147. },
  1148. //意向进度
  1149. getIntentProgress:function(e){
  1150. if (e) {
  1151. let theType = '';
  1152. intentProgress.map(function (item) {
  1153. if (item.value == e) {
  1154. theType = item.key;
  1155. };
  1156. });
  1157. return theType;
  1158. }
  1159. },
  1160. //交易进度
  1161. getTransactionProgress:function(e){
  1162. if (e) {
  1163. let theType = '';
  1164. transactionProgress.map(function (item) {
  1165. if (item.value == e) {
  1166. theType = item.key;
  1167. };
  1168. });
  1169. return theType;
  1170. }
  1171. },
  1172. //合同进度
  1173. getContractProgress:function(e){
  1174. if (e) {
  1175. let theType = '';
  1176. contractProgress.map(function (item) {
  1177. if (item.value == e) {
  1178. theType = item.key;
  1179. };
  1180. });
  1181. return theType;
  1182. }
  1183. },
  1184. //项目进度
  1185. getProjectProgress:function(e){
  1186. if (e) {
  1187. let theType = '';
  1188. projectProgress.map(function (item) {
  1189. if (item.value == e) {
  1190. theType = item.key;
  1191. };
  1192. });
  1193. return theType;
  1194. }
  1195. },
  1196. //订单类型
  1197. getOrderType:function(e){
  1198. if (e||e==0) {
  1199. let str=e.toString()
  1200. let theType = '';
  1201. orderType.map(function (item) {
  1202. if (item.value == str) {
  1203. theType = item.key;
  1204. };
  1205. });
  1206. return theType;
  1207. }
  1208. },
  1209. //订单阶段
  1210. getOrderStage:function(e){
  1211. if (e||e==0) {
  1212. let str=e.toString()
  1213. let theType = '';
  1214. orderStage.map(function (item) {
  1215. if (item.value == str) {
  1216. theType = item.key;
  1217. };
  1218. });
  1219. return theType;
  1220. }
  1221. },
  1222. //订单状态o
  1223. getOrderState:function(e){
  1224. if (e||e==0) {
  1225. let str=e.toString()
  1226. let theType = '';
  1227. orderState.map(function (item) {
  1228. if (item.value == str) {
  1229. theType = item.key;
  1230. };
  1231. });
  1232. return theType;
  1233. }
  1234. },
  1235. //付款状态
  1236. getPaymentState:function(e){
  1237. if (e||e==0) {
  1238. let str=e.toString()
  1239. let theType = '';
  1240. paymentState.map(function (item) {
  1241. if (item.value == str) {
  1242. theType = item.key;
  1243. };
  1244. });
  1245. return theType;
  1246. }
  1247. },
  1248. //订单渠道
  1249. getOrderChannel:function(e){
  1250. if (e||e==0) {
  1251. let str=e.toString()
  1252. let theType = '';
  1253. orderChannel.map(function (item) {
  1254. if (item.value == str) {
  1255. theType = item.key;
  1256. };
  1257. });
  1258. return theType;
  1259. }
  1260. },
  1261. //特批状态
  1262. getApprovedState:function(e){
  1263. if (e||e==0) {
  1264. let str=e.toString()
  1265. let theType = '';
  1266. approvedState.map(function (item) {
  1267. if (item.value == str) {
  1268. theType = item.key;
  1269. };
  1270. });
  1271. return theType;
  1272. }
  1273. },
  1274. //锁定或废除
  1275. getLock:function(e){
  1276. if (e||e==0) {
  1277. let str=e.toString()
  1278. let theType = '';
  1279. lock.map(function (item) {
  1280. if (item.value == str) {
  1281. theType = item.key;
  1282. };
  1283. });
  1284. return theType;
  1285. }
  1286. },
  1287. //支付方式
  1288. getPaymentMethod:function(e){
  1289. if (e||e==0) {
  1290. let str=e.toString()
  1291. let theType = '';
  1292. paymentMethod.map(function (item) {
  1293. if (item.value == str) {
  1294. theType = item.key;
  1295. };
  1296. });
  1297. return theType;
  1298. }
  1299. },
  1300. //交易渠道
  1301. getTransactionChannel:function(e){
  1302. if (e||e==0) {
  1303. let str=e.toString()
  1304. let theType = '';
  1305. transactionChannel.map(function (item) {
  1306. if (item.value == str) {
  1307. theType = item.key;
  1308. };
  1309. });
  1310. return theType;
  1311. }
  1312. },
  1313. //交易科目
  1314. getTransactionProject:function(e){
  1315. if (e||e==0) {
  1316. let str=e.toString()
  1317. let theType = '';
  1318. transactionProject.map(function (item) {
  1319. if (item.value == str) {
  1320. theType = item.key;
  1321. };
  1322. });
  1323. return theType;
  1324. }
  1325. },
  1326. //项目状态
  1327. getProjectState:function(e){
  1328. if (e||e==0) {
  1329. let str=e.toString()
  1330. let theType = '';
  1331. projectState.map(function (item) {
  1332. if (item.value == str) {
  1333. theType = item.key;
  1334. };
  1335. });
  1336. return theType;
  1337. }
  1338. },
  1339. //任务状态
  1340. getTaskStatus:function(e){
  1341. if (e||e==0) {
  1342. let str=e.toString()
  1343. let theType = '';
  1344. taskStatus.map(function (item) {
  1345. if (item.value == str) {
  1346. theType = item.key;
  1347. };
  1348. });
  1349. return theType;
  1350. }
  1351. },
  1352. //公示状态
  1353. getPublishStatus:function(e){
  1354. if (e||e==0) {
  1355. let str=e.toString()
  1356. let theType = '';
  1357. publishStatus.map(function (item) {
  1358. if (item.value == str) {
  1359. theType = item.key;
  1360. };
  1361. });
  1362. return theType;
  1363. }
  1364. },
  1365. //变更状态
  1366. getChangeState:function(e){
  1367. if (e||e==0) {
  1368. let str=e.toString()
  1369. let theType = '';
  1370. changeState.map(function (item) {
  1371. if (item.value == str) {
  1372. theType = item.key;
  1373. };
  1374. });
  1375. return theType;
  1376. }
  1377. },
  1378. //分派情况
  1379. getDistributeState:function(e){
  1380. if (e||e==0) {
  1381. let str=e.toString()
  1382. let theType = '';
  1383. distributeState.map(function (item) {
  1384. if (item.value == str) {
  1385. theType = item.key;
  1386. };
  1387. });
  1388. return theType;
  1389. }
  1390. },
  1391. //客户来源
  1392. getCustomerSource:function(e){
  1393. if (e||e==0) {
  1394. let str=e.toString()
  1395. let theType = '';
  1396. customerSource.map(function (item) {
  1397. if (item.value == str) {
  1398. theType = item.key;
  1399. };
  1400. });
  1401. return theType;
  1402. }
  1403. },
  1404. //客户来源
  1405. getSlcRedit:function(e){
  1406. if (e||e==0) {
  1407. let str=e.toString()
  1408. let theType = '';
  1409. slcRedit.map(function (item) {
  1410. if (item.value == str) {
  1411. theType = item.key;
  1412. };
  1413. });
  1414. return theType;
  1415. }
  1416. },
  1417. //客户来源
  1418. getDataGrade:function(e){
  1419. if (e||e==0) {
  1420. let str=e.toString()
  1421. let theType = '';
  1422. dataGrade.map(function (item) {
  1423. if (item.value == str) {
  1424. theType = item.key;
  1425. };
  1426. });
  1427. return theType;
  1428. }
  1429. },
  1430. //客户等级
  1431. getLevel:function(e){
  1432. if (e||e==0) {
  1433. let str=e.toString()
  1434. let theType = '';
  1435. level.map(function (item) {
  1436. if (item.value == str) {
  1437. theType = item.key;
  1438. };
  1439. });
  1440. return theType;
  1441. }
  1442. },
  1443. //项目状态
  1444. getXiangmoState:function(e){
  1445. if (e||e==0) {
  1446. let str=e.toString()
  1447. let theType = '';
  1448. xiangmoState.map(function (item) {
  1449. if (item.value == str) {
  1450. theType = item.key;
  1451. };
  1452. });
  1453. return theType;
  1454. }
  1455. },
  1456. //订单状态
  1457. getNewOrderStatus:function(e){
  1458. if (e||e==0) {
  1459. let str=e.toString()
  1460. let theType = '';
  1461. newOrderStatus.map(function (item) {
  1462. if (item.value == str) {
  1463. theType = item.key;
  1464. };
  1465. });
  1466. return theType;
  1467. }
  1468. },
  1469. //催款状态
  1470. getCuikuan:function(e){
  1471. if (e||e==0) {
  1472. let str=e.toString()
  1473. let theType = '';
  1474. cuikuan.map(function (item) {
  1475. if (item.value == str) {
  1476. theType = item.key;
  1477. };
  1478. });
  1479. return theType;
  1480. }
  1481. },
  1482. //分配状态
  1483. // getAllotStatus:function (e) {
  1484. // if (e||e==0) {
  1485. // let str=e.toString()
  1486. // let theType = '';
  1487. // processStatus.map(function (item) {
  1488. // if (item.value == str) {
  1489. // theType = item.key;
  1490. // };
  1491. // });
  1492. // return theType;
  1493. // }
  1494. // },
  1495. //退单状态
  1496. getRefundStatus:function(e){
  1497. if (e||e==0) {
  1498. let str=e.toString()
  1499. let theType = '';
  1500. refundStatus.map(function (item) {
  1501. if (item.value == str) {
  1502. theType = item.key;
  1503. };
  1504. });
  1505. return theType;
  1506. }
  1507. },
  1508. //退单状态
  1509. getTaskStatus:function(e){
  1510. if (e||e==0) {
  1511. let str=e.toString()
  1512. let theType = '';
  1513. taskStatus.map(function (item) {
  1514. if (item.value == str) {
  1515. theType = item.key;
  1516. };
  1517. });
  1518. return theType;
  1519. }
  1520. },
  1521. //特批状态
  1522. getApproval:function(e){
  1523. if (e||e==0) {
  1524. let str=e.toString()
  1525. let theType = '';
  1526. approval.map(function (item) {
  1527. if (item.value == str) {
  1528. theType = item.key;
  1529. };
  1530. });
  1531. return theType;
  1532. }
  1533. },
  1534. //项目状态
  1535. getProjectStatus:function(e){
  1536. if (e||e==0) {
  1537. let str=e.toString()
  1538. let theType = '';
  1539. projectStatus.map(function (item) {
  1540. if (item.value == str) {
  1541. theType = item.key;
  1542. };
  1543. });
  1544. return theType;
  1545. }
  1546. },
  1547. //流程状态
  1548. getProcessStatus:function(e){
  1549. if (e||e==0) {
  1550. let str=e.toString()
  1551. let theType = '';
  1552. processStatus.map(function (item) {
  1553. if (item.value == str) {
  1554. theType = item.key;
  1555. };
  1556. });
  1557. return theType;
  1558. }
  1559. },
  1560. //结算状态
  1561. getLiquidationStatus:function(e){
  1562. if (e||e==0) {
  1563. let str=e.toString()
  1564. let theType = '';
  1565. liquidationStatus.map(function (item) {
  1566. if (item.value == str) {
  1567. theType = item.key;
  1568. };
  1569. });
  1570. return theType;
  1571. }
  1572. },//
  1573. //新项目类型
  1574. getNewOrderType:function(e){
  1575. if (e||e==0) {
  1576. let str=e.toString()
  1577. let theType = '';
  1578. newOrderType.map(function (item) {
  1579. if (item.value == str) {
  1580. theType = item.key;
  1581. };
  1582. });
  1583. return theType;
  1584. }
  1585. },
  1586. //技术员发款类型
  1587. getJsyPaymentType:function(e){
  1588. if (e||e==0) {
  1589. let str=e.toString()
  1590. let theType = '';
  1591. jsyPaymentType.map(function (item) {
  1592. if (item.value == str) {
  1593. theType = item.key;
  1594. };
  1595. });
  1596. return theType;
  1597. }//
  1598. },
  1599. //奖金发放状态
  1600. getBonusState:function(e){
  1601. if (e||e==0) {
  1602. let str=e.toString()
  1603. let theType = '';
  1604. bonusState.map(function (item) {
  1605. if (item.value == str) {
  1606. theType = item.key;
  1607. };
  1608. });
  1609. return theType;
  1610. }
  1611. },
  1612. //技术员发款类型
  1613. getCustomerType:function(e){
  1614. if (e||e==0) {
  1615. let str=e.toString()
  1616. let theType = '';
  1617. customerType.map(function (item) {
  1618. if (item.value == str) {
  1619. theType = item.key;
  1620. };
  1621. });
  1622. return theType;
  1623. }
  1624. },
  1625. //技术员发款类型
  1626. getOrderTypes:function(e){
  1627. if (e||e==0) {
  1628. let str=e.toString()
  1629. let theType = '';
  1630. orderTypes.map(function (item) {
  1631. if (item.value == str) {
  1632. theType = item.key;
  1633. };
  1634. });
  1635. return theType;
  1636. }
  1637. },
  1638. //技术员发款类型
  1639. getjiedian:function(e){
  1640. if (e||e==0) {
  1641. let str=e.toString()
  1642. let theType = '';
  1643. jiedian.map(function (item) {
  1644. if (item.value == str) {
  1645. theType = item.key;
  1646. };
  1647. });
  1648. return theType;
  1649. }
  1650. },
  1651. //省内外
  1652. getProvinceA:function(e){
  1653. if (e||e==0) {
  1654. let str=e.toString()
  1655. let theType = '';
  1656. province.map(function (item) {
  1657. if (item.value == str) {
  1658. theType = item.key;
  1659. };
  1660. });
  1661. return theType;
  1662. }
  1663. },
  1664. //开票状态
  1665. getInvoiceStatus:function(e){
  1666. if (e||e==0) {
  1667. let str=e.toString()
  1668. let theType = '';
  1669. invoiceStatus.map(function (item) {
  1670. if (item.value == str) {
  1671. theType = item.key;
  1672. };
  1673. });
  1674. return theType;
  1675. }
  1676. },
  1677. getApprovalA:function(e){
  1678. if (e||e==0) {
  1679. let str=e.toString()
  1680. let theType = '';
  1681. approvalA.map(function (item) {
  1682. if (item.value == str) {
  1683. theType = item.key;
  1684. };
  1685. });
  1686. return theType;
  1687. }
  1688. },
  1689. getProcessStatusNew:function(e){
  1690. if (e||e==0) {
  1691. let str=e.toString()
  1692. let theType = '';
  1693. processStatusNew.map(function (item) {
  1694. if (item.value == str) {
  1695. theType = item.key;
  1696. };
  1697. });
  1698. return theType;
  1699. }
  1700. },
  1701. getContractChangeStatus:function(e){
  1702. if (e||e==0) {
  1703. let str=e.toString()
  1704. let theType = '';
  1705. contractChangeStatus.map(function (item) {
  1706. if (item.value == str) {
  1707. theType = item.key;
  1708. };
  1709. });
  1710. return theType;
  1711. }
  1712. }
  1713. }