index.vue 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039
  1. <template>
  2. <view class="content">
  3. <u-sticky>
  4. <view class="head" style="background-color: #3c9cff; color: #fff;">
  5. <!-- <text>订单号: {{formData.orderNo}}</text> -->
  6. <view>
  7. <text>{{ formData.carRegNo == null ? '' : formData.carRegNo }}</text>
  8. </view>
  9. <view>
  10. <text>{{ formData.goodsCName == null ? '' : formData.goodsCName }}</text>
  11. </view>
  12. </view>
  13. <view class="head-no-addr">
  14. <view>
  15. <text>{{formData.loadAddr}}</text>
  16. </view>
  17. <!-- <span class="icon iconfont" style="font-size: 100rpx; color: #fcbd71; height: 80rpx;">&#xe6fb;</span> -->
  18. <view><text>【到】</text></view>
  19. <view>
  20. <text>{{formData.unLoadAddr}}</text>
  21. </view>
  22. </view>
  23. </u-sticky>
  24. <view class="striping"></view>
  25. <!-- <view class="head" @click="telFun">
  26. <text>驾驶员: {{formData.driver1Name == null ? '' : formData.driver1Name}}&nbsp;电话:&nbsp;{{formData.driver1mobile == null ? '' : formData.driver1mobile}}</text>
  27. </view> -->
  28. <u-tabs :list="tabs" @change="change" :activeStyle="{
  29. width: '180rpx',
  30. height: '60rpx',
  31. color: '#fff',
  32. backgroundColor: '#3c9cff',
  33. borderRadius: '80rpx',
  34. lineHeight: '60rpx',
  35. textAlign: 'center'
  36. }" :inactiveStyle="{
  37. width: '180rpx',
  38. height: '60rpx',
  39. color: '#3c9cff',
  40. backgroundColor: '#f0f0f0f0',
  41. borderRadius: '80rpx',
  42. lineHeight: '60rpx',
  43. textAlign: 'center'
  44. }"></u-tabs>
  45. <view v-if="isTabs == '行程费用'">
  46. <view class="box-box">
  47. <view class="box">
  48. <view class="data">
  49. <text class="key">ETC金额</text>
  50. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
  51. @input="checkUnLoadetc" v-model="formData.loadetc" />
  52. </view>
  53. <view class="data">
  54. <text class="key">现金过路费</text>
  55. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
  56. @input="checkUnLoadtoll" v-model="formData.loadtoll" />
  57. </view>
  58. </view>
  59. <view class="box">
  60. <view class="data">
  61. <text class="key">公司加油(升)</text>
  62. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
  63. @input="checkUnOilhomeQty" v-model="formData.oilhomeQty" />
  64. </view>
  65. <view class="data">
  66. <!-- <text class="key">加油金额</text>
  67. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
  68. @input="checkUnOilhomeAmt" v-model="formData.oilhomeAmt" /> -->
  69. </view>
  70. </view>
  71. <view class="box">
  72. <view class="data-two">
  73. <text class="key">定点加油1</text>
  74. <view class="list">
  75. <uni-data-select style="width: 520rpx;" :disabled="disabled" :localdata="gasStationList"
  76. v-model="formData.gasstation1" @change="gasstation1Change"></uni-data-select>
  77. </view>
  78. </view>
  79. </view>
  80. <view class="box">
  81. <view class="data">
  82. <text class="key">升&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数</text>
  83. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation1 == '' || formData.gasstation1 == null" type="digit"
  84. @input="checkUnOilappoint1Qty" placeholder-style="font-size:24rpx" placeholder="请输入升数" v-model="formData.oilappoint1Qty" />
  85. </view>
  86. <view class="data">
  87. <text class="key">金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额</text>
  88. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation1 == '' || formData.gasstation1 == null" type="digit"
  89. @input="checkUnOilappoint1Amt" placeholder-style="font-size:24rpx" placeholder="请输入金额" v-model="formData.oilappoint1Amt" />
  90. </view>
  91. </view>
  92. <view class="box">
  93. <view class="data-two">
  94. <text class="key">定点加油2</text>
  95. <view class="list">
  96. <uni-data-select style="width: 520rpx;" :disabled="disabled" :localdata="gasStationList"
  97. v-model="formData.gasstation2" @change="gasstation2Change"></uni-data-select>
  98. </view>
  99. </view>
  100. </view>
  101. <view class="box">
  102. <view class="data">
  103. <text class="key">升&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数</text>
  104. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation2 == '' || formData.gasstation2 == null" type="digit"
  105. @input="checkUnOilappoint2Qty" placeholder-style="font-size:24rpx" placeholder="请输入升数" v-model="formData.oilappoint2Qty" />
  106. </view>
  107. <view class="data">
  108. <text class="key">金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额</text>
  109. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation2 == '' || formData.gasstation2 == null" type="digit"
  110. @input="checkUnOilappoint2Amt" placeholder-style="font-size:24rpx" placeholder="请输入金额" v-model="formData.oilappoint2Amt" />
  111. </view>
  112. </view>
  113. <view class="box">
  114. <view class="data-two">
  115. <text class="key">定点加油3</text>
  116. <view class="list">
  117. <uni-data-select style="width: 520rpx;" :disabled="disabled" :localdata="gasStationList"
  118. v-model="formData.gasstation3" @change="gasstation3Change"></uni-data-select>
  119. </view>
  120. </view>
  121. </view>
  122. <view class="box">
  123. <view class="data">
  124. <text class="key">升&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数</text>
  125. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation3 == '' || formData.gasstation3 == null" type="digit"
  126. @input="checkUnOilappoint3Qty" placeholder-style="font-size:24rpx" placeholder="请输入升数" v-model="formData.oilappoint3Qty" />
  127. </view>
  128. <view class="data">
  129. <text class="key">金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额</text>
  130. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation3 == '' || formData.gasstation3 == null" type="digit"
  131. @input="checkUnOilappoint3Amt" placeholder-style="font-size:24rpx" placeholder="请输入金额" v-model="formData.oilappoint3Amt" />
  132. </view>
  133. </view>
  134. <view class="box">
  135. <view class="data">
  136. <text class="key">现金加油(升)</text>
  137. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
  138. @input="checkUnOilcash1Qty" v-model="formData.oilcash1Qty" />
  139. </view>
  140. <view class="data">
  141. <text class="key">加油金额</text>
  142. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
  143. @input="checkUnOilcash1Amt" v-model="formData.oilcash1Amt" />
  144. </view>
  145. </view>
  146. <view class="box">
  147. <view class="data">
  148. <text class="key">油卡加油(升)</text>
  149. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
  150. @input="checkUnOilcardQty" v-model="formData.oilcardQty" />
  151. </view>
  152. <view class="data">
  153. <text class="key">加油金额</text>
  154. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
  155. @input="checkUnOilcardAmt" v-model="formData.oilcardAmt" />
  156. </view>
  157. </view>
  158. <view class="box-two">
  159. <text class="key">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</text>
  160. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled"
  161. v-model="formData.driverassdesc" />
  162. </view>
  163. <!-- </u-collapse-item> -->
  164. </view>
  165. <view class="box-box" style="margin-top: 40rpx;">
  166. <view style="margin-bottom: 20rpx;">
  167. <!-- <text style="color: #3c9cff;">单据拍照存档</text> -->
  168. <text style="color: #3c9cff;">单据拍照存档 (请上传图片大小为1MB以下的图片)</text>
  169. </view>
  170. <u-upload :fileList="fileList1":sizeType="['compressed']"
  171. @afterRead="imgUploading" @delete="deletePic" name="1" multiple :disabled="disabled"
  172. :previewFullImage="true"></u-upload>
  173. </view>
  174. </view>
  175. <view v-if="isTabs == '其他费用'">
  176. <view class="table">
  177. <view class="data vertical-layout" v-for="(item, index) in itemsList" :key="index">
  178. <view class="name">
  179. <text style="color: #3c9cff;">{{ item.cname }}</text>
  180. </view>
  181. <view class="sum">
  182. <input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
  183. @input="checkUnAmt(item.amt, index)" @click="inputHeight" cursor-spacing="30"
  184. :always-embed="true" :adjust-position="true" v-model="item.amt" />
  185. </view>
  186. <view class="remarks" style="border-bottom: 2rpx dotted #000;">
  187. <input v-model="item.remarks" placeholder-style="font-size:24rpx" :disabled="disabled" placeholder="请输入备注">
  188. </view>
  189. </view>
  190. </view>
  191. </view>
  192. <view v-if="isTabs == '行程绕路'">
  193. <view style="margin: 20rpx 30rpx;">
  194. <view class="box-two">
  195. <text class="key" style="width: 260rpx;">绕路里程空(公里)</text>
  196. <input class="value-two" style="border-bottom: 2rpx dotted #000;" selection-start="0" selection-end="9999" disabled
  197. @input="checkUnDetourEmptyMile" v-model="formData.detourEmptyMile" />
  198. </view>
  199. <view class="box-two">
  200. <text class="key" style="width: 260rpx;">绕路里程重(公里)</text>
  201. <input class="value-two" style="border-bottom: 2rpx dotted #000;" selection-start="0" selection-end="9999" disabled
  202. @input="checkUnDetourLoadMile" v-model="formData.detourLoadMile" />
  203. </view>
  204. <view class="box-two">
  205. <text class="key" style="width: 260rpx;">绕&nbsp;&nbsp;&nbsp;&nbsp;路&nbsp;&nbsp;&nbsp;&nbsp;原&nbsp;&nbsp;&nbsp;&nbsp;因</text>
  206. <input class="value-two" style="border-bottom: 2rpx dotted #000;" selection-start="0" selection-end="9999" disabled
  207. v-model="formData.detourDesc" />
  208. </view>
  209. </view>
  210. </view>
  211. <view class="cushion">
  212. </view>
  213. <!-- <view class="bottom vertical-layout" style="z-index: 4;" v-if="status376 == 2 || status376 == 0">
  214. <view class="bottom-bottom">
  215. <view class="money">
  216. <text>报销:</text> {{' '}}
  217. <text style="color: #ff9f1c;">¥ {{money}}</text>
  218. </view>
  219. <view class="button">
  220. <view class="button-button">
  221. <u-button iconColor="#3c9cff" shape="circle" type="primary" @click="submitShow = true"
  222. :disabled="disabled" text="提交费用"></u-button>
  223. </view>
  224. </view>
  225. </view>
  226. </view> -->
  227. <view v-if="formData.ifStarted && formData.ifStarted != 'A'">
  228. <!-- 驾驶员 -->
  229. <view v-if="button" class="bottom" style="z-index: 4;">
  230. <view class="row">
  231. <view class="button">
  232. <u-button iconColor="#3c9cff" shape="circle" type="primary" :disabled="saveDisabled"
  233. @click="submitVerify()" text="保存数据"></u-button>
  234. </view>
  235. <view class="button">
  236. <u-button iconColor="#fe8c00;" color="#fe8c00" shape="circle" type="primary" :disabled="upDisabled"
  237. @click="upButtonClick('TJ')" text="提交报账单"></u-button>
  238. </view>
  239. </view>
  240. </view>
  241. <!-- 队长 -->
  242. <view v-else class="bottom" style="z-index: 4;">
  243. <view class="row">
  244. <view class="button">
  245. <u-button iconColor="#3c9cff" shape="circle" type="primary" :disabled="sDisabled"
  246. @click="auditTClick" text="通过"></u-button>
  247. </view>
  248. <view class="button">
  249. <u-button iconColor="#3c9cff" shape="circle" type="primary" :disabled="sDisabled"
  250. @click="auditFClick" text="驳回"></u-button>
  251. </view>
  252. </view>
  253. </view>
  254. </view>
  255. <!-- 遮盖罩 -->
  256. <!-- <u-loading-page :loading="true" :zIndex="20000"></u-loading-page> -->
  257. <u-loading-page :loading="loading"></u-loading-page>
  258. <!-- 消息提示 -->
  259. <u-toast ref="uToast"></u-toast>
  260. <u-modal :show="submitShow" title="提示" showCancelButton @confirm="submit" @cancel="submitShow = false">
  261. <view class="slot-content">
  262. <rich-text nodes="确定要保存数据吗?"></rich-text>
  263. </view>
  264. </u-modal>
  265. <u-modal :show="upAuditShow" confirmColor="#fe8c00" title="提示" showCancelButton @confirm="upReview" @cancel="upAuditShow = false">
  266. <view class="slot-content">
  267. <rich-text nodes="点击确认后该业务将锁定,无法添加修改费用报销!确定要提交吗?"></rich-text>
  268. </view>
  269. </u-modal>
  270. <u-modal :show="deleteShow" title="提示" showCancelButton @confirm="deleteImg" @cancel="deleteShow = false">
  271. <view class="slot-content">
  272. <rich-text nodes="确定删除这张图片吗?"></rich-text>
  273. </view>
  274. </u-modal>
  275. <u-modal :show="auditTShow" title="提示" showCancelButton @confirm="check('T')" @cancel="auditTShow = false">
  276. <view class="slot-content" style="display: flex; flex-direction: column; align-items: center;">
  277. <rich-text nodes="确定要审核通过吗?"></rich-text>
  278. <input style="margin-top: 20rpx;"
  279. selection-start="0"
  280. selection-end="9999"
  281. placeholder="请输入通过意见"
  282. placeholder-style="font-size: 28rpx"
  283. v-model="formData.audit2Desc"
  284. />
  285. </view>
  286. </u-modal>
  287. <u-modal :show="auditFShow" title="提示" showCancelButton @confirm="check('F')" @cancel="auditFShow = false">
  288. <view class="slot-content" style="display: flex; flex-direction: column; align-items: center;">
  289. <rich-text nodes="确定要驳回吗?"></rich-text>
  290. <input style="margin-top: 20rpx;"
  291. selection-start="0"
  292. selection-end="9999"
  293. placeholder="请输入驳回意见"
  294. placeholder-style="font-size: 28rpx"
  295. v-model="formData.audit2Desc"
  296. />
  297. </view>
  298. </u-modal>
  299. </view>
  300. </template>
  301. <script>
  302. import {
  303. getGasStations,
  304. getItems,
  305. insertLoadFeeItems,
  306. getLoadFeeItems,
  307. isMileage
  308. } from "@/api/reimbursement"
  309. import {
  310. getOrderBillsPlansByid,
  311. putOrderBillsPlansByid,
  312. insertTmsAttachMngs,
  313. pictureUploading,
  314. deleteTmsAttachMngs,
  315. submitAudit,
  316. audit
  317. } from "@/api/particulars"
  318. export default {
  319. data() {
  320. return {
  321. orderNo: '',
  322. // 遮盖罩
  323. loading: true,
  324. formData: {
  325. // itemsVoList: [],
  326. // oilappoint1Qty: 1,
  327. // oilappoint2Qty: 1
  328. },
  329. // 报销费用list
  330. gasStationList: [],
  331. // 其他费用list
  332. itemsList: [],
  333. // 其他费用被选中
  334. selectedIndexs: [],
  335. radioValueOne: '', // 当前 radio 的值
  336. numOne: 0, //用于区分是否是重复选中
  337. radioValueTwo: '', // 当前 radio 的值
  338. numTwo: 0, //用于区分是否是重复选中
  339. // 输入框禁用
  340. disabled: false,
  341. // 保存数据按钮
  342. saveDisabled: false,
  343. // 提交数据按钮
  344. upDisabled: false,
  345. // 审核按钮禁用
  346. sDisabled: true,
  347. // 底部按钮
  348. button: null,
  349. status376: 0,
  350. selectionLength: 0,
  351. fileList1: [],
  352. // 删除弹框
  353. deleteShow: false,
  354. // 提交费用弹窗
  355. submitShow: false,
  356. // 提交审核弹框
  357. upAuditShow: false,
  358. // 审核通过弹框
  359. auditTShow: false,
  360. // 审核驳回弹框
  361. auditFShow: false,
  362. event: {},
  363. vHeight: 0,
  364. tabs: [{
  365. name: '行程费用'
  366. }, {
  367. name: '其他费用'
  368. }, {
  369. name: '行程绕路',
  370. badge: {},
  371. }],
  372. isTabs: '行程费用',
  373. // 报销金额
  374. money: 0
  375. }
  376. },
  377. onUnload() {
  378. this.formData = {};
  379. this.loading = true;
  380. },
  381. onLoad: function(option) {
  382. this.status376 = option.status;
  383. this.orderNo = option.orderNo;
  384. if (this.status376 == 6) {
  385. this.disabled = true;
  386. }
  387. this.getData();
  388. this.getLoadFeeItemsfun()
  389. },
  390. methods: {
  391. change(item) {
  392. this.isTabs = item.name;
  393. },
  394. auditTClick() {
  395. this.formData.audit2Desc = "审核通过"
  396. this.auditTShow = true
  397. },
  398. auditFClick() {
  399. this.formData.audit2Desc = null
  400. this.auditFShow = true
  401. },
  402. getData() {
  403. // 报销费用下拉选
  404. getGasStations().then(res => {
  405. // this.gasStationList = res.data
  406. for (var item in res.data) {
  407. var data = {
  408. text: res.data[item].cname,
  409. value: res.data[item].cname
  410. };
  411. this.gasStationList.push(data);
  412. }
  413. getItems().then(res => {
  414. this.itemsList = res.data
  415. })
  416. })
  417. },
  418. getLoadFeeItemsfun(){
  419. getLoadFeeItems(this.orderNo).then(res => {
  420. res.data.loadetc == 0 ? res.data.loadetc = null : res.data.loadetc
  421. res.data.loadtoll == 0 ? res.data.loadtoll = null : res.data.loadtoll
  422. res.data.oilhomeQty == 0 ? res.data.oilhomeQty = null : res.data.oilhomeQty
  423. res.data.oilhomeAmt == 0 ? res.data.oilhomeAmt = null : res.data.oilhomeAmt
  424. res.data.oilappoint1Qty == 0 ? res.data.oilappoint1Qty = null : res.data.oilappoint1Qty
  425. res.data.oilappoint1Amt == 0 ? res.data.oilappoint1Amt = null : res.data.oilappoint1Amt
  426. res.data.oilappoint2Qty == 0 ? res.data.oilappoint2Qty = null : res.data.oilappoint2Qty
  427. res.data.oilappoint2Amt == 0 ? res.data.oilappoint2Amt = null : res.data.oilappoint2Amt
  428. res.data.oilappoint3Qty == 0 ? res.data.oilappoint3Qty = null : res.data.oilappoint3Qty
  429. res.data.oilappoint3Amt == 0 ? res.data.oilappoint3Amt = null : res.data.oilappoint3Amt
  430. res.data.oilcash1Qty == 0 ? res.data.oilcash1Qty = null : res.data.oilcash1Qty
  431. res.data.oilcash1Amt == 0 ? res.data.oilcash1Amt = null : res.data.oilcash1Amt
  432. res.data.oilcardQty == 0 ? res.data.oilcardQty = null : res.data.oilcardQty
  433. res.data.oilcardAmt == 0 ? res.data.oilcardAmt = null : res.data.oilcardAmt
  434. res.data.detourEmptyMile == 0 ? res.data.detourEmptyMile = null : res.data.detourEmptyMile
  435. res.data.detourLoadMile == 0 ? res.data.detourLoadMile = null : res.data.detourLoadMile
  436. for (let item of this.itemsList) {
  437. if (item == 0) {
  438. item.amt = null
  439. }
  440. }
  441. // // 角色
  442. for (let role of res.data.roleList) {
  443. if (role == 'DZ') {
  444. this.button = false;
  445. this.disabled = true;
  446. }
  447. if (role == 'JSY') {
  448. this.button = true;
  449. this.disabled = false;
  450. }
  451. }
  452. // 审核中
  453. if (
  454. res.data.ifStarted == "S") {
  455. this.disabled = true;
  456. this.saveDisabled = true;
  457. this.upDisabled = true;
  458. this.sDisabled = false;
  459. }
  460. // 审核完成
  461. if (
  462. res.data.ifStarted == "A") {
  463. this.disabled = true;
  464. this.saveDisabled = true;
  465. this.upDisabled = true;
  466. }
  467. // 未提交
  468. // if (res.data.ifLoaded != "T" ||
  469. // res.data.ifUnLoaded != "T") {
  470. // this.disabled = false;
  471. // this.saveDisabled = false;
  472. // this.upDisabled = true;
  473. // }
  474. if ((res.data.detourEmptyMile != null && res.data.detourEmptyMile != 0) || (res.data.detourLoadMile != null && res.data.detourLoadMile != 0)) {
  475. for (var i = 0; i < this.tabs.length; i++) {
  476. if (this.tabs[i].name === '行程绕路') {
  477. this.tabs[i].badge.isDot = true;
  478. }
  479. }
  480. }
  481. this.formData = res.data;
  482. var costBreakdownList = res.data.loadFeeItemsList;
  483. this.itemsList = costBreakdownList;
  484. for (const key in this.itemsList) {
  485. if (this.itemsList[key].amt == 0) {
  486. this.itemsList[key].amt = null;
  487. }
  488. }
  489. this.fileList1 = res.data.fileList1;
  490. this.loading = false;
  491. // isMileage(this.orderNo).then(res => {
  492. // if (res.msg == 410) {
  493. // // this.disabled = true;
  494. // // this.upDisabled = true;
  495. // // this.$refs.uToast.show({
  496. // // type: 'warning',
  497. // // icon: false,
  498. // // message: "当前报单有待提交里程!",
  499. // // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  500. // // })
  501. // }
  502. // })
  503. // this.calculatMoney();
  504. })
  505. },
  506. // 事件审核按钮
  507. upButtonClick(type) {
  508. if(this.formData.loadQty == null) {
  509. this.$refs.uToast.show({
  510. type: 'warning',
  511. icon: false,
  512. message: "没有装车吨位!",
  513. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  514. })
  515. return
  516. } else if(this.formData.loadDate == null) {
  517. this.$refs.uToast.show({
  518. type: 'warning',
  519. icon: false,
  520. message: "没有装车时间!",
  521. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  522. })
  523. return
  524. } else if(this.formData.unLoadQty == null) {
  525. this.$refs.uToast.show({
  526. type: 'warning',
  527. icon: false,
  528. message: "没有卸车吨位!",
  529. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  530. })
  531. return
  532. } else if(this.formData.unLoadDate == null) {
  533. this.$refs.uToast.show({
  534. type: 'warning',
  535. icon: false,
  536. message: "没有卸车时间!",
  537. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  538. })
  539. return
  540. } else if (this.formData.ifOrder2ed == 'F') {
  541. this.upAuditShow = false;
  542. this.$refs.uToast.show({
  543. type: 'warning',
  544. icon: false,
  545. message: "装卸信息提交后才能报账!",
  546. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  547. })
  548. return
  549. } else if (this.formData.ifOrder2ed != 'O' && this.formData.ifOrder2ed != 'S') {
  550. this.upAuditShow = false;
  551. this.$refs.uToast.show({
  552. type: 'warning',
  553. icon: false,
  554. message: "请先提交卸车信息!",
  555. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  556. })
  557. return
  558. }
  559. if (this.formData.gasstation1 != null && this.formData.gasstation1 != '') {
  560. if (this.formData.oilappoint1Qty == 0) {
  561. this.$refs.uToast.show({
  562. type: 'warning',
  563. icon: false,
  564. message: "升数不可以是0",
  565. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  566. })
  567. return
  568. }
  569. if (this.formData.oilappoint1Amt == 0) {
  570. this.$refs.uToast.show({
  571. type: 'warning',
  572. icon: false,
  573. message: "金额不可以是0",
  574. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  575. })
  576. return
  577. }
  578. if (this.formData.oilappoint1Qty == null || this.formData.oilappoint1Qty == '') {
  579. this.$refs.uToast.show({
  580. type: 'warning',
  581. icon: false,
  582. message: "请输入定点加油1的升数",
  583. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  584. })
  585. return
  586. }
  587. if (this.formData.oilappoint1Amt == null || this.formData.oilappoint1Amt == '') {
  588. this.$refs.uToast.show({
  589. type: 'warning',
  590. icon: false,
  591. message: "请输入定点加油1的金额",
  592. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  593. })
  594. return
  595. }
  596. }
  597. if (this.formData.gasstation2 != null && this.formData.gasstation2 != '') {
  598. if (this.formData.oilappoint2Qty == 0) {
  599. this.$refs.uToast.show({
  600. type: 'warning',
  601. icon: false,
  602. message: "升数不可以是0",
  603. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  604. })
  605. return
  606. }
  607. if (this.formData.oilappoint2Amt == 0) {
  608. this.$refs.uToast.show({
  609. type: 'warning',
  610. icon: false,
  611. message: "金额不可以是0",
  612. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  613. })
  614. return
  615. }
  616. if (this.formData.oilappoint2Qty == null || this.formData.oilappoint2Qty == '') {
  617. this.$refs.uToast.show({
  618. type: 'warning',
  619. icon: false,
  620. message: "请输入定点加油2的升数",
  621. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  622. })
  623. return
  624. }
  625. if (this.formData.oilappoint2Amt == null || this.formData.oilappoint2Amt == '') {
  626. this.$refs.uToast.show({
  627. type: 'warning',
  628. icon: false,
  629. message: "请输入定点加油2的金额",
  630. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  631. })
  632. return
  633. }
  634. }
  635. if (this.formData.gasstation3 != null && this.formData.gasstation3 != '') {
  636. if (this.formData.oilappoint3Qty == 0) {
  637. this.$refs.uToast.show({
  638. type: 'warning',
  639. icon: false,
  640. message: "升数不可以是0",
  641. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  642. })
  643. return
  644. }
  645. if (this.formData.oilappoint3Amt == 0) {
  646. this.$refs.uToast.show({
  647. type: 'warning',
  648. icon: false,
  649. message: "金额不可以是0",
  650. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  651. })
  652. return
  653. }
  654. if (this.formData.oilappoint3Qty == null || this.formData.oilappoint3Qty == '') {
  655. this.$refs.uToast.show({
  656. type: 'warning',
  657. icon: false,
  658. message: "请输入定点加油3的升数",
  659. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  660. })
  661. return
  662. }
  663. if (this.formData.oilappoint3Amt == null || this.formData.oilappoint3Amt == '') {
  664. this.$refs.uToast.show({
  665. type: 'warning',
  666. icon: false,
  667. message: "请输入定点加油3的金额",
  668. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  669. })
  670. return
  671. }
  672. }
  673. if (type == 'BX') {
  674. this.submitShow = true
  675. } else if (type == 'TJ') {
  676. this.upAuditShow = true
  677. }
  678. },
  679. submitVerify() {
  680. if (this.formData.gasstation1 != null && this.formData.gasstation1 != '') {
  681. if (this.formData.oilappoint1Qty == 0) {
  682. this.$refs.uToast.show({
  683. type: 'warning',
  684. icon: false,
  685. message: "升数不可以是0",
  686. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  687. })
  688. return false
  689. }
  690. if (this.formData.oilappoint1Amt == 0) {
  691. this.$refs.uToast.show({
  692. type: 'warning',
  693. icon: false,
  694. message: "金额不可以是0",
  695. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  696. })
  697. return false
  698. }
  699. if (this.formData.oilappoint1Qty == null || this.formData.oilappoint1Qty == '') {
  700. this.$refs.uToast.show({
  701. type: 'warning',
  702. icon: false,
  703. message: "请输入定点加油1的升数",
  704. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  705. })
  706. return false
  707. }
  708. if (this.formData.oilappoint1Amt == null || this.formData.oilappoint1Amt == '') {
  709. this.$refs.uToast.show({
  710. type: 'warning',
  711. icon: false,
  712. message: "请输入定点加油1的金额",
  713. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  714. })
  715. return false
  716. }
  717. }
  718. if (this.formData.gasstation2 != null && this.formData.gasstation2 != '') {
  719. if (this.formData.oilappoint2Qty == 0) {
  720. this.$refs.uToast.show({
  721. type: 'warning',
  722. icon: false,
  723. message: "升数不可以是0",
  724. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  725. })
  726. return false
  727. }
  728. if (this.formData.oilappoint2Amt == 0) {
  729. this.$refs.uToast.show({
  730. type: 'warning',
  731. icon: false,
  732. message: "金额不可以是0",
  733. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  734. })
  735. return false
  736. }
  737. if (this.formData.oilappoint2Qty == null || this.formData.oilappoint2Qty == '') {
  738. this.$refs.uToast.show({
  739. type: 'warning',
  740. icon: false,
  741. message: "请输入定点加油2的升数",
  742. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  743. })
  744. return false
  745. }
  746. if (this.formData.oilappoint2Amt == null || this.formData.oilappoint2Amt == '') {
  747. this.$refs.uToast.show({
  748. type: 'warning',
  749. icon: false,
  750. message: "请输入定点加油2的金额",
  751. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  752. })
  753. return false
  754. }
  755. }
  756. if (this.formData.gasstation3 != null && this.formData.gasstation3 != '') {
  757. if (this.formData.oilappoint3Qty == 0) {
  758. this.$refs.uToast.show({
  759. type: 'warning',
  760. icon: false,
  761. message: "升数不可以是0",
  762. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  763. })
  764. return false
  765. }
  766. if (this.formData.oilappoint3Amt == 0) {
  767. this.$refs.uToast.show({
  768. type: 'warning',
  769. icon: false,
  770. message: "金额不可以是0",
  771. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  772. })
  773. return false
  774. }
  775. if (this.formData.oilappoint3Qty == null || this.formData.oilappoint3Qty == '') {
  776. this.$refs.uToast.show({
  777. type: 'warning',
  778. icon: false,
  779. message: "请输入定点加油3的升数",
  780. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  781. })
  782. return false
  783. }
  784. if (this.formData.oilappoint3Amt == null || this.formData.oilappoint3Amt == '') {
  785. this.$refs.uToast.show({
  786. type: 'warning',
  787. icon: false,
  788. message: "请输入定点加油3的金额",
  789. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  790. })
  791. return false
  792. }
  793. }
  794. // else if (this.status376 == 6) {
  795. // this.$refs.uToast.show({
  796. // type: 'warning',
  797. // icon: false,
  798. // message: "不允许保存!",
  799. // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  800. // })
  801. // return false
  802. // }
  803. this.submitShow = true
  804. return true
  805. },
  806. // 保存内容
  807. submit() {
  808. // if ((this.status376 == 2 || this.status376 == 0)) {
  809. if (true) {
  810. let isMo = false;
  811. for (const key in this.itemsList) {
  812. if (this.itemsList[key].amt == null) {
  813. this.itemsList[key].amt = 0;
  814. }
  815. }
  816. if (this.formData.loadetc == null) {
  817. this.formData.loadetc = 0;
  818. }
  819. if (this.formData.loadtoll == null) {
  820. this.formData.loadtoll = 0;
  821. }
  822. if (this.formData.oilhomeQty == null) {
  823. this.formData.oilhomeQty = 0;
  824. }
  825. if (this.formData.oilhomeAmt == null) {
  826. this.formData.oilhomeAmt = 0;
  827. }
  828. if (this.formData.oilappoint1Qty == null) {
  829. this.formData.oilappoint1Qty = 0;
  830. }
  831. if (this.formData.oilappoint1Amt == null) {
  832. this.formData.oilappoint1Amt = 0;
  833. }
  834. if (this.formData.oilappoint2Qty == null) {
  835. this.formData.oilappoint2Qty = 0;
  836. }
  837. if (this.formData.oilappoint2Amt == null) {
  838. this.formData.oilappoint2Amt = 0;
  839. }
  840. if (this.formData.oilappoint3Qty == null) {
  841. this.formData.oilappoint3Qty = 0;
  842. }
  843. if (this.formData.oilappoint3Amt == null) {
  844. this.formData.oilappoint3Amt = 0;
  845. }
  846. if (this.formData.oilcash1Qty == null) {
  847. this.formData.oilcash1Qty = 0;
  848. }
  849. if (this.formData.oilcash1Amt == null) {
  850. this.formData.oilcash1Amt = 0;
  851. }
  852. if (this.formData.oilcardQty == null) {
  853. this.formData.oilcardQty = 0;
  854. }
  855. if (this.formData.oilcardAmt == null) {
  856. this.formData.oilcardAmt = 0;
  857. }
  858. if (this.formData.gasstation1 == null) {
  859. this.formData.gasstation1 = 0;
  860. }
  861. if (this.formData.gasstation2 == null) {
  862. this.formData.gasstation2 = 0;
  863. }
  864. if (this.formData.gasstation3 == null) {
  865. this.formData.gasstation3 = 0;
  866. }
  867. this.loading = true;
  868. // var list = [];
  869. // for (var item in this.itemsList) {
  870. // var amt = this.itemsList[item].amt;
  871. // if (amt != null) {
  872. // var items = this.itemsList[item];
  873. // list.push(items);
  874. // }
  875. // }
  876. // for (let item of this.itemsList) {
  877. // if (item == 0) {
  878. // item.amt = null
  879. // }
  880. // }
  881. // this.formData.itemsVoList = list;
  882. this.formData.itemsVoList = this.itemsList;
  883. insertLoadFeeItems(this.formData).then(res => {
  884. this.submitShow = false;
  885. if (res.code == 200) {
  886. // 报销费用下拉选
  887. getGasStations().then(res => {
  888. // this.gasStationList = res.data
  889. for (var item in res.data) {
  890. var data = {
  891. text: res.data[item].cname,
  892. value: res.data[item].cname
  893. };
  894. this.gasStationList.push(data);
  895. }
  896. getItems().then(res => {
  897. this.itemsList = res.data
  898. getLoadFeeItems(this.orderNo).then(res => {
  899. res.data.loadetc == 0 ? res.data.loadetc = null : res.data.loadetc
  900. res.data.loadtoll == 0 ? res.data.loadtoll = null : res.data.loadtoll
  901. res.data.oilhomeQty == 0 ? res.data.oilhomeQty = null : res.data.oilhomeQty
  902. res.data.oilhomeAmt == 0 ? res.data.oilhomeAmt = null : res.data.oilhomeAmt
  903. res.data.oilappoint1Qty == 0 ? res.data.oilappoint1Qty = null : res.data.oilappoint1Qty
  904. res.data.oilappoint1Amt == 0 ? res.data.oilappoint1Amt = null : res.data.oilappoint1Amt
  905. res.data.oilappoint2Qty == 0 ? res.data.oilappoint2Qty = null : res.data.oilappoint2Qty
  906. res.data.oilappoint2Amt == 0 ? res.data.oilappoint2Amt = null : res.data.oilappoint2Amt
  907. res.data.oilappoint3Qty == 0 ? res.data.oilappoint3Qty = null : res.data.oilappoint3Qty
  908. res.data.oilappoint3Amt == 0 ? res.data.oilappoint3Amt = null : res.data.oilappoint3Amt
  909. res.data.oilcash1Qty == 0 ? res.data.oilcash1Qty = null : res.data.oilcash1Qty
  910. res.data.oilcash1Amt == 0 ? res.data.oilcash1Amt = null : res.data.oilcash1Amt
  911. res.data.oilcardQty == 0 ? res.data.oilcardQty = null : res.data.oilcardQty
  912. res.data.oilcardAmt == 0 ? res.data.oilcardAmt = null : res.data.oilcardAmt
  913. res.data.detourEmptyMile == 0 ? res.data.detourEmptyMile = null : res.data.detourEmptyMile
  914. res.data.detourLoadMile == 0 ? res.data.detourLoadMile = null : res.data.detourLoadMile
  915. for (let item of this.itemsList) {
  916. if (item == 0) {
  917. item.amt = null
  918. }
  919. }
  920. // 角色
  921. for (let role of res.data.roleList) {
  922. if (role == 'DZ') {
  923. this.button = false;
  924. }
  925. }
  926. // 审核中
  927. if (
  928. res.data.ifStarted == "S") {
  929. this.disabled = true;
  930. this.saveDisabled = true;
  931. this.upDisabled = true;
  932. this.sDisabled = false;
  933. }
  934. // 审核完成
  935. if (
  936. res.data.ifStarted == "A") {
  937. this.disabled = true;
  938. this.saveDisabled = true;
  939. this.upDisabled = true;
  940. }
  941. // 未提交
  942. // if (res.data.ifLoaded != "T" ||
  943. // res.data.ifUnLoaded != "T") {
  944. // this.disabled = false;
  945. // this.saveDisabled = false;
  946. // this.upDisabled = true;
  947. // }
  948. this.formData = res.data;
  949. var costBreakdownList = res.data.loadFeeItemsList;
  950. this.itemsList = costBreakdownList;
  951. for (const key in this.itemsList) {
  952. if (this.itemsList[key].amt == 0) {
  953. this.itemsList[key].amt = null;
  954. }
  955. }
  956. this.fileList1 = res.data.fileList1;
  957. this.$refs.uToast.show({
  958. type: 'success',
  959. message: "保存成功!",
  960. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  961. })
  962. this.loading = false;
  963. })
  964. })
  965. })
  966. // this.getData();
  967. // 保存成功弹窗提示
  968. // this.$refs.uToast.show({
  969. // type: 'success',
  970. // message: "保存成功!",
  971. // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  972. // })
  973. } else {
  974. // 保存失败消息
  975. this.$refs.uToast.show({
  976. icon: false,
  977. message: "保存失败请重试!",
  978. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
  979. })
  980. }
  981. })
  982. }
  983. },
  984. // 提交审核
  985. upReview() {
  986. // if (this.status376 == 6) {
  987. // this.upAuditShow = false;
  988. // this.$refs.uToast.show({
  989. // type: 'warning',
  990. // icon: false,
  991. // message: "不允许保存!",
  992. // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  993. // })
  994. // } else if (this.status376 == 2 || this.status376 == 0) {
  995. if (this.formData.ifOrder2ed != 'O' && this.formData.ifOrder2ed != 'S') {
  996. this.upAuditShow = false;
  997. this.$refs.uToast.show({
  998. type: 'warning',
  999. icon: false,
  1000. message: "请先提交报账单!",
  1001. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  1002. })
  1003. } else if (this.formData.ifOrder2ed == 'O' || this.formData.ifOrder2ed == 'S') {
  1004. let isMo = false;
  1005. for (const key in this.itemsList) {
  1006. if (this.itemsList[key].amt == null) {
  1007. this.itemsList[key].amt = 0;
  1008. }
  1009. }
  1010. if (this.formData.loadetc == null) {
  1011. this.formData.loadetc = 0;
  1012. }
  1013. if (this.formData.loadtoll == null) {
  1014. this.formData.loadtoll = 0;
  1015. }
  1016. if (this.formData.oilhomeQty == null) {
  1017. this.formData.oilhomeQty = 0;
  1018. }
  1019. if (this.formData.oilhomeAmt == null) {
  1020. this.formData.oilhomeAmt = 0;
  1021. }
  1022. if (this.formData.oilappoint1Qty == null) {
  1023. this.formData.oilappoint1Qty = 0;
  1024. }
  1025. if (this.formData.oilappoint1Amt == null) {
  1026. this.formData.oilappoint1Amt = 0;
  1027. }
  1028. if (this.formData.oilappoint2Qty == null) {
  1029. this.formData.oilappoint2Qty = 0;
  1030. }
  1031. if (this.formData.oilappoint2Amt == null) {
  1032. this.formData.oilappoint2Amt = 0;
  1033. }
  1034. if (this.formData.oilappoint3Qty == null) {
  1035. this.formData.oilappoint3Qty = 0;
  1036. }
  1037. if (this.formData.oilappoint3Amt == null) {
  1038. this.formData.oilappoint3Amt = 0;
  1039. }
  1040. if (this.formData.oilcash1Qty == null) {
  1041. this.formData.oilcash1Qty = 0;
  1042. }
  1043. if (this.formData.oilcash1Amt == null) {
  1044. this.formData.oilcash1Amt = 0;
  1045. }
  1046. if (this.formData.oilcardQty == null) {
  1047. this.formData.oilcardQty = 0;
  1048. }
  1049. if (this.formData.oilcardAmt == null) {
  1050. this.formData.oilcardAmt = 0;
  1051. }
  1052. if (this.formData.gasstation1 == null) {
  1053. this.formData.gasstation1 = 0;
  1054. }
  1055. if (this.formData.gasstation2 == null) {
  1056. this.formData.gasstation2 = 0;
  1057. }
  1058. if (this.formData.gasstation3 == null) {
  1059. this.formData.gasstation3 = 0;
  1060. }
  1061. this.loading = true;
  1062. // var list = [];
  1063. // for (var item in this.itemsList) {
  1064. // var amt = this.itemsList[item].amt;
  1065. // if (amt != null) {
  1066. // var items = this.itemsList[item];
  1067. // list.push(items);
  1068. // }
  1069. // }
  1070. this.formData.itemsVoList = this.itemsList;
  1071. submitAudit(this.formData).then(res => {
  1072. this.submitShow = false
  1073. this.upAuditShow = false;
  1074. if (res.msg == 'ok') {
  1075. getGasStations().then(res => {
  1076. for (var item in res.data) {
  1077. var data = {
  1078. text: res.data[item].cname,
  1079. value: res.data[item].cname
  1080. };
  1081. this.gasStationList.push(data);
  1082. }
  1083. getItems().then(res => {
  1084. this.itemsList = res.data
  1085. getLoadFeeItems(this.orderNo).then(res => {
  1086. res.data.loadetc == 0 ? res.data.loadetc = null : res.data.loadetc
  1087. res.data.loadtoll == 0 ? res.data.loadtoll = null : res.data.loadtoll
  1088. res.data.oilhomeQty == 0 ? res.data.oilhomeQty = null : res.data.oilhomeQty
  1089. res.data.oilhomeAmt == 0 ? res.data.oilhomeAmt = null : res.data.oilhomeAmt
  1090. res.data.oilappoint1Qty == 0 ? res.data.oilappoint1Qty = null : res.data.oilappoint1Qty
  1091. res.data.oilappoint1Amt == 0 ? res.data.oilappoint1Amt = null : res.data.oilappoint1Amt
  1092. res.data.oilappoint2Qty == 0 ? res.data.oilappoint2Qty = null : res.data.oilappoint2Qty
  1093. res.data.oilappoint2Amt == 0 ? res.data.oilappoint2Amt = null : res.data.oilappoint2Amt
  1094. res.data.oilappoint3Qty == 0 ? res.data.oilappoint3Qty = null : res.data.oilappoint3Qty
  1095. res.data.oilappoint3Amt == 0 ? res.data.oilappoint3Amt = null : res.data.oilappoint3Amt
  1096. res.data.oilcash1Qty == 0 ? res.data.oilcash1Qty = null : res.data.oilcash1Qty
  1097. res.data.oilcash1Amt == 0 ? res.data.oilcash1Amt = null : res.data.oilcash1Amt
  1098. res.data.oilcardQty == 0 ? res.data.oilcardQty = null : res.data.oilcardQty
  1099. res.data.oilcardAmt == 0 ? res.data.oilcardAmt = null : res.data.oilcardAmt
  1100. res.data.detourEmptyMile == 0 ? res.data.detourEmptyMile = null : res.data.detourEmptyMile
  1101. res.data.detourLoadMile == 0 ? res.data.detourLoadMile = null : res.data.detourLoadMile
  1102. for (let item of this.itemsList) {
  1103. if (item == 0) {
  1104. item.amt = null
  1105. }
  1106. }
  1107. // 角色
  1108. for (let role of res.data.roleList) {
  1109. if (role == 'DZ') {
  1110. this.button = false;
  1111. }
  1112. }
  1113. // 审核中
  1114. if (
  1115. res.data.ifStarted == "S") {
  1116. this.disabled = true;
  1117. this.saveDisabled = true;
  1118. this.upDisabled = true;
  1119. this.sDisabled = false;
  1120. }
  1121. // 审核完成
  1122. if (
  1123. res.data.ifStarted == "A") {
  1124. this.disabled = true;
  1125. this.saveDisabled = true;
  1126. this.upDisabled = true;
  1127. }
  1128. // 未提交
  1129. // if (res.data.ifLoaded != "T" ||
  1130. // res.data.ifUnLoaded != "T") {
  1131. // this.disabled = false;
  1132. // this.saveDisabled = false;
  1133. // this.upDisabled = true;
  1134. // }
  1135. this.formData = res.data;
  1136. var costBreakdownList = res.data.loadFeeItemsList;
  1137. this.itemsList = costBreakdownList;
  1138. for (const key in this.itemsList) {
  1139. if (this.itemsList[key].amt == 0) {
  1140. this.itemsList[key].amt = null;
  1141. }
  1142. }
  1143. this.fileList1 = res.data.fileList1;
  1144. this.$refs.uToast.show({
  1145. type: 'success',
  1146. message: "提交审核成功!",
  1147. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  1148. })
  1149. this.loading = false;
  1150. })
  1151. })
  1152. })
  1153. // this.getData();
  1154. // // 保存成功弹窗提示
  1155. // this.$refs.uToast.show({
  1156. // type: 'success',
  1157. // message: "提交审核成功!",
  1158. // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  1159. // })
  1160. } else {
  1161. // 保存失败消息
  1162. this.$refs.uToast.show({
  1163. icon: false,
  1164. message: "提交审核失败请重试!",
  1165. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
  1166. })
  1167. }
  1168. })
  1169. }
  1170. },
  1171. // 审核
  1172. check(type) {
  1173. this.loading = true;
  1174. var data = {
  1175. orderNo: this.orderNo,
  1176. entityId: this.formData.entityId,
  1177. audit2Desc: this.formData.audit2Desc ? this.formData.audit2Desc : '',
  1178. lineNo: this.formData.lineNo,
  1179. auditType: type
  1180. }
  1181. audit(data).then(res => {
  1182. if (res.msg == 'ok') {
  1183. this.getData();
  1184. this.sDisabled = false;
  1185. if (type == 'T') {
  1186. this.auditTShow = false;
  1187. } else if (type == 'F') {
  1188. this.auditFShow = false;
  1189. }
  1190. // 保存成功弹窗提示
  1191. this.$refs.uToast.show({
  1192. type: 'success',
  1193. message: "审核成功!",
  1194. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  1195. })
  1196. this.sDisabled = true;
  1197. this.loading = false;
  1198. } else {
  1199. // 保存失败消息
  1200. this.$refs.uToast.show({
  1201. icon: false,
  1202. message: "审核失败请重试!",
  1203. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
  1204. })
  1205. this.loading = false;
  1206. }
  1207. })
  1208. },
  1209. // 删除图片
  1210. deletePic(event) {
  1211. if (this.disabled) {
  1212. this.$refs.uToast.show({
  1213. type: 'warning',
  1214. icon: false,
  1215. message: "不允许修改!",
  1216. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  1217. })
  1218. } else {
  1219. this.event = event;
  1220. this.deleteShow = true;
  1221. }
  1222. },
  1223. deleteImg() {
  1224. var event = this.event;
  1225. var url = event.file.url;
  1226. var index = url.lastIndexOf("\/");
  1227. var attachId = url.substring(index + 1, url.length);
  1228. deleteTmsAttachMngs(attachId).then(res => {
  1229. if (res.code == 200) {
  1230. this[`fileList${event.name}`].splice(event.index, 1)
  1231. // 删除成功消息
  1232. this.$refs.uToast.show({
  1233. type: 'success',
  1234. message: "删除成功!",
  1235. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  1236. })
  1237. } else {
  1238. // 删除失败消息
  1239. this.$refs.uToast.show({
  1240. icon: false,
  1241. message: "删除失败请重试!",
  1242. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
  1243. })
  1244. }
  1245. this.event = {};
  1246. this.deleteShow = false;
  1247. })
  1248. },
  1249. // 新增图片
  1250. imgUploading(event) {
  1251. // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
  1252. let lists = [].concat(event.file)
  1253. let fileListLen = this[`fileList${event.name}`].length
  1254. lists.map((item) => {
  1255. this[`fileList${event.name}`].push({
  1256. ...item,
  1257. status: 'uploading',
  1258. message: '上传中'
  1259. })
  1260. })
  1261. for (let i = 0; i < lists.length; i++) {
  1262. let date = this.dateToString("yyyyMMdd");
  1263. let dateHHmmss = this.dateToString("yyyy-MM-dd HH:mm:ss");
  1264. this.formData.date = date;
  1265. insertTmsAttachMngs(this.formData).then(res => {
  1266. if (res.code == 200) {
  1267. uni.compressImage({
  1268. src: lists[i].url,
  1269. quality: 80,
  1270. success: ress => {
  1271. let data = {
  1272. name: 'avatarfile',
  1273. filePath: ress.tempFilePath
  1274. }
  1275. // 获取经纬度
  1276. let longitude = '';
  1277. let latitude = '';
  1278. uni.getLocation({
  1279. type: 'wgs84',
  1280. isHighAccuracy: true,
  1281. geocode: true,
  1282. fail: () => {
  1283. this.fileList1.pop();
  1284. this.$refs.uToast.show({
  1285. type: 'warning',
  1286. icon: false,
  1287. message: "请打开定位!",
  1288. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  1289. })
  1290. return
  1291. },
  1292. success: (map) => {
  1293. longitude = map.longitude
  1294. latitude = map.latitude
  1295. let dataForm = {
  1296. attachId: res.data,
  1297. longitude: longitude,
  1298. latitude: latitude,
  1299. updateDate: dateHHmmss,
  1300. carRegNo:this.formData.carRegNo
  1301. }
  1302. // 上传图片
  1303. pictureUploading(data, dataForm).then(res => {
  1304. let item = this[`fileList${event.name}`][fileListLen]
  1305. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(
  1306. item, {
  1307. status: 'success',
  1308. message: '',
  1309. url: res.data
  1310. }))
  1311. fileListLen++
  1312. })
  1313. }
  1314. });
  1315. }
  1316. })
  1317. }
  1318. })
  1319. }
  1320. },
  1321. dateToString(fmt) {
  1322. var date = new Date();
  1323. var o = {
  1324. "M+": date.getMonth() + 1, //月份
  1325. "d+": date.getDate(), //日
  1326. "H+": date.getHours(), //小时
  1327. "m+": date.getMinutes(), //分
  1328. "s+": date.getSeconds(), //秒
  1329. "q+": Math.floor((date.getMonth() + 3) / 3), //季度
  1330. "S": date.getMilliseconds() //毫秒
  1331. };
  1332. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
  1333. for (var k in o)
  1334. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[
  1335. k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1336. return fmt;
  1337. },
  1338. // 定点加油1清空
  1339. gasstation1Change() {
  1340. this.formData.oilappoint1Qty = null;
  1341. this.formData.oilappoint1Amt = null;
  1342. },
  1343. // 定点加油2清空
  1344. gasstation2Change() {
  1345. this.formData.oilappoint2Qty = null;
  1346. this.formData.oilappoint2Amt = null;
  1347. },
  1348. // 定点加油3清空
  1349. gasstation3Change() {
  1350. this.formData.oilappoint3Qty = null;
  1351. this.formData.oilappoint3Amt = null;
  1352. },
  1353. // 点击拨打电话
  1354. telFun() {
  1355. if (this.formData.driver1mobile != null && this.formData.driver1mobile != '') {
  1356. uni.makePhoneCall({
  1357. phoneNumber: this.formData.driver1mobile, //电话号码
  1358. success: function(e) {
  1359. // console.log(e);
  1360. },
  1361. fail: function(e) {
  1362. // console.log(e);
  1363. }
  1364. })
  1365. }
  1366. },
  1367. // 其他费用表格勾选事件
  1368. selectionChange(e) {
  1369. this.selectedIndexs = e.detail.index;
  1370. },
  1371. // 计算报销金额
  1372. // calculatMoney() {
  1373. // let loadetc = this.formData.loadetc == null ? 0 : this.formData.loadetc;
  1374. // let loadtoll = this.formData.loadtoll == null ? 0 : this.formData.loadtoll;
  1375. // let oilhomeAmt = this.formData.oilhomeAmt == null ? 0 : this.formData.oilhomeAmt;
  1376. // let oilappoint1Amt = this.formData.oilappoint1Amt == null ? 0 : this.formData.oilappoint1Amt;
  1377. // let oilappoint2Amt = this.formData.oilappoint2Amt == null ? 0 : this.formData.oilappoint2Amt;
  1378. // let oilappoint3Amt = this.formData.oilappoint3Amt == null ? 0 : this.formData.oilappoint3Amt;
  1379. // let oilcash1Amt = this.formData.oilcash1Amt == null ? 0 : this.formData.oilcash1Amt;
  1380. // let oilcardAmt = this.formData.oilcardAmt == null ? 0 : this.formData.oilcardAmt;
  1381. // let itemsMoney = 0;
  1382. // for (const key in this.itemsList) {
  1383. // let a = this.itemsList[key].amt == null ? 0 : this.itemsList[key].amt;
  1384. // itemsMoney += Number(a);
  1385. // }
  1386. // loadetc = Number(loadetc)
  1387. // loadtoll = Number(loadtoll)
  1388. // oilhomeAmt = Number(oilhomeAmt)
  1389. // oilappoint1Amt = Number(oilappoint1Amt)
  1390. // oilappoint2Amt = Number(oilappoint2Amt)
  1391. // oilappoint3Amt = Number(oilappoint3Amt)
  1392. // oilcash1Amt = Number(oilcash1Amt)
  1393. // oilcardAmt = Number(oilcardAmt)
  1394. // itemsMoney = Number(itemsMoney)
  1395. // this.money = loadetc + loadtoll + oilhomeAmt + oilappoint1Amt + oilappoint2Amt + oilcash1Amt + oilcardAmt +
  1396. // oilappoint3Amt + itemsMoney;
  1397. // },
  1398. checkUnLoadetc(e) {
  1399. //正则表达试
  1400. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1401. //重新赋值给input
  1402. this.$nextTick(() => {
  1403. this.formData.loadetc = e.target.value
  1404. })
  1405. this.calculatMoney();
  1406. },
  1407. checkUnLoadtoll(e) {
  1408. //正则表达试
  1409. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1410. //重新赋值给input
  1411. this.$nextTick(() => {
  1412. this.formData.loadtoll = e.target.value
  1413. })
  1414. this.calculatMoney();
  1415. },
  1416. checkUnOilhomeQty(e) {
  1417. //正则表达试
  1418. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1419. //重新赋值给input
  1420. this.$nextTick(() => {
  1421. this.formData.oilhomeQty = e.target.value
  1422. })
  1423. this.calculatMoney();
  1424. },
  1425. checkUnOilhomeAmt(e) {
  1426. //正则表达试
  1427. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1428. //重新赋值给input
  1429. this.$nextTick(() => {
  1430. this.formData.oilhomeAmt = e.target.value
  1431. })
  1432. this.calculatMoney();
  1433. },
  1434. checkUnOilappoint1Qty(e) {
  1435. //正则表达试
  1436. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1437. //重新赋值给input
  1438. this.$nextTick(() => {
  1439. this.formData.oilappoint1Qty = e.target.value
  1440. })
  1441. this.calculatMoney();
  1442. },
  1443. checkUnOilappoint1Amt(e) {
  1444. //正则表达试
  1445. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1446. //重新赋值给input
  1447. this.$nextTick(() => {
  1448. this.formData.oilappoint1Amt = e.target.value
  1449. })
  1450. this.calculatMoney();
  1451. },
  1452. checkUnOilappoint2Qty(e) {
  1453. //正则表达试
  1454. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1455. //重新赋值给input
  1456. this.$nextTick(() => {
  1457. this.formData.oilappoint2Qty = e.target.value
  1458. })
  1459. this.calculatMoney();
  1460. },
  1461. checkUnOilappoint2Amt(e) {
  1462. //正则表达试
  1463. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1464. //重新赋值给input
  1465. this.$nextTick(() => {
  1466. this.formData.oilappoint2Amt = e.target.value
  1467. })
  1468. this.calculatMoney();
  1469. },
  1470. checkUnOilappoint3Qty(e) {
  1471. //正则表达试
  1472. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1473. //重新赋值给input
  1474. this.$nextTick(() => {
  1475. this.formData.oilappoint3Qty = e.target.value
  1476. })
  1477. this.calculatMoney();
  1478. },
  1479. checkUnOilappoint3Amt(e) {
  1480. //正则表达试
  1481. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1482. //重新赋值给input
  1483. this.$nextTick(() => {
  1484. this.formData.oilappoint3Amt = e.target.value
  1485. })
  1486. this.calculatMoney();
  1487. },
  1488. checkUnOilcash1Qty(e) {
  1489. //正则表达试
  1490. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1491. //重新赋值给input
  1492. this.$nextTick(() => {
  1493. this.formData.oilcash1Qty = e.target.value
  1494. })
  1495. this.calculatMoney();
  1496. },
  1497. checkUnOilcash1Amt(e) {
  1498. //正则表达试
  1499. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1500. //重新赋值给input
  1501. this.$nextTick(() => {
  1502. this.formData.oilcash1Amt = e.target.value
  1503. })
  1504. this.calculatMoney();
  1505. },
  1506. checkUnOilcardQty(e) {
  1507. //正则表达试
  1508. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1509. //重新赋值给input
  1510. this.$nextTick(() => {
  1511. this.formData.oilcardQty = e.target.value
  1512. })
  1513. this.calculatMoney();
  1514. },
  1515. checkUnOilcardAmt(e) {
  1516. //正则表达试
  1517. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1518. //重新赋值给input
  1519. this.$nextTick(() => {
  1520. this.formData.oilcardAmt = e.target.value
  1521. })
  1522. this.calculatMoney();
  1523. },
  1524. checkUnAmt(amt, index) {
  1525. var amt = (amt.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1526. //重新赋值给input
  1527. this.$nextTick(() => {
  1528. this.itemsList[index].amt = amt
  1529. })
  1530. this.calculatMoney();
  1531. },
  1532. checkUnDetourEmptyMile(e) {
  1533. //正则表达试
  1534. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1535. //重新赋值给input
  1536. this.$nextTick(() => {
  1537. this.formData.detourEmptyMile = e.target.value
  1538. })
  1539. },
  1540. checkUnDetourLoadMile(e) {
  1541. //正则表达试
  1542. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1543. //重新赋值给input
  1544. this.$nextTick(() => {
  1545. this.formData.detourLoadMile = e.target.value
  1546. })
  1547. },
  1548. inputHeight() {
  1549. // if (this.vHeight == 0) {
  1550. this.vHeight = 600;
  1551. // } else {
  1552. // this.vHeight = 0;
  1553. // }
  1554. }
  1555. }
  1556. }
  1557. </script>
  1558. <style lang="scss">
  1559. @import url("/font/iconfont.css");
  1560. // 修改布局方向为纵向布局
  1561. .vertical-layout {
  1562. display: flex;
  1563. }
  1564. .h {
  1565. margin-top: 20rpx;
  1566. height: 100rpx;
  1567. padding-left: 40rpx;
  1568. // font-weight: 900;
  1569. border-top: 2rpx solid #f0f0f0f0;
  1570. border-bottom: 2rpx solid #f0f0f0f0;
  1571. line-height: 100rpx;
  1572. font-size: 30rpx;
  1573. color: #3c9cff;
  1574. // background-color: pink;
  1575. }
  1576. // 分割线
  1577. .striping {
  1578. width: 100%;
  1579. height: 4rpx;
  1580. background-color: #f0f0f0f0;
  1581. }
  1582. .box-box {
  1583. padding-left: 30rpx;
  1584. padding-right: 30rpx;
  1585. }
  1586. .content {
  1587. box-sizing: border-box;
  1588. background-color: white;
  1589. .head {
  1590. color: #3c9cff;
  1591. // width: 100%;
  1592. height: 40rpx;
  1593. padding: 0 30rpx;
  1594. vertical-align: middle;
  1595. // display: table-cell;
  1596. display: flex;
  1597. align-items: flex-end;
  1598. justify-content: space-between;
  1599. box-sizing: border-box;
  1600. font-size: 34rpx;
  1601. font-weight: 700;
  1602. // background-color: red;
  1603. }
  1604. .head-no-addr {
  1605. // width: 960rpx;
  1606. height: 100rpx;
  1607. // padding-left: 30rpx;
  1608. padding: 0 30rpx;
  1609. vertical-align: middle;
  1610. color: #fff;
  1611. font-size: 34rpx;
  1612. font-weight: 700;
  1613. display: flex;
  1614. align-items: center;
  1615. justify-content: space-between;
  1616. box-sizing: border-box;
  1617. background-color: #3c9cff;
  1618. }
  1619. .box-list {
  1620. color: #3b3b3b;
  1621. width: 100%;
  1622. border-bottom: 2rpx solid #f0f0f0f0;
  1623. // padding-left: 50rpx;
  1624. // font-size: 30rpx;
  1625. color: #3b3b3b;
  1626. .icon {
  1627. // width: 100rpx;
  1628. margin-top: 50rpx;
  1629. // font-size: 50rpx;
  1630. // color: #4888ff;
  1631. }
  1632. .list {
  1633. margin-top: 30rpx;
  1634. margin-bottom: 20rpx;
  1635. width: 100%;
  1636. height: 100%;
  1637. // background-color: pink;
  1638. height: auto;
  1639. display: flex;
  1640. flex-wrap: wrap;
  1641. // font-size: 30rpx;
  1642. }
  1643. .quantity-aum {
  1644. margin-bottom: 25rpx;
  1645. .aaa {
  1646. width: 50%;
  1647. .key {
  1648. display: inline-block;
  1649. width: 50%;
  1650. margin-left: 20rpx;
  1651. // margin-right: 80rpx;
  1652. border-bottom: 2rpx dotted #000;
  1653. }
  1654. }
  1655. .bbb {
  1656. width: 50%;
  1657. .value {
  1658. width: 50%;
  1659. margin-left: 20rpx;
  1660. // margin-right: 20rpx;
  1661. border-bottom: 2rpx dotted #000;
  1662. }
  1663. }
  1664. }
  1665. }
  1666. .box {
  1667. color: #3b3b3b;
  1668. // overflow: hidden;
  1669. height: 100rpx;
  1670. // border-bottom: 2rpx solid #f0f0f0f0;
  1671. // font-size: 30rpx;
  1672. display: flex;
  1673. align-items: center;
  1674. .data {
  1675. width: 50%;
  1676. display: flex;
  1677. align-items: center;
  1678. .key {
  1679. width: 55%;
  1680. text-align: right;
  1681. color: #3c9cff;
  1682. }
  1683. .value {
  1684. margin-left: 20rpx;
  1685. width: 45%;
  1686. color: #3b3b3b;
  1687. border-bottom: 2rpx dotted #000;
  1688. }
  1689. }
  1690. .data-two {
  1691. width: 100%;
  1692. display: flex;
  1693. align-items: center;
  1694. .key {
  1695. width: 35%;
  1696. text-align: right;
  1697. color: #3c9cff;
  1698. }
  1699. .list {
  1700. margin-top: 30rpx;
  1701. margin-bottom: 20rpx;
  1702. width: 100%;
  1703. height: 100%;
  1704. // background-color: pink;
  1705. height: auto;
  1706. display: flex;
  1707. flex-wrap: wrap;
  1708. // font-size: 30rpx;
  1709. }
  1710. }
  1711. }
  1712. .box-two {
  1713. color: #3b3b3b;
  1714. overflow: hidden;
  1715. height: 100rpx;
  1716. padding-left: 20rpx;
  1717. // margin-right: 20rpx;
  1718. // font-size: 30rpx;
  1719. display: flex;
  1720. align-items: center;
  1721. .key {
  1722. display: inline-block;
  1723. width: 24%;
  1724. color: #3c9cff;
  1725. }
  1726. .value {
  1727. margin-left: 20rpx;
  1728. width: calc(100% - 24%);
  1729. color: #3b3b3b;
  1730. // margin-right: 20rpx;
  1731. border-bottom: 2rpx dotted #000;
  1732. }
  1733. }
  1734. .table {
  1735. // margin-top: 40rpx;
  1736. margin-left: 20rpx;
  1737. margin-right: 20rpx;
  1738. .data {
  1739. // font-size: 30rpx;
  1740. width: 100%;
  1741. height: 100rpx;
  1742. border-bottom: 2rpx solid #f0f0f0f0;
  1743. align-items: center;
  1744. .name {
  1745. text-align: right;
  1746. width: 25%;
  1747. margin-left: 20rpx;
  1748. color: #000;
  1749. }
  1750. .sum {
  1751. width: 20%;
  1752. margin-left: 20rpx;
  1753. margin-right: 40rpx;
  1754. border-bottom: 2rpx dotted #000;
  1755. }
  1756. .remarks {
  1757. width: 30%;
  1758. }
  1759. }
  1760. }
  1761. .primary {
  1762. background-color: #0b68ffff;
  1763. }
  1764. .attention {
  1765. padding: 30rpx;
  1766. padding-left: 50rpx;
  1767. padding-bottom: 40rpx;
  1768. }
  1769. // 底部提交按钮
  1770. // .bottom {
  1771. // height: 130rpx;
  1772. // display: block;
  1773. // position: fixed;
  1774. // bottom: calc(var(--window-bottom));
  1775. // width: 100%;
  1776. // // background-color: #f0f0f0f0;
  1777. // // background-color: pink;
  1778. // background-color: white;
  1779. // .bottom-bottom {
  1780. // width: 100%;
  1781. // height: 100%;
  1782. // position: relative;
  1783. // display: flex;
  1784. // // .submit {
  1785. // // width: 95%;
  1786. // // background-color: #0b68ffff;
  1787. // // }
  1788. // .money {
  1789. // font-size: 28rpx;
  1790. // height: 130rpx;
  1791. // margin-right: 80rpx;
  1792. // line-height: 130rpx;
  1793. // margin-left: 10%;
  1794. // }
  1795. // .button {
  1796. // width: 300rpx;
  1797. // position: absolute;
  1798. // right: 0;
  1799. // margin-right: 10%;
  1800. // .button-button {
  1801. // padding: 10% 0;
  1802. // background-clip: content-box;
  1803. // }
  1804. // }
  1805. // }
  1806. // }
  1807. .bottom {
  1808. position: fixed;
  1809. bottom: calc(var(--window-bottom));
  1810. width: 100%;
  1811. height: 130rpx;
  1812. background-color: white;
  1813. .row {
  1814. display: flex;
  1815. justify-content: space-evenly;
  1816. height: 130rpx;
  1817. align-items: center;
  1818. .button {
  1819. width: 300rpx;
  1820. // width: 660rpx;
  1821. }
  1822. }
  1823. }
  1824. .input {
  1825. width: 100%;
  1826. // height: 100rpx;
  1827. // background-color: red;
  1828. }
  1829. .cushion {
  1830. width: 100%;
  1831. height: 200rpx;
  1832. background-color: #f0f0f0f0;
  1833. }
  1834. }
  1835. </style>