index.vue 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033
  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" accept="image" :sizeType="['compressed']" capture="camera"
  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. }],
  371. isTabs: '行程费用',
  372. // 报销金额
  373. money: 0
  374. }
  375. },
  376. onUnload() {
  377. this.formData = {};
  378. this.loading = true;
  379. },
  380. onLoad: function(option) {
  381. this.status376 = option.status;
  382. this.orderNo = option.orderNo;
  383. if (this.status376 == 6) {
  384. this.disabled = true;
  385. }
  386. this.getData();
  387. this.getLoadFeeItemsfun()
  388. },
  389. methods: {
  390. change(item) {
  391. this.isTabs = item.name;
  392. },
  393. auditTClick() {
  394. this.formData.audit2Desc = "审核通过"
  395. this.auditTShow = true
  396. },
  397. auditFClick() {
  398. this.formData.audit2Desc = null
  399. this.auditFShow = true
  400. },
  401. getData() {
  402. // 报销费用下拉选
  403. getGasStations().then(res => {
  404. // this.gasStationList = res.data
  405. for (var item in res.data) {
  406. var data = {
  407. text: res.data[item].cname,
  408. value: res.data[item].cname
  409. };
  410. this.gasStationList.push(data);
  411. }
  412. getItems().then(res => {
  413. this.itemsList = res.data
  414. })
  415. })
  416. },
  417. getLoadFeeItemsfun(){
  418. getLoadFeeItems(this.orderNo).then(res => {
  419. res.data.loadetc == 0 ? res.data.loadetc = null : res.data.loadetc
  420. res.data.loadtoll == 0 ? res.data.loadtoll = null : res.data.loadtoll
  421. res.data.oilhomeQty == 0 ? res.data.oilhomeQty = null : res.data.oilhomeQty
  422. res.data.oilhomeAmt == 0 ? res.data.oilhomeAmt = null : res.data.oilhomeAmt
  423. res.data.oilappoint1Qty == 0 ? res.data.oilappoint1Qty = null : res.data.oilappoint1Qty
  424. res.data.oilappoint1Amt == 0 ? res.data.oilappoint1Amt = null : res.data.oilappoint1Amt
  425. res.data.oilappoint2Qty == 0 ? res.data.oilappoint2Qty = null : res.data.oilappoint2Qty
  426. res.data.oilappoint2Amt == 0 ? res.data.oilappoint2Amt = null : res.data.oilappoint2Amt
  427. res.data.oilappoint3Qty == 0 ? res.data.oilappoint3Qty = null : res.data.oilappoint3Qty
  428. res.data.oilappoint3Amt == 0 ? res.data.oilappoint3Amt = null : res.data.oilappoint3Amt
  429. res.data.oilcash1Qty == 0 ? res.data.oilcash1Qty = null : res.data.oilcash1Qty
  430. res.data.oilcash1Amt == 0 ? res.data.oilcash1Amt = null : res.data.oilcash1Amt
  431. res.data.oilcardQty == 0 ? res.data.oilcardQty = null : res.data.oilcardQty
  432. res.data.oilcardAmt == 0 ? res.data.oilcardAmt = null : res.data.oilcardAmt
  433. res.data.detourEmptyMile == 0 ? res.data.detourEmptyMile = null : res.data.detourEmptyMile
  434. res.data.detourLoadMile == 0 ? res.data.detourLoadMile = null : res.data.detourLoadMile
  435. for (let item of this.itemsList) {
  436. if (item == 0) {
  437. item.amt = null
  438. }
  439. }
  440. // // 角色
  441. for (let role of res.data.roleList) {
  442. if (role == 'DZ') {
  443. this.button = false;
  444. this.disabled = true;
  445. }
  446. if (role == 'JSY') {
  447. this.button = true;
  448. this.disabled = false;
  449. }
  450. }
  451. // 审核中
  452. if (
  453. res.data.ifStarted == "S") {
  454. this.disabled = true;
  455. this.saveDisabled = true;
  456. this.upDisabled = true;
  457. this.sDisabled = false;
  458. }
  459. // 审核完成
  460. if (
  461. res.data.ifStarted == "A") {
  462. this.disabled = true;
  463. this.saveDisabled = true;
  464. this.upDisabled = true;
  465. }
  466. // 未提交
  467. // if (res.data.ifLoaded != "T" ||
  468. // res.data.ifUnLoaded != "T") {
  469. // this.disabled = false;
  470. // this.saveDisabled = false;
  471. // this.upDisabled = true;
  472. // }
  473. this.formData = res.data;
  474. var costBreakdownList = res.data.loadFeeItemsList;
  475. this.itemsList = costBreakdownList;
  476. for (const key in this.itemsList) {
  477. if (this.itemsList[key].amt == 0) {
  478. this.itemsList[key].amt = null;
  479. }
  480. }
  481. this.fileList1 = res.data.fileList1;
  482. this.loading = false;
  483. // isMileage(this.orderNo).then(res => {
  484. // if (res.msg == 410) {
  485. // // this.disabled = true;
  486. // // this.upDisabled = true;
  487. // // this.$refs.uToast.show({
  488. // // type: 'warning',
  489. // // icon: false,
  490. // // message: "当前报单有待提交里程!",
  491. // // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  492. // // })
  493. // }
  494. // })
  495. // this.calculatMoney();
  496. })
  497. },
  498. // 事件审核按钮
  499. upButtonClick(type) {
  500. if(this.formData.loadQty == null) {
  501. this.$refs.uToast.show({
  502. type: 'warning',
  503. icon: false,
  504. message: "没有装车吨位!",
  505. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  506. })
  507. return
  508. } else if(this.formData.loadDate == 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.unLoadQty == 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.unLoadDate == 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.ifOrder2ed == 'F') {
  533. this.upAuditShow = false;
  534. this.$refs.uToast.show({
  535. type: 'warning',
  536. icon: false,
  537. message: "装卸信息提交后才能报账!",
  538. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  539. })
  540. return
  541. } else if (this.formData.ifOrder2ed != 'O' && this.formData.ifOrder2ed != 'S') {
  542. this.upAuditShow = false;
  543. this.$refs.uToast.show({
  544. type: 'warning',
  545. icon: false,
  546. message: "请先提交卸车信息!",
  547. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  548. })
  549. return
  550. }
  551. if (this.formData.gasstation1 != null && this.formData.gasstation1 != '') {
  552. if (this.formData.oilappoint1Qty == 0) {
  553. this.$refs.uToast.show({
  554. type: 'warning',
  555. icon: false,
  556. message: "升数不可以是0",
  557. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  558. })
  559. return
  560. }
  561. if (this.formData.oilappoint1Amt == 0) {
  562. this.$refs.uToast.show({
  563. type: 'warning',
  564. icon: false,
  565. message: "金额不可以是0",
  566. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  567. })
  568. return
  569. }
  570. if (this.formData.oilappoint1Qty == null || this.formData.oilappoint1Qty == '') {
  571. this.$refs.uToast.show({
  572. type: 'warning',
  573. icon: false,
  574. message: "请输入定点加油1的升数",
  575. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  576. })
  577. return
  578. }
  579. if (this.formData.oilappoint1Amt == null || this.formData.oilappoint1Amt == '') {
  580. this.$refs.uToast.show({
  581. type: 'warning',
  582. icon: false,
  583. message: "请输入定点加油1的金额",
  584. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  585. })
  586. return
  587. }
  588. }
  589. if (this.formData.gasstation2 != null && this.formData.gasstation2 != '') {
  590. if (this.formData.oilappoint2Qty == 0) {
  591. this.$refs.uToast.show({
  592. type: 'warning',
  593. icon: false,
  594. message: "升数不可以是0",
  595. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  596. })
  597. return
  598. }
  599. if (this.formData.oilappoint2Amt == 0) {
  600. this.$refs.uToast.show({
  601. type: 'warning',
  602. icon: false,
  603. message: "金额不可以是0",
  604. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  605. })
  606. return
  607. }
  608. if (this.formData.oilappoint2Qty == null || this.formData.oilappoint2Qty == '') {
  609. this.$refs.uToast.show({
  610. type: 'warning',
  611. icon: false,
  612. message: "请输入定点加油2的升数",
  613. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  614. })
  615. return
  616. }
  617. if (this.formData.oilappoint2Amt == null || this.formData.oilappoint2Amt == '') {
  618. this.$refs.uToast.show({
  619. type: 'warning',
  620. icon: false,
  621. message: "请输入定点加油2的金额",
  622. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  623. })
  624. return
  625. }
  626. }
  627. if (this.formData.gasstation3 != null && this.formData.gasstation3 != '') {
  628. if (this.formData.oilappoint3Qty == 0) {
  629. this.$refs.uToast.show({
  630. type: 'warning',
  631. icon: false,
  632. message: "升数不可以是0",
  633. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  634. })
  635. return
  636. }
  637. if (this.formData.oilappoint3Amt == 0) {
  638. this.$refs.uToast.show({
  639. type: 'warning',
  640. icon: false,
  641. message: "金额不可以是0",
  642. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  643. })
  644. return
  645. }
  646. if (this.formData.oilappoint3Qty == null || this.formData.oilappoint3Qty == '') {
  647. this.$refs.uToast.show({
  648. type: 'warning',
  649. icon: false,
  650. message: "请输入定点加油3的升数",
  651. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  652. })
  653. return
  654. }
  655. if (this.formData.oilappoint3Amt == null || this.formData.oilappoint3Amt == '') {
  656. this.$refs.uToast.show({
  657. type: 'warning',
  658. icon: false,
  659. message: "请输入定点加油3的金额",
  660. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  661. })
  662. return
  663. }
  664. }
  665. if (type == 'BX') {
  666. this.submitShow = true
  667. } else if (type == 'TJ') {
  668. this.upAuditShow = true
  669. }
  670. },
  671. submitVerify() {
  672. if (this.formData.gasstation1 != null && this.formData.gasstation1 != '') {
  673. if (this.formData.oilappoint1Qty == 0) {
  674. this.$refs.uToast.show({
  675. type: 'warning',
  676. icon: false,
  677. message: "升数不可以是0",
  678. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  679. })
  680. return false
  681. }
  682. if (this.formData.oilappoint1Amt == 0) {
  683. this.$refs.uToast.show({
  684. type: 'warning',
  685. icon: false,
  686. message: "金额不可以是0",
  687. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  688. })
  689. return false
  690. }
  691. if (this.formData.oilappoint1Qty == null || this.formData.oilappoint1Qty == '') {
  692. this.$refs.uToast.show({
  693. type: 'warning',
  694. icon: false,
  695. message: "请输入定点加油1的升数",
  696. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  697. })
  698. return false
  699. }
  700. if (this.formData.oilappoint1Amt == null || this.formData.oilappoint1Amt == '') {
  701. this.$refs.uToast.show({
  702. type: 'warning',
  703. icon: false,
  704. message: "请输入定点加油1的金额",
  705. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  706. })
  707. return false
  708. }
  709. }
  710. if (this.formData.gasstation2 != null && this.formData.gasstation2 != '') {
  711. if (this.formData.oilappoint2Qty == 0) {
  712. this.$refs.uToast.show({
  713. type: 'warning',
  714. icon: false,
  715. message: "升数不可以是0",
  716. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  717. })
  718. return false
  719. }
  720. if (this.formData.oilappoint2Amt == 0) {
  721. this.$refs.uToast.show({
  722. type: 'warning',
  723. icon: false,
  724. message: "金额不可以是0",
  725. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  726. })
  727. return false
  728. }
  729. if (this.formData.oilappoint2Qty == null || this.formData.oilappoint2Qty == '') {
  730. this.$refs.uToast.show({
  731. type: 'warning',
  732. icon: false,
  733. message: "请输入定点加油2的升数",
  734. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  735. })
  736. return false
  737. }
  738. if (this.formData.oilappoint2Amt == null || this.formData.oilappoint2Amt == '') {
  739. this.$refs.uToast.show({
  740. type: 'warning',
  741. icon: false,
  742. message: "请输入定点加油2的金额",
  743. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  744. })
  745. return false
  746. }
  747. }
  748. if (this.formData.gasstation3 != null && this.formData.gasstation3 != '') {
  749. if (this.formData.oilappoint3Qty == 0) {
  750. this.$refs.uToast.show({
  751. type: 'warning',
  752. icon: false,
  753. message: "升数不可以是0",
  754. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  755. })
  756. return false
  757. }
  758. if (this.formData.oilappoint3Amt == 0) {
  759. this.$refs.uToast.show({
  760. type: 'warning',
  761. icon: false,
  762. message: "金额不可以是0",
  763. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  764. })
  765. return false
  766. }
  767. if (this.formData.oilappoint3Qty == null || this.formData.oilappoint3Qty == '') {
  768. this.$refs.uToast.show({
  769. type: 'warning',
  770. icon: false,
  771. message: "请输入定点加油3的升数",
  772. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  773. })
  774. return false
  775. }
  776. if (this.formData.oilappoint3Amt == null || this.formData.oilappoint3Amt == '') {
  777. this.$refs.uToast.show({
  778. type: 'warning',
  779. icon: false,
  780. message: "请输入定点加油3的金额",
  781. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  782. })
  783. return false
  784. }
  785. }
  786. // else if (this.status376 == 6) {
  787. // this.$refs.uToast.show({
  788. // type: 'warning',
  789. // icon: false,
  790. // message: "不允许保存!",
  791. // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  792. // })
  793. // return false
  794. // }
  795. this.submitShow = true
  796. return true
  797. },
  798. // 保存内容
  799. submit() {
  800. // if ((this.status376 == 2 || this.status376 == 0)) {
  801. if (true) {
  802. let isMo = false;
  803. for (const key in this.itemsList) {
  804. if (this.itemsList[key].amt == null) {
  805. this.itemsList[key].amt = 0;
  806. }
  807. }
  808. if (this.formData.loadetc == null) {
  809. this.formData.loadetc = 0;
  810. }
  811. if (this.formData.loadtoll == null) {
  812. this.formData.loadtoll = 0;
  813. }
  814. if (this.formData.oilhomeQty == null) {
  815. this.formData.oilhomeQty = 0;
  816. }
  817. if (this.formData.oilhomeAmt == null) {
  818. this.formData.oilhomeAmt = 0;
  819. }
  820. if (this.formData.oilappoint1Qty == null) {
  821. this.formData.oilappoint1Qty = 0;
  822. }
  823. if (this.formData.oilappoint1Amt == null) {
  824. this.formData.oilappoint1Amt = 0;
  825. }
  826. if (this.formData.oilappoint2Qty == null) {
  827. this.formData.oilappoint2Qty = 0;
  828. }
  829. if (this.formData.oilappoint2Amt == null) {
  830. this.formData.oilappoint2Amt = 0;
  831. }
  832. if (this.formData.oilappoint3Qty == null) {
  833. this.formData.oilappoint3Qty = 0;
  834. }
  835. if (this.formData.oilappoint3Amt == null) {
  836. this.formData.oilappoint3Amt = 0;
  837. }
  838. if (this.formData.oilcash1Qty == null) {
  839. this.formData.oilcash1Qty = 0;
  840. }
  841. if (this.formData.oilcash1Amt == null) {
  842. this.formData.oilcash1Amt = 0;
  843. }
  844. if (this.formData.oilcardQty == null) {
  845. this.formData.oilcardQty = 0;
  846. }
  847. if (this.formData.oilcardAmt == null) {
  848. this.formData.oilcardAmt = 0;
  849. }
  850. if (this.formData.gasstation1 == null) {
  851. this.formData.gasstation1 = 0;
  852. }
  853. if (this.formData.gasstation2 == null) {
  854. this.formData.gasstation2 = 0;
  855. }
  856. if (this.formData.gasstation3 == null) {
  857. this.formData.gasstation3 = 0;
  858. }
  859. this.loading = true;
  860. // var list = [];
  861. // for (var item in this.itemsList) {
  862. // var amt = this.itemsList[item].amt;
  863. // if (amt != null) {
  864. // var items = this.itemsList[item];
  865. // list.push(items);
  866. // }
  867. // }
  868. // for (let item of this.itemsList) {
  869. // if (item == 0) {
  870. // item.amt = null
  871. // }
  872. // }
  873. // this.formData.itemsVoList = list;
  874. this.formData.itemsVoList = this.itemsList;
  875. insertLoadFeeItems(this.formData).then(res => {
  876. this.submitShow = false;
  877. if (res.code == 200) {
  878. // 报销费用下拉选
  879. getGasStations().then(res => {
  880. // this.gasStationList = res.data
  881. for (var item in res.data) {
  882. var data = {
  883. text: res.data[item].cname,
  884. value: res.data[item].cname
  885. };
  886. this.gasStationList.push(data);
  887. }
  888. getItems().then(res => {
  889. this.itemsList = res.data
  890. getLoadFeeItems(this.orderNo).then(res => {
  891. res.data.loadetc == 0 ? res.data.loadetc = null : res.data.loadetc
  892. res.data.loadtoll == 0 ? res.data.loadtoll = null : res.data.loadtoll
  893. res.data.oilhomeQty == 0 ? res.data.oilhomeQty = null : res.data.oilhomeQty
  894. res.data.oilhomeAmt == 0 ? res.data.oilhomeAmt = null : res.data.oilhomeAmt
  895. res.data.oilappoint1Qty == 0 ? res.data.oilappoint1Qty = null : res.data.oilappoint1Qty
  896. res.data.oilappoint1Amt == 0 ? res.data.oilappoint1Amt = null : res.data.oilappoint1Amt
  897. res.data.oilappoint2Qty == 0 ? res.data.oilappoint2Qty = null : res.data.oilappoint2Qty
  898. res.data.oilappoint2Amt == 0 ? res.data.oilappoint2Amt = null : res.data.oilappoint2Amt
  899. res.data.oilappoint3Qty == 0 ? res.data.oilappoint3Qty = null : res.data.oilappoint3Qty
  900. res.data.oilappoint3Amt == 0 ? res.data.oilappoint3Amt = null : res.data.oilappoint3Amt
  901. res.data.oilcash1Qty == 0 ? res.data.oilcash1Qty = null : res.data.oilcash1Qty
  902. res.data.oilcash1Amt == 0 ? res.data.oilcash1Amt = null : res.data.oilcash1Amt
  903. res.data.oilcardQty == 0 ? res.data.oilcardQty = null : res.data.oilcardQty
  904. res.data.oilcardAmt == 0 ? res.data.oilcardAmt = null : res.data.oilcardAmt
  905. res.data.detourEmptyMile == 0 ? res.data.detourEmptyMile = null : res.data.detourEmptyMile
  906. res.data.detourLoadMile == 0 ? res.data.detourLoadMile = null : res.data.detourLoadMile
  907. for (let item of this.itemsList) {
  908. if (item == 0) {
  909. item.amt = null
  910. }
  911. }
  912. // 角色
  913. for (let role of res.data.roleList) {
  914. if (role == 'DZ') {
  915. this.button = false;
  916. }
  917. }
  918. // 审核中
  919. if (
  920. res.data.ifStarted == "S") {
  921. this.disabled = true;
  922. this.saveDisabled = true;
  923. this.upDisabled = true;
  924. this.sDisabled = false;
  925. }
  926. // 审核完成
  927. if (
  928. res.data.ifStarted == "A") {
  929. this.disabled = true;
  930. this.saveDisabled = true;
  931. this.upDisabled = true;
  932. }
  933. // 未提交
  934. // if (res.data.ifLoaded != "T" ||
  935. // res.data.ifUnLoaded != "T") {
  936. // this.disabled = false;
  937. // this.saveDisabled = false;
  938. // this.upDisabled = true;
  939. // }
  940. this.formData = res.data;
  941. var costBreakdownList = res.data.loadFeeItemsList;
  942. this.itemsList = costBreakdownList;
  943. for (const key in this.itemsList) {
  944. if (this.itemsList[key].amt == 0) {
  945. this.itemsList[key].amt = null;
  946. }
  947. }
  948. this.fileList1 = res.data.fileList1;
  949. this.$refs.uToast.show({
  950. type: 'success',
  951. message: "保存成功!",
  952. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  953. })
  954. this.loading = false;
  955. })
  956. })
  957. })
  958. // this.getData();
  959. // 保存成功弹窗提示
  960. // this.$refs.uToast.show({
  961. // type: 'success',
  962. // message: "保存成功!",
  963. // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  964. // })
  965. } else {
  966. // 保存失败消息
  967. this.$refs.uToast.show({
  968. icon: false,
  969. message: "保存失败请重试!",
  970. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
  971. })
  972. }
  973. })
  974. }
  975. },
  976. // 提交审核
  977. upReview() {
  978. // if (this.status376 == 6) {
  979. // this.upAuditShow = false;
  980. // this.$refs.uToast.show({
  981. // type: 'warning',
  982. // icon: false,
  983. // message: "不允许保存!",
  984. // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  985. // })
  986. // } else if (this.status376 == 2 || this.status376 == 0) {
  987. if (this.formData.ifOrder2ed != 'O' && this.formData.ifOrder2ed != 'S') {
  988. this.upAuditShow = false;
  989. this.$refs.uToast.show({
  990. type: 'warning',
  991. icon: false,
  992. message: "请先提交报账单!",
  993. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  994. })
  995. } else if (this.formData.ifOrder2ed == 'O' || this.formData.ifOrder2ed == 'S') {
  996. let isMo = false;
  997. for (const key in this.itemsList) {
  998. if (this.itemsList[key].amt == null) {
  999. this.itemsList[key].amt = 0;
  1000. }
  1001. }
  1002. if (this.formData.loadetc == null) {
  1003. this.formData.loadetc = 0;
  1004. }
  1005. if (this.formData.loadtoll == null) {
  1006. this.formData.loadtoll = 0;
  1007. }
  1008. if (this.formData.oilhomeQty == null) {
  1009. this.formData.oilhomeQty = 0;
  1010. }
  1011. if (this.formData.oilhomeAmt == null) {
  1012. this.formData.oilhomeAmt = 0;
  1013. }
  1014. if (this.formData.oilappoint1Qty == null) {
  1015. this.formData.oilappoint1Qty = 0;
  1016. }
  1017. if (this.formData.oilappoint1Amt == null) {
  1018. this.formData.oilappoint1Amt = 0;
  1019. }
  1020. if (this.formData.oilappoint2Qty == null) {
  1021. this.formData.oilappoint2Qty = 0;
  1022. }
  1023. if (this.formData.oilappoint2Amt == null) {
  1024. this.formData.oilappoint2Amt = 0;
  1025. }
  1026. if (this.formData.oilappoint3Qty == null) {
  1027. this.formData.oilappoint3Qty = 0;
  1028. }
  1029. if (this.formData.oilappoint3Amt == null) {
  1030. this.formData.oilappoint3Amt = 0;
  1031. }
  1032. if (this.formData.oilcash1Qty == null) {
  1033. this.formData.oilcash1Qty = 0;
  1034. }
  1035. if (this.formData.oilcash1Amt == null) {
  1036. this.formData.oilcash1Amt = 0;
  1037. }
  1038. if (this.formData.oilcardQty == null) {
  1039. this.formData.oilcardQty = 0;
  1040. }
  1041. if (this.formData.oilcardAmt == null) {
  1042. this.formData.oilcardAmt = 0;
  1043. }
  1044. if (this.formData.gasstation1 == null) {
  1045. this.formData.gasstation1 = 0;
  1046. }
  1047. if (this.formData.gasstation2 == null) {
  1048. this.formData.gasstation2 = 0;
  1049. }
  1050. if (this.formData.gasstation3 == null) {
  1051. this.formData.gasstation3 = 0;
  1052. }
  1053. this.loading = true;
  1054. // var list = [];
  1055. // for (var item in this.itemsList) {
  1056. // var amt = this.itemsList[item].amt;
  1057. // if (amt != null) {
  1058. // var items = this.itemsList[item];
  1059. // list.push(items);
  1060. // }
  1061. // }
  1062. this.formData.itemsVoList = this.itemsList;
  1063. submitAudit(this.formData).then(res => {
  1064. this.submitShow = false
  1065. this.upAuditShow = false;
  1066. if (res.msg == 'ok') {
  1067. getGasStations().then(res => {
  1068. for (var item in res.data) {
  1069. var data = {
  1070. text: res.data[item].cname,
  1071. value: res.data[item].cname
  1072. };
  1073. this.gasStationList.push(data);
  1074. }
  1075. getItems().then(res => {
  1076. this.itemsList = res.data
  1077. getLoadFeeItems(this.orderNo).then(res => {
  1078. res.data.loadetc == 0 ? res.data.loadetc = null : res.data.loadetc
  1079. res.data.loadtoll == 0 ? res.data.loadtoll = null : res.data.loadtoll
  1080. res.data.oilhomeQty == 0 ? res.data.oilhomeQty = null : res.data.oilhomeQty
  1081. res.data.oilhomeAmt == 0 ? res.data.oilhomeAmt = null : res.data.oilhomeAmt
  1082. res.data.oilappoint1Qty == 0 ? res.data.oilappoint1Qty = null : res.data.oilappoint1Qty
  1083. res.data.oilappoint1Amt == 0 ? res.data.oilappoint1Amt = null : res.data.oilappoint1Amt
  1084. res.data.oilappoint2Qty == 0 ? res.data.oilappoint2Qty = null : res.data.oilappoint2Qty
  1085. res.data.oilappoint2Amt == 0 ? res.data.oilappoint2Amt = null : res.data.oilappoint2Amt
  1086. res.data.oilappoint3Qty == 0 ? res.data.oilappoint3Qty = null : res.data.oilappoint3Qty
  1087. res.data.oilappoint3Amt == 0 ? res.data.oilappoint3Amt = null : res.data.oilappoint3Amt
  1088. res.data.oilcash1Qty == 0 ? res.data.oilcash1Qty = null : res.data.oilcash1Qty
  1089. res.data.oilcash1Amt == 0 ? res.data.oilcash1Amt = null : res.data.oilcash1Amt
  1090. res.data.oilcardQty == 0 ? res.data.oilcardQty = null : res.data.oilcardQty
  1091. res.data.oilcardAmt == 0 ? res.data.oilcardAmt = null : res.data.oilcardAmt
  1092. res.data.detourEmptyMile == 0 ? res.data.detourEmptyMile = null : res.data.detourEmptyMile
  1093. res.data.detourLoadMile == 0 ? res.data.detourLoadMile = null : res.data.detourLoadMile
  1094. for (let item of this.itemsList) {
  1095. if (item == 0) {
  1096. item.amt = null
  1097. }
  1098. }
  1099. // 角色
  1100. for (let role of res.data.roleList) {
  1101. if (role == 'DZ') {
  1102. this.button = false;
  1103. }
  1104. }
  1105. // 审核中
  1106. if (
  1107. res.data.ifStarted == "S") {
  1108. this.disabled = true;
  1109. this.saveDisabled = true;
  1110. this.upDisabled = true;
  1111. this.sDisabled = false;
  1112. }
  1113. // 审核完成
  1114. if (
  1115. res.data.ifStarted == "A") {
  1116. this.disabled = true;
  1117. this.saveDisabled = true;
  1118. this.upDisabled = true;
  1119. }
  1120. // 未提交
  1121. // if (res.data.ifLoaded != "T" ||
  1122. // res.data.ifUnLoaded != "T") {
  1123. // this.disabled = false;
  1124. // this.saveDisabled = false;
  1125. // this.upDisabled = true;
  1126. // }
  1127. this.formData = res.data;
  1128. var costBreakdownList = res.data.loadFeeItemsList;
  1129. this.itemsList = costBreakdownList;
  1130. for (const key in this.itemsList) {
  1131. if (this.itemsList[key].amt == 0) {
  1132. this.itemsList[key].amt = null;
  1133. }
  1134. }
  1135. this.fileList1 = res.data.fileList1;
  1136. this.$refs.uToast.show({
  1137. type: 'success',
  1138. message: "提交审核成功!",
  1139. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  1140. })
  1141. this.loading = false;
  1142. })
  1143. })
  1144. })
  1145. // this.getData();
  1146. // // 保存成功弹窗提示
  1147. // this.$refs.uToast.show({
  1148. // type: 'success',
  1149. // message: "提交审核成功!",
  1150. // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  1151. // })
  1152. } else {
  1153. // 保存失败消息
  1154. this.$refs.uToast.show({
  1155. icon: false,
  1156. message: "提交审核失败请重试!",
  1157. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
  1158. })
  1159. }
  1160. })
  1161. }
  1162. },
  1163. // 审核
  1164. check(type) {
  1165. this.loading = true;
  1166. var data = {
  1167. orderNo: this.orderNo,
  1168. entityId: this.formData.entityId,
  1169. audit2Desc: this.formData.audit2Desc ? this.formData.audit2Desc : '',
  1170. lineNo: this.formData.lineNo,
  1171. auditType: type
  1172. }
  1173. audit(data).then(res => {
  1174. if (res.msg == 'ok') {
  1175. this.getData();
  1176. this.sDisabled = false;
  1177. if (type == 'T') {
  1178. this.auditTShow = false;
  1179. } else if (type == 'F') {
  1180. this.auditFShow = false;
  1181. }
  1182. // 保存成功弹窗提示
  1183. this.$refs.uToast.show({
  1184. type: 'success',
  1185. message: "审核成功!",
  1186. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  1187. })
  1188. this.sDisabled = true;
  1189. this.loading = false;
  1190. } else {
  1191. // 保存失败消息
  1192. this.$refs.uToast.show({
  1193. icon: false,
  1194. message: "审核失败请重试!",
  1195. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
  1196. })
  1197. this.loading = false;
  1198. }
  1199. })
  1200. },
  1201. // 删除图片
  1202. deletePic(event) {
  1203. if (this.disabled) {
  1204. this.$refs.uToast.show({
  1205. type: 'warning',
  1206. icon: false,
  1207. message: "不允许修改!",
  1208. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
  1209. })
  1210. } else {
  1211. this.event = event;
  1212. this.deleteShow = true;
  1213. }
  1214. },
  1215. deleteImg() {
  1216. var event = this.event;
  1217. var url = event.file.url;
  1218. var index = url.lastIndexOf("\/");
  1219. var attachId = url.substring(index + 1, url.length);
  1220. deleteTmsAttachMngs(attachId).then(res => {
  1221. if (res.code == 200) {
  1222. this[`fileList${event.name}`].splice(event.index, 1)
  1223. // 删除成功消息
  1224. this.$refs.uToast.show({
  1225. type: 'success',
  1226. message: "删除成功!",
  1227. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  1228. })
  1229. } else {
  1230. // 删除失败消息
  1231. this.$refs.uToast.show({
  1232. icon: false,
  1233. message: "删除失败请重试!",
  1234. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
  1235. })
  1236. }
  1237. this.event = {};
  1238. this.deleteShow = false;
  1239. })
  1240. },
  1241. // 新增图片
  1242. imgUploading(event) {
  1243. // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
  1244. let lists = [].concat(event.file)
  1245. let fileListLen = this[`fileList${event.name}`].length
  1246. lists.map((item) => {
  1247. this[`fileList${event.name}`].push({
  1248. ...item,
  1249. status: 'uploading',
  1250. message: '上传中'
  1251. })
  1252. })
  1253. for (let i = 0; i < lists.length; i++) {
  1254. let date = this.dateToString("yyyyMMdd");
  1255. let dateHHmmss = this.dateToString("yyyy-MM-dd HH:mm:ss");
  1256. this.formData.date = date;
  1257. insertTmsAttachMngs(this.formData).then(res => {
  1258. if (res.code == 200) {
  1259. let data = {
  1260. name: 'avatarfile',
  1261. filePath: lists[i].url
  1262. }
  1263. // 获取经纬度
  1264. let longitude = '';
  1265. let latitude = '';
  1266. uni.getLocation({
  1267. type: 'wgs84',
  1268. isHighAccuracy: true,
  1269. geocode: true,
  1270. success: (map) => {
  1271. longitude = map.longitude
  1272. latitude = map.latitude
  1273. let dataForm = {
  1274. attachId: res.data,
  1275. longitude: longitude,
  1276. latitude: latitude,
  1277. updateDate: dateHHmmss,
  1278. carRegNo:this.formData.carRegNo
  1279. }
  1280. // 上传图片
  1281. pictureUploading(data, dataForm).then(res => {
  1282. let item = this[`fileList${event.name}`][fileListLen]
  1283. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(
  1284. item, {
  1285. status: 'success',
  1286. message: '',
  1287. url: res.data
  1288. }))
  1289. fileListLen++
  1290. })
  1291. }
  1292. });
  1293. // let dataForm = {
  1294. // attachId: res.data,
  1295. // longitude: longitude,
  1296. // latitude: latitude,
  1297. // updateDate: dateHHmmss
  1298. // }
  1299. // console.log(dataForm);
  1300. // // 上传图片
  1301. // pictureUploading(data, dataForm).then(res => {
  1302. // let item = this[`fileList${event.name}`][fileListLen]
  1303. // this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(
  1304. // item, {
  1305. // status: 'success',
  1306. // message: '',
  1307. // url: res.data
  1308. // }))
  1309. // fileListLen++
  1310. // })
  1311. }
  1312. })
  1313. }
  1314. },
  1315. dateToString(fmt) {
  1316. var date = new Date();
  1317. var o = {
  1318. "M+": date.getMonth() + 1, //月份
  1319. "d+": date.getDate(), //日
  1320. "H+": date.getHours(), //小时
  1321. "m+": date.getMinutes(), //分
  1322. "s+": date.getSeconds(), //秒
  1323. "q+": Math.floor((date.getMonth() + 3) / 3), //季度
  1324. "S": date.getMilliseconds() //毫秒
  1325. };
  1326. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
  1327. for (var k in o)
  1328. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[
  1329. k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1330. return fmt;
  1331. },
  1332. // 定点加油1清空
  1333. gasstation1Change() {
  1334. this.formData.oilappoint1Qty = null;
  1335. this.formData.oilappoint1Amt = null;
  1336. },
  1337. // 定点加油2清空
  1338. gasstation2Change() {
  1339. this.formData.oilappoint2Qty = null;
  1340. this.formData.oilappoint2Amt = null;
  1341. },
  1342. // 定点加油3清空
  1343. gasstation3Change() {
  1344. this.formData.oilappoint3Qty = null;
  1345. this.formData.oilappoint3Amt = null;
  1346. },
  1347. // 点击拨打电话
  1348. telFun() {
  1349. if (this.formData.driver1mobile != null && this.formData.driver1mobile != '') {
  1350. uni.makePhoneCall({
  1351. phoneNumber: this.formData.driver1mobile, //电话号码
  1352. success: function(e) {
  1353. // console.log(e);
  1354. },
  1355. fail: function(e) {
  1356. // console.log(e);
  1357. }
  1358. })
  1359. }
  1360. },
  1361. // 其他费用表格勾选事件
  1362. selectionChange(e) {
  1363. this.selectedIndexs = e.detail.index;
  1364. },
  1365. // 计算报销金额
  1366. // calculatMoney() {
  1367. // let loadetc = this.formData.loadetc == null ? 0 : this.formData.loadetc;
  1368. // let loadtoll = this.formData.loadtoll == null ? 0 : this.formData.loadtoll;
  1369. // let oilhomeAmt = this.formData.oilhomeAmt == null ? 0 : this.formData.oilhomeAmt;
  1370. // let oilappoint1Amt = this.formData.oilappoint1Amt == null ? 0 : this.formData.oilappoint1Amt;
  1371. // let oilappoint2Amt = this.formData.oilappoint2Amt == null ? 0 : this.formData.oilappoint2Amt;
  1372. // let oilappoint3Amt = this.formData.oilappoint3Amt == null ? 0 : this.formData.oilappoint3Amt;
  1373. // let oilcash1Amt = this.formData.oilcash1Amt == null ? 0 : this.formData.oilcash1Amt;
  1374. // let oilcardAmt = this.formData.oilcardAmt == null ? 0 : this.formData.oilcardAmt;
  1375. // let itemsMoney = 0;
  1376. // for (const key in this.itemsList) {
  1377. // let a = this.itemsList[key].amt == null ? 0 : this.itemsList[key].amt;
  1378. // itemsMoney += Number(a);
  1379. // }
  1380. // loadetc = Number(loadetc)
  1381. // loadtoll = Number(loadtoll)
  1382. // oilhomeAmt = Number(oilhomeAmt)
  1383. // oilappoint1Amt = Number(oilappoint1Amt)
  1384. // oilappoint2Amt = Number(oilappoint2Amt)
  1385. // oilappoint3Amt = Number(oilappoint3Amt)
  1386. // oilcash1Amt = Number(oilcash1Amt)
  1387. // oilcardAmt = Number(oilcardAmt)
  1388. // itemsMoney = Number(itemsMoney)
  1389. // this.money = loadetc + loadtoll + oilhomeAmt + oilappoint1Amt + oilappoint2Amt + oilcash1Amt + oilcardAmt +
  1390. // oilappoint3Amt + itemsMoney;
  1391. // },
  1392. checkUnLoadetc(e) {
  1393. //正则表达试
  1394. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1395. //重新赋值给input
  1396. this.$nextTick(() => {
  1397. this.formData.loadetc = e.target.value
  1398. })
  1399. this.calculatMoney();
  1400. },
  1401. checkUnLoadtoll(e) {
  1402. //正则表达试
  1403. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1404. //重新赋值给input
  1405. this.$nextTick(() => {
  1406. this.formData.loadtoll = e.target.value
  1407. })
  1408. this.calculatMoney();
  1409. },
  1410. checkUnOilhomeQty(e) {
  1411. //正则表达试
  1412. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1413. //重新赋值给input
  1414. this.$nextTick(() => {
  1415. this.formData.oilhomeQty = e.target.value
  1416. })
  1417. this.calculatMoney();
  1418. },
  1419. checkUnOilhomeAmt(e) {
  1420. //正则表达试
  1421. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1422. //重新赋值给input
  1423. this.$nextTick(() => {
  1424. this.formData.oilhomeAmt = e.target.value
  1425. })
  1426. this.calculatMoney();
  1427. },
  1428. checkUnOilappoint1Qty(e) {
  1429. //正则表达试
  1430. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1431. //重新赋值给input
  1432. this.$nextTick(() => {
  1433. this.formData.oilappoint1Qty = e.target.value
  1434. })
  1435. this.calculatMoney();
  1436. },
  1437. checkUnOilappoint1Amt(e) {
  1438. //正则表达试
  1439. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1440. //重新赋值给input
  1441. this.$nextTick(() => {
  1442. this.formData.oilappoint1Amt = e.target.value
  1443. })
  1444. this.calculatMoney();
  1445. },
  1446. checkUnOilappoint2Qty(e) {
  1447. //正则表达试
  1448. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1449. //重新赋值给input
  1450. this.$nextTick(() => {
  1451. this.formData.oilappoint2Qty = e.target.value
  1452. })
  1453. this.calculatMoney();
  1454. },
  1455. checkUnOilappoint2Amt(e) {
  1456. //正则表达试
  1457. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1458. //重新赋值给input
  1459. this.$nextTick(() => {
  1460. this.formData.oilappoint2Amt = e.target.value
  1461. })
  1462. this.calculatMoney();
  1463. },
  1464. checkUnOilappoint3Qty(e) {
  1465. //正则表达试
  1466. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1467. //重新赋值给input
  1468. this.$nextTick(() => {
  1469. this.formData.oilappoint3Qty = e.target.value
  1470. })
  1471. this.calculatMoney();
  1472. },
  1473. checkUnOilappoint3Amt(e) {
  1474. //正则表达试
  1475. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1476. //重新赋值给input
  1477. this.$nextTick(() => {
  1478. this.formData.oilappoint3Amt = e.target.value
  1479. })
  1480. this.calculatMoney();
  1481. },
  1482. checkUnOilcash1Qty(e) {
  1483. //正则表达试
  1484. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1485. //重新赋值给input
  1486. this.$nextTick(() => {
  1487. this.formData.oilcash1Qty = e.target.value
  1488. })
  1489. this.calculatMoney();
  1490. },
  1491. checkUnOilcash1Amt(e) {
  1492. //正则表达试
  1493. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1494. //重新赋值给input
  1495. this.$nextTick(() => {
  1496. this.formData.oilcash1Amt = e.target.value
  1497. })
  1498. this.calculatMoney();
  1499. },
  1500. checkUnOilcardQty(e) {
  1501. //正则表达试
  1502. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1503. //重新赋值给input
  1504. this.$nextTick(() => {
  1505. this.formData.oilcardQty = e.target.value
  1506. })
  1507. this.calculatMoney();
  1508. },
  1509. checkUnOilcardAmt(e) {
  1510. //正则表达试
  1511. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1512. //重新赋值给input
  1513. this.$nextTick(() => {
  1514. this.formData.oilcardAmt = e.target.value
  1515. })
  1516. this.calculatMoney();
  1517. },
  1518. checkUnAmt(amt, index) {
  1519. var amt = (amt.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1520. //重新赋值给input
  1521. this.$nextTick(() => {
  1522. this.itemsList[index].amt = amt
  1523. })
  1524. this.calculatMoney();
  1525. },
  1526. checkUnDetourEmptyMile(e) {
  1527. //正则表达试
  1528. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1529. //重新赋值给input
  1530. this.$nextTick(() => {
  1531. this.formData.detourEmptyMile = e.target.value
  1532. })
  1533. },
  1534. checkUnDetourLoadMile(e) {
  1535. //正则表达试
  1536. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1537. //重新赋值给input
  1538. this.$nextTick(() => {
  1539. this.formData.detourLoadMile = e.target.value
  1540. })
  1541. },
  1542. inputHeight() {
  1543. // if (this.vHeight == 0) {
  1544. this.vHeight = 600;
  1545. // } else {
  1546. // this.vHeight = 0;
  1547. // }
  1548. }
  1549. }
  1550. }
  1551. </script>
  1552. <style lang="scss">
  1553. @import url("/font/iconfont.css");
  1554. // 修改布局方向为纵向布局
  1555. .vertical-layout {
  1556. display: flex;
  1557. }
  1558. .h {
  1559. margin-top: 20rpx;
  1560. height: 100rpx;
  1561. padding-left: 40rpx;
  1562. // font-weight: 900;
  1563. border-top: 2rpx solid #f0f0f0f0;
  1564. border-bottom: 2rpx solid #f0f0f0f0;
  1565. line-height: 100rpx;
  1566. font-size: 30rpx;
  1567. color: #3c9cff;
  1568. // background-color: pink;
  1569. }
  1570. // 分割线
  1571. .striping {
  1572. width: 100%;
  1573. height: 4rpx;
  1574. background-color: #f0f0f0f0;
  1575. }
  1576. .box-box {
  1577. padding-left: 30rpx;
  1578. padding-right: 30rpx;
  1579. }
  1580. .content {
  1581. box-sizing: border-box;
  1582. background-color: white;
  1583. .head {
  1584. color: #3c9cff;
  1585. // width: 100%;
  1586. height: 40rpx;
  1587. padding: 0 30rpx;
  1588. vertical-align: middle;
  1589. // display: table-cell;
  1590. display: flex;
  1591. align-items: flex-end;
  1592. justify-content: space-between;
  1593. box-sizing: border-box;
  1594. font-size: 34rpx;
  1595. font-weight: 700;
  1596. // background-color: red;
  1597. }
  1598. .head-no-addr {
  1599. // width: 960rpx;
  1600. height: 100rpx;
  1601. // padding-left: 30rpx;
  1602. padding: 0 30rpx;
  1603. vertical-align: middle;
  1604. color: #fff;
  1605. font-size: 34rpx;
  1606. font-weight: 700;
  1607. display: flex;
  1608. align-items: center;
  1609. justify-content: space-between;
  1610. box-sizing: border-box;
  1611. background-color: #3c9cff;
  1612. }
  1613. .box-list {
  1614. color: #3b3b3b;
  1615. width: 100%;
  1616. border-bottom: 2rpx solid #f0f0f0f0;
  1617. // padding-left: 50rpx;
  1618. // font-size: 30rpx;
  1619. color: #3b3b3b;
  1620. .icon {
  1621. // width: 100rpx;
  1622. margin-top: 50rpx;
  1623. // font-size: 50rpx;
  1624. // color: #4888ff;
  1625. }
  1626. .list {
  1627. margin-top: 30rpx;
  1628. margin-bottom: 20rpx;
  1629. width: 100%;
  1630. height: 100%;
  1631. // background-color: pink;
  1632. height: auto;
  1633. display: flex;
  1634. flex-wrap: wrap;
  1635. // font-size: 30rpx;
  1636. }
  1637. .quantity-aum {
  1638. margin-bottom: 25rpx;
  1639. .aaa {
  1640. width: 50%;
  1641. .key {
  1642. display: inline-block;
  1643. width: 50%;
  1644. margin-left: 20rpx;
  1645. // margin-right: 80rpx;
  1646. border-bottom: 2rpx dotted #000;
  1647. }
  1648. }
  1649. .bbb {
  1650. width: 50%;
  1651. .value {
  1652. width: 50%;
  1653. margin-left: 20rpx;
  1654. // margin-right: 20rpx;
  1655. border-bottom: 2rpx dotted #000;
  1656. }
  1657. }
  1658. }
  1659. }
  1660. .box {
  1661. color: #3b3b3b;
  1662. // overflow: hidden;
  1663. height: 100rpx;
  1664. // border-bottom: 2rpx solid #f0f0f0f0;
  1665. // font-size: 30rpx;
  1666. display: flex;
  1667. align-items: center;
  1668. .data {
  1669. width: 50%;
  1670. display: flex;
  1671. align-items: center;
  1672. .key {
  1673. width: 55%;
  1674. text-align: right;
  1675. color: #3c9cff;
  1676. }
  1677. .value {
  1678. margin-left: 20rpx;
  1679. width: 45%;
  1680. color: #3b3b3b;
  1681. border-bottom: 2rpx dotted #000;
  1682. }
  1683. }
  1684. .data-two {
  1685. width: 100%;
  1686. display: flex;
  1687. align-items: center;
  1688. .key {
  1689. width: 35%;
  1690. text-align: right;
  1691. color: #3c9cff;
  1692. }
  1693. .list {
  1694. margin-top: 30rpx;
  1695. margin-bottom: 20rpx;
  1696. width: 100%;
  1697. height: 100%;
  1698. // background-color: pink;
  1699. height: auto;
  1700. display: flex;
  1701. flex-wrap: wrap;
  1702. // font-size: 30rpx;
  1703. }
  1704. }
  1705. }
  1706. .box-two {
  1707. color: #3b3b3b;
  1708. overflow: hidden;
  1709. height: 100rpx;
  1710. padding-left: 20rpx;
  1711. // margin-right: 20rpx;
  1712. // font-size: 30rpx;
  1713. display: flex;
  1714. align-items: center;
  1715. .key {
  1716. display: inline-block;
  1717. width: 24%;
  1718. color: #3c9cff;
  1719. }
  1720. .value {
  1721. margin-left: 20rpx;
  1722. width: calc(100% - 24%);
  1723. color: #3b3b3b;
  1724. // margin-right: 20rpx;
  1725. border-bottom: 2rpx dotted #000;
  1726. }
  1727. }
  1728. .table {
  1729. // margin-top: 40rpx;
  1730. margin-left: 20rpx;
  1731. margin-right: 20rpx;
  1732. .data {
  1733. // font-size: 30rpx;
  1734. width: 100%;
  1735. height: 100rpx;
  1736. border-bottom: 2rpx solid #f0f0f0f0;
  1737. align-items: center;
  1738. .name {
  1739. text-align: right;
  1740. width: 25%;
  1741. margin-left: 20rpx;
  1742. color: #000;
  1743. }
  1744. .sum {
  1745. width: 20%;
  1746. margin-left: 20rpx;
  1747. margin-right: 40rpx;
  1748. border-bottom: 2rpx dotted #000;
  1749. }
  1750. .remarks {
  1751. width: 30%;
  1752. }
  1753. }
  1754. }
  1755. .primary {
  1756. background-color: #0b68ffff;
  1757. }
  1758. .attention {
  1759. padding: 30rpx;
  1760. padding-left: 50rpx;
  1761. padding-bottom: 40rpx;
  1762. }
  1763. // 底部提交按钮
  1764. // .bottom {
  1765. // height: 130rpx;
  1766. // display: block;
  1767. // position: fixed;
  1768. // bottom: calc(var(--window-bottom));
  1769. // width: 100%;
  1770. // // background-color: #f0f0f0f0;
  1771. // // background-color: pink;
  1772. // background-color: white;
  1773. // .bottom-bottom {
  1774. // width: 100%;
  1775. // height: 100%;
  1776. // position: relative;
  1777. // display: flex;
  1778. // // .submit {
  1779. // // width: 95%;
  1780. // // background-color: #0b68ffff;
  1781. // // }
  1782. // .money {
  1783. // font-size: 28rpx;
  1784. // height: 130rpx;
  1785. // margin-right: 80rpx;
  1786. // line-height: 130rpx;
  1787. // margin-left: 10%;
  1788. // }
  1789. // .button {
  1790. // width: 300rpx;
  1791. // position: absolute;
  1792. // right: 0;
  1793. // margin-right: 10%;
  1794. // .button-button {
  1795. // padding: 10% 0;
  1796. // background-clip: content-box;
  1797. // }
  1798. // }
  1799. // }
  1800. // }
  1801. .bottom {
  1802. position: fixed;
  1803. bottom: calc(var(--window-bottom));
  1804. width: 100%;
  1805. height: 130rpx;
  1806. background-color: white;
  1807. .row {
  1808. display: flex;
  1809. justify-content: space-evenly;
  1810. height: 130rpx;
  1811. align-items: center;
  1812. .button {
  1813. width: 300rpx;
  1814. // width: 660rpx;
  1815. }
  1816. }
  1817. }
  1818. .input {
  1819. width: 100%;
  1820. // height: 100rpx;
  1821. // background-color: red;
  1822. }
  1823. .cushion {
  1824. width: 100%;
  1825. height: 200rpx;
  1826. background-color: #f0f0f0f0;
  1827. }
  1828. }
  1829. </style>