conversionCarbonEmissionFactors.vue 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812
  1. <template>
  2. <div style="width: 1200px; margin: auto">
  3. <div :class="$i18n.locale === 'zh' ? 'user-title1' : 'user-title2'">
  4. <div class="information">
  5. {{ $i18n.locale === 'zh' ? '快速选择:' : 'Quick selection' }}
  6. </div>
  7. <div
  8. @click="getInfo('0')"
  9. :class="informationsClass == 0 ? 'information2' : 'information1'"
  10. >
  11. {{ $i18n.locale === 'zh' ? '全部' : 'Whole' }}
  12. </div>
  13. <div
  14. @click="getInfo('1')"
  15. :class="informationsClass == 1 ? 'information2' : 'information1'"
  16. >
  17. {{ $i18n.locale === 'zh' ? '原煤' : 'Raw coal' }}
  18. </div>
  19. <div
  20. @click="getInfo('2')"
  21. :class="informationsClass == 2 ? 'information2' : 'information1'"
  22. >
  23. {{ $i18n.locale === 'zh' ? '洗精煤' : 'Washed coal' }}
  24. </div>
  25. <div
  26. @click="getInfo('3')"
  27. :class="informationsClass == 3 ? 'information2' : 'information1'"
  28. >
  29. {{ $i18n.locale === 'zh' ? '焦炭' : 'Coke' }}
  30. </div>
  31. <div
  32. @click="getInfo('4')"
  33. :class="informationsClass == 4 ? 'information2' : 'information1'"
  34. >
  35. {{ $i18n.locale === 'zh' ? '原油' : 'Crude oil' }}
  36. </div>
  37. <div
  38. @click="getInfo('5')"
  39. :class="informationsClass == 5 ? 'information2' : 'information1'"
  40. >
  41. {{ $i18n.locale === 'zh' ? '柴油' : 'Diesel oil' }}
  42. </div>
  43. <div
  44. @click="getInfo('6')"
  45. :class="informationsClass == 6 ? 'information2' : 'information1'"
  46. >
  47. {{ $i18n.locale === 'zh' ? '汽油/煤油' : 'Gasoline/Kerosene' }}
  48. </div>
  49. <div
  50. @click="getInfo('7')"
  51. :class="informationsClass == 7 ? 'information2' : 'information1'"
  52. >
  53. {{ $i18n.locale === 'zh' ? '天然气' : 'Natural gas' }}
  54. </div>
  55. <div
  56. @click="getInfo('8')"
  57. :class="informationsClass == 8 ? 'information2' : 'information1'"
  58. >
  59. {{ $i18n.locale === 'zh' ? '液化石油气' : 'Liquefied petroleum gas' }}
  60. </div>
  61. </div>
  62. <div v-if="userRaw" style="width: 98%; margin-left: 1%">
  63. <div style="display: flex">
  64. <div style="width: 40px; height: 40px">
  65. <img
  66. src="@/assets/userUntil-8.png"
  67. style="width: 100%; height: 100%"
  68. />
  69. </div>
  70. <div
  71. style="
  72. font-size: 22px;
  73. font-weight: 700;
  74. height: 40px;
  75. line-height: 40px;
  76. margin-left: 10px;
  77. "
  78. >
  79. {{ $i18n.locale === 'zh' ? '原煤' : 'Raw Coal' }}
  80. </div>
  81. </div>
  82. <div style="border-top: 1px solid #d7d7d7; width: 100%"></div>
  83. <div style="display: flex; justify-content: space-evenly; width: 100%">
  84. <div style="display: flex; width: 48%">
  85. <ul class="text-title" style="width: 30%">
  86. <li>{{ $i18n.locale === 'zh' ? '吨(t)' : 't' }}</li>
  87. <li>{{ $i18n.locale === 'zh' ? '千磅(lb)' : 'lb' }}</li>
  88. <li>{{ $i18n.locale === 'zh' ? '长吨(lt)' : 'lt' }}</li>
  89. <li>{{ $i18n.locale === 'zh' ? '短吨(st)' : 'st' }}</li>
  90. </ul>
  91. <ul style="width: 70%">
  92. <li>
  93. <el-input
  94. type="number"
  95. v-model="a"
  96. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  97. @focus="getFocus('20')"
  98. @blur="lostBlur"
  99. @input="getNum('a')"
  100. :class="focusClass == 20 ? 'focusClass2' : 'focusClass1'"
  101. /><el-button class="user-btn" @click="getNum('a')">{{
  102. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  103. }}</el-button>
  104. </li>
  105. <li>
  106. <el-input
  107. type="number"
  108. v-model="b"
  109. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  110. @focus="getFocus('21')"
  111. @blur="lostBlur"
  112. @input="getNum('b')"
  113. :class="focusClass == 21 ? 'focusClass2' : 'focusClass1'"
  114. /><el-button class="user-btn" @click="getNum('b')">{{
  115. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  116. }}</el-button>
  117. </li>
  118. <li>
  119. <el-input
  120. type="number"
  121. v-model="c"
  122. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  123. @focus="getFocus('22')"
  124. @blur="lostBlur"
  125. @input="getNum('c')"
  126. :class="focusClass == 22 ? 'focusClass2' : 'focusClass1'"
  127. /><el-button class="user-btn" @click="getNum('c')">{{
  128. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  129. }}</el-button>
  130. </li>
  131. <li>
  132. <el-input
  133. type="number"
  134. v-model="d"
  135. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  136. @focus="getFocus('23')"
  137. @blur="lostBlur"
  138. @input="getNum('d')"
  139. :class="focusClass == 23 ? 'focusClass2' : 'focusClass1'"
  140. /><el-button class="user-btn" @click="getNum('d')">{{
  141. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  142. }}</el-button>
  143. </li>
  144. </ul>
  145. </div>
  146. <div style="display: flex; width: 48%">
  147. <ul class="text-title" style="width: 30%">
  148. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  149. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  150. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  151. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  152. </ul>
  153. <ul style="width: 70%" class="ui-bgcText">
  154. <li><el-input v-model="aa" :disabled="true"></el-input></li>
  155. <li><el-input v-model="bb" :disabled="true"></el-input></li>
  156. <li><el-input v-model="cc" :disabled="true"></el-input></li>
  157. <li><el-input v-model="dd" :disabled="true"></el-input></li>
  158. </ul>
  159. </div>
  160. </div>
  161. <div>
  162. <el-button class="user-btn-clear" @click="getNum('0')">{{
  163. $i18n.locale === 'zh' ? '数 据 重 置' : 'Data reset'
  164. }}</el-button>
  165. </div>
  166. </div>
  167. <div v-if="userWashed" style="width: 98%; margin-left: 1%">
  168. <div style="display: flex">
  169. <div style="width: 40px; height: 40px">
  170. <img
  171. src="@/assets/userUntil-8.png"
  172. style="width: 100%; height: 100%"
  173. />
  174. </div>
  175. <div
  176. style="
  177. font-size: 22px;
  178. font-weight: 700;
  179. height: 40px;
  180. line-height: 40px;
  181. margin-left: 10px;
  182. "
  183. >
  184. {{ $i18n.locale === 'zh' ? '洗精煤' : 'Washed Coal' }}
  185. </div>
  186. </div>
  187. <div style="border-top: 1px solid #d7d7d7; width: 100%"></div>
  188. <div style="display: flex; justify-content: space-evenly; width: 100%">
  189. <div style="display: flex; width: 48%">
  190. <ul class="text-title" style="width: 30%">
  191. <li>{{ $i18n.locale === 'zh' ? '吨(t)' : 't' }}</li>
  192. <li>{{ $i18n.locale === 'zh' ? '千磅(lb)' : 'lb' }}</li>
  193. <li>{{ $i18n.locale === 'zh' ? '长吨(lt)' : 'lt' }}</li>
  194. <li>{{ $i18n.locale === 'zh' ? '短吨(st)' : 'st' }}</li>
  195. </ul>
  196. <ul style="width: 70%">
  197. <li>
  198. <el-input
  199. type="number"
  200. v-model="a1"
  201. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  202. @focus="getFocus('24')"
  203. @blur="lostBlur"
  204. @input="getCoal('a')"
  205. :class="focusClass == 24 ? 'focusClass2' : 'focusClass1'"
  206. /><el-button class="user-btn" @click="getCoal('a')">{{
  207. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  208. }}</el-button>
  209. </li>
  210. <li>
  211. <el-input
  212. type="number"
  213. v-model="b1"
  214. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  215. @focus="getFocus('25')"
  216. @blur="lostBlur"
  217. @input="getCoal('b')"
  218. :class="focusClass == 25 ? 'focusClass2' : 'focusClass1'"
  219. /><el-button class="user-btn" @click="getCoal('b')">{{
  220. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  221. }}</el-button>
  222. </li>
  223. <li>
  224. <el-input
  225. type="number"
  226. v-model="c1"
  227. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  228. @focus="getFocus('26')"
  229. @blur="lostBlur"
  230. @input="getCoal('c')"
  231. :class="focusClass == 26 ? 'focusClass2' : 'focusClass1'"
  232. /><el-button class="user-btn" @click="getCoal('c')">{{
  233. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  234. }}</el-button>
  235. </li>
  236. <li>
  237. <el-input
  238. type="number"
  239. v-model="d1"
  240. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  241. @focus="getFocus('27')"
  242. @blur="lostBlur"
  243. @input="getCoal('d')"
  244. :class="focusClass == 27 ? 'focusClass2' : 'focusClass1'"
  245. /><el-button class="user-btn" @click="getCoal('d')">{{
  246. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  247. }}</el-button>
  248. </li>
  249. </ul>
  250. </div>
  251. <div style="display: flex; width: 48%">
  252. <ul class="text-title" style="width: 30%">
  253. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  254. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  255. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  256. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  257. </ul>
  258. <ul style="width: 70%" class="ui-bgcText">
  259. <li><el-input v-model="aa1" :disabled="true"></el-input></li>
  260. <li><el-input v-model="bb1" :disabled="true"></el-input></li>
  261. <li><el-input v-model="cc1" :disabled="true"></el-input></li>
  262. <li><el-input v-model="dd1" :disabled="true"></el-input></li>
  263. </ul>
  264. </div>
  265. </div>
  266. <div>
  267. <el-button class="user-btn-clear" @click="getCoal('0')">{{
  268. $i18n.locale === 'zh' ? '数 据 重 置' : 'Data reset'
  269. }}</el-button>
  270. </div>
  271. </div>
  272. <div v-if="userCoke" style="width: 98%; margin-left: 1%">
  273. <div style="display: flex">
  274. <div style="width: 40px; height: 40px">
  275. <img
  276. src="@/assets/userUntil-8.png"
  277. style="width: 100%; height: 100%"
  278. />
  279. </div>
  280. <div
  281. style="
  282. font-size: 22px;
  283. font-weight: 700;
  284. height: 40px;
  285. line-height: 40px;
  286. margin-left: 10px;
  287. "
  288. >
  289. {{ $i18n.locale === 'zh' ? '焦炭' : 'Coke' }}
  290. </div>
  291. </div>
  292. <div style="border-top: 1px solid #d7d7d7; width: 100%"></div>
  293. <div style="display: flex; justify-content: space-evenly; width: 100%">
  294. <div style="display: flex; width: 48%">
  295. <ul class="text-title" style="width: 30%">
  296. <li>{{ $i18n.locale === 'zh' ? '吨(t)' : 't' }}</li>
  297. <li>{{ $i18n.locale === 'zh' ? '千磅(lb)' : 'lb' }}</li>
  298. <li>{{ $i18n.locale === 'zh' ? '长吨(lt)' : 'lt' }}</li>
  299. <li>{{ $i18n.locale === 'zh' ? '短吨(st)' : 'st' }}</li>
  300. </ul>
  301. <ul style="width: 70%">
  302. <li>
  303. <el-input
  304. type="number"
  305. v-model="a2"
  306. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  307. @focus="getFocus('28')"
  308. @blur="lostBlur"
  309. @input="getCoke('a')"
  310. :class="focusClass == 28 ? 'focusClass2' : 'focusClass1'"
  311. /><el-button class="user-btn" @click="getCoke('a')">{{
  312. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  313. }}</el-button>
  314. </li>
  315. <li>
  316. <el-input
  317. type="number"
  318. v-model="b2"
  319. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  320. @focus="getFocus('29')"
  321. @blur="lostBlur"
  322. @input="getCoke('b')"
  323. :class="focusClass == 29 ? 'focusClass2' : 'focusClass1'"
  324. /><el-button class="user-btn" @click="getCoke('b')">{{
  325. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  326. }}</el-button>
  327. </li>
  328. <li>
  329. <el-input
  330. type="number"
  331. v-model="c2"
  332. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  333. @focus="getFocus('30')"
  334. @blur="lostBlur"
  335. @input="getCoke('c')"
  336. :class="focusClass == 30 ? 'focusClass2' : 'focusClass1'"
  337. /><el-button class="user-btn" @click="getCoke('c')">{{
  338. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  339. }}</el-button>
  340. </li>
  341. <li>
  342. <el-input
  343. type="number"
  344. v-model="d2"
  345. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  346. @focus="getFocus('31')"
  347. @blur="lostBlur"
  348. @input="getCoke('d')"
  349. :class="focusClass == 31 ? 'focusClass2' : 'focusClass1'"
  350. /><el-button class="user-btn" @click="getCoke('d')">{{
  351. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  352. }}</el-button>
  353. </li>
  354. </ul>
  355. </div>
  356. <div style="display: flex; width: 48%">
  357. <ul class="text-title" style="width: 30%">
  358. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  359. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  360. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  361. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  362. </ul>
  363. <ul style="width: 70%" class="ui-bgcText">
  364. <li><el-input v-model="aa2" :disabled="true"></el-input></li>
  365. <li><el-input v-model="bb2" :disabled="true"></el-input></li>
  366. <li><el-input v-model="cc2" :disabled="true"></el-input></li>
  367. <li><el-input v-model="dd2" :disabled="true"></el-input></li>
  368. </ul>
  369. </div>
  370. </div>
  371. <div>
  372. <el-button class="user-btn-clear" @click="getCoke('0')">{{
  373. $i18n.locale === 'zh' ? '数 据 重 置' : 'Data reset'
  374. }}</el-button>
  375. </div>
  376. </div>
  377. <div v-if="userCrude" style="width: 98%; margin-left: 1%">
  378. <div style="display: flex">
  379. <div style="width: 40px; height: 40px">
  380. <img
  381. src="@/assets/userUntil-5.png"
  382. style="width: 100%; height: 100%"
  383. />
  384. </div>
  385. <div
  386. style="
  387. font-size: 22px;
  388. font-weight: 700;
  389. height: 40px;
  390. line-height: 40px;
  391. margin-left: 10px;
  392. "
  393. >
  394. {{ $i18n.locale === 'zh' ? '原油' : 'Crude Oil' }}
  395. </div>
  396. </div>
  397. <div style="border-top: 1px solid #d7d7d7; width: 100%"></div>
  398. <div style="display: flex; justify-content: space-evenly; width: 100%">
  399. <div style="display: flex; width: 48%">
  400. <ul class="text-title" style="width: 30%">
  401. <li>{{ $i18n.locale === 'zh' ? '千升(KL)' : 'KL' }}</li>
  402. <li>
  403. {{ $i18n.locale === 'zh' ? '千美制加仑(kgal.US)' : 'kgal.US' }}
  404. </li>
  405. <li>
  406. {{ $i18n.locale === 'zh' ? '千英制加仑(kgal.UK)' : 'kgal.UK' }}
  407. </li>
  408. <li>{{ $i18n.locale === 'zh' ? '桶(bbl)' : 'bbl' }}</li>
  409. <li>{{ $i18n.locale === 'zh' ? '吨(t)' : 't' }}</li>
  410. </ul>
  411. <ul style="width: 70%">
  412. <li>
  413. <el-input
  414. type="number"
  415. v-model="f"
  416. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  417. @focus="getFocus('1')"
  418. @blur="lostBlur"
  419. @input="getOil('f')"
  420. :class="focusClass == 1 ? 'focusClass2' : 'focusClass1'"
  421. /><el-button class="user-btn" @click="getOil('f')">{{
  422. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  423. }}</el-button>
  424. </li>
  425. <li>
  426. <el-input
  427. type="number"
  428. v-model="g"
  429. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  430. @focus="getFocus('2')"
  431. @blur="lostBlur"
  432. @input="getOil('g')"
  433. :class="focusClass == 2 ? 'focusClass2' : 'focusClass1'"
  434. /><el-button class="user-btn" @click="getOil('g')">{{
  435. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  436. }}</el-button>
  437. </li>
  438. <li>
  439. <el-input
  440. type="number"
  441. v-model="h"
  442. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  443. @focus="getFocus('3')"
  444. @blur="lostBlur"
  445. @input="getOil('h')"
  446. :class="focusClass == 3 ? 'focusClass2' : 'focusClass1'"
  447. /><el-button class="user-btn" @click="getOil('h')">{{
  448. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  449. }}</el-button>
  450. </li>
  451. <li>
  452. <el-input
  453. type="number"
  454. v-model="i"
  455. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  456. @focus="getFocus('4')"
  457. @blur="lostBlur"
  458. @input="getOil('i')"
  459. :class="focusClass == 4 ? 'focusClass2' : 'focusClass1'"
  460. /><el-button class="user-btn" @click="getOil('i')">{{
  461. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  462. }}</el-button>
  463. </li>
  464. <li>
  465. <el-input
  466. type="number"
  467. v-model="j"
  468. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  469. @focus="getFocus('5')"
  470. @blur="lostBlur"
  471. @input="getOil('j')"
  472. :class="focusClass == 5 ? 'focusClass2' : 'focusClass1'"
  473. /><el-button class="user-btn" @click="getOil('j')">{{
  474. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  475. }}</el-button>
  476. </li>
  477. </ul>
  478. </div>
  479. <div style="display: flex; width: 48%">
  480. <ul class="text-title" style="width: 30%">
  481. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  482. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  483. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  484. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  485. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  486. </ul>
  487. <ul style="width: 70%" class="ui-bgcText">
  488. <li><el-input v-model="ff" :disabled="true"></el-input></li>
  489. <li><el-input v-model="gg" :disabled="true"></el-input></li>
  490. <li><el-input v-model="hh" :disabled="true"></el-input></li>
  491. <li><el-input v-model="ii" :disabled="true"></el-input></li>
  492. <li><el-input v-model="jj" :disabled="true"></el-input></li>
  493. </ul>
  494. </div>
  495. </div>
  496. <div>
  497. <el-button class="user-btn-clear" @click="getOil('0')">{{
  498. $i18n.locale === 'zh' ? '数 据 重 置' : 'Data reset'
  499. }}</el-button>
  500. </div>
  501. </div>
  502. <div v-if="userDiesel" style="width: 98%; margin-left: 1%">
  503. <div style="display: flex">
  504. <div style="width: 40px; height: 40px">
  505. <img
  506. src="@/assets/userUntil-5.png"
  507. style="width: 100%; height: 100%"
  508. />
  509. </div>
  510. <div
  511. style="
  512. font-size: 22px;
  513. font-weight: 700;
  514. height: 40px;
  515. line-height: 40px;
  516. margin-left: 10px;
  517. "
  518. >
  519. {{ $i18n.locale === 'zh' ? '柴油' : 'Diesel Oil' }}
  520. </div>
  521. </div>
  522. <div style="border-top: 1px solid #d7d7d7; width: 100%"></div>
  523. <div style="display: flex; justify-content: space-evenly; width: 100%">
  524. <div style="display: flex; width: 48%">
  525. <ul class="text-title" style="width: 30%">
  526. <li>{{ $i18n.locale === 'zh' ? '千升(KL)' : 'KL' }}</li>
  527. <li>
  528. {{ $i18n.locale === 'zh' ? '千美制加仑(kgal.US)' : 'kgal.US' }}
  529. </li>
  530. <li>
  531. {{ $i18n.locale === 'zh' ? '千英制加仑(kgal.UK)' : 'kgal.UK' }}
  532. </li>
  533. <li>{{ $i18n.locale === 'zh' ? '吨(t)' : 't' }}</li>
  534. </ul>
  535. <ul style="width: 70%">
  536. <li>
  537. <el-input
  538. type="number"
  539. v-model="f1"
  540. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  541. @focus="getFocus('6')"
  542. @blur="lostBlur"
  543. @input="getDiesel('f')"
  544. :class="focusClass == 6 ? 'focusClass2' : 'focusClass1'"
  545. /><el-button class="user-btn" @click="getDiesel('f')">{{
  546. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  547. }}</el-button>
  548. </li>
  549. <li>
  550. <el-input
  551. type="number"
  552. v-model="g1"
  553. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  554. @focus="getFocus('7')"
  555. @blur="lostBlur"
  556. @input="getDiesel('g')"
  557. :class="focusClass == 7 ? 'focusClass2' : 'focusClass1'"
  558. /><el-button class="user-btn" @click="getDiesel('g')">{{
  559. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  560. }}</el-button>
  561. </li>
  562. <li>
  563. <el-input
  564. type="number"
  565. v-model="h1"
  566. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  567. @focus="getFocus('8')"
  568. @blur="lostBlur"
  569. @input="getDiesel('h')"
  570. :class="focusClass == 8 ? 'focusClass2' : 'focusClass1'"
  571. /><el-button class="user-btn" @click="getDiesel('h')">{{
  572. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  573. }}</el-button>
  574. </li>
  575. <li>
  576. <el-input
  577. type="number"
  578. v-model="j1"
  579. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  580. @focus="getFocus('9')"
  581. @blur="lostBlur"
  582. @input="getDiesel('j')"
  583. :class="focusClass == 9 ? 'focusClass2' : 'focusClass1'"
  584. /><el-button class="user-btn" @click="getDiesel('j')">{{
  585. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  586. }}</el-button>
  587. </li>
  588. </ul>
  589. </div>
  590. <div style="display: flex; width: 48%">
  591. <ul class="text-title" style="width: 30%">
  592. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  593. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  594. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  595. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  596. </ul>
  597. <ul style="width: 70%" class="ui-bgcText">
  598. <li><el-input v-model="ff1" :disabled="true"></el-input></li>
  599. <li><el-input v-model="gg1" :disabled="true"></el-input></li>
  600. <li><el-input v-model="hh1" :disabled="true"></el-input></li>
  601. <li><el-input v-model="jj1" :disabled="true"></el-input></li>
  602. </ul>
  603. </div>
  604. </div>
  605. <div>
  606. <el-button class="user-btn-clear" @click="getDiesel('0')">{{
  607. $i18n.locale === 'zh' ? '数 据 重 置' : 'Data reset'
  608. }}</el-button>
  609. </div>
  610. </div>
  611. <div v-if="userGasoline" style="width: 98%; margin-left: 1%">
  612. <div style="display: flex">
  613. <div style="width: 40px; height: 40px">
  614. <img
  615. src="@/assets/userUntil-5.png"
  616. style="width: 100%; height: 100%"
  617. />
  618. </div>
  619. <div
  620. style="
  621. font-size: 22px;
  622. font-weight: 700;
  623. height: 40px;
  624. line-height: 40px;
  625. margin-left: 10px;
  626. "
  627. >
  628. {{ $i18n.locale === 'zh' ? '汽油/煤油' : 'Gasoline/Kerosene' }}
  629. </div>
  630. </div>
  631. <div style="border-top: 1px solid #d7d7d7; width: 100%"></div>
  632. <div style="display: flex; justify-content: space-evenly; width: 100%">
  633. <div style="display: flex; width: 48%">
  634. <ul class="text-title" style="width: 30%">
  635. <li>{{ $i18n.locale === 'zh' ? '千升(KL)' : 'KL' }}</li>
  636. <li>
  637. {{ $i18n.locale === 'zh' ? '千美制加仑(kgal.US)' : 'kgal.US' }}
  638. </li>
  639. <li>
  640. {{ $i18n.locale === 'zh' ? '千英制加仑(kgal.UK)' : 'kgal.UK' }}
  641. </li>
  642. <li>{{ $i18n.locale === 'zh' ? '吨(t)' : 't' }}</li>
  643. </ul>
  644. <ul style="width: 70%">
  645. <li>
  646. <el-input
  647. type="number"
  648. v-model="f11"
  649. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  650. @focus="getFocus('10')"
  651. @blur="lostBlur"
  652. @input="getGasoline('f')"
  653. :class="focusClass == 10 ? 'focusClass2' : 'focusClass1'"
  654. /><el-button class="user-btn" @click="getGasoline('f')">{{
  655. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  656. }}</el-button>
  657. </li>
  658. <li>
  659. <el-input
  660. type="number"
  661. v-model="g11"
  662. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  663. @focus="getFocus('11')"
  664. @blur="lostBlur"
  665. @input="getGasoline('g')"
  666. :class="focusClass == 11 ? 'focusClass2' : 'focusClass1'"
  667. /><el-button class="user-btn" @click="getGasoline('g')">{{
  668. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  669. }}</el-button>
  670. </li>
  671. <li>
  672. <el-input
  673. type="number"
  674. v-model="h11"
  675. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  676. @focus="getFocus('12')"
  677. @blur="lostBlur"
  678. @input="getGasoline('h')"
  679. :class="focusClass == 12 ? 'focusClass2' : 'focusClass1'"
  680. /><el-button class="user-btn" @click="getGasoline('h')">{{
  681. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  682. }}</el-button>
  683. </li>
  684. <li>
  685. <el-input
  686. type="number"
  687. v-model="j11"
  688. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  689. @focus="getFocus('13')"
  690. @blur="lostBlur"
  691. @input="getGasoline('j')"
  692. :class="focusClass == 13 ? 'focusClass2' : 'focusClass1'"
  693. /><el-button class="user-btn" @click="getGasoline('j')">{{
  694. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  695. }}</el-button>
  696. </li>
  697. </ul>
  698. </div>
  699. <div style="display: flex; width: 48%">
  700. <ul class="text-title" style="width: 30%">
  701. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  702. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  703. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  704. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  705. </ul>
  706. <ul style="width: 70%" class="ui-bgcText">
  707. <li><el-input v-model="ff11" :disabled="true"></el-input></li>
  708. <li><el-input v-model="gg11" :disabled="true"></el-input></li>
  709. <li><el-input v-model="hh11" :disabled="true"></el-input></li>
  710. <li><el-input v-model="jj11" :disabled="true"></el-input></li>
  711. </ul>
  712. </div>
  713. </div>
  714. <div>
  715. <el-button class="user-btn-clear" @click="getGasoline('0')">{{
  716. $i18n.locale === 'zh' ? '数 据 重 置' : 'Data reset'
  717. }}</el-button>
  718. </div>
  719. </div>
  720. <div v-if="userNatural" style="width: 98%; margin-left: 1%">
  721. <div style="display: flex">
  722. <div style="width: 40px; height: 40px">
  723. <img
  724. src="@/assets/userUntil-1.png"
  725. style="width: 100%; height: 100%"
  726. />
  727. </div>
  728. <div
  729. style="
  730. font-size: 22px;
  731. font-weight: 700;
  732. height: 40px;
  733. line-height: 40px;
  734. margin-left: 10px;
  735. "
  736. >
  737. {{ $i18n.locale === 'zh' ? '天然气' : 'Natural gas' }}
  738. </div>
  739. </div>
  740. <div style="border-top: 1px solid #d7d7d7; width: 100%"></div>
  741. <div style="display: flex; justify-content: space-evenly; width: 100%">
  742. <div style="display: flex; width: 48%">
  743. <ul class="text-title" style="width: 30%">
  744. <li>{{ $i18n.locale === 'zh' ? '千立方米(k·m3)' : 'k·m3' }}</li>
  745. <li>
  746. {{ $i18n.locale === 'zh' ? '千立方英尺(k·ft3)' : 'k·ft3' }}
  747. </li>
  748. </ul>
  749. <ul style="width: 70%">
  750. <li>
  751. <el-input
  752. type="number"
  753. v-model="k"
  754. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  755. @focus="getFocus('14')"
  756. @blur="lostBlur"
  757. @input="getNatural('k')"
  758. :class="focusClass == 14 ? 'focusClass2' : 'focusClass1'"
  759. /><el-button class="user-btn" @click="getNatural('k')">{{
  760. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  761. }}</el-button>
  762. </li>
  763. <li>
  764. <el-input
  765. type="number"
  766. v-model="l"
  767. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  768. @focus="getFocus('15')"
  769. @blur="lostBlur"
  770. @input="getNatural('l')"
  771. :class="focusClass == 15 ? 'focusClass2' : 'focusClass1'"
  772. /><el-button class="user-btn" @click="getNatural('l')">{{
  773. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  774. }}</el-button>
  775. </li>
  776. </ul>
  777. </div>
  778. <div style="display: flex; width: 48%">
  779. <ul class="text-title" style="width: 30%">
  780. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  781. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  782. </ul>
  783. <ul style="width: 70%" class="ui-bgcText">
  784. <li><el-input v-model="kk" :disabled="true"></el-input></li>
  785. <li><el-input v-model="ll" :disabled="true"></el-input></li>
  786. </ul>
  787. </div>
  788. </div>
  789. <div>
  790. <el-button class="user-btn-clear" @click="getNatural('0')">{{
  791. $i18n.locale === 'zh' ? '数 据 重 置' : 'Data reset'
  792. }}</el-button>
  793. </div>
  794. </div>
  795. <div v-if="userLiquefied" style="width: 98%; margin-left: 1%">
  796. <div style="display: flex">
  797. <div style="width: 40px; height: 40px">
  798. <img
  799. src="@/assets/userUntil-1.png"
  800. style="width: 100%; height: 100%"
  801. />
  802. </div>
  803. <div
  804. style="
  805. font-size: 22px;
  806. font-weight: 700;
  807. height: 40px;
  808. line-height: 40px;
  809. margin-left: 10px;
  810. "
  811. >
  812. {{ $i18n.locale === 'zh' ? '液化石油气' : 'Liquefied Petroleum Gas' }}
  813. </div>
  814. </div>
  815. <div style="border-top: 1px solid #d7d7d7; width: 100%"></div>
  816. <div style="display: flex; justify-content: space-evenly; width: 100%">
  817. <div style="display: flex; width: 48%">
  818. <ul class="text-title" style="width: 30%">
  819. <li>{{ $i18n.locale === 'zh' ? '吨(t)' : 't' }}</li>
  820. <li>{{ $i18n.locale === 'zh' ? '千磅(lb)' : 'lb' }}</li>
  821. <li>{{ $i18n.locale === 'zh' ? '长吨(lt)' : 'lt' }}</li>
  822. <li>{{ $i18n.locale === 'zh' ? '短吨(st)' : 'st' }}</li>
  823. </ul>
  824. <ul style="width: 70%">
  825. <li>
  826. <el-input
  827. type="number"
  828. v-model="a3"
  829. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  830. @focus="getFocus('16')"
  831. @blur="lostBlur"
  832. @input="getLiquefied('a')"
  833. :class="focusClass == 16 ? 'focusClass2' : 'focusClass1'"
  834. /><el-button class="user-btn" @click="getLiquefied('a')">{{
  835. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  836. }}</el-button>
  837. </li>
  838. <li>
  839. <el-input
  840. type="number"
  841. v-model="b3"
  842. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  843. @focus="getFocus('17')"
  844. @blur="lostBlur"
  845. @input="getLiquefied('b')"
  846. :class="focusClass == 17 ? 'focusClass2' : 'focusClass1'"
  847. /><el-button class="user-btn" @click="getLiquefied('b')">{{
  848. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  849. }}</el-button>
  850. </li>
  851. <li>
  852. <el-input
  853. type="number"
  854. v-model="c3"
  855. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  856. @focus="getFocus('18')"
  857. @blur="lostBlur"
  858. @input="getLiquefied('c')"
  859. :class="focusClass == 18 ? 'focusClass2' : 'focusClass1'"
  860. /><el-button class="user-btn" @click="getLiquefied('c')">{{
  861. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  862. }}</el-button>
  863. </li>
  864. <li>
  865. <el-input
  866. type="number"
  867. v-model="d3"
  868. :placeholder="this.$i18n.locale === 'zh' ? textInfo : textInfo1"
  869. @focus="getFocus('19')"
  870. @blur="lostBlur"
  871. @input="getLiquefied('d')"
  872. :class="focusClass == 19 ? 'focusClass2' : 'focusClass1'"
  873. /><el-button class="user-btn" @click="getLiquefied('d')">{{
  874. $i18n.locale === 'zh' ? '换 算' : 'Conversion'
  875. }}</el-button>
  876. </li>
  877. </ul>
  878. </div>
  879. <div style="display: flex; width: 48%">
  880. <ul class="text-title" style="width: 30%">
  881. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  882. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  883. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  884. <li>{{ this.$i18n.locale === 'zh' ? textDetail : textDetail1 }}</li>
  885. </ul>
  886. <ul style="width: 70%" class="ui-bgcText">
  887. <li><el-input v-model="aa3" :disabled="true"></el-input></li>
  888. <li><el-input v-model="bb3" :disabled="true"></el-input></li>
  889. <li><el-input v-model="cc3" :disabled="true"></el-input></li>
  890. <li><el-input v-model="dd3" :disabled="true"></el-input></li>
  891. </ul>
  892. </div>
  893. </div>
  894. <div>
  895. <el-button class="user-btn-clear" @click="getLiquefied('0')">{{
  896. $i18n.locale === 'zh' ? '数 据 重 置' : 'Data reset'
  897. }}</el-button>
  898. </div>
  899. </div>
  900. </div>
  901. </template>
  902. <script>
  903. export default {
  904. name: 'unitConversion',
  905. data() {
  906. return {
  907. focusClass: '',
  908. userRaw: true,
  909. userWashed: true,
  910. userCoke: true,
  911. userCrude: true,
  912. userDiesel: true,
  913. userGasoline: true,
  914. userNatural: true,
  915. userLiquefied: true,
  916. informationsClass: '0',
  917. textDetail: '吨二氧化碳(tCO2)',
  918. textDetail1: 'tCO2',
  919. textInfo: '请输入数值',
  920. textInfo1: 'Please enter a value',
  921. //原煤
  922. a: '',
  923. b: '',
  924. c: '',
  925. d: '',
  926. aa: '',
  927. bb: '',
  928. cc: '',
  929. dd: '',
  930. //洗精煤
  931. a1: '',
  932. b1: '',
  933. c1: '',
  934. d1: '',
  935. aa1: '',
  936. bb1: '',
  937. cc1: '',
  938. dd1: '',
  939. //焦炭
  940. a2: '',
  941. b2: '',
  942. c2: '',
  943. d2: '',
  944. aa2: '',
  945. bb2: '',
  946. cc2: '',
  947. dd2: '',
  948. //液化石油气
  949. a3: '',
  950. b3: '',
  951. c3: '',
  952. d3: '',
  953. aa3: '',
  954. bb3: '',
  955. cc3: '',
  956. dd3: '',
  957. //原油
  958. f: '',
  959. g: '',
  960. h: '',
  961. i: '',
  962. j: '',
  963. ff: '',
  964. gg: '',
  965. hh: '',
  966. ii: '',
  967. jj: '',
  968. //柴油
  969. f1: '',
  970. g1: '',
  971. h1: '',
  972. j1: '',
  973. ff1: '',
  974. gg1: '',
  975. hh1: '',
  976. jj1: '',
  977. // 汽油/煤油
  978. f11: '',
  979. g11: '',
  980. h11: '',
  981. j11: '',
  982. ff11: '',
  983. gg11: '',
  984. hh11: '',
  985. jj11: '',
  986. //天然气
  987. k: '',
  988. l: '',
  989. kk: '',
  990. ll: '',
  991. }
  992. },
  993. mounted() {
  994. this.getInfo('0')
  995. },
  996. methods: {
  997. lostBlur() {
  998. this.focusClass = ''
  999. },
  1000. getFocus(num) {
  1001. this.focusClass = num
  1002. },
  1003. getInfo(num) {
  1004. this.informationsClass = num
  1005. if (num == '0') {
  1006. this.userRaw = true
  1007. this.userWashed = true
  1008. this.userCoke = true
  1009. this.userCrude = true
  1010. this.userDiesel = true
  1011. this.userGasoline = true
  1012. this.userNatural = true
  1013. this.userLiquefied = true
  1014. }
  1015. if (num == '1') {
  1016. this.userRaw = true
  1017. this.userWashed = false
  1018. this.userCoke = false
  1019. this.userCrude = false
  1020. this.userDiesel = false
  1021. this.userGasoline = false
  1022. this.userNatural = false
  1023. this.userLiquefied = false
  1024. }
  1025. if (num == '2') {
  1026. this.userRaw = false
  1027. this.userWashed = true
  1028. this.userCoke = false
  1029. this.userCrude = false
  1030. this.userDiesel = false
  1031. this.userGasoline = false
  1032. this.userNatural = false
  1033. this.userLiquefied = false
  1034. }
  1035. if (num == '3') {
  1036. this.userRaw = false
  1037. this.userWashed = false
  1038. this.userCoke = true
  1039. this.userCrude = false
  1040. this.userDiesel = false
  1041. this.userGasoline = false
  1042. this.userNatural = false
  1043. this.userLiquefied = false
  1044. }
  1045. if (num == '4') {
  1046. this.userRaw = false
  1047. this.userWashed = false
  1048. this.userCoke = false
  1049. this.userCrude = true
  1050. this.userDiesel = false
  1051. this.userGasoline = false
  1052. this.userNatural = false
  1053. this.userLiquefied = false
  1054. }
  1055. if (num == '5') {
  1056. this.userRaw = false
  1057. this.userWashed = false
  1058. this.userCoke = false
  1059. this.userCrude = false
  1060. this.userDiesel = true
  1061. this.userGasoline = false
  1062. this.userNatural = false
  1063. this.userLiquefied = false
  1064. }
  1065. if (num == '6') {
  1066. this.userRaw = false
  1067. this.userWashed = false
  1068. this.userCoke = false
  1069. this.userCrude = false
  1070. this.userDiesel = false
  1071. this.userGasoline = true
  1072. this.userNatural = false
  1073. this.userLiquefied = false
  1074. }
  1075. if (num == '7') {
  1076. this.userRaw = false
  1077. this.userWashed = false
  1078. this.userCoke = false
  1079. this.userCrude = false
  1080. this.userDiesel = false
  1081. this.userGasoline = false
  1082. this.userNatural = true
  1083. this.userLiquefied = false
  1084. }
  1085. if (num == '8') {
  1086. this.userRaw = false
  1087. this.userWashed = false
  1088. this.userCoke = false
  1089. this.userCrude = false
  1090. this.userDiesel = false
  1091. this.userGasoline = false
  1092. this.userNatural = false
  1093. this.userLiquefied = true
  1094. }
  1095. },
  1096. getNum(num) {
  1097. if (num == 'a') {
  1098. if (this.a == '') {
  1099. this.getNum('0')
  1100. } else {
  1101. let a1 = Number(this.a)
  1102. this.b = ((a1 * Number(2205)) / Number(1000)).toFixed(3)
  1103. this.c = (a1 * Number(0.9843)).toFixed(3)
  1104. this.d = (a1 * Number(1.102)).toFixed(3)
  1105. this.aa =
  1106. (Number(this.a) * Number(1.869)).toFixed(3) +
  1107. '~' +
  1108. (Number(this.a) * Number(2.063)).toFixed(3)
  1109. this.bb =
  1110. (Number(this.b) * Number(1.899)).toFixed(3) +
  1111. '~' +
  1112. (Number(this.b) * Number(2.096)).toFixed(3)
  1113. this.cc =
  1114. (Number(this.c) * Number(1.696)).toFixed(3) +
  1115. '~' +
  1116. (Number(this.c) * Number(1.872)).toFixed(3)
  1117. this.dd =
  1118. (Number(this.d) * Number(0.848)).toFixed(3) +
  1119. '~' +
  1120. (Number(this.d) * Number(0.936)).toFixed(3)
  1121. }
  1122. } else if (num == 'b') {
  1123. if (this.b == '') {
  1124. this.getNum('0')
  1125. } else {
  1126. let b1 = Number(this.b)
  1127. this.a = ((b1 * Number(1000)) / Number(2205)).toFixed(3)
  1128. let a2 = Number(this.a)
  1129. this.c = (a2 * Number(0.9843)).toFixed(3)
  1130. this.d = (a2 * Number(1.102)).toFixed(3)
  1131. this.aa =
  1132. (Number(this.a) * Number(1.869)).toFixed(3) +
  1133. '~' +
  1134. (Number(this.a) * Number(2.063)).toFixed(3)
  1135. this.bb =
  1136. (Number(this.b) * Number(1.899)).toFixed(3) +
  1137. '~' +
  1138. (Number(this.b) * Number(2.096)).toFixed(3)
  1139. this.cc =
  1140. (Number(this.c) * Number(1.696)).toFixed(3) +
  1141. '~' +
  1142. (Number(this.c) * Number(1.872)).toFixed(3)
  1143. this.dd =
  1144. (Number(this.d) * Number(0.848)).toFixed(3) +
  1145. '~' +
  1146. (Number(this.d) * Number(0.936)).toFixed(3)
  1147. }
  1148. } else if (num == 'c') {
  1149. if (this.c == '') {
  1150. this.getNum('0')
  1151. } else {
  1152. let c1 = Number(this.c)
  1153. this.a = (c1 / Number(0.9843)).toFixed(3)
  1154. let a3 = Number(this.a)
  1155. this.b = ((a3 * Number(2205)) / Number(1000)).toFixed(3)
  1156. this.d = (a3 * Number(1.102)).toFixed(3)
  1157. this.aa =
  1158. (Number(this.a) * Number(1.869)).toFixed(3) +
  1159. '~' +
  1160. (Number(this.a) * Number(2.063)).toFixed(3)
  1161. this.bb =
  1162. (Number(this.b) * Number(1.899)).toFixed(3) +
  1163. '~' +
  1164. (Number(this.b) * Number(2.096)).toFixed(3)
  1165. this.cc =
  1166. (Number(this.c) * Number(1.696)).toFixed(3) +
  1167. '~' +
  1168. (Number(this.c) * Number(1.872)).toFixed(3)
  1169. this.dd =
  1170. (Number(this.d) * Number(0.848)).toFixed(3) +
  1171. '~' +
  1172. (Number(this.d) * Number(0.936)).toFixed(3)
  1173. }
  1174. } else if (num == 'd') {
  1175. if (this.d == '') {
  1176. this.getNum('0')
  1177. } else {
  1178. let d1 = Number(this.d)
  1179. this.a = (d1 / Number(1.102)).toFixed(3)
  1180. let a4 = Number(this.a)
  1181. this.b = ((a4 * Number(2205)) / Number(1000)).toFixed(3)
  1182. this.c = (a4 * Number(0.9843)).toFixed(3)
  1183. this.aa =
  1184. (Number(this.a) * Number(1.869)).toFixed(3) +
  1185. '~' +
  1186. (Number(this.a) * Number(2.063)).toFixed(3)
  1187. this.bb =
  1188. (Number(this.b) * Number(1.899)).toFixed(3) +
  1189. '~' +
  1190. (Number(this.b) * Number(2.096)).toFixed(3)
  1191. this.cc =
  1192. (Number(this.c) * Number(1.696)).toFixed(3) +
  1193. '~' +
  1194. (Number(this.c) * Number(1.872)).toFixed(3)
  1195. this.dd =
  1196. (Number(this.d) * Number(0.848)).toFixed(3) +
  1197. '~' +
  1198. (Number(this.d) * Number(0.936)).toFixed(3)
  1199. }
  1200. } else if (num == '0') {
  1201. this.a = ''
  1202. this.b = ''
  1203. this.c = ''
  1204. this.d = ''
  1205. this.aa = ''
  1206. this.bb = ''
  1207. this.cc = ''
  1208. this.dd = ''
  1209. }
  1210. },
  1211. getCoal(num) {
  1212. if (num == 'a') {
  1213. if (this.a1 == '') {
  1214. this.getCoal('0')
  1215. } else {
  1216. let a1 = Number(this.a1)
  1217. this.b1 = ((a1 * Number(2205)) / Number(1000)).toFixed(3)
  1218. this.c1 = (a1 * Number(0.9843)).toFixed(3)
  1219. this.d1 = (a1 * Number(1.102)).toFixed(3)
  1220. this.aa1 = (Number(this.a1) * Number(2.211)).toFixed(3)
  1221. this.bb1 = (Number(this.b1) * Number(2.246)).toFixed(3)
  1222. this.cc1 = (Number(this.c1) * Number(2.006)).toFixed(3)
  1223. this.dd1 = (Number(this.d1) * Number(1.003)).toFixed(3)
  1224. }
  1225. } else if (num == 'b') {
  1226. if (this.b1 == '') {
  1227. this.getCoal('0')
  1228. } else {
  1229. let b1 = Number(this.b1)
  1230. this.a1 = ((b1 * Number(1000)) / Number(2205)).toFixed(3)
  1231. let a2 = Number(this.a1)
  1232. this.c1 = (a2 * Number(0.9843)).toFixed(3)
  1233. this.d1 = (a2 * Number(1.102)).toFixed(3)
  1234. this.aa1 = (Number(this.a1) * Number(2.211)).toFixed(3)
  1235. this.bb1 = (Number(this.b1) * Number(2.246)).toFixed(3)
  1236. this.cc1 = (Number(this.c1) * Number(2.006)).toFixed(3)
  1237. this.dd1 = (Number(this.d1) * Number(1.003)).toFixed(3)
  1238. }
  1239. } else if (num == 'c') {
  1240. if (this.c1 == '') {
  1241. this.getCoal('0')
  1242. } else {
  1243. let c1 = Number(this.c1)
  1244. this.a1 = (c1 / Number(0.9843)).toFixed(3)
  1245. let a3 = Number(this.a1)
  1246. this.b1 = ((a3 * Number(2205)) / Number(1000)).toFixed(3)
  1247. this.d1 = (a3 * Number(1.102)).toFixed(3)
  1248. this.aa1 = (Number(this.a1) * Number(2.211)).toFixed(3)
  1249. this.bb1 = (Number(this.b1) * Number(2.246)).toFixed(3)
  1250. this.cc1 = (Number(this.c1) * Number(2.006)).toFixed(3)
  1251. this.dd1 = (Number(this.d1) * Number(1.003)).toFixed(3)
  1252. }
  1253. } else if (num == 'd') {
  1254. if (this.d1 == '') {
  1255. this.getCoal('0')
  1256. } else {
  1257. let d1 = Number(this.d1)
  1258. this.a1 = (d1 / Number(1.102)).toFixed(3)
  1259. let a4 = Number(this.a1)
  1260. this.b1 = ((a4 * Number(2205)) / Number(1000)).toFixed(3)
  1261. this.c1 = (a4 * Number(0.9843)).toFixed(3)
  1262. this.aa1 = (Number(this.a1) * Number(2.211)).toFixed(3)
  1263. this.bb1 = (Number(this.b1) * Number(2.246)).toFixed(3)
  1264. this.cc1 = (Number(this.c1) * Number(2.006)).toFixed(3)
  1265. this.dd1 = (Number(this.d1) * Number(1.003)).toFixed(3)
  1266. }
  1267. } else if (num == '0') {
  1268. this.a1 = ''
  1269. this.b1 = ''
  1270. this.c1 = ''
  1271. this.d1 = ''
  1272. this.aa1 = ''
  1273. this.bb1 = ''
  1274. this.cc1 = ''
  1275. this.dd1 = ''
  1276. }
  1277. },
  1278. getCoke(num) {
  1279. if (num == 'a') {
  1280. if (this.a2 == '') {
  1281. this.getCoke('0')
  1282. } else {
  1283. let a2 = Number(this.a2)
  1284. this.b2 = ((a2 * Number(2205)) / Number(1000)).toFixed(3)
  1285. this.c2 = (a2 * Number(0.9843)).toFixed(3)
  1286. this.d2 = (a2 * Number(1.102)).toFixed(3)
  1287. this.aa2 = (Number(this.a2) * Number(2.864)).toFixed(3)
  1288. this.bb2 = (Number(this.b2) * Number(2.91)).toFixed(3)
  1289. this.cc2 = (Number(this.c2) * Number(2.599)).toFixed(3)
  1290. this.dd2 = (Number(this.d2) * Number(1.299)).toFixed(3)
  1291. }
  1292. } else if (num == 'b') {
  1293. if (this.b2 == '') {
  1294. this.getCoke('0')
  1295. } else {
  1296. let b2 = Number(this.b2)
  1297. this.a2 = ((b2 * Number(1000)) / Number(2205)).toFixed(3)
  1298. let a2 = Number(this.a2)
  1299. this.c2 = (a2 * Number(0.9843)).toFixed(3)
  1300. this.d2 = (a2 * Number(1.102)).toFixed(3)
  1301. this.aa2 = (Number(this.a2) * Number(2.864)).toFixed(3)
  1302. this.bb2 = (Number(this.b2) * Number(2.91)).toFixed(3)
  1303. this.cc2 = (Number(this.c2) * Number(2.599)).toFixed(3)
  1304. this.dd2 = (Number(this.d2) * Number(1.299)).toFixed(3)
  1305. }
  1306. } else if (num == 'c') {
  1307. if (this.c2 == '') {
  1308. this.getCoke('0')
  1309. } else {
  1310. let c2 = Number(this.c2)
  1311. this.a2 = (c2 / Number(0.9843)).toFixed(3)
  1312. let a3 = Number(this.a2)
  1313. this.b2 = ((a3 * Number(2205)) / Number(1000)).toFixed(3)
  1314. this.d2 = (a3 * Number(1.102)).toFixed(3)
  1315. this.aa2 = (Number(this.a2) * Number(2.864)).toFixed(3)
  1316. this.bb2 = (Number(this.b2) * Number(2.91)).toFixed(3)
  1317. this.cc2 = (Number(this.c2) * Number(2.599)).toFixed(3)
  1318. this.dd2 = (Number(this.d2) * Number(1.299)).toFixed(3)
  1319. }
  1320. } else if (num == 'd') {
  1321. if (this.d2 == '') {
  1322. this.getCoke('0')
  1323. } else {
  1324. let d2 = Number(this.d2)
  1325. this.a2 = (d2 / Number(1.102)).toFixed(3)
  1326. let a4 = Number(this.a2)
  1327. this.b2 = ((a4 * Number(2205)) / Number(1000)).toFixed(3)
  1328. this.c2 = (a4 * Number(0.9843)).toFixed(3)
  1329. this.aa2 = (Number(this.a2) * Number(2.864)).toFixed(3)
  1330. this.bb2 = (Number(this.b2) * Number(2.91)).toFixed(3)
  1331. this.cc2 = (Number(this.c2) * Number(2.599)).toFixed(3)
  1332. this.dd2 = (Number(this.d2) * Number(1.299)).toFixed(3)
  1333. }
  1334. } else if (num == '0') {
  1335. this.a2 = ''
  1336. this.b2 = ''
  1337. this.c2 = ''
  1338. this.d2 = ''
  1339. this.aa2 = ''
  1340. this.bb2 = ''
  1341. this.cc2 = ''
  1342. this.dd2 = ''
  1343. }
  1344. },
  1345. getLiquefied(num) {
  1346. if (num == 'a') {
  1347. if (this.a3 == '') {
  1348. this.getLiquefied('0')
  1349. } else {
  1350. let a2 = Number(this.a3)
  1351. this.b3 = ((a2 * Number(2205)) / Number(1000)).toFixed(3)
  1352. this.c3 = (a2 * Number(0.9843)).toFixed(3)
  1353. this.d3 = (a2 * Number(1.102)).toFixed(3)
  1354. this.aa3 = (Number(this.a3) * Number(3.105)).toFixed(3)
  1355. this.bb3 = (Number(this.b3) * Number(3.155)).toFixed(3)
  1356. this.cc3 = (Number(this.c3) * Number(2.818)).toFixed(3)
  1357. this.dd3 = (Number(this.d3) * Number(1.408)).toFixed(3)
  1358. }
  1359. } else if (num == 'b') {
  1360. if (this.b3 == '') {
  1361. this.getLiquefied('0')
  1362. } else {
  1363. let b2 = Number(this.b3)
  1364. this.a3 = ((b2 * Number(1000)) / Number(2205)).toFixed(3)
  1365. let a2 = Number(this.a3)
  1366. this.c3 = (a2 * Number(0.9843)).toFixed(3)
  1367. this.d3 = (a2 * Number(1.102)).toFixed(3)
  1368. this.aa3 = (Number(this.a3) * Number(3.105)).toFixed(3)
  1369. this.bb3 = (Number(this.b3) * Number(3.155)).toFixed(3)
  1370. this.cc3 = (Number(this.c3) * Number(2.818)).toFixed(3)
  1371. this.dd3 = (Number(this.d3) * Number(1.408)).toFixed(3)
  1372. }
  1373. } else if (num == 'c') {
  1374. if (this.c3 == '') {
  1375. this.getLiquefied('0')
  1376. } else {
  1377. let c2 = Number(this.c3)
  1378. this.a3 = (c2 / Number(0.9843)).toFixed(3)
  1379. let a3 = Number(this.a3)
  1380. this.b3 = ((a3 * Number(2205)) / Number(1000)).toFixed(3)
  1381. this.d3 = (a3 * Number(1.102)).toFixed(3)
  1382. this.aa3 = (Number(this.a3) * Number(3.105)).toFixed(3)
  1383. this.bb3 = (Number(this.b3) * Number(3.155)).toFixed(3)
  1384. this.cc3 = (Number(this.c3) * Number(2.818)).toFixed(3)
  1385. this.dd3 = (Number(this.d3) * Number(1.408)).toFixed(3)
  1386. }
  1387. } else if (num == 'd') {
  1388. if (this.d3 == '') {
  1389. this.getLiquefied('0')
  1390. } else {
  1391. let d2 = Number(this.d3)
  1392. this.a3 = (d2 / Number(1.102)).toFixed(3)
  1393. let a4 = Number(this.a3)
  1394. this.b3 = ((a4 * Number(2205)) / Number(1000)).toFixed(3)
  1395. this.c3 = (a4 * Number(0.9843)).toFixed(3)
  1396. this.aa3 = (Number(this.a3) * Number(3.105)).toFixed(3)
  1397. this.bb3 = (Number(this.b3) * Number(3.155)).toFixed(3)
  1398. this.cc3 = (Number(this.c3) * Number(2.818)).toFixed(3)
  1399. this.dd3 = (Number(this.d3) * Number(1.408)).toFixed(3)
  1400. }
  1401. } else if (num == '0') {
  1402. this.a3 = ''
  1403. this.b3 = ''
  1404. this.c3 = ''
  1405. this.d3 = ''
  1406. this.aa3 = ''
  1407. this.bb3 = ''
  1408. this.cc3 = ''
  1409. this.dd3 = ''
  1410. }
  1411. },
  1412. getOil(num) {
  1413. if (num == 'f') {
  1414. if (this.f == '') {
  1415. this.getOil('0')
  1416. } else {
  1417. let f1 = Number(this.f)
  1418. this.g = ((f1 / Number(1.173)) * Number(0.3098)).toFixed(3)
  1419. this.h = ((f1 / Number(1.173)) * Number(0.258)).toFixed(3)
  1420. this.i = ((f1 / Number(1.173)) * Number(7.38)).toFixed(3)
  1421. this.j = (f1 / Number(1.173)).toFixed(3)
  1422. this.ff = (Number(this.f) * Number(2.58)).toFixed(3)
  1423. this.gg = (Number(this.g) * Number(9.819)).toFixed(3)
  1424. this.hh = (Number(this.h) * Number(11.786)).toFixed(3)
  1425. this.ii = (Number(this.i) * Number(0.413)).toFixed(3)
  1426. this.jj = (Number(this.j) * Number(3.024)).toFixed(3)
  1427. }
  1428. }
  1429. if (num == 'g') {
  1430. if (this.g == '') {
  1431. this.getOil('0')
  1432. } else {
  1433. let g1 = Number(this.g)
  1434. this.f = ((g1 / Number(0.3098)) * Number(1.173)).toFixed(3)
  1435. this.h = ((g1 / Number(0.3098)) * Number(0.258)).toFixed(3)
  1436. this.i = ((g1 / Number(0.3098)) * Number(7.38)).toFixed(3)
  1437. this.j = (g1 / Number(0.3098)).toFixed(3)
  1438. this.ff = (Number(this.f) * Number(2.58)).toFixed(3)
  1439. this.gg = (Number(this.g) * Number(9.819)).toFixed(3)
  1440. this.hh = (Number(this.h) * Number(11.786)).toFixed(3)
  1441. this.ii = (Number(this.i) * Number(0.413)).toFixed(3)
  1442. this.jj = (Number(this.j) * Number(3.024)).toFixed(3)
  1443. }
  1444. }
  1445. if (num == 'h') {
  1446. if (this.h == '') {
  1447. this.getOil('0')
  1448. } else {
  1449. let h1 = Number(this.h)
  1450. this.f = ((h1 / Number(0.258)) * Number(1.173)).toFixed(3)
  1451. this.g = ((h1 / Number(0.258)) * Number(0.3098)).toFixed(3)
  1452. this.i = ((h1 / Number(0.258)) * Number(7.38)).toFixed(3)
  1453. this.j = (h1 / Number(0.258)).toFixed(3)
  1454. this.ff = (Number(this.f) * Number(2.58)).toFixed(3)
  1455. this.gg = (Number(this.g) * Number(9.819)).toFixed(3)
  1456. this.hh = (Number(this.h) * Number(11.786)).toFixed(3)
  1457. this.ii = (Number(this.i) * Number(0.413)).toFixed(3)
  1458. this.jj = (Number(this.j) * Number(3.024)).toFixed(3)
  1459. }
  1460. }
  1461. if (num == 'i') {
  1462. if (this.i == '') {
  1463. this.getOil('0')
  1464. } else {
  1465. let i1 = Number(this.i)
  1466. this.f = ((i1 / Number(7.38)) * Number(1.173)).toFixed(3)
  1467. this.g = ((i1 / Number(7.38)) * Number(0.3098)).toFixed(3)
  1468. this.h = ((i1 / Number(7.38)) * Number(0.258)).toFixed(3)
  1469. this.j = (i1 / Number(7.38)).toFixed(3)
  1470. this.ff = (Number(this.f) * Number(2.58)).toFixed(3)
  1471. this.gg = (Number(this.g) * Number(9.819)).toFixed(3)
  1472. this.hh = (Number(this.h) * Number(11.786)).toFixed(3)
  1473. this.ii = (Number(this.i) * Number(0.413)).toFixed(3)
  1474. this.jj = (Number(this.j) * Number(3.024)).toFixed(3)
  1475. }
  1476. }
  1477. if (num == 'j') {
  1478. if (this.j == '') {
  1479. this.getOil('0')
  1480. } else {
  1481. let j1 = Number(this.j)
  1482. this.f = (j1 * Number(1.173)).toFixed(3)
  1483. this.g = (j1 * Number(0.3098)).toFixed(3)
  1484. this.h = (j1 * Number(0.258)).toFixed(3)
  1485. this.i = (j1 * Number(7.38)).toFixed(3)
  1486. this.ff = (Number(this.f) * Number(2.58)).toFixed(3)
  1487. this.gg = (Number(this.g) * Number(9.819)).toFixed(3)
  1488. this.hh = (Number(this.h) * Number(11.786)).toFixed(3)
  1489. this.ii = (Number(this.i) * Number(0.413)).toFixed(3)
  1490. this.jj = (Number(this.j) * Number(3.024)).toFixed(3)
  1491. }
  1492. }
  1493. if (num == '0') {
  1494. this.f = ''
  1495. this.ff = ''
  1496. this.g = ''
  1497. this.gg = ''
  1498. this.h = ''
  1499. this.hh = ''
  1500. this.i = ''
  1501. this.ii = ''
  1502. this.j = ''
  1503. this.jj = ''
  1504. }
  1505. },
  1506. getDiesel(num) {
  1507. if (num == 'f') {
  1508. if (this.f1 == '') {
  1509. this.getDiesel('0')
  1510. } else {
  1511. let f1 = Number(this.f1)
  1512. this.g1 = ((f1 / Number(1.173)) * Number(0.3098)).toFixed(3)
  1513. this.h1 = ((f1 / Number(1.173)) * Number(0.258)).toFixed(3)
  1514. this.j1 = (f1 / Number(1.173)).toFixed(3)
  1515. this.ff1 = (Number(this.f1) * Number(2.645)).toFixed(3)
  1516. this.gg1 = (Number(this.g1) * Number(10.065)).toFixed(3)
  1517. this.hh1 = (Number(this.h1) * Number(12.083)).toFixed(3)
  1518. this.jj1 = (Number(this.j1) * Number(3.1)).toFixed(3)
  1519. }
  1520. }
  1521. if (num == 'g') {
  1522. if (this.g1 == '') {
  1523. this.getDiesel('0')
  1524. } else {
  1525. let g1 = Number(this.g1)
  1526. this.f1 = ((g1 / Number(0.3098)) * Number(1.173)).toFixed(3)
  1527. this.h1 = ((g1 / Number(0.3098)) * Number(0.258)).toFixed(3)
  1528. this.j1 = (g1 / Number(0.3098)).toFixed(3)
  1529. this.ff1 = (Number(this.f1) * Number(2.645)).toFixed(3)
  1530. this.gg1 = (Number(this.g1) * Number(10.065)).toFixed(3)
  1531. this.hh1 = (Number(this.h1) * Number(12.083)).toFixed(3)
  1532. this.jj1 = (Number(this.j1) * Number(3.1)).toFixed(3)
  1533. }
  1534. }
  1535. if (num == 'h') {
  1536. if (this.h1 == '') {
  1537. this.getDiesel('0')
  1538. } else {
  1539. let h1 = Number(this.h1)
  1540. this.f1 = ((h1 / Number(0.258)) * Number(1.173)).toFixed(3)
  1541. this.g1 = ((h1 / Number(0.258)) * Number(0.3098)).toFixed(3)
  1542. this.j1 = (h1 / Number(0.258)).toFixed(3)
  1543. this.ff1 = (Number(this.f1) * Number(2.645)).toFixed(3)
  1544. this.gg1 = (Number(this.g1) * Number(10.065)).toFixed(3)
  1545. this.hh1 = (Number(this.h1) * Number(12.083)).toFixed(3)
  1546. this.jj1 = (Number(this.j1) * Number(3.1)).toFixed(3)
  1547. }
  1548. }
  1549. if (num == 'j') {
  1550. if (this.j1 == '') {
  1551. this.getDiesel('0')
  1552. } else {
  1553. let j1 = Number(this.j1)
  1554. this.f1 = (j1 * Number(1.173)).toFixed(3)
  1555. this.g1 = (j1 * Number(0.3098)).toFixed(3)
  1556. this.h1 = (j1 * Number(0.258)).toFixed(3)
  1557. this.ff1 = (Number(this.f1) * Number(2.645)).toFixed(3)
  1558. this.gg1 = (Number(this.g1) * Number(10.065)).toFixed(3)
  1559. this.hh1 = (Number(this.h1) * Number(12.083)).toFixed(3)
  1560. this.jj1 = (Number(this.j1) * Number(3.1)).toFixed(3)
  1561. }
  1562. }
  1563. if (num == '0') {
  1564. this.f1 = ''
  1565. this.ff1 = ''
  1566. this.g1 = ''
  1567. this.gg1 = ''
  1568. this.h1 = ''
  1569. this.hh1 = ''
  1570. this.j1 = ''
  1571. this.jj1 = ''
  1572. }
  1573. },
  1574. getGasoline(num) {
  1575. if (num == 'f') {
  1576. if (this.f11 == '') {
  1577. this.getGasoline('0')
  1578. } else {
  1579. let f1 = Number(this.f11)
  1580. this.g11 = ((f1 / Number(1.173)) * Number(0.3098)).toFixed(3)
  1581. this.h11 = ((f1 / Number(1.173)) * Number(0.258)).toFixed(3)
  1582. this.j11 = (f1 / Number(1.173)).toFixed(3)
  1583. this.ff11 = (Number(this.f11) * Number(2.152)).toFixed(3)
  1584. this.gg11 = (Number(this.g11) * Number(8.204)).toFixed(3)
  1585. this.hh11 = (Number(this.h11) * Number(9.849)).toFixed(3)
  1586. this.jj11 = (Number(this.j11) * Number(2.929)).toFixed(3)
  1587. }
  1588. }
  1589. if (num == 'g') {
  1590. if (this.g11 == '') {
  1591. this.getGasoline('0')
  1592. } else {
  1593. let g1 = Number(this.g11)
  1594. this.f11 = ((g1 / Number(0.3098)) * Number(1.173)).toFixed(3)
  1595. this.h11 = ((g1 / Number(0.3098)) * Number(0.258)).toFixed(3)
  1596. this.j11 = (g1 / Number(0.3098)).toFixed(3)
  1597. this.ff11 = (Number(this.f11) * Number(2.152)).toFixed(3)
  1598. this.gg11 = (Number(this.g11) * Number(8.204)).toFixed(3)
  1599. this.hh11 = (Number(this.h11) * Number(9.849)).toFixed(3)
  1600. this.jj11 = (Number(this.j11) * Number(2.929)).toFixed(3)
  1601. }
  1602. }
  1603. if (num == 'h') {
  1604. if (this.h11 == '') {
  1605. this.getGasoline('0')
  1606. } else {
  1607. let h1 = Number(this.h11)
  1608. this.f11 = ((h1 / Number(0.258)) * Number(1.173)).toFixed(3)
  1609. this.g11 = ((h1 / Number(0.258)) * Number(0.3098)).toFixed(3)
  1610. this.j11 = (h1 / Number(0.258)).toFixed(3)
  1611. this.ff11 = (Number(this.f11) * Number(2.152)).toFixed(3)
  1612. this.gg11 = (Number(this.g11) * Number(8.204)).toFixed(3)
  1613. this.hh11 = (Number(this.h11) * Number(9.849)).toFixed(3)
  1614. this.jj11 = (Number(this.j11) * Number(2.929)).toFixed(3)
  1615. }
  1616. }
  1617. if (num == 'j') {
  1618. if (this.j11 == '') {
  1619. this.getGasoline('0')
  1620. } else {
  1621. let j1 = Number(this.j11)
  1622. this.f11 = (j1 * Number(1.173)).toFixed(3)
  1623. this.g11 = (j1 * Number(0.3098)).toFixed(3)
  1624. this.h11 = (j1 * Number(0.258)).toFixed(3)
  1625. this.ff11 = (Number(this.f11) * Number(2.152)).toFixed(3)
  1626. this.gg11 = (Number(this.g11) * Number(8.204)).toFixed(3)
  1627. this.hh11 = (Number(this.h11) * Number(9.849)).toFixed(3)
  1628. this.jj11 = (Number(this.j11) * Number(2.929)).toFixed(3)
  1629. }
  1630. }
  1631. if (num == '0') {
  1632. this.f11 = ''
  1633. this.ff11 = ''
  1634. this.g11 = ''
  1635. this.gg11 = ''
  1636. this.h11 = ''
  1637. this.hh11 = ''
  1638. this.j11 = ''
  1639. this.jj11 = ''
  1640. }
  1641. },
  1642. getNatural(num) {
  1643. if (num == 'k') {
  1644. if (this.k == '') {
  1645. this.getNatural('0')
  1646. } else {
  1647. let k1 = Number(this.k).toFixed(3)
  1648. this.l = (k1 * Number(35.31)).toFixed(3)
  1649. this.kk = (Number(this.k) * Number(1.978)).toFixed(3)
  1650. this.ll = (Number(this.l) * Number(0.056)).toFixed(3)
  1651. }
  1652. }
  1653. if (num == 'l') {
  1654. if (this.l == '') {
  1655. this.getNatural('0')
  1656. } else {
  1657. let l1 = Number(this.l).toFixed(3)
  1658. this.k = (l1 / Number(35.31)).toFixed(3)
  1659. this.kk = (Number(this.k) * Number(1.978)).toFixed(3)
  1660. this.ll = (Number(this.l) * Number(0.056)).toFixed(3)
  1661. }
  1662. }
  1663. if (num == '0') {
  1664. this.k = ''
  1665. this.l = ''
  1666. this.kk = ''
  1667. this.ll = ''
  1668. }
  1669. },
  1670. },
  1671. }
  1672. </script>
  1673. <style lang="less" scoped>
  1674. ul > li {
  1675. height: 41px;
  1676. margin: 20px 0;
  1677. line-height: 41px;
  1678. border-top: 1px solid #dbdbdb;
  1679. border-right: 1px solid #dbdbdb;
  1680. border-bottom: 1px solid #dbdbdb;
  1681. display: flex;
  1682. }
  1683. .none-title > li {
  1684. border: none !important;
  1685. height: 41px;
  1686. line-height: 41px;
  1687. }
  1688. .text-title > li {
  1689. padding-left: 10px;
  1690. border-left: 1px solid #dbdbdb;
  1691. }
  1692. ul > li /deep/.el-input__inner {
  1693. width: 100% !important;
  1694. height: 100% !important;
  1695. border: none;
  1696. border-radius: 0;
  1697. background-color: rgba(255, 255, 255, 0);
  1698. color: #000;
  1699. }
  1700. /deep/ .el-input.is-disabled .el-input__inner {
  1701. background-color: #fff;
  1702. border-color: #fff;
  1703. color: #000;
  1704. cursor: not-allowed;
  1705. }
  1706. .information {
  1707. display: inline-block;
  1708. height: 100%;
  1709. text-align: center;
  1710. color: #343434;
  1711. box-sizing: border-box;
  1712. vertical-align: middle;
  1713. font-weight: 600;
  1714. padding: 0 20px;
  1715. }
  1716. .information1 {
  1717. display: inline-block;
  1718. height: 100%;
  1719. text-align: center;
  1720. color: #b7b7b7;
  1721. box-sizing: border-box;
  1722. vertical-align: middle;
  1723. font-weight: 600;
  1724. padding: 0 20px;
  1725. cursor: pointer;
  1726. }
  1727. .information1:hover {
  1728. color: #2c5589;
  1729. cursor: pointer;
  1730. }
  1731. .information2 {
  1732. display: inline-block;
  1733. height: 100%;
  1734. text-align: center;
  1735. color: #fff;
  1736. background-color: #105dbc;
  1737. box-sizing: border-box;
  1738. vertical-align: middle;
  1739. border-radius: 10px;
  1740. font-weight: 600;
  1741. padding: 0 20px;
  1742. cursor: pointer;
  1743. }
  1744. .focusClass1 {
  1745. border: none;
  1746. }
  1747. .focusClass2 {
  1748. border: 2px solid #c7d1dd;
  1749. background-color: #f1f1f1;
  1750. }
  1751. .user-btn {
  1752. background-color: #105dbc;
  1753. color: #fff;
  1754. }
  1755. // .user-btn:hover {
  1756. // background-color: #18caf7;
  1757. // color: #000;
  1758. // }
  1759. .user-btn-clear {
  1760. width: 30%;
  1761. margin-left: 35%;
  1762. font-size: 16px;
  1763. font-weight: 700;
  1764. border-bottom: 1px;
  1765. border-right: 1px;
  1766. box-shadow: 5px 5px 5px rgb(63, 62, 62);
  1767. background: linear-gradient(90deg, #3f9eff, #1674d5);
  1768. color: #fff;
  1769. border-radius: 50px;
  1770. }
  1771. // .user-btn-clear:hover {
  1772. // width: 30%;
  1773. // margin-left: 35%;
  1774. // font-size: 16px;
  1775. // font-weight: 700;
  1776. // background: linear-gradient(90deg, #4d98e4, #18caf7);
  1777. // color: #000;
  1778. // border-radius: 50px;
  1779. // }
  1780. /deep/ input::-webkit-outer-spin-button,
  1781. /deep/ input::-webkit-inner-spin-button {
  1782. -webkit-appearance: none !important;
  1783. }
  1784. /deep/ input[type='number'] {
  1785. -moz-appearance: textfield !important;
  1786. }
  1787. .user-title1 {
  1788. width: 100%;
  1789. display: flex;
  1790. height: 40px;
  1791. line-height: 40px;
  1792. margin-top: 12px;
  1793. margin-bottom: 12px;
  1794. }
  1795. .user-title2 {
  1796. width: 100%;
  1797. display: flex;
  1798. flex-wrap: wrap;
  1799. height: 40px;
  1800. line-height: 40px;
  1801. margin-top: 14px;
  1802. margin-bottom: 52px;
  1803. }
  1804. </style>