businessInfo.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892
  1. <template>
  2. <view>
  3. <u-tabs
  4. ref="jputabs"
  5. class="jputabs" name="cate_name" gutter="200" bar-width="100" active-color="#101010"
  6. inactive-color="#A1A1A1" :list="tabList" :is-scroll="false" :current="current" @change="change"></u-tabs>
  7. <ujp-navbar title="收益核算" style="margin-bottom: 40px;">
  8. <view slot="right" v-if="current==1&&info.applicationType==1">
  9. <view @click="copyItem()"
  10. style="margin-right: 10px;" >
  11. 生成副表<u-icon name="plus"></u-icon>
  12. </view>
  13. </view>
  14. </ujp-navbar>
  15. <template v-if="current==0">
  16. <view class="withdraw">
  17. <view class="withdraw-head">
  18. <b class="asterisk"><text>*</text>申请站点</b>
  19. <span>
  20. <ujp-picker mode="selector" v-model="isswitchshow"
  21. :range="stationList" range-key="name"
  22. :default-selector="[stationObj.index]"
  23. @confirm="switchBtn" ></ujp-picker>
  24. <view class="uni-input" @click="isswitchshow=true">
  25. <view class="input-text">
  26. {{stationObj.name?stationObj.name:'无站点'}}
  27. </view>
  28. <view class="iconfont more">
  29. &#xe600;
  30. </view>
  31. </view>
  32. </span>
  33. </view>
  34. <view class="withdraw-head">
  35. <b class="asterisk"><text>*</text>提现事由</b>
  36. <span>
  37. <picker @change="bindPickerChange2" range-key="name" :range="applicationList">
  38. <view class="uni-input">{{info.applicationTypeText}}<text
  39. class="iconfont more">
  40. &#xe600;
  41. </text></view>
  42. </picker>
  43. </span>
  44. </view>
  45. <view class="withdraw-head" v-if="info.applicationType!=3">
  46. <b class="asterisk"><text>*</text>提现账户</b>
  47. <span>
  48. <picker @change="bindPickerChange5" range-key="name" :range="userList">
  49. <view class="uni-input">{{selectAccUser.name?selectAccUser.name:'无账户'}}<text
  50. class="iconfont more">
  51. &#xe600;
  52. </text></view>
  53. </picker>
  54. </span>
  55. </view>
  56. <view class="withdraw-head">
  57. <b class="asterisk"><text>*</text>提现月份</b>
  58. <span>
  59. <picker @change="bindPickerChange3" mode="date" fields="month"
  60. :value="thismonth">
  61. <view class="uni-input">{{showTime(thismonth)}}<text class="iconfont more">
  62. &#xe600;
  63. </text></view>
  64. </picker>
  65. </span>
  66. </view>
  67. <view >
  68. <!-- 个人桩 -->
  69. <view class="withdraw-head" v-if="!isSecond" >
  70. <b class="asterisk">抄表开始日期</b>
  71. <u-picker
  72. :default-time="info.startTime2"
  73. ref="ucalendar" v-model="showcalendar2"
  74. mode="time" :params="params" @confirm="bindPickerChange6"
  75. ></u-picker>
  76. <span >
  77. <view class="uni-input uni-time" @click="showcalendar2=true">{{showTime2(info.startTime2)}}<text class="iconfont more">
  78. &#xe600;
  79. </text>
  80. </view>
  81. </span>
  82. </view>
  83. <view class="withdraw-head" v-else >
  84. <b class="asterisk">抄表开始日期</b>
  85. <span>
  86. <view class="uni-input uni-time">{{showTime2(info.startTime2)}}</view>
  87. </span>
  88. </view>
  89. <view class="withdraw-head" v-if="!isSecond" >
  90. <b class="asterisk">抄表截止日期</b>
  91. <u-picker
  92. :default-time="info.endTime2"
  93. ref="ucalendar" v-model="showcalendar"
  94. mode="time" :params="params" @confirm="bindPickerChange4"
  95. ></u-picker>
  96. <span >
  97. <view class="uni-input uni-time" @click="showcalendar=true">{{showTime2(info.endTime2)}}<text class="iconfont more">
  98. &#xe600;
  99. </text>
  100. </view>
  101. </span>
  102. </view>
  103. <view class="withdraw-head" v-else >
  104. <b class="asterisk">抄表截止日期</b>
  105. <span>
  106. <view class="uni-input uni-time">{{showTime2(info.endTime2)}}</view>
  107. </span>
  108. </view>
  109. </view>
  110. <view class="withdraw-head " v-if="false">
  111. <b>充电收入</b><span class="classFFF">{{info.chargingIncome}}元</span>
  112. </view>
  113. <view class="withdraw-head border-n" v-if="info.applicationType==3">
  114. <b>分润提现明细</b><span class="download" @click="ckdownload" >
  115. <u-icon name="download"></u-icon> 下载订单详情
  116. </span>
  117. </view>
  118. </view>
  119. <view class="withdraw" v-if="info.applicationType!=2">
  120. <view class="withdraw-head" v-if="info.applicationType==1" >
  121. <b class="asterisk"><text>*</text>物业是否交电费</b>
  122. <span>
  123. <u-radio-group v-model="info.bearElecMoney">
  124. <u-radio v-for="(item, index) in list2" :key="index+'a'"
  125. :name="item.value" active-color="blue">
  126. {{item.name}}
  127. </u-radio>
  128. </u-radio-group>
  129. </span>
  130. </view>
  131. <view class="withdraw-head" v-if="info.applicationType!=2&&!isSecond" >
  132. <b class="asterisk"><text>*</text>电价</b>
  133. <text class="unit" style="float: right;font-size: 16px;">元/度</text>
  134. <span class="withdraw-input" style="width: 63%;">
  135. <u-input height="20px" v-model="info.electricityPrice"
  136. maxlength="10"
  137. placeholder="请填写价格" input-align="left"
  138. type="digit">
  139. </u-input>
  140. </span>
  141. </view>
  142. <view class="withdraw-head" v-else>
  143. <b class="asterisk">电价</b>
  144. <span class="withdraw-input classFFF" style="width: 63%;">
  145. {{info.electricityPrice}}元/度
  146. </span>
  147. </view>
  148. <view class="withdraw-head">
  149. <b class="asterisk">预估电量</b>
  150. <span class="withdraw-input classFFF" style="width: 63%;">
  151. {{info.estimateElectricQuantity}}度
  152. </span>
  153. </view>
  154. <view class="withdraw-head" v-if="info.applicationType!=2&&!isSecond" >
  155. <b class="asterisk">电量</b>
  156. <text class="unit" style="float: right;font-size: 16px;">度</text>
  157. <span class="withdraw-input" style="width: 63%;">
  158. <u-input height="20px" placeholder="请填写实际电量"
  159. maxlength="10"
  160. @input="ckInput_Q"
  161. v-model="info.electricQuantity" input-align="left"
  162. type="digit">
  163. </u-input>
  164. </span>
  165. </view>
  166. <view class="withdraw-head" v-else>
  167. <b class="asterisk">电量</b>
  168. <span class="withdraw-input classFFF" style="width: 63%;">
  169. {{info.electricQuantity}}度
  170. </span>
  171. </view>
  172. <view class=" " v-if="info.applicationType!=2&&!isSecond" >
  173. 电费参考值(电量*电价)
  174. <span style="margin-left: 20rpx;" >
  175. <span class="classFFF" v-if="info.electricQuantity&&info.electricityPrice">{{info.electricQuantity*info.electricityPrice}}元</span>
  176. <span class="classFFF" v-else>自动计算出结果</span>
  177. </span>
  178. </view>
  179. <view class="withdraw-head" v-if="info.applicationType!=2&&!isSecond" >
  180. <b class="asterisk">电费</b>
  181. <text class="unit" style="float: right;font-size: 16px;">元</text>
  182. <span class="withdraw-input" style="width: 63%;">
  183. <u-input height="20px" placeholder="请填写实际电费"
  184. maxlength="10"
  185. v-model="info.electricityCost" input-align="left"
  186. type="digit">
  187. </u-input>
  188. </span>
  189. </view>
  190. <view class="withdraw-head" v-else>
  191. <b class="asterisk">电费</b>
  192. <span class="withdraw-input classFFF" style="width: 63%;">
  193. {{info.electricityCost}}元
  194. </span>
  195. </view>
  196. <view class="withdraw-head border-n" v-if="false">
  197. <b>电费</b>
  198. <text class="unit" style="float: right;font-size: 16px;"></text>
  199. <span class="withdraw-input" style="width: 63%;">
  200. <view class="classFFF" v-show="electricityPriceX">{{electricityPriceX}}元</view>
  201. <view class="classFFF" v-show="!electricityPriceX">自动计算出结果</view>
  202. </span>
  203. </view>
  204. </view>
  205. <view class="withdraw" v-if="info.applicationType!=2">
  206. <view class="withdraw-head border-n">
  207. <b>桩主/站主总收入
  208. </b>
  209. <span class="classFFF" >
  210. <view class="uni-input"> {{(info.chargingProfitAmount+info.monthlyCardIncome).toFixed(2)}}元</view>
  211. </span>
  212. </view>
  213. <view class="withdraw-head border-n">
  214. <b>桩主/站主收益
  215. </b>
  216. <span class="classFFF" >
  217. <view class="uni-input" v-show="electricityPriceX">{{(info.chargingProfitAmount+info.monthlyCardIncome-electricityPriceX).toFixed(2)}}元
  218. <view class="tooltip tooltipleft">
  219. <u-icon name="info-circle"></u-icon>
  220. <view class="tooltiptext" style="width: 280px;">桩主/站主收益=充电服务收入+折扣卡收入-电费</view>
  221. </view>
  222. </view>
  223. <view class="classFFF" v-show="!electricityPriceX">自动计算出结果</view>
  224. </span>
  225. </view>
  226. </view>
  227. <view class="withdraw" v-if="info.applicationType!=2">
  228. <view class="withdraw-head">
  229. <b>充电收入</b>
  230. <span class="classFFF" >
  231. {{info.chargingProfitAmount?info.chargingProfitAmount.toFixed(2):0}}元
  232. </span>
  233. </view>
  234. <view class="withdraw-head">
  235. <b>充电分润比例</b>
  236. <span class="classFFF" >
  237. {{info.chargingPercent}}%
  238. </span>
  239. </view>
  240. <view class="withdraw-head border-n">
  241. <b>充电收益</b>
  242. <span>
  243. <view class="classFFF" v-show="electricityPriceX">{{(info.chargingProfitAmount-electricityPriceX).toFixed(2)}}元</view>
  244. <view class="classFFF" v-show="!electricityPriceX">自动计算出结果</view>
  245. </span>
  246. </view>
  247. </view>
  248. <view class="withdraw" v-if="info.applicationType!=2">
  249. <view class="withdraw-head">
  250. <b>折扣卡分润笔数</b>
  251. <span class="classFFF" >
  252. {{info.monthlyCardTotal}}笔
  253. </span>
  254. </view>
  255. <view class="withdraw-head border-n">
  256. <b>折扣卡收益</b>
  257. <span class="classFFF" >
  258. {{info.monthlyCardIncome?info.monthlyCardIncome.toFixed(2):0}}元
  259. </span>
  260. </view>
  261. </view>
  262. <view class="withdraw" v-if="info.applicationType==2" >
  263. <view class="withdraw-head border-n">
  264. <b>桩主/站主收益
  265. </b>
  266. <span class="classFFF" >
  267. <view class="uni-input" v-show="electricityPriceX">{{(info.chargingProfitAmount+info.monthlyCardIncome-electricityPriceX).toFixed(2)}}元
  268. <view class="tooltip tooltipleft">
  269. <u-icon name="info-circle"></u-icon>
  270. <view class="tooltiptext" style="width: 280px;">桩主/站主收益=充电服务收入+折扣卡收入-电费</view>
  271. </view>
  272. </view>
  273. <view class="classFFF" v-show="!electricityPriceX">自动计算出结果</view>
  274. </span>
  275. </view>
  276. <view class="withdraw-head" >
  277. <b class="asterisk"><text>*</text>市场奖励比例</b>
  278. <text class="unit" style="float: right;font-size: 16px;">%</text>
  279. <span class="withdraw-input" style="width: 63%;">
  280. <u-input height="20px" placeholder="请填写比例"
  281. maxlength="10"
  282. v-model="info.rewardProportion" input-align="left"
  283. type="digit">
  284. </u-input>
  285. </span>
  286. </view>
  287. <view class="withdraw-head border-n" >
  288. <b>奖励提成</b>
  289. <span >
  290. <view class="classFFF" v-if="electricityPriceX&&info.rewardProportion">
  291. {{((info.chargingProfitAmount+info.monthlyCardIncome-electricityPriceX)*info.rewardProportion/100).toFixed(2)}}元</view>
  292. <view class="classFFF" v-else>自动计算出结果</view>
  293. </span>
  294. </view>
  295. <view class="withdraw-head border-n">
  296. <b>大写金额</b>
  297. <span class="withdraw-input" style="width: 63%;">
  298. <view class="classFFF" v-if="electricityPriceX&&info.rewardProportion">
  299. {{applicationAmountDX2(((info.chargingProfitAmount+info.monthlyCardIncome-electricityPriceX)*info.rewardProportion/100).toFixed(2))}}
  300. </view>
  301. <view class="classFFF" v-if="!(electricityPriceX&&info.rewardProportion)">自动转换</view>
  302. </span>
  303. </view>
  304. </view>
  305. <view class="withdraw" v-if="info.applicationType==1">
  306. <view class="withdraw-head">
  307. <b>提现类型</b><span>
  308. <u-radio-group v-model="info.withdrawalType">
  309. <u-radio v-for="(item, index) in list3" :key="index+'a'"
  310. :name="item.value" active-color="blue">
  311. {{item.name}}
  312. </u-radio>
  313. </u-radio-group>
  314. </span>
  315. </view>
  316. <view class="withdraw-head" v-show="info.withdrawalType==0">
  317. <b class="asterisk"><text>*</text>分润比例</b>
  318. <text class="unit" style="float: right;font-size: 16px;">%</text>
  319. <span class="withdraw-input" style="width: 63%;">
  320. <u-input height="20px" placeholder="请填写比例"
  321. maxlength="10"
  322. v-model="info.rewardProportion" input-align="left"
  323. type="digit">
  324. </u-input>
  325. </span>
  326. </view>
  327. <view class="withdraw-head border-n" v-show="info.withdrawalType==0" >
  328. <b class="asterisk"><text>*</text>物业分润收入</b>
  329. <span >
  330. <view class="classFFF" v-if="electricityPriceX&&info.rewardProportion">
  331. {{((info.chargingProfitAmount+info.monthlyCardIncome-electricityPriceX)*info.rewardProportion/100).toFixed(2)}}元</view>
  332. <view class="classFFF" v-else>自动计算出结果</view>
  333. </span>
  334. </view>
  335. <view class="withdraw-head " v-show="info.withdrawalType==1">
  336. <b class="asterisk"><text>*</text>停车费</b>
  337. <text class="unit" style="float: right;font-size: 16px;">元</text>
  338. <span class="withdraw-input" style="width: 63%;">
  339. <u-input height="20px" v-model="info.parkingFee" maxlength="10" placeholder="请填写金额" input-align="left"
  340. type="digit">
  341. </u-input>
  342. </span>
  343. </view>
  344. </view>
  345. <view class="withdraw" v-if="info.applicationType==3&&(info.applyAmount1||info.applyAmount2||info.publicMaintenanceAmount)" >
  346. <view class="withdraw-head" v-if="info.applyAmount1">
  347. <b>物业可提现金额</b>
  348. <span>
  349. <view class="uni-input">{{info.applyAmount1}}元</view>
  350. </span>
  351. </view>
  352. <view class="withdraw-head border-n" v-if="info.applyAmount2">
  353. <b>市场可提现金额</b>
  354. <span>
  355. <view class="uni-input">{{info.applyAmount2}}元</view>
  356. </span>
  357. </view>
  358. <view class="withdraw-head" v-if="info.publicMaintenanceAmount">
  359. <b>公共维护费</b>
  360. <span>
  361. <view class="uni-input">{{info.publicMaintenanceAmount}}元</view>
  362. </span>
  363. </view>
  364. </view>
  365. <view class="withdraw" >
  366. <view class="withdraw-head">
  367. <b>是否开票</b><span>
  368. <u-radio-group v-model="info.invoiceRequired">
  369. <u-radio v-for="(item, index) in list2" :key="index+'a'"
  370. :name="item.value" active-color="blue">
  371. {{item.name}}
  372. </u-radio>
  373. </u-radio-group>
  374. </span>
  375. </view>
  376. <view class="withdraw-head" v-if="info.invoiceRequired=='1'" >
  377. <b class="asterisk"><text>*</text>发票类型</b>
  378. <span>
  379. <u-radio-group v-model="info.invoiceType" >
  380. <u-radio v-for="(item, index) in list1" :key="index+'a'" :name="item.value"
  381. :disabled="item.disabled" active-color="blue">
  382. {{item.name}}
  383. </u-radio>
  384. </u-radio-group>
  385. </span>
  386. </view>
  387. <view class="withdraw-head border-n" v-if="info.invoiceRequired=='1'&&info.invoiceType==1">
  388. <b class="asterisk"><text>*</text>发票税率</b>
  389. <text style="float: right;font-size: 16px;">%</text>
  390. <span class="withdraw-input" style="width: 58%;">
  391. <u-input height="20px" v-model="info.taxRate"
  392. placeholder="请输入开票税率" input-align="left"
  393. maxlength="10"
  394. type="digit">
  395. </u-input>
  396. </span>
  397. </view>
  398. </view>
  399. <view class="withdraw" v-if="info.applicationType!=2">
  400. <view class="withdraw-head " v-if="info.applicationType==3&&applicationAmountTest">
  401. <b class="asterisk">是否扣除电费</b>
  402. <span class="withdraw-input" style="width: 63%;">
  403. <u-button size="mini" type="primary" v-if="applicationAmountTestBl"
  404. @click="coCost" >扣除电费</u-button>
  405. <u-button size="mini" v-else
  406. type="warning" @click="reCost">还原金额</u-button>
  407. </span>
  408. </view>
  409. <view class="withdraw-head ">
  410. <b class="asterisk"><text>*</text>申请提现金额</b>
  411. <text class="unit" style="float: right;font-size: 16px;">元</text>
  412. <span class="withdraw-input" style="width: 63%;">
  413. <u-input height="20px"
  414. @input="ckInput_f"
  415. v-model="info.applicationAmount" maxlength="10" placeholder="请填写金额" input-align="left"
  416. type="digit">
  417. </u-input>
  418. </span>
  419. </view>
  420. <view class="withdraw-head border-n">
  421. <b>大写金额</b>
  422. <span class="withdraw-input" style="width: 63%;">
  423. <view class="classFFF" v-show="applicationAmountDX">{{applicationAmountDX}}</view>
  424. <view class="classFFF" v-show="!applicationAmountDX">自动转换</view>
  425. </span>
  426. </view>
  427. </view>
  428. <view class="withdraw" v-if="info.applicationType==3" >
  429. <view class="withdraw-head ">
  430. <b class="asterisk"><text>*</text>收款户名</b>
  431. <u-input class="textarea" type="textarea"
  432. v-model="info.accountName"
  433. placeholder="请填写收款户名" height="96" cursor-spacing="8" />
  434. </view>
  435. <view class="withdraw-head ">
  436. <b class="asterisk"><text>*</text>收款银行</b>
  437. <u-input class="textarea" type="textarea"
  438. v-model="info.bankName"
  439. placeholder="请填写收款银行全称" height="96" cursor-spacing="8" />
  440. </view>
  441. <view class="withdraw-head border-n">
  442. <b class="asterisk"><text>*</text>收款账号</b>
  443. <u-input class="textarea" v-model="info.accountNo"
  444. type="textarea" placeholder="请填写收款账号" height="96" cursor-spacing="8" />
  445. </view>
  446. <view class="withdraw-head">
  447. <b>是否为你自动申请提现</b>
  448. <span style="min-width: 30%;">
  449. <u-checkbox-group >
  450. <u-checkbox
  451. v-model="checked"
  452. active-color="blue">
  453. </u-checkbox>
  454. </u-checkbox-group>
  455. </span>
  456. </view>
  457. </view>
  458. </template>
  459. <template v-if="current==1">
  460. <view class="details withdrawHead" v-if="detailList.length&&info.applicationAmount">
  461. 申请提现金额:{{info.applicationAmount}}元<br/>
  462. 明细金额合计:<span :class="{
  463. red:itemApplicationAmountSum>parseFloat(info.applicationAmount)
  464. }">{{itemApplicationAmountSum}}元</span>
  465. </view>
  466. <view class="details" v-for="(item,i) in detailList" :key="i" >
  467. <view class="withdraw">
  468. <view class="withdraw-head">
  469. <b class="asterisk"><text>*</text>项目</b>
  470. <text class="unit" style="float: right;font-size: 16px;z-index: 99;" @click="delItem(i)">
  471. <i class="ri-indeterminate-circle-fill" style="color: red;font-size: 24px;"></i>
  472. </text>
  473. <span class="withdraw-input" style="width: 80%;">
  474. <u-input height="20px"
  475. v-model="item.itemName"
  476. placeholder="请填写项目名称" input-align="left" >
  477. </u-input>
  478. </span>
  479. </view>
  480. <view class="withdraw-head border-n">
  481. <b class="asterisk"><text>*</text>金额</b>
  482. <text class="unit" style="float: right;font-size: 16px;">元</text>
  483. <span class="withdraw-input" style="width: 80%;">
  484. <u-input height="20px"
  485. v-model="item.itemAmount"
  486. placeholder="请填写价格"
  487. maxlength="10"
  488. input-align="left" type="digit">
  489. </u-input>
  490. </span>
  491. </view>
  492. <view class="withdraw-head border-n">
  493. <b>备注</b>
  494. <span class="withdraw-input" style="width: 80%;">
  495. <u-input height="20px"
  496. v-model="item.itemRemark"
  497. placeholder="请填写备注信息" input-align="left">
  498. </u-input>
  499. </span>
  500. </view>
  501. </view>
  502. </view>
  503. <view class="add" @click="addItem" ><i class="ri-add-circle-fill"></i><text>增加项目</text></view>
  504. </template>
  505. <view class="applyBtn" v-if="isReady">
  506. <u-button class="save" @click="submit(-2)">保存草稿</u-button>
  507. <u-button class="submit" @click="submit(5)">提交核算结果</u-button>
  508. </view>
  509. <view class="applyBtn" v-else>
  510. <u-button class="submit2" @click="test" >请先核算[物业方结算]</u-button>
  511. </view>
  512. </view>
  513. </template>
  514. <script>
  515. import * as API from '@/apis/finance.js'
  516. import * as API_common from '@/apis/common.js'
  517. import {
  518. beforeTimeStamp,
  519. parseUnixTime,
  520. substrMb,
  521. DX,newDate
  522. } from '@/utils'
  523. export default {
  524. data() {
  525. return {
  526. checked:true,
  527. isSecond:false,
  528. showcalendar:false,
  529. showcalendar2:false,
  530. applicationAmountTest:0,
  531. applicationAmountTestBl:true,
  532. isswitchshow:false,
  533. id:'',
  534. uuid:'',
  535. isPt: false,
  536. detailList:[],
  537. info: {
  538. electricityPrice: '',
  539. electricQuantity: '',
  540. stationId: "",
  541. applicationType: '1'
  542. },
  543. applicationList: [
  544. {
  545. name: '物业方结算',
  546. value: "1"
  547. },
  548. {
  549. name: '市场奖励',
  550. value: "2"
  551. },
  552. {
  553. name: '公共维护费',
  554. value: "2.5"
  555. }
  556. ,
  557. {
  558. name: '利润提现',
  559. value: "3"
  560. }
  561. ],
  562. stationList: [],
  563. queryTime: '',
  564. nowTime: '',
  565. stationObj: {
  566. index:0
  567. },
  568. current: 0, // tabs组件的current值,表示当前活动的tab选项
  569. params: {
  570. year: true,
  571. month: true,
  572. day: true,
  573. hour: true,
  574. minute: true,
  575. second: false,
  576. timestamp: false,
  577. },
  578. list1: [
  579. {
  580. name: '收据',
  581. value: "3"
  582. },{
  583. name: '普票',
  584. value: "1"
  585. },
  586. // {
  587. // name: '专票',
  588. // value: "2"
  589. // },
  590. ],
  591. list2: [{
  592. name: '是',
  593. value: "1"
  594. }, {
  595. name: '否',
  596. value: "0"
  597. }],
  598. list3: [{
  599. name: '服务费提成',
  600. value: "0"
  601. }, {
  602. name: '停车费',
  603. value: "1"
  604. }],
  605. tabList: [{
  606. name: '申请单主表'
  607. }, {
  608. name: '提现明细'
  609. }],
  610. startTime:'',
  611. endTime:'',
  612. thismonth:'',
  613. userList:[],
  614. selectAccUser:{},
  615. isReady:true,
  616. }
  617. },
  618. onLoad(op){
  619. if(op.id){
  620. this.id=op.id
  621. }
  622. this.uuid=op.uuid;
  623. },
  624. onShow() {
  625. },
  626. onReady() {
  627. this.nowTime = parseUnixTime(new Date(), '{y}-{m}-{d}')
  628. var currentDate = new Date();
  629. var currentMonth=currentDate.getMonth();
  630. var lastMonthDate = new Date(currentDate.setMonth(currentMonth - 1));
  631. this.thismonth= parseUnixTime(lastMonthDate, '{y}-{m}')
  632. this.endTime =parseUnixTime(new Date(), '{y}-{m}-{d} {h}:{i}:00')
  633. this.getStationList()
  634. },
  635. computed: {
  636. itemApplicationAmountSum(){
  637. if (this.info.applicationAmount&&this.detailList&&this.detailList.length) {
  638. var applicationAmount=0;
  639. for(var i in this.detailList){
  640. var obj=this.detailList[i]
  641. var itemAmount=obj.itemAmount?obj.itemAmount:0
  642. applicationAmount+=parseFloat(itemAmount)
  643. }
  644. if(applicationAmount){
  645. return parseFloat(applicationAmount).toFixed(2)
  646. }else {
  647. return '0'
  648. }
  649. }else{
  650. return '0'
  651. }
  652. },
  653. applicationAmountDX() {
  654. if (this.info.applicationAmount) {
  655. var c = DX(this.info.applicationAmount)
  656. return c
  657. } else {
  658. return ''
  659. }
  660. },
  661. electricityPriceX() {
  662. return this.info.electricityCost
  663. }
  664. },
  665. watch:{
  666. detailList(nVal, oVal) {
  667. var obj=[
  668. {
  669. name: '申请单主表'
  670. }, {
  671. name: '提现明细'
  672. }
  673. ]
  674. if(nVal&&nVal.length){
  675. obj[1].count=nVal.length
  676. }
  677. this.tabList=obj
  678. }
  679. },
  680. methods: {
  681. coCost(){
  682. this.info.applicationAmount=(this.info.applicationAmount-(this.info.electricityCost?this.info.electricityCost:0)).toFixed(2)
  683. this.applicationAmountTestBl=false
  684. },
  685. reCost(){
  686. this.info.applicationAmount=this.applicationAmountTest
  687. this.applicationAmountTestBl=true
  688. },
  689. ckInput_Q(text) {
  690. if (text.indexOf('.') > 0) {
  691. var k =text.split(".")[1]
  692. if(k.length>=3){
  693. this.$nextTick(()=>{
  694. text=parseFloat(text).toFixed(2);
  695. this.info.electricQuantity= text
  696. })
  697. }
  698. }
  699. var t = Number(text);
  700. if (t < 0) {
  701. this.$nextTick(() => {
  702. this.info.electricQuantity = '';
  703. })
  704. }
  705. },
  706. ckInput_f(text) {
  707. if (text.indexOf('.') > 0) {
  708. var k =text.split(".")[1]
  709. if(k.length>=3){
  710. this.$nextTick(()=>{
  711. text=parseFloat(text).toFixed(2);
  712. this.info.applicationAmount= text
  713. })
  714. }
  715. }
  716. var t = Number(text);
  717. if (t < 0) {
  718. this.$nextTick(() => {
  719. this.info.applicationAmount = '';
  720. })
  721. }
  722. },
  723. applicationAmountDX2(val) {
  724. if (val) {
  725. var c = DX(val)
  726. return c
  727. } else {
  728. return ''
  729. }
  730. },
  731. test(){
  732. console.log(this.checked)
  733. },
  734. copyItem(){
  735. if(this.info.applicationType==1){
  736. if(this.detailList==null){
  737. this.detailList=[];
  738. }
  739. //var key=-1;
  740. var obj={};
  741. // for(var i in this.detailList){
  742. // var obj=this.detailList[i]
  743. // if(this.info.withdrawalType==0&&obj.itemName=="提成比例(自动生成)"){
  744. // key=i;
  745. // }
  746. // if(this.info.withdrawalType==1&&obj.itemName=="停车费(自动生成)"){
  747. // key=i;
  748. // }
  749. // }
  750. if(this.info.withdrawalType==0){
  751. var itemAmount=0;
  752. if(this.electricityPriceX&&this.info.rewardProportion){
  753. itemAmount=((this.info.chargingProfitAmount+this.info.monthlyCardIncome-this.electricityPriceX)*this.info.rewardProportion/100).toFixed(2);
  754. }
  755. var itemRemark=""
  756. if(this.info.rewardProportion){
  757. itemRemark="比例"+this.info.rewardProportion+"%"
  758. }
  759. obj={
  760. itemName:"提成比例",
  761. itemRemark:itemRemark,
  762. itemAmount:itemAmount,
  763. }
  764. }else{
  765. obj={
  766. itemName:"停车费",
  767. itemRemark:'',
  768. itemAmount:this.info.parkingFee,
  769. }
  770. }
  771. this.detailList.push(obj)
  772. }
  773. },
  774. addItem(){
  775. this.detailList.push({})
  776. },
  777. delItem(i){
  778. this.detailList.splice(i,1)
  779. },
  780. submit(status){
  781. this.info.isSecond=(this.isSecond?1:0)
  782. this.info.applicationMonth= this.thismonth
  783. if(this.electricityPriceX){
  784. this.info.electricityCost=this.electricityPriceX
  785. }
  786. if(this.info.applicationType==2){
  787. if(this.info.rewardProportion&&this.electricityPriceX){
  788. this.info.applicationAmount=((this.info.chargingProfitAmount+this.info.monthlyCardIncome-this.electricityPriceX)*this.info.rewardProportion/100).toFixed(2);
  789. }
  790. }
  791. if(this.info.applicationType!=3&&!this.selectAccUser.id){
  792. uni.showToast({
  793. title: "请选择提现账户"
  794. })
  795. return
  796. }
  797. if(this.info.applicationType!=3){
  798. this.info.merchantAccountId=this.selectAccUser.id;
  799. }
  800. if(status==5){
  801. //this.value=this.info.amount
  802. if(!this.stationObj.id){
  803. uni.showToast({
  804. title: "请选择站点"
  805. })
  806. return
  807. }
  808. if(this.info.applicationType==1){
  809. }else{
  810. if(!this.info.electricityPrice){
  811. uni.showToast({
  812. title: "请先核准物业电价成本"
  813. })
  814. return
  815. }
  816. }
  817. if(!this.info.electricityPrice){
  818. uni.showToast({
  819. title: "请输入成本电价"
  820. })
  821. return
  822. }
  823. if(!this.info.electricQuantity){
  824. this.info.electricQuantity=0
  825. }
  826. if(!this.info.electricityCost){
  827. this.info.electricityCost=0
  828. }
  829. if(!this.info.applicationAmount){
  830. uni.showToast({
  831. title: "请输入申请提现金额"
  832. })
  833. return
  834. }
  835. if(this.info.applicationType==1){
  836. if(this.info.withdrawalType==0&&(this.info.rewardProportion=="")){
  837. uni.showToast({
  838. title: "请输入提成比例"
  839. })
  840. return
  841. }
  842. if(this.info.withdrawalType==1&&!this.info.parkingFee){
  843. uni.showToast({
  844. title: "请输入停车费"
  845. })
  846. return
  847. }
  848. }
  849. if(this.info.applicationType==2){
  850. if(this.info.rewardProportion==""){
  851. uni.showToast({
  852. title: "请输入市场奖励比例"
  853. })
  854. return
  855. }
  856. }
  857. if(this.info.invoiceRequired=="1"){
  858. if(!this.info.invoiceType){
  859. uni.showToast({
  860. title: "请选择发票类型"
  861. })
  862. return
  863. }
  864. if(!this.info.taxRate&&this.info.invoiceType==1){
  865. uni.showToast({
  866. title: "请选择发票税率"
  867. })
  868. return
  869. }
  870. }
  871. if(this.info.applicationType==3){
  872. if(!this.info.accountName){
  873. uni.showToast({
  874. title: "请输入收款户名"
  875. })
  876. return
  877. }
  878. if(!this.info.bankName){
  879. uni.showToast({
  880. title: "请输入收款银行"
  881. })
  882. return
  883. }
  884. if(!this.info.accountNo){
  885. uni.showToast({
  886. title: "请输入收款账号"
  887. })
  888. return
  889. }
  890. }
  891. for(var i in this.detailList){
  892. var obj=this.detailList[i]
  893. if(!obj.itemName){
  894. uni.showToast({
  895. title: `请填写提现明细中第${parseInt(i)+1}项的项目名称`
  896. })
  897. return
  898. }
  899. if(!obj.itemAmount){
  900. uni.showToast({
  901. title: `请填写提现明细[${obj.itemName}]项目的金额`
  902. })
  903. return
  904. }
  905. }
  906. if(this.detailList&&this.detailList.length){
  907. if(!(this.itemApplicationAmountSum==parseFloat(this.info.applicationAmount))){
  908. uni.showToast({
  909. title: `[申请提现金额]与[明细金额合计]不相等`
  910. })
  911. return
  912. }
  913. }
  914. }
  915. if(status==5){
  916. for(var i in this.detailList){
  917. var obj=this.detailList[i]
  918. if(!obj.itemName){
  919. uni.showToast({
  920. title: `请填写提现明细中第${parseInt(i)+1}项的项目名称`
  921. })
  922. return
  923. }
  924. if(!obj.itemAmount){
  925. uni.showToast({
  926. title: `请填写提现明细[${obj.itemName}]项目的金额`
  927. })
  928. return
  929. }
  930. }
  931. if(this.detailList&&this.detailList.length){
  932. if(!(this.itemApplicationAmountSum==parseFloat(this.info.applicationAmount))){
  933. uni.showToast({
  934. title: `[申请提现金额]与[明细金额合计]不相等`
  935. })
  936. return
  937. }
  938. }
  939. }
  940. if(this.info.invoiceRequired!=''){
  941. this.info.invoiceRequired=this.info.invoiceRequired=='1'?true:false
  942. }
  943. uni.showLoading({
  944. title: "加载中",
  945. mask: true,
  946. })
  947. if(this.id){
  948. this.info.id=this.id;
  949. }
  950. if(this.info.applicationType==3){
  951. this.info.autoWithdrawal=(this.checked)?1:0
  952. }
  953. if(this.info.applicationType==1){
  954. this.info.bearElecMoney=(this.info.bearElecMoney=="1")?true:false
  955. }
  956. //checked
  957. this.info.status=status;
  958. //var str=JSON.stringify();
  959. API.applyAccounting({
  960. record:this.info,
  961. detailList:this.detailList
  962. }).then((res) => {
  963. this.carhelp.set("withdrawRecord",{
  964. uuid:this.uuid,
  965. })
  966. this.id=res.data;
  967. uni.hideLoading()
  968. if(status==-2){
  969. uni.showModal({
  970. title:"提示",
  971. content:"保存成功",
  972. showCancel:false
  973. })
  974. }else{
  975. uni.redirectTo({
  976. url:"/pagesFinance/user/withdrawal/applyResult?value="+this.info.applicationAmount
  977. })
  978. }
  979. }).catch(error => {
  980. uni.hideLoading()
  981. uni.showModal({
  982. title:"提示",
  983. content:error,
  984. showCancel:false
  985. })
  986. })
  987. },
  988. ckdownload(){
  989. //this.value=this.info.amount
  990. if(!this.stationObj.id){
  991. uni.showToast({
  992. title: "请选择站点"
  993. })
  994. return
  995. }
  996. uni.showLoading({
  997. title: "加载中",
  998. mask: true,
  999. })
  1000. var str1=this.info.startTime2;
  1001. var str2=this.info.endTime2;
  1002. if(str1.length!=19){
  1003. str1=this.info.startTime2+":00"
  1004. }
  1005. if(str2.length!=19){
  1006. str2=this.info.endTime2+":00"
  1007. }
  1008. API.profitDetailsExcelByAccounting({
  1009. stationId:this.stationObj.id,
  1010. startDate:str1,
  1011. endDate:str2,
  1012. }).then((resDown) => {
  1013. uni.hideLoading()
  1014. if(resDown.data){
  1015. window.location.href=resDown.data
  1016. }else{
  1017. uni.showToast({
  1018. title:"无文件下载"
  1019. })
  1020. }
  1021. }).catch(error => {
  1022. uni.showToast({
  1023. title:error
  1024. })
  1025. })
  1026. },
  1027. showTime2(name) {
  1028. if (!name) {
  1029. return ''
  1030. }
  1031. return parseUnixTime(newDate(name), '{y}年{m}月{d}日{h}:{i}');
  1032. },
  1033. showTime(name) {
  1034. if (!name) {
  1035. return ''
  1036. }
  1037. return name.replace('-', '年') + '月';
  1038. },
  1039. queryWithdrawInfo(bl) {
  1040. uni.showLoading({
  1041. title: "加载中",
  1042. mask: true,
  1043. })
  1044. if(bl){
  1045. this.endTime =parseUnixTime(new Date(),'{y}-{m}-{d} {h}:{i}:00')
  1046. }
  1047. var obj={
  1048. stationId: this.stationObj.id,
  1049. //startDate: ,
  1050. endDate: this.endTime,
  1051. yearMonth: this.thismonth,
  1052. applicationType: this.info.applicationType
  1053. }
  1054. if(this.info.startTime2){
  1055. obj.startDate=this.info.startTime2+":00"
  1056. }
  1057. if(this.id){
  1058. obj.recordId=this.id
  1059. }
  1060. API.queryAmountDetailByStation(obj).then((res) => {
  1061. this.isReady=true;
  1062. this.info = res.data.record;
  1063. this.isSecond= this.info.isSecond
  1064. this.thismonth=this.info.applicationMonth;
  1065. if(this.info.haveBill){
  1066. }
  1067. for(var i in this.stationList){
  1068. if(this.stationList[i].id==this.info.stationId){
  1069. this.stationObj = this.stationList[i];
  1070. this.stationObj.index=i
  1071. }
  1072. }
  1073. if(!this.isSecond&&this.id){
  1074. this.info.endTime2=this.endTime;
  1075. }else{
  1076. //this.endTime=this.info.endTime2;
  1077. }
  1078. this.id=this.info.id
  1079. if(this.info.invoiceRequired==null){
  1080. this.info.invoiceRequired="1"
  1081. this.info.invoiceType="3"
  1082. }
  1083. if(this.info.applicationType==1){
  1084. if(this.info.bearElecMoney==null){
  1085. this.info.bearElecMoney=1;
  1086. }
  1087. }
  1088. if(this.info.applicationType==2){
  1089. if(!this.info.electricityPrice){
  1090. this.isReady=false;
  1091. uni.showToast({
  1092. title: "请先核算[物业方结算]电价、实际电量"
  1093. })
  1094. }
  1095. }else{
  1096. if(this.info.withdrawalType==0||this.info.withdrawalType==1){
  1097. }else{
  1098. this.info.withdrawalType=0
  1099. }
  1100. }
  1101. var detailList = res.data.detailList;
  1102. this.detailList=[];
  1103. if(detailList==null){
  1104. detailList=[];
  1105. }
  1106. for(var i in detailList){
  1107. if(this.id){
  1108. this.detailList.push(detailList[i])
  1109. }else{
  1110. this.detailList.push({
  1111. itemName:detailList[i].itemName,
  1112. itemRemark:detailList[i].itemRemark,
  1113. itemAmount:'',
  1114. })
  1115. }
  1116. }
  1117. if(bl&&this.info.applicationType!=3){
  1118. this.queryAccountByStationIdAndType()
  1119. }
  1120. if(this.info.applicationType==3&&!this.info.applicationAmount){
  1121. var applicationAmount=(this.info.chargingProfitAmount+this.info.monthlyCardIncome)
  1122. if(this.info.applyAmount1){
  1123. applicationAmount-=this.info.applyAmount1
  1124. }
  1125. if(this.info.applyAmount2){
  1126. applicationAmount-=this.info.applyAmount2
  1127. }
  1128. this.info.applicationAmount=applicationAmount.toFixed(2)
  1129. this.applicationAmountTest=applicationAmount.toFixed(2);
  1130. }
  1131. uni.hideLoading()
  1132. }).catch(error => {
  1133. uni.showToast({
  1134. title: error
  1135. })
  1136. })
  1137. },
  1138. queryAccountByStationIdAndType(userId){
  1139. var bl=true;
  1140. var obj={
  1141. stationId: this.stationObj.id,
  1142. applicationType: this.info.applicationType
  1143. }
  1144. API.queryAccountByStationIdAndType(obj).then((res2)=>{
  1145. this.userList=res2.data.merchantAccountList
  1146. if(userId){
  1147. for(var i in this.userList){
  1148. if(this.userList[i].id==userId){
  1149. this.selectAccUser=this.userList[i];
  1150. bl=false
  1151. }
  1152. }
  1153. }
  1154. if(bl){
  1155. this.selectAccUser={}
  1156. if(this.userList.length>0){
  1157. this.selectAccUser=this.userList[0];
  1158. }
  1159. }
  1160. }).catch(error => {
  1161. uni.showToast({
  1162. title: error
  1163. })
  1164. })
  1165. },
  1166. getInfo(){
  1167. uni.showLoading({
  1168. title: "加载中",
  1169. mask: true,
  1170. })
  1171. API.getWithdrawInfoByAccounting(this.id).then((res) => {
  1172. this.info=res.data.record
  1173. this.id=this.info.id;
  1174. this.thismonth=this.info.applicationMonth
  1175. this.detailList=res.data.detailList
  1176. for(var i in this.stationList){
  1177. if(this.stationList[i].id==this.info.stationId){
  1178. this.stationObj = this.stationList[i];
  1179. this.stationObj.index=i
  1180. }
  1181. }
  1182. if(this.info.applicationType!=3){
  1183. this.queryAccountByStationIdAndType()
  1184. }else{
  1185. }
  1186. uni.hideLoading()
  1187. }).catch(error => {
  1188. uni.showToast({
  1189. title: error
  1190. })
  1191. })
  1192. },
  1193. getStationList() {
  1194. uni.showLoading({
  1195. title: "加载中",
  1196. mask: true,
  1197. })
  1198. API.stationList().then((res) => {
  1199. this.stationList = res.data.stationList;
  1200. if (this.stationList.length) {
  1201. this.stationObj = this.stationList[0];
  1202. this.stationObj.index=0
  1203. if(this.id){
  1204. this.getInfo()
  1205. }else{
  1206. this.queryWithdrawInfo(true)
  1207. }
  1208. }
  1209. uni.hideLoading()
  1210. }).catch(error => {
  1211. uni.showToast({
  1212. title: error
  1213. })
  1214. })
  1215. // API_common.findByCatalogName2({
  1216. // catalogName:"提现类型"
  1217. // }).then((res) => {
  1218. // this.applicationList= res.data.dataDictionaryList;
  1219. // // this.applicationList =dataDictionaryList.map((item)=>{
  1220. // // return {
  1221. // // name:item.name,
  1222. // // value:item.value
  1223. // // }
  1224. // // })
  1225. // uni.hideLoading()
  1226. // }).catch(error => {
  1227. // uni.showToast({
  1228. // title: error
  1229. // })
  1230. // })
  1231. },
  1232. switchBtn(e){
  1233. if (this.stationList[e[0]]) {
  1234. this.stationObj = this.stationList[e[0]];
  1235. this.stationObj.index=e[0]
  1236. this.info.startTime2="";
  1237. this.queryWithdrawInfo(true)
  1238. }
  1239. },
  1240. bindPickerChange1(e) {
  1241. //切换站点
  1242. if (this.stationList[e.detail.value]) {
  1243. this.stationObj = this.stationList[e.detail.value];
  1244. this.info.startTime2="";
  1245. this.queryWithdrawInfo(true)
  1246. }
  1247. },
  1248. bindPickerChange2(e) {
  1249. //切换是由
  1250. this.info.applicationType = this.applicationList[e.detail.value].value;
  1251. this.queryWithdrawInfo(true)
  1252. },
  1253. bindPickerChange3(e) {
  1254. //切换月份
  1255. this.thismonth = e.detail.value;
  1256. this.queryWithdrawInfo(true)
  1257. },
  1258. bindPickerChange4(e) {
  1259. var str=e.year+"-"+e.month+"-"+e.day+" "+e.hour+":"+e.minute+":00"
  1260. var str2=e.year+"-"+e.month+"-"+e.day+" "+e.hour+":"+e.minute
  1261. var startTime=newDate(this.info.startTime2)
  1262. var nowTime=new Date()
  1263. var result=newDate(str)
  1264. if(result>nowTime){
  1265. uni.showToast({
  1266. title: "抄表时间不可大于当前时间"
  1267. })
  1268. }else if(result<startTime){
  1269. uni.showToast({
  1270. title: "抄表时间不可小于开始时间"
  1271. })
  1272. }else{
  1273. this.endTime =str;
  1274. this.info.endTime2= str;
  1275. this.queryWithdrawInfo()
  1276. }
  1277. },
  1278. bindPickerChange6(e) {
  1279. var str=e.year+"-"+e.month+"-"+e.day+" "+e.hour+":"+e.minute+":00"
  1280. var str2=e.year+"-"+e.month+"-"+e.day+" "+e.hour+":"+e.minute
  1281. var endTime=newDate(this.info.endTime2)
  1282. var nowTime=new Date()
  1283. var result=newDate(str)
  1284. if(result>nowTime){
  1285. uni.showToast({
  1286. title: "抄表时间不可大于当前时间"
  1287. })
  1288. }else if(result>endTime){
  1289. uni.showToast({
  1290. title: "抄表时间不可大于结束时间"
  1291. })
  1292. }else{
  1293. //this.endTime =str;
  1294. this.info.startTime2= str2;
  1295. this.queryWithdrawInfo()
  1296. }
  1297. },
  1298. bindPickerChange5(e) {
  1299. this.selectAccUser = this.userList[e.detail.value];
  1300. },
  1301. change(index) {
  1302. this.current = index;
  1303. }
  1304. }
  1305. }
  1306. </script>
  1307. <style>
  1308. page {
  1309. background-color: #F7F7F7;
  1310. padding-bottom: 65px;
  1311. }
  1312. </style>
  1313. <style lang="scss" scoped>
  1314. .jputabs {
  1315. //position: absolute;
  1316. position: fixed;
  1317. background-color: #FFF;
  1318. width: 100%;
  1319. top: 45px;
  1320. z-index: 99;
  1321. }
  1322. .classFFF {
  1323. color: #607d8b !important;
  1324. }
  1325. .download {
  1326. color: #185AC6 !important;
  1327. }
  1328. .download5 {
  1329. width: 160rpx !important;
  1330. float: right;
  1331. color: #185AC6 !important;
  1332. }
  1333. ::v-deep.u-tab-bar {
  1334. background-color: #0076FF !important;
  1335. }
  1336. ::v-deep.u-tabs-scorll-flex {
  1337. width: 56%;
  1338. margin: 0 auto;
  1339. }
  1340. .withdraw-tips {
  1341. margin: 24px 16px;
  1342. p {
  1343. color: #999;
  1344. margin-top: 4px;
  1345. }
  1346. }
  1347. .uni-input {
  1348. font-size: 16px;
  1349. color: #333333;
  1350. }
  1351. .withdraw {
  1352. margin-bottom: 8px;
  1353. background-color: #fff;
  1354. padding: 0px 16px 0 16px;
  1355. .withdraw-head {
  1356. padding: 24rpx 0;
  1357. border-bottom: 1px solid #E5E7EA;
  1358. align-items: center;
  1359. position: relative;
  1360. .unit {
  1361. position: absolute;
  1362. top: 34rpx;
  1363. right: 0;
  1364. }
  1365. b {
  1366. font-weight: normal;
  1367. color: rgba(119, 119, 119, 100);
  1368. font-size: 36rpx;
  1369. }
  1370. span {
  1371. max-width: 60%;
  1372. min-width: 55%;
  1373. float: right;
  1374. text-align: left;
  1375. font-size: 32rpx;
  1376. color: #333333;
  1377. }
  1378. @media screen and (max-width:319px) {
  1379. span {
  1380. max-width: 60%;
  1381. min-width: 50%;
  1382. }
  1383. }
  1384. }
  1385. .withdraw-main {
  1386. border-top: 1px solid #f7f7f7;
  1387. border-bottom: 1px solid #f7f7f7;
  1388. margin: 16px 0;
  1389. padding: 16px 0;
  1390. .withdraw-input {
  1391. width: 63%;
  1392. margin-top: 64rpx;
  1393. display: flex;
  1394. align-items: center;
  1395. font-size: 56rpx;
  1396. ::v-deep.uni-input-input {
  1397. font-size: 28rpx;
  1398. }
  1399. }
  1400. }
  1401. .withdraw-foot {
  1402. display: flex;
  1403. align-items: center;
  1404. p {
  1405. color: #999
  1406. }
  1407. span {
  1408. color: #2979FF;
  1409. margin-left: 16px;
  1410. }
  1411. }
  1412. }
  1413. .more {
  1414. color: #B3B3B3;
  1415. font-size: 24px
  1416. }
  1417. .applyBtn {
  1418. padding: 0 16px;
  1419. display: flex;
  1420. background-color: #FFF;
  1421. font-size: 16px;
  1422. line-height: 44px;
  1423. height: 60px;
  1424. position: fixed;
  1425. bottom: 0;
  1426. left: 0;
  1427. right: 0;
  1428. .save {
  1429. width: 33.6%;
  1430. border-radius: 8px 0px 0px 8px;
  1431. background-color: rgba(0, 185, 98, 100);
  1432. color: rgba(255, 255, 255, 100);
  1433. }
  1434. .submit {
  1435. width: 66.4%;
  1436. border-radius: 0px 8px 8px 0px;
  1437. background-color: rgba(24, 90, 198, 100);
  1438. color: rgba(255, 255, 255, 100);
  1439. }
  1440. .submit2 {
  1441. background-color: rgba(24, 90, 198, 100);
  1442. color: rgba(255, 255, 255, 100);
  1443. }
  1444. }
  1445. ::v-deep.uni-input-input {
  1446. text-align: start !important;
  1447. }
  1448. .border-n {
  1449. //border: none !important;
  1450. }
  1451. .textarea {
  1452. background-color: rgba(242, 242, 242, 100);
  1453. margin-top: 12px;
  1454. line-height: 20px;
  1455. border-radius: 4px;
  1456. color: rgba(136, 136, 136, 100);
  1457. .uni-textarea-placeholder {
  1458. padding: 0 16rpx;
  1459. }
  1460. ::v-deep.uni-textarea-textarea {
  1461. width: 90%;
  1462. padding: 0 16rpx;
  1463. }
  1464. }
  1465. .withdrawHead{
  1466. padding: 15px;
  1467. font-size: 14px;
  1468. .red{
  1469. color: red;
  1470. }
  1471. }
  1472. .details {
  1473. margin: 16px;
  1474. border-radius: 8px;
  1475. background-color: #fff;
  1476. overflow: hidden;
  1477. }
  1478. .asterisk {
  1479. position: relative;
  1480. text {
  1481. position: absolute;
  1482. top: 0px;
  1483. left: -14rpx;
  1484. color: #EE3138;
  1485. }
  1486. }
  1487. .add {
  1488. text-align: center;
  1489. font-size: 18px;
  1490. color: #101010;
  1491. display: flex;
  1492. align-items: center;
  1493. justify-content: center;
  1494. .ri-add-circle-fill {
  1495. font-size: 24px;
  1496. color: #44B371;
  1497. margin: auto 0;
  1498. margin-right: 4rpx;
  1499. }
  1500. }
  1501. ::v-deep.u-input__input {
  1502. font-size: 16px !important
  1503. }
  1504. .uni-time{
  1505. font-size: 32rpx;
  1506. }
  1507. .uni-input {
  1508. display: flex;
  1509. justify-content: space-between;
  1510. }
  1511. .input-text {
  1512. white-space: nowrap;
  1513. overflow: hidden;
  1514. text-overflow: ellipsis;
  1515. }
  1516. </style>