index.vue 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020
  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. }],
  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. uni.compressImage({
  1260. src: lists[i].url,
  1261. quality: 80,
  1262. success: ress => {
  1263. let data = {
  1264. name: 'avatarfile',
  1265. filePath: ress.tempFilePath
  1266. }
  1267. // 获取经纬度
  1268. let longitude = '';
  1269. let latitude = '';
  1270. uni.getLocation({
  1271. type: 'wgs84',
  1272. isHighAccuracy: true,
  1273. geocode: true,
  1274. success: (map) => {
  1275. longitude = map.longitude
  1276. latitude = map.latitude
  1277. let dataForm = {
  1278. attachId: res.data,
  1279. longitude: longitude,
  1280. latitude: latitude,
  1281. updateDate: dateHHmmss,
  1282. carRegNo:this.formData.carRegNo
  1283. }
  1284. // 上传图片
  1285. pictureUploading(data, dataForm).then(res => {
  1286. let item = this[`fileList${event.name}`][fileListLen]
  1287. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(
  1288. item, {
  1289. status: 'success',
  1290. message: '',
  1291. url: res.data
  1292. }))
  1293. fileListLen++
  1294. })
  1295. }
  1296. });
  1297. }
  1298. })
  1299. }
  1300. })
  1301. }
  1302. },
  1303. dateToString(fmt) {
  1304. var date = new Date();
  1305. var o = {
  1306. "M+": date.getMonth() + 1, //月份
  1307. "d+": date.getDate(), //日
  1308. "H+": date.getHours(), //小时
  1309. "m+": date.getMinutes(), //分
  1310. "s+": date.getSeconds(), //秒
  1311. "q+": Math.floor((date.getMonth() + 3) / 3), //季度
  1312. "S": date.getMilliseconds() //毫秒
  1313. };
  1314. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
  1315. for (var k in o)
  1316. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[
  1317. k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1318. return fmt;
  1319. },
  1320. // 定点加油1清空
  1321. gasstation1Change() {
  1322. this.formData.oilappoint1Qty = null;
  1323. this.formData.oilappoint1Amt = null;
  1324. },
  1325. // 定点加油2清空
  1326. gasstation2Change() {
  1327. this.formData.oilappoint2Qty = null;
  1328. this.formData.oilappoint2Amt = null;
  1329. },
  1330. // 定点加油3清空
  1331. gasstation3Change() {
  1332. this.formData.oilappoint3Qty = null;
  1333. this.formData.oilappoint3Amt = null;
  1334. },
  1335. // 点击拨打电话
  1336. telFun() {
  1337. if (this.formData.driver1mobile != null && this.formData.driver1mobile != '') {
  1338. uni.makePhoneCall({
  1339. phoneNumber: this.formData.driver1mobile, //电话号码
  1340. success: function(e) {
  1341. // console.log(e);
  1342. },
  1343. fail: function(e) {
  1344. // console.log(e);
  1345. }
  1346. })
  1347. }
  1348. },
  1349. // 其他费用表格勾选事件
  1350. selectionChange(e) {
  1351. this.selectedIndexs = e.detail.index;
  1352. },
  1353. // 计算报销金额
  1354. // calculatMoney() {
  1355. // let loadetc = this.formData.loadetc == null ? 0 : this.formData.loadetc;
  1356. // let loadtoll = this.formData.loadtoll == null ? 0 : this.formData.loadtoll;
  1357. // let oilhomeAmt = this.formData.oilhomeAmt == null ? 0 : this.formData.oilhomeAmt;
  1358. // let oilappoint1Amt = this.formData.oilappoint1Amt == null ? 0 : this.formData.oilappoint1Amt;
  1359. // let oilappoint2Amt = this.formData.oilappoint2Amt == null ? 0 : this.formData.oilappoint2Amt;
  1360. // let oilappoint3Amt = this.formData.oilappoint3Amt == null ? 0 : this.formData.oilappoint3Amt;
  1361. // let oilcash1Amt = this.formData.oilcash1Amt == null ? 0 : this.formData.oilcash1Amt;
  1362. // let oilcardAmt = this.formData.oilcardAmt == null ? 0 : this.formData.oilcardAmt;
  1363. // let itemsMoney = 0;
  1364. // for (const key in this.itemsList) {
  1365. // let a = this.itemsList[key].amt == null ? 0 : this.itemsList[key].amt;
  1366. // itemsMoney += Number(a);
  1367. // }
  1368. // loadetc = Number(loadetc)
  1369. // loadtoll = Number(loadtoll)
  1370. // oilhomeAmt = Number(oilhomeAmt)
  1371. // oilappoint1Amt = Number(oilappoint1Amt)
  1372. // oilappoint2Amt = Number(oilappoint2Amt)
  1373. // oilappoint3Amt = Number(oilappoint3Amt)
  1374. // oilcash1Amt = Number(oilcash1Amt)
  1375. // oilcardAmt = Number(oilcardAmt)
  1376. // itemsMoney = Number(itemsMoney)
  1377. // this.money = loadetc + loadtoll + oilhomeAmt + oilappoint1Amt + oilappoint2Amt + oilcash1Amt + oilcardAmt +
  1378. // oilappoint3Amt + itemsMoney;
  1379. // },
  1380. checkUnLoadetc(e) {
  1381. //正则表达试
  1382. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1383. //重新赋值给input
  1384. this.$nextTick(() => {
  1385. this.formData.loadetc = e.target.value
  1386. })
  1387. this.calculatMoney();
  1388. },
  1389. checkUnLoadtoll(e) {
  1390. //正则表达试
  1391. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1392. //重新赋值给input
  1393. this.$nextTick(() => {
  1394. this.formData.loadtoll = e.target.value
  1395. })
  1396. this.calculatMoney();
  1397. },
  1398. checkUnOilhomeQty(e) {
  1399. //正则表达试
  1400. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1401. //重新赋值给input
  1402. this.$nextTick(() => {
  1403. this.formData.oilhomeQty = e.target.value
  1404. })
  1405. this.calculatMoney();
  1406. },
  1407. checkUnOilhomeAmt(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.oilhomeAmt = e.target.value
  1413. })
  1414. this.calculatMoney();
  1415. },
  1416. checkUnOilappoint1Qty(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.oilappoint1Qty = e.target.value
  1422. })
  1423. this.calculatMoney();
  1424. },
  1425. checkUnOilappoint1Amt(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.oilappoint1Amt = e.target.value
  1431. })
  1432. this.calculatMoney();
  1433. },
  1434. checkUnOilappoint2Qty(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.oilappoint2Qty = e.target.value
  1440. })
  1441. this.calculatMoney();
  1442. },
  1443. checkUnOilappoint2Amt(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.oilappoint2Amt = e.target.value
  1449. })
  1450. this.calculatMoney();
  1451. },
  1452. checkUnOilappoint3Qty(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.oilappoint3Qty = e.target.value
  1458. })
  1459. this.calculatMoney();
  1460. },
  1461. checkUnOilappoint3Amt(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.oilappoint3Amt = e.target.value
  1467. })
  1468. this.calculatMoney();
  1469. },
  1470. checkUnOilcash1Qty(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.oilcash1Qty = e.target.value
  1476. })
  1477. this.calculatMoney();
  1478. },
  1479. checkUnOilcash1Amt(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.oilcash1Amt = e.target.value
  1485. })
  1486. this.calculatMoney();
  1487. },
  1488. checkUnOilcardQty(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.oilcardQty = e.target.value
  1494. })
  1495. this.calculatMoney();
  1496. },
  1497. checkUnOilcardAmt(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.oilcardAmt = e.target.value
  1503. })
  1504. this.calculatMoney();
  1505. },
  1506. checkUnAmt(amt, index) {
  1507. var amt = (amt.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1508. //重新赋值给input
  1509. this.$nextTick(() => {
  1510. this.itemsList[index].amt = amt
  1511. })
  1512. this.calculatMoney();
  1513. },
  1514. checkUnDetourEmptyMile(e) {
  1515. //正则表达试
  1516. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1517. //重新赋值给input
  1518. this.$nextTick(() => {
  1519. this.formData.detourEmptyMile = e.target.value
  1520. })
  1521. },
  1522. checkUnDetourLoadMile(e) {
  1523. //正则表达试
  1524. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
  1525. //重新赋值给input
  1526. this.$nextTick(() => {
  1527. this.formData.detourLoadMile = e.target.value
  1528. })
  1529. },
  1530. inputHeight() {
  1531. // if (this.vHeight == 0) {
  1532. this.vHeight = 600;
  1533. // } else {
  1534. // this.vHeight = 0;
  1535. // }
  1536. }
  1537. }
  1538. }
  1539. </script>
  1540. <style lang="scss">
  1541. @import url("/font/iconfont.css");
  1542. // 修改布局方向为纵向布局
  1543. .vertical-layout {
  1544. display: flex;
  1545. }
  1546. .h {
  1547. margin-top: 20rpx;
  1548. height: 100rpx;
  1549. padding-left: 40rpx;
  1550. // font-weight: 900;
  1551. border-top: 2rpx solid #f0f0f0f0;
  1552. border-bottom: 2rpx solid #f0f0f0f0;
  1553. line-height: 100rpx;
  1554. font-size: 30rpx;
  1555. color: #3c9cff;
  1556. // background-color: pink;
  1557. }
  1558. // 分割线
  1559. .striping {
  1560. width: 100%;
  1561. height: 4rpx;
  1562. background-color: #f0f0f0f0;
  1563. }
  1564. .box-box {
  1565. padding-left: 30rpx;
  1566. padding-right: 30rpx;
  1567. }
  1568. .content {
  1569. box-sizing: border-box;
  1570. background-color: white;
  1571. .head {
  1572. color: #3c9cff;
  1573. // width: 100%;
  1574. height: 40rpx;
  1575. padding: 0 30rpx;
  1576. vertical-align: middle;
  1577. // display: table-cell;
  1578. display: flex;
  1579. align-items: flex-end;
  1580. justify-content: space-between;
  1581. box-sizing: border-box;
  1582. font-size: 34rpx;
  1583. font-weight: 700;
  1584. // background-color: red;
  1585. }
  1586. .head-no-addr {
  1587. // width: 960rpx;
  1588. height: 100rpx;
  1589. // padding-left: 30rpx;
  1590. padding: 0 30rpx;
  1591. vertical-align: middle;
  1592. color: #fff;
  1593. font-size: 34rpx;
  1594. font-weight: 700;
  1595. display: flex;
  1596. align-items: center;
  1597. justify-content: space-between;
  1598. box-sizing: border-box;
  1599. background-color: #3c9cff;
  1600. }
  1601. .box-list {
  1602. color: #3b3b3b;
  1603. width: 100%;
  1604. border-bottom: 2rpx solid #f0f0f0f0;
  1605. // padding-left: 50rpx;
  1606. // font-size: 30rpx;
  1607. color: #3b3b3b;
  1608. .icon {
  1609. // width: 100rpx;
  1610. margin-top: 50rpx;
  1611. // font-size: 50rpx;
  1612. // color: #4888ff;
  1613. }
  1614. .list {
  1615. margin-top: 30rpx;
  1616. margin-bottom: 20rpx;
  1617. width: 100%;
  1618. height: 100%;
  1619. // background-color: pink;
  1620. height: auto;
  1621. display: flex;
  1622. flex-wrap: wrap;
  1623. // font-size: 30rpx;
  1624. }
  1625. .quantity-aum {
  1626. margin-bottom: 25rpx;
  1627. .aaa {
  1628. width: 50%;
  1629. .key {
  1630. display: inline-block;
  1631. width: 50%;
  1632. margin-left: 20rpx;
  1633. // margin-right: 80rpx;
  1634. border-bottom: 2rpx dotted #000;
  1635. }
  1636. }
  1637. .bbb {
  1638. width: 50%;
  1639. .value {
  1640. width: 50%;
  1641. margin-left: 20rpx;
  1642. // margin-right: 20rpx;
  1643. border-bottom: 2rpx dotted #000;
  1644. }
  1645. }
  1646. }
  1647. }
  1648. .box {
  1649. color: #3b3b3b;
  1650. // overflow: hidden;
  1651. height: 100rpx;
  1652. // border-bottom: 2rpx solid #f0f0f0f0;
  1653. // font-size: 30rpx;
  1654. display: flex;
  1655. align-items: center;
  1656. .data {
  1657. width: 50%;
  1658. display: flex;
  1659. align-items: center;
  1660. .key {
  1661. width: 55%;
  1662. text-align: right;
  1663. color: #3c9cff;
  1664. }
  1665. .value {
  1666. margin-left: 20rpx;
  1667. width: 45%;
  1668. color: #3b3b3b;
  1669. border-bottom: 2rpx dotted #000;
  1670. }
  1671. }
  1672. .data-two {
  1673. width: 100%;
  1674. display: flex;
  1675. align-items: center;
  1676. .key {
  1677. width: 35%;
  1678. text-align: right;
  1679. color: #3c9cff;
  1680. }
  1681. .list {
  1682. margin-top: 30rpx;
  1683. margin-bottom: 20rpx;
  1684. width: 100%;
  1685. height: 100%;
  1686. // background-color: pink;
  1687. height: auto;
  1688. display: flex;
  1689. flex-wrap: wrap;
  1690. // font-size: 30rpx;
  1691. }
  1692. }
  1693. }
  1694. .box-two {
  1695. color: #3b3b3b;
  1696. overflow: hidden;
  1697. height: 100rpx;
  1698. padding-left: 20rpx;
  1699. // margin-right: 20rpx;
  1700. // font-size: 30rpx;
  1701. display: flex;
  1702. align-items: center;
  1703. .key {
  1704. display: inline-block;
  1705. width: 24%;
  1706. color: #3c9cff;
  1707. }
  1708. .value {
  1709. margin-left: 20rpx;
  1710. width: calc(100% - 24%);
  1711. color: #3b3b3b;
  1712. // margin-right: 20rpx;
  1713. border-bottom: 2rpx dotted #000;
  1714. }
  1715. }
  1716. .table {
  1717. // margin-top: 40rpx;
  1718. margin-left: 20rpx;
  1719. margin-right: 20rpx;
  1720. .data {
  1721. // font-size: 30rpx;
  1722. width: 100%;
  1723. height: 100rpx;
  1724. border-bottom: 2rpx solid #f0f0f0f0;
  1725. align-items: center;
  1726. .name {
  1727. text-align: right;
  1728. width: 25%;
  1729. margin-left: 20rpx;
  1730. color: #000;
  1731. }
  1732. .sum {
  1733. width: 20%;
  1734. margin-left: 20rpx;
  1735. margin-right: 40rpx;
  1736. border-bottom: 2rpx dotted #000;
  1737. }
  1738. .remarks {
  1739. width: 30%;
  1740. }
  1741. }
  1742. }
  1743. .primary {
  1744. background-color: #0b68ffff;
  1745. }
  1746. .attention {
  1747. padding: 30rpx;
  1748. padding-left: 50rpx;
  1749. padding-bottom: 40rpx;
  1750. }
  1751. // 底部提交按钮
  1752. // .bottom {
  1753. // height: 130rpx;
  1754. // display: block;
  1755. // position: fixed;
  1756. // bottom: calc(var(--window-bottom));
  1757. // width: 100%;
  1758. // // background-color: #f0f0f0f0;
  1759. // // background-color: pink;
  1760. // background-color: white;
  1761. // .bottom-bottom {
  1762. // width: 100%;
  1763. // height: 100%;
  1764. // position: relative;
  1765. // display: flex;
  1766. // // .submit {
  1767. // // width: 95%;
  1768. // // background-color: #0b68ffff;
  1769. // // }
  1770. // .money {
  1771. // font-size: 28rpx;
  1772. // height: 130rpx;
  1773. // margin-right: 80rpx;
  1774. // line-height: 130rpx;
  1775. // margin-left: 10%;
  1776. // }
  1777. // .button {
  1778. // width: 300rpx;
  1779. // position: absolute;
  1780. // right: 0;
  1781. // margin-right: 10%;
  1782. // .button-button {
  1783. // padding: 10% 0;
  1784. // background-clip: content-box;
  1785. // }
  1786. // }
  1787. // }
  1788. // }
  1789. .bottom {
  1790. position: fixed;
  1791. bottom: calc(var(--window-bottom));
  1792. width: 100%;
  1793. height: 130rpx;
  1794. background-color: white;
  1795. .row {
  1796. display: flex;
  1797. justify-content: space-evenly;
  1798. height: 130rpx;
  1799. align-items: center;
  1800. .button {
  1801. width: 300rpx;
  1802. // width: 660rpx;
  1803. }
  1804. }
  1805. }
  1806. .input {
  1807. width: 100%;
  1808. // height: 100rpx;
  1809. // background-color: red;
  1810. }
  1811. .cushion {
  1812. width: 100%;
  1813. height: 200rpx;
  1814. background-color: #f0f0f0f0;
  1815. }
  1816. }
  1817. </style>