btobarCheck.vue 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472
  1. <template>
  2. <div>
  3. <div class="mobile-header mobile-center-header">
  4. <a @click="goLastPage"><i class="iconfont icon-fanhui"></i></a>
  5. <p>应付对账
  6. <!--<span @click="addApCheck"><i class="icon-sousuo iconfont"></i>新增对账单</span>-->
  7. </p>
  8. <p class="en-name"><img :src="`/images/mobile/center/${user.data.enterprise && user.data.enterprise.uu ? 'en' : 'self'}.png`" alt="">{{currentEnName}}</p>
  9. </div>
  10. <div class="btobapCheck-wrapper">
  11. <div class="order-tab">
  12. <div class="order-tab-wrapper clearfix">
  13. <div class="fl active tab">B2B</div>
  14. <nuxt-link class="fl tab" to="/mobile/center/user/payCenter" tag="div" >
  15. 商城
  16. </nuxt-link>
  17. </div>
  18. </div>
  19. <!--<div class="order-nav">-->
  20. <!--<div :class="activeType === 'all' ? 'active': ''" @click="ChangeList('all')"><span>未对账</span></div>-->
  21. <!--<div :class="activeType === 'todo' ? 'active' : ''" @click="ChangeList('todo')"><span>待确认</span></div>-->
  22. <!--<div :class="activeType === 'done' ? 'active': ''" @click="ChangeList('done')"><span>已对账</span></div>-->
  23. <!--<div :class="activeType === 'end' ? 'active' : ''" @click="ChangeList('end')"><span>已作废</span></div>-->
  24. <!--</div>-->
  25. <div v-show="activeType !== 'all'">
  26. <div class="search-content mi-search-content">
  27. <input type="text" v-model="filterParams.keyword" @keyup.13="onFilter" placeholder="单据编号/客户名称/物料名称">
  28. <span @click="onFilter"><i class="iconfont icon-sousuo"></i></span>
  29. </div>
  30. <div class="btobapCheck-wrapper-scroll" id="btobapCheck-wrapper-scroll">
  31. <div class="filter-wrapper">
  32. <base-filter
  33. v-for="filterOption in filterOptions"
  34. :key="filterOption.selectOption"
  35. :selectItems="filterOption.selectItems"
  36. :defaultVal="filterOption.defaultVal"
  37. :selectOption="filterOption.selectOption"
  38. @selectAction="onSelectAction"
  39. @valueAction="onValueAction"
  40. :title="filterOption.title">
  41. </base-filter>
  42. </div>
  43. <div v-if="resourceList.content && resourceList.content.length > 0">
  44. <div class="invoice-btob-list" v-for="item in resourceList.content">
  45. <div class="invoice-btob-wrapper-top">
  46. <span class="read" v-if="!isUnread(item.id)" style="margin-right: 0.3rem">已读</span>
  47. <span class="noread" v-if="isUnread(item.id)" style="margin-right: 0.3rem">未读</span>
  48. <span style="margin-right: 0.3rem">{{item.recordDate | time}}</span>
  49. <span class="isPut" v-if="item.status">已提交</span>
  50. <span class="noPut" v-else>未提交</span>
  51. </div>
  52. <div class="invoice-btob-wrapper-middle">
  53. <div class="invoice-btob-wrapper-middle-title">{{item.vendorName}}</div>
  54. <div @click="lookDetails(item.id)"><span>单据编号:</span><a>{{item.code}}</a></div>
  55. </div>
  56. <div class="invoice-btob-wrapper-content">
  57. <div><span>对账期间:</span>{{item.beginDate | time}} - {{item.endDate | time}}</div>
  58. <div><span>对账金额:</span>{{isUser ? '-' : item.checkAmount}}</div>
  59. <div><span>明细条目:</span>{{item.items && item.items.length}}</div>
  60. <div><span>对账人:</span>{{item.recorder}}</div>
  61. <!--<div><span>商品总数:</span>{{item.getTotalProd}}</div>-->
  62. <!--<div><span>对账结果:</span>{{item.checkStatus}}</div>-->
  63. </div>
  64. </div>
  65. </div>
  66. <empty-status
  67. v-else
  68. :text="'暂无对账信息'"
  69. :showLink="false"
  70. ></empty-status>
  71. <pull-up :fixId="'btobapCheck-wrapper-scroll'" :allPage="allPage" :page="filterParams.page" @pullUpAction="onPullUpAction"></pull-up>
  72. </div>
  73. </div>
  74. <div v-show="activeType === 'all'">
  75. <div class="search-content mi-search-content">
  76. <input type="text" v-model="filterParams.keyword" @keyup.13="onFilter" placeholder="客户名称">
  77. <span @click="onFilter"><i class="iconfont icon-sousuo"></i></span>
  78. </div>
  79. <div class="timeLine-wrapper">
  80. <div class="inline-block left" @click="addMonth('out', 'outTimeMonth', -1)">
  81. <i class="iconfont icon-xiangzuo" style="font-size: 0.3rem"></i>
  82. </div>
  83. <div class="inline-block timeLine" style="text-indent: 0.12rem" @click="ShowMonthChoose('out', 'outTimeMonth')">{{outTimeMonth}}<i class="iconfont icon-arrow-down" style="font-size: 0.3rem"></i></div>
  84. <div class="inline-block right" @click="addMonth('out', 'outTimeMonth', 1)" v-show="MouthOutShow">
  85. <i class="iconfont icon-xiangyou" style="font-size: 0.3rem"></i>
  86. </div>
  87. </div>
  88. <div class="btobapCheck-wrapper-scroll btobapCheck-wrapper-scroll2" id="btobapCheck-wrapper-scroll2">
  89. <div v-if="resourceList.content && resourceList.content.length > 0">
  90. <div class="invoice-btob-list" v-for="item in resourceList.content">
  91. <div class="invoice-btob-wrapper-middle" style="border-top: 0">
  92. <div class="invoice-btob-wrapper-middle-title">{{item.vendorEnterprise && item.vendorEnterprise.enName}}</div>
  93. </div>
  94. <div class="invoice-btob-wrapper-middle">
  95. <div v-if="item.thisMonthCount && item.thisMonthCount.length > 0">
  96. <span class="inline-block" style="vertical-align: top">本月应付:</span>
  97. <div class="inline-block" style="vertical-align: top" >
  98. <div v-for="count in item.thisMonthCount" v-if="count.amount > 0">
  99. <span>{{count.currency}}{{count.amount | computeNum(2)}}</span>
  100. </div>
  101. </div>
  102. </div>
  103. <div v-else><span>本月应付:0</span></div>
  104. <div v-if="item.thisMonthDoneCount && item.thisMonthDoneCount.length > 0">
  105. <span class="inline-block" style="vertical-align: top">本月已对:</span>
  106. <div class="inline-block" style="vertical-align: top" >
  107. <div v-for="count in item.thisMonthDoneCount" v-if="count.amount > 0">
  108. <span>{{count.currency}}{{count.amount | computeNum(2)}}</span>
  109. </div>
  110. </div>
  111. </div>
  112. <div v-else><span>本月已对:0</span></div>
  113. <div v-if="item.thisMonthTodoCount && item.thisMonthTodoCount.length > 0">
  114. <span class="inline-block" style="vertical-align: top">本月未对:</span>
  115. <div class="inline-block" style="vertical-align: top" >
  116. <div v-for="count in item.thisMonthTodoCount" v-if="count.amount > 0">
  117. <span>{{count.currency}}{{count.amount | computeNum(2)}}</span>
  118. </div>
  119. </div>
  120. </div>
  121. <div v-else><span>本月未对:0</span></div>
  122. <!--<div v-if="item.apCheckAmounts && item.apCheckAmounts.length > 0">-->
  123. <!--<span class="inline-block" style="vertical-align: top">本月已付:</span>-->
  124. <!--<div class="inline-block" style="vertical-align: top" >-->
  125. <!--<div v-for="count in item.apCheckAmounts" v-if="count.amount > 0">-->
  126. <!--<span>{{count.currency}}{{count.amount | computeNum(2)}}</span>-->
  127. <!--</div>-->
  128. <!--</div>-->
  129. <!--</div>-->
  130. <!--<div v-else><span>本月已付:0</span></div>-->
  131. <div v-if="item.totalCount && item.totalCount.length > 0">
  132. <span class="inline-block" style="vertical-align: top">应付总额:</span>
  133. <div class="inline-block" style="vertical-align: top" >
  134. <div v-for="count in item.totalCount" v-if="count.amount > 0">
  135. <span>{{count.currency}}{{count.amount | computeNum(2)}}</span>
  136. </div>
  137. </div>
  138. </div>
  139. <div v-else><span>应付总额:0</span></div>
  140. </div>
  141. <div class="invoice-btob-wrapper-middle" @click="showApcheckList(item)">
  142. <div class="middle_btn">明细</div>
  143. </div>
  144. </div>
  145. </div>
  146. <empty-status
  147. v-else
  148. :text="'暂无对账信息'"
  149. :showLink="false"
  150. ></empty-status>
  151. <pull-up :fixId="'btobapCheck-wrapper-scroll2'" :allPage="allPage" :page="filterParams.page" @pullUpAction="onPullUpAction"></pull-up>
  152. </div>
  153. </div>
  154. </div>
  155. <modal-wrapper :title="isShowApcheckList.enName" :showModal="isShowApcheckList.show" @closeAction="deleteCheck" :bgColor="'#f1f3f6'" :hasFooter="true">
  156. <div slot="header" class="modal-h">
  157. <div class="modal-h-top">
  158. <!--<span class="item inline-block" @click="checkAll()" v-show="!isShowApcheckList.showApcheck">-->
  159. <!--<label class="mobile-cart-check" :class="{active: !isCheckAll}"></label>-->
  160. <!--</span>-->
  161. <span class="inline-block overflowhidden">
  162. 应付供应商:{{isShowApcheckList.enName}}
  163. </span>
  164. </div>
  165. <div class="timeLine-wrapper clearfix">
  166. <div v-show="!isShowApcheckList.showApcheck">
  167. <div style="margin-left: 0.5rem">
  168. <div class="inline-block left" @click="addMonth('inside', '', -1)">
  169. <i class="iconfont icon-xiangzuo" style="font-size: 0.3rem"></i>
  170. </div>
  171. <div class="inline-block timeLine" style="text-indent: 0.12rem" @click="ShowMonthChoose('inside')">{{isShowApcheckList.thisMonth}}<i class="iconfont icon-arrow-down" style="font-size: 0.3rem"></i></div>
  172. <div class="inline-block right" @click="addMonth('inside', '', 1)" v-show="MouthinShow">
  173. <i class="iconfont icon-xiangyou" style="font-size: 0.3rem"></i>
  174. </div>
  175. </div>
  176. <div style="clear:both"></div>
  177. <base-filter
  178. ref="baseFilter"
  179. v-for="filterOption in ApcheckfilterOptions"
  180. :ShowTitle="ShowTitle"
  181. :key="filterOption.selectOption"
  182. :selectItems="filterOption.selectItems"
  183. :defaultVal="filterOption.defaultVal"
  184. :selectOption="filterOption.selectOption"
  185. @selectAction="ApcheckonSelectAction"
  186. @valueAction="ApcheckonValueAction"
  187. :title="filterOption.title">
  188. </base-filter>
  189. </div>
  190. <div v-show="isShowApcheckList.showApcheck" style="line-height: 1.4rem;text-align: center">
  191. {{isShowApcheckList.startTime}} ~ {{isShowApcheckList.endTime}}
  192. </div>
  193. </div>
  194. <div style="height: 0.2rem; width: 100%;"></div>
  195. <!--<div class="timeLine" @click="ShowMonthChoose('inside')" style="text-indent: 0.12rem">{{isShowApcheckList.thisMonth}}<i class="iconfont icon-arrow-down" style="font-size: 0.3rem"></i></div>-->
  196. <!--<input type="month" v-model="isShowApcheckList.thisMonth" @change="showApcheckList()"/>-->
  197. </div>
  198. <div class="btobapCheck-modal">
  199. <div class="choosescreen-result">
  200. <div v-if="isShowApcheckList.list.length > 0">
  201. <div class="clearfix choosescreen-result-list" v-for="(item, index) in isShowApcheckList.list">
  202. <div>
  203. <div class="choosescreen-result-list-content">
  204. <div style="border-bottom: 1px solid #D3D3D3;padding-bottom: 0.2rem">
  205. <!--<span class="item inline-block" @click="checkItem(item, index)" v-show="!isShowApcheckList.showApcheck">-->
  206. <!--<label class="mobile-cart-check" :class="{active: item.check}"></label>-->
  207. <!--</span>-->
  208. <div class="inline-block" style="margin-left: 0.15rem">
  209. <div class="OverHidden">采购单:<span>{{item.ordercode}}</span></div>
  210. <div class="OverHidden">发货单:<span>{{item.sendcode}}</span></div>
  211. <div class="OverHidden">验收单:<span>{{item.inoutno}}</span></div>
  212. <!--<div class="OverHidden">序号:<span>{{index + 1}}</span></div>-->
  213. <!--<div class="OverHidden">类型:<span>{{item.piclass}}</span></div>-->
  214. <!--<div class="OverHidden">单据日期:<span>{{item.pidate | time}}</span></div>-->
  215. </div>
  216. </div>
  217. <div style="padding-top: 0.2rem">
  218. <!--<span class="item inline-block" style="opacity: 0" v-show="!isShowApcheckList.showApcheck">-->
  219. <!--<label class="mobile-cart-check"></label>-->
  220. <!--</span>-->
  221. <div class="inline-block" style="margin-left: 0.15rem">
  222. <div class="OverHidden">物料名称:<span>{{item.prodtitle}}</span></div>
  223. <div class="OverHidden">规格型号:<span>{{item.prodspec}}</span></div>
  224. <div class="OverHidden">发货数量:<span>{{item.qty}}</span></div>
  225. <div class="OverHidden">验收数量:<span>{{item.thischeckqty}}</span></div>
  226. <div class="OverHidden">单价:<span>{{item.currency}}{{item.orderprice}}</span></div>
  227. <!--<div class="OverHidden">发货单:<span>{{item.sendcode}}</span></div>-->
  228. <div class="OverHidden">税率:<span>{{item.taxrate}}%</span></div>
  229. <div class="OverHidden">对账人:<span>{{item.recorder}}</span></div>
  230. <!--<div class="OverHidden">客户料号:<span>{{item.prodcode}}</span></div>-->
  231. <!--<div class="OverHidden">金额:<span>{{}}</span></div>-->
  232. </div>
  233. </div>
  234. </div>
  235. <div class="clearfix" style="border-top:1px solid #D9D9D9;padding: 0 0.15rem;line-height: 0.8rem" >
  236. <div class="fl" style="font-size: 0.26rem">小计:</div>
  237. <div class="fr" style="color: #FF3208;font-size: 0.26rem">{{item.nowmoney | computeNum(2)}}</div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. <empty-status
  243. v-else
  244. :text="'暂无对账信息'"
  245. :showLink="false"
  246. ></empty-status>
  247. </div>
  248. </div>
  249. <div slot="footer" class="footerBtn clearfix">
  250. <!--<span class="item inline-block" @click="checkAll()" v-show="!isShowApcheckList.showApcheck">-->
  251. <!--<label class="mobile-cart-check" :class="{active: !isCheckAll}"></label>全选-->
  252. <!--</span>-->
  253. <!--<div class="fr bbgoresult" @click="goTopayfor" v-show="!isShowApcheckList.showApcheck">对账</div>-->
  254. <div class="fr" style="margin-right: 0.2rem" >合计:<a style="color: #001408;">{{allMoney | computeNum}}</a></div>
  255. <!--<div class="fl" style="margin-left: 0.2rem" v-show="isShowApcheckList.showApcheck">合计:<a style="color: #001408;">{{allMoney}}</a></div>-->
  256. <!--<div class="fr bbgoresult" v-show="isShowApcheckList.showApcheck" @click="submitCheck">提交</div>-->
  257. <!--<div class="fr bbgoresult cancel" v-show="isShowApcheckList.showApcheck" @click="deleteCheck">取消</div>-->
  258. </div>
  259. </modal-wrapper>
  260. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  261. <div class="fixedPicker" v-show="isShowMonthChoose">
  262. <picker :slots="slots" @change="onValuesChange" :showToolbar="true" ref="picker">
  263. <div class="titls">选择当前时间</div>
  264. <div class="leftBtn" @click="isShowMonthChoose=false">取消</div>
  265. <div class="rightBtn" @click="resultMonth">确定</div>
  266. </picker>
  267. </div>
  268. </div>
  269. </template>
  270. <script>
  271. import { Picker } from 'mint-ui'
  272. import { ModalWrapper, BaseFilter } from '~components/mobile/base'
  273. import { PullUp, EmptyStatus, RemindBox } from '~components/mobile/common'
  274. function years() {
  275. let _d = new Date()
  276. let _year = Number(_d.getFullYear())
  277. let arr = []
  278. let num = 2000
  279. for (let i = 2000; i < _year; i++) {
  280. num++
  281. arr.push(num + '年')
  282. }
  283. return arr
  284. }
  285. function getMonth() {
  286. let sdateTo = new Date()
  287. // console.log(sdateTo.getMonth() - 1)
  288. return sdateTo.getMonth() - 1
  289. }
  290. function getYear() {
  291. let num = 2000
  292. let sdateTo = new Date()
  293. let _year = sdateTo.getFullYear()
  294. for (let i = 0; i < 99; i++) {
  295. num++
  296. if (num === Number(_year)) {
  297. num = i
  298. break
  299. }
  300. }
  301. return num
  302. }
  303. export default {
  304. layout: 'mobileNoHeader',
  305. middleware: 'authenticated',
  306. data() {
  307. return {
  308. MouthinShow: true,
  309. MouthOutShow: true,
  310. ShowTitle: false,
  311. collectResult: '',
  312. timeoutCount: 0,
  313. isShowMonthChoose: false,
  314. slots: [
  315. {
  316. flex: 1,
  317. values: years(),
  318. className: 'slot1',
  319. textAlign: 'center',
  320. defaultIndex: getYear()
  321. }, {
  322. divider: true,
  323. content: '-',
  324. className: 'slot2'
  325. }, {
  326. flex: 1,
  327. values: ['01月', '02月', '03月', '04月', '05月', '06月', '07月', '08月', '09月', '10月', '11月', '12月'],
  328. className: 'slot3',
  329. textAlign: 'center',
  330. defaultIndex: getMonth()
  331. }
  332. ],
  333. activeType: 'all',
  334. filterParams: {
  335. keyword: '',
  336. page: 1,
  337. count: 10
  338. },
  339. filterOptions: [
  340. {
  341. title: '交易时间',
  342. selectOption: 'date',
  343. selectItems: [{
  344. key: '30天',
  345. val: 1
  346. }, {
  347. key: '90天',
  348. val: 2
  349. }, {
  350. key: '180天',
  351. val: 3
  352. }, {
  353. key: '自定义',
  354. val: 4
  355. }],
  356. defaultVal: 1
  357. }
  358. ],
  359. resourceList: {
  360. content: []
  361. },
  362. isUser: false,
  363. unreadCode: [],
  364. showModal: false,
  365. dateObj: {},
  366. screenObj: {},
  367. outTimeMonth: '',
  368. isShowApcheckList: {
  369. show: false,
  370. enName: '',
  371. thisMonth: '',
  372. list: [],
  373. showApcheck: false,
  374. id: '',
  375. startTime: '',
  376. endTime: '',
  377. objTime: {}
  378. },
  379. ApcheckfilterOptions: [
  380. {
  381. title: '',
  382. selectOption: 'date',
  383. selectItems: [{
  384. key: '自定义',
  385. val: 4
  386. }],
  387. defaultVal: 1
  388. }
  389. ],
  390. ShowApcheckChooseTime: false
  391. }
  392. },
  393. created() {
  394. this.$http.get('/btob/account/role/isUser').then(res => {
  395. this.isUser = res.data.isUser
  396. })
  397. this.getUnread()
  398. let sdateTo = new Date()
  399. this.isShowApcheckList.thisMonth = sdateTo.getFullYear() + '-' + sdateTo.getMonth()
  400. this.outTimeMonth = sdateTo.getFullYear() + '-' + sdateTo.getMonth()
  401. },
  402. // mounted() {
  403. // this.$nextTick(() => {
  404. // this.$refs.picker.change()
  405. // })
  406. // },
  407. methods: {
  408. onValuesChange(picker, value) {
  409. // console.log(picker.getValues())
  410. if (!this.$value) {
  411. picker.setSlotValue(0, '2018年')
  412. picker.setSlotValue(1, '11月')
  413. this.$picker = picker
  414. }
  415. let _ns = value[0].replace('年', '')
  416. let _my = value[1].replace('月', '')
  417. this.$value = _ns + '-' + _my
  418. },
  419. // 选择月份完毕
  420. resultMonth() {
  421. this.isShowMonthChoose = false
  422. if (this.$monthType === 'out') {
  423. let _time2 = this.computedTime(this.$value + '-01')
  424. let _d = this.computedTime(new Date())
  425. if (_time2.getTime() > _d.getTime()) {
  426. this.setRemindText('所选对账日期不能超过当前时间')
  427. return
  428. }
  429. let _sp = new Date()
  430. if (_time2.getTime() >= _sp.getTime()) {
  431. this.MouthOutShow = false
  432. } else {
  433. this.MouthOutShow = true
  434. }
  435. this.outTimeMonth = this.$value
  436. this.filterParams.page = 1
  437. this.setSelect('', '', true)
  438. } else {
  439. let _time2 = this.computedTime(this.$value + '-01')
  440. let _d = this.computedTime(new Date())
  441. if (_time2.getTime() > _d.getTime()) {
  442. this.setRemindText('所选对账日期不能超过当前时间')
  443. return
  444. }
  445. let _sp = new Date()
  446. if (_time2.getTime() > _sp.getTime()) {
  447. this.MouthinShow = false
  448. } else {
  449. this.MouthinShow = true
  450. }
  451. this.$monthClick = true
  452. this.isShowApcheckList.thisMonth = this.$value
  453. this.ShowApcheckChooseTime = false
  454. this.$refs.baseFilter[0].setSelect(1)
  455. this.isShowApcheckList.show = true
  456. this.getApcheckDetailsinfo()
  457. }
  458. },
  459. // 立即对账
  460. addApCheck() {
  461. this.showModal = true
  462. },
  463. setRemindText: function (str) {
  464. this.collectResult = str
  465. this.timeoutCount++
  466. },
  467. setDate (type) {
  468. if (this.dateObj[type]) {
  469. // 初始化为00:00:00
  470. this.dateObj[type] = new Date(this.dateObj[type]).getTime() - 8 * 60 * 60 * 1000
  471. // TODO
  472. if (this.dateObj.fromDate && this.dateObj.toDate && this.dateObj.fromDate > this.dateObj.toDate) {
  473. if (type === 'fromDate') {
  474. this.setRemindText('起始时间不能大于结束时间')
  475. } else {
  476. this.setRemindText('结束时间不能小于起始时间')
  477. }
  478. this.dateObj[type] = null
  479. }
  480. // else {
  481. // if (this.dateObj.fromDate && this.dateObj.toDate && this.dateObj.fromDate === this.dateObj.toDate) {
  482. // // 23:59:59
  483. // this.dateObj.toDate += 23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000
  484. // }
  485. // }
  486. // 23:59:59
  487. if (this.dateObj.toDate && type === 'toDate') {
  488. this.dateObj.toDate += (23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000)
  489. }
  490. } else {
  491. this.dateObj[type] = null
  492. }
  493. },
  494. toChooseUser() {
  495. console.log('选择客户')
  496. },
  497. onPullUpAction () {
  498. this.filterParams.page++
  499. this.setSelect(this.$selectObj.key, this.$selectObj.value, false)
  500. },
  501. getUnread() {
  502. this.$http.get('/sale/apCheck/unread').then(res => {
  503. this.unreadCode = res.data.content
  504. })
  505. },
  506. lookDetails(id) {
  507. console.log('前往详情并且设置为已读')
  508. // if (!this.isUnread(id)) { } else {
  509. // let sourceId = []
  510. // sourceId.push(id)
  511. // this.$http.post('/sale/tender/setRead', sourceId).then(res => {
  512. // this.getUnread()
  513. // })
  514. // }
  515. },
  516. isUnread: function (id) {
  517. for (let i in this.unreadCode) {
  518. if (id === this.unreadCode[i]) {
  519. return true
  520. }
  521. }
  522. },
  523. ChangeList(tp) {
  524. this.activeType = tp
  525. this.filterParams.page = 1
  526. this.setSelect(this.$selectObj.key, this.$selectObj.value, true)
  527. },
  528. onFilter() {
  529. this.filterParams.page = 1
  530. this.setSelect(this.$selectObj.key, this.$selectObj.value, true)
  531. },
  532. onSelectAction(selectObj) {
  533. this.$selectObj = selectObj
  534. this.setSelect(selectObj.key, selectObj.value, true)
  535. },
  536. onValueAction(selectObj) {
  537. this.$selectObj = selectObj
  538. this.setSelect(selectObj.key, selectObj.value, true)
  539. },
  540. ApcheckonSelectAction(selectObj) {
  541. if (this.$monthClick) return
  542. this.ShowApcheckChooseTime = true
  543. this.isShowApcheckList.objTime = selectObj
  544. this.getApcheckDetailsinfo(selectObj.key, selectObj.value)
  545. },
  546. ApcheckonValueAction(selectObj) {
  547. // if (this.$monthClick) return
  548. // this.isShowApcheckList.objTime = selectObj
  549. // this.getApcheckDetailsinfo(selectObj.key, selectObj.value)
  550. },
  551. // B2B未对账
  552. // NotapCheck () {
  553. // console.log('未对账')
  554. // },
  555. // 未对账详情
  556. showApcheckList(item) {
  557. this.isShowApcheckList.show = true
  558. this.isShowApcheckList.vendorUU = item ? item.vendorEnterprise.uu : this.isShowApcheckList.vendorUU
  559. this.isShowApcheckList.enName = item ? item.vendorEnterprise.enName : this.isShowApcheckList.enName
  560. this.isShowApcheckList.thisMonth = this.outTimeMonth
  561. this.getApcheckDetailsinfo()
  562. },
  563. // 未对账详情获取数据
  564. getApcheckDetailsinfo (...objTime) {
  565. if (!this.isShowApcheckList.show) return
  566. let _params = {
  567. params: {
  568. checkDate: this.isShowApcheckList.thisMonth,
  569. vendorUU: this.isShowApcheckList.vendorUU
  570. // suuorname: this.isShowApcheckList.enName
  571. }
  572. }
  573. // 是否打开自定义时间选项 且
  574. if (this.ShowApcheckChooseTime && !this.$monthClick) {
  575. // let _fromDate = new Date(this.outTimeMonth + '-01 00:00:00').getTime()
  576. // let _d = this.computedTime(this.isShowApcheckList.thisMonth).getTime()
  577. _params = {
  578. params: {
  579. fromDate: objTime[1].fromDate,
  580. endDate: objTime[1].toDate,
  581. vendorUU: this.isShowApcheckList.vendorUU
  582. // suuorname: this.isShowApcheckList.enName
  583. }
  584. }
  585. }
  586. this.$http.get('/sale/arCheck/getAllByKeywords', _params).then(res => {
  587. res.data.details.forEach(item => {
  588. item.check = true
  589. })
  590. this.isShowApcheckList.enName = res.data.vendorName
  591. this.$monthClick = false
  592. this.isShowApcheckList.list = res.data.details
  593. this.$nextTick(() => {
  594. this._initscroll()
  595. })
  596. })
  597. },
  598. // 对账全选
  599. checkAll() {
  600. let fl = true
  601. if (this.isCheckAll === 0) {
  602. fl = false
  603. }
  604. this.isShowApcheckList.list.forEach(item => {
  605. item.check = fl
  606. })
  607. },
  608. checkItem(item, index) {
  609. if (item.check) {
  610. item.check = false
  611. } else {
  612. this.$set(this.isShowApcheckList.list[index], 'check', true)
  613. }
  614. },
  615. // 对账按钮
  616. goTopayfor() {
  617. let apCheck = {
  618. custUu: '',
  619. custName: '',
  620. enUu: '',
  621. apDate: '',
  622. beginDate: '',
  623. endDate: '',
  624. checkStatus: '未对账',
  625. checkAmount: 0,
  626. currency: '',
  627. rate: '',
  628. items: [],
  629. taxrate: ''
  630. }
  631. // 保存来源单据相关信息
  632. let sourceInfos = []
  633. // 所允许的本次对账最大最小数量
  634. this.isShowApcheckList.list.maxThisCheckQty = 0
  635. this.isShowApcheckList.list.minThisCheckQty = 0
  636. let sameCust = true
  637. let validQty = true
  638. let _list = []
  639. this.isShowApcheckList.list.forEach((check) => {
  640. // 保存应收对账单明细行数据
  641. let item = {
  642. inoutno: '',
  643. inoutnodetno: '',
  644. orderCode: '',
  645. orderClass: '',
  646. orderDetno: '',
  647. price: '',
  648. checkQty: '',
  649. amount: '',
  650. sourceId: '',
  651. sourceTable: '',
  652. oldYCheckQty: '',
  653. status: 0,
  654. receiveCode: '',
  655. receiveName: '',
  656. prodCode: '',
  657. prodTitle: '',
  658. prodUnit: '',
  659. prodSpec: '',
  660. taxrate: '',
  661. sendcode: '',
  662. whname: '',
  663. custUserUU: ''
  664. }
  665. // 应收对账单明细行来源表信息
  666. let sourceInfo = {
  667. sourceId: '',
  668. sourceTable: '',
  669. newYCheckQty: ''
  670. }
  671. // 此次对账后新的已转数
  672. if (check.check === true && !check.haveChecked) {
  673. _list.push(check)
  674. apCheck.custName = check.custname
  675. apCheck.enUu = check.enuu
  676. apCheck.checkAmount += (check.thischeckqty || 0) * (check.orderprice || 0)
  677. apCheck.apDate = check.pidate
  678. apCheck.rate = check.rate
  679. // 必须是同一家客户才能生成对账单,否则提示错误
  680. if (apCheck.custUu === '') {
  681. apCheck.custUu = check.custuu
  682. } else if (apCheck.custUu !== check.custuu) {
  683. sameCust = false
  684. this.setRemindText('请选择同一家客户')
  685. }
  686. // 必须是相同币别才能生成对账单,否则提示错误
  687. if (apCheck.currency === '') {
  688. apCheck.currency = check.currency
  689. } else if (apCheck.currency !== check.currency) {
  690. sameCust = false
  691. this.setRemindText('请选择同一种币别')
  692. }
  693. let re = /^[0-9]+.?[0-9]*$/
  694. // 必须是相同税率才能生成对账单,否则提示错误
  695. if (!re.test(apCheck.taxrate)) {
  696. // if (!angular.isNumber(apCheck.taxrate)) {
  697. apCheck.taxrate = check.taxrate
  698. } else if (apCheck.taxrate !== check.taxrate) {
  699. sameCust = false
  700. this.setRemindText('请选择相同的税率')
  701. }
  702. // 本次对账数量必须小于总对账数量
  703. if (check.qty > 0) {
  704. this.isShowApcheckList.list.maxThisCheckQty = check.qty
  705. this.isShowApcheckList.list.minThisCheckQty = 0
  706. if (check.qty - (check.ycheckqty || 0) < check.thischeckqty || check.thischeckqty < 0 || check.thischeckqty === 0) {
  707. validQty = false
  708. this.setRemindText('本次对账数量,填写有误!')
  709. }
  710. } else if (check.qty < 0) {
  711. this.isShowApcheckList.list.maxThisCheckQty = 0
  712. this.isShowApcheckList.list.minThisCheckQty = check.qty
  713. if (((-check.qty) - (-check.ycheckqty) < (-check.thischeckqty)) || check.thischeckqty > 0 || check.thischeckqty === 0) {
  714. validQty = false
  715. this.setRemindText('本次对账数量,填写有误!')
  716. }
  717. }
  718. // todo
  719. if (this.ShowApcheckChooseTime) {
  720. let _time1 = this.isShowApcheckList.objTime.value.fromDate
  721. _time1 = _time1.replace(/-/g, '/')
  722. let _start = new Date(_time1)
  723. let _time2 = this.isShowApcheckList.objTime.value.fromDate
  724. _time2 = _time2.replace(/-/g, '/')
  725. let _end = new Date(_time2)
  726. // 获取筛选时间的开始时间为对账的开始时间
  727. apCheck.beginDate = _start.getTime()
  728. // 获取筛选的截止时间为对账的截止时间
  729. apCheck.endDate = _end.getTime()
  730. } else {
  731. this.isShowApcheckList.startTime = this.isShowApcheckList.thisMonth + '-01'
  732. let _time1 = this.isShowApcheckList.startTime
  733. _time1 = _time1.replace(/-/g, '/')
  734. let _d = new Date(_time1)
  735. _d.setDate(1)
  736. _d.setMonth(_d.getMonth() + 1)
  737. _d.setDate(_d.getDate() - 1)
  738. // 获取筛选时间的开始时间为对账的开始时间
  739. let _time2 = this.isShowApcheckList.startTime
  740. _time2 = _time2.replace(/-/g, '/')
  741. apCheck.beginDate = new Date(_time2).getTime()
  742. // 获取筛选的截止时间为对账的截止时间
  743. apCheck.endDate = _d.getTime()
  744. }
  745. // 应收对账单明细行数据
  746. item.orderCode = check.ordercode
  747. item.orderClass = check.piclass
  748. item.orderDetno = check.orderdetno
  749. item.price = check.orderprice
  750. item.checkQty = check.thischeckqty
  751. item.amount = (check.thischeckqty || 0) * (check.orderprice || 0)
  752. item.sourceId = check.sourceid
  753. item.sourceTable = check.sourcetable
  754. item.oldYCheckQty = check.ycheckqty
  755. item.prodCode = check.prodcode
  756. item.prodTitle = check.prodtitle
  757. item.prodSpec = check.prodspec
  758. item.prodUnit = check.produnit
  759. item.inoutno = check.inoutno
  760. item.inoutnodetno = check.detno
  761. item.taxrate = check.taxrate
  762. item.receiveCode = check.receivecode
  763. item.receiveName = check.receivename
  764. item.sendcode = check.sendcode
  765. item.whname = check.whname
  766. item.custUserUU = check.custuseruu
  767. // 来源表相关信息
  768. sourceInfo.sourceid = check.sourceid
  769. sourceInfo.sourcetable = check.sourcetable
  770. sourceInfo.newYCheckQty = ((check.ycheckqty || 0) + check.thischeckqty)
  771. sourceInfos.push(sourceInfo)
  772. apCheck.items.push(item)
  773. // haveSelected = true
  774. // 如果是同一家客户,生成对账单的同时,关闭模态框
  775. }
  776. })
  777. if (sameCust && validQty) {
  778. this.isShowApcheckList.list = _list
  779. this.saveApCheck(apCheck)
  780. }
  781. },
  782. // 对账提交
  783. saveApCheck(apCheck) {
  784. if (apCheck.items.length === 0) {
  785. this.setRemindText('请先选择需要对账的数据')
  786. } else {
  787. this.$http.post('/sale/apCheck/operation/save', apCheck).then(res => {
  788. this.setRemindText('生成应收对账成功')
  789. this.isShowApcheckList.id = res.data.id
  790. this.isShowApcheckList.showApcheck = true
  791. if (this.ShowApcheckChooseTime) {
  792. let _time1 = this.isShowApcheckList.objTime.value.fromDate
  793. _time1 = _time1.replace(/-/g, '/')
  794. let _start = new Date(_time1)
  795. let _time2 = this.isShowApcheckList.objTime.value.toDate
  796. _time2 = _time1.replace(/-/g, '/')
  797. let _end = new Date(_time2)
  798. this.isShowApcheckList.startTime = _start.getFullYear() + '-' + (_start.getMonth() + 1) + '-' + _start.getDate()
  799. this.isShowApcheckList.endTime = _end.getFullYear() + '-' + (_end.getMonth() + 1) + '-' + _end.getDate()
  800. } else {
  801. this.isShowApcheckList.startTime = this.outTimeMonth + '-01'
  802. let _d = this.computedTime(this.isShowApcheckList.startTime)
  803. this.isShowApcheckList.endTime = _d.getFullYear() + '-' + (_d.getMonth() + 1) + '-' + _d.getDate()
  804. }
  805. this.ShowApcheckChooseTime = false
  806. }, err => {
  807. this.setRemindText('生成对账单失败')
  808. })
  809. }
  810. },
  811. // 提交对账单
  812. submitCheck() {
  813. this.$http.post('sale/apCheck/operation/updateStatus?id=' + this.isShowApcheckList.id).then(res => {
  814. this.setRemindText('新增成功')
  815. this.isShowApcheckList.showApcheck = false
  816. this.isShowApcheckList.show = false
  817. this.isShowApcheckList.id = ''
  818. })
  819. },
  820. // 删除对账单
  821. deleteCheck() {
  822. if (this.isShowApcheckList.id === '') {
  823. this.isShowApcheckList.showApcheck = false
  824. this.isShowApcheckList.show = false
  825. this.isShowApcheckList.id = ''
  826. return
  827. }
  828. this.$http.post('/sale/apCheck/operation/deleteApCheck?id=' + this.isShowApcheckList.id, {}).then(res => {
  829. this.isShowApcheckList.showApcheck = false
  830. this.isShowApcheckList.show = false
  831. this.isShowApcheckList.id = ''
  832. let sourceInfos = []
  833. this.isShowApcheckList.list.forEach(item => {
  834. let sourceInfo = {
  835. sourceId: '',
  836. sourceTable: '',
  837. newYCheckQty: ''
  838. }
  839. sourceInfo.sourceId = item.sourceid
  840. sourceInfo.sourceTable = item.sourcetable
  841. sourceInfo.newYCheckQty = item.oldYCheckQty
  842. sourceInfos.push(sourceInfo)
  843. })
  844. this.$http.post('/sale/apCheck/update', sourceInfos).then(res => {})
  845. }, err => {
  846. this.setRemindText(err.response.data)
  847. })
  848. },
  849. // 月份+1
  850. addMonth(tp, key, val) {
  851. if (tp === 'inside') {
  852. let _sp = new Date()
  853. this.ShowApcheckChooseTime = false
  854. this.$monthClick = true
  855. let _d = this.computedTime(this.isShowApcheckList.thisMonth + '-01', val)
  856. let _m = Number(_d.getMonth() + 1) < 10 ? '0' + (_d.getMonth() + 1) : (_d.getMonth() + 1)
  857. this.isShowApcheckList.thisMonth = _d.getFullYear() + '-' + _m
  858. if (_d.getTime() >= _sp.getTime()) {
  859. this.MouthinShow = false
  860. } else {
  861. this.MouthinShow = true
  862. }
  863. this.$refs.baseFilter[0].setSelect(1)
  864. this.isShowApcheckList.show = true
  865. this.getApcheckDetailsinfo()
  866. } else {
  867. let _sp = new Date()
  868. let _d = this.computedTime(this[key] + '-01', val)
  869. let _m = Number(_d.getMonth() + 1) < 10 ? '0' + (_d.getMonth() + 1) : (_d.getMonth() + 1)
  870. this[key] = _d.getFullYear() + '-' + _m
  871. if (_d.getTime() >= _sp.getTime()) {
  872. this.MouthOutShow = false
  873. } else {
  874. this.MouthOutShow = true
  875. }
  876. this.filterParams.page = 1
  877. this.setSelect('', '', true)
  878. }
  879. },
  880. computedTime(num, val) {
  881. if ((typeof num === 'object') && num.constructor === Date) {} else {
  882. num = num.replace(/-/g, '/')
  883. }
  884. let _d = new Date(num)
  885. if (val !== undefined) {
  886. _d.setMonth(_d.getMonth() + val)
  887. }
  888. _d.setDate(1)
  889. _d.setMonth(_d.getMonth() + 1)
  890. _d.setDate(_d.getDate() - 1)
  891. return _d
  892. },
  893. async setSelect(...val) {
  894. let _url = '/purchase/arCheck'
  895. let itemL = {}
  896. if (this.activeType === 'all') {
  897. let _fromDate = this.outTimeMonth + '-01 00:00:00'
  898. let _d = this.computedTime(_fromDate)
  899. let _endDate = _d.getFullYear() + '-' + (_d.getMonth() + 1) + '-' + _d.getDate() + ' 00:00:00'
  900. _endDate = _endDate.replace(/-/g, '/')
  901. _endDate = new Date(_endDate).getTime()
  902. _fromDate = _fromDate.replace(/-/g, '/')
  903. _fromDate = new Date(_fromDate).getTime()
  904. _url = '/sale/arCheck/vendor'
  905. itemL = {
  906. params: {
  907. count: 20,
  908. page: this.filterParams.page,
  909. keyword: this.filterParams.keyword,
  910. searchFilter: {'fromDate': _fromDate, 'endDate': _endDate},
  911. sorting: { 'recordDate': 'desc' }
  912. }
  913. }
  914. } else {
  915. itemL = {
  916. params: {
  917. count: this.filterParams.count,
  918. page: this.filterParams.page,
  919. searchFilter: {'keyword': this.filterParams.keyword || '', 'fromDate': val[1].fromDate, 'endDate': val[1].toDate},
  920. sorting: {'recordDate': 'desc'},
  921. _state: this.activeType
  922. }
  923. }
  924. }
  925. let { data } = await this.$http.get(_url, itemL)
  926. if (!this.resourceList.content) {
  927. this.resourceList.content = []
  928. }
  929. data.content = data.content || []
  930. if (this.activeType !== 'all') {
  931. data.content.forEach(item => {
  932. item.checkAmount = item.checkAmount.toFixed(2)
  933. item.getTotalProd = 0
  934. item.items.forEach(im => {
  935. item.getTotalProd += im.checkQty
  936. })
  937. })
  938. } else {
  939. data.content.forEach((item) => {
  940. let _mouthArr = []
  941. let _totalArr = []
  942. item.thisMonthCount && item.thisMonthCount.forEach(count => {
  943. if (count.amount > 0) {
  944. _mouthArr.push(count)
  945. }
  946. })
  947. item.totalCount && item.totalCount.forEach(count => {
  948. if (count.amount > 0) {
  949. _totalArr.push(count)
  950. }
  951. })
  952. item.totalCount = _totalArr
  953. item.thisMonthCount = _mouthArr
  954. })
  955. console.log(data.content)
  956. }
  957. if (!val[2]) {
  958. this.resourceList.content.push(...data.content)
  959. data.content = this.resourceList.content
  960. } else {
  961. this.resourceList.content = []
  962. }
  963. this.resourceList = data
  964. },
  965. // 选择月份
  966. ShowMonthChoose(tp, key) {
  967. this.$monthType = tp
  968. if (tp === 'inside') {
  969. this.ShowApcheckChooseTime = false
  970. this.$monthClick = true
  971. this.$refs.baseFilter[0].setSelect(1)
  972. let _m = this.isShowApcheckList.thisMonth.split('-')[1].length < 2 ? '0' + this.isShowApcheckList.thisMonth.split('-')[1] : this.isShowApcheckList.thisMonth.split('-')[1]
  973. this.$picker.setSlotValue(0, this.isShowApcheckList.thisMonth.split('-')[0] + '年')
  974. this.$picker.setSlotValue(1, _m + '月')
  975. } else {
  976. let _m = this[key].split('-')[1].length < 2 ? '0' + this[key].split('-')[1] : this[key].split('-')[1]
  977. this.$picker.setSlotValue(0, this[key].split('-')[0] + '年')
  978. this.$picker.setSlotValue(1, _m + '月')
  979. }
  980. this.isShowMonthChoose = true
  981. }
  982. },
  983. computed: {
  984. allPage () {
  985. return Math.ceil(this.resourceList.totalElement / 10)
  986. },
  987. isEmpty () {
  988. return this.resourceList.content.length === 0
  989. },
  990. allMoney() {
  991. let sum = 0
  992. this.isShowApcheckList.list.forEach(obj => {
  993. // if (obj.check) {
  994. sum += obj.nowmoney
  995. // }
  996. })
  997. return sum
  998. },
  999. isCheckAll() {
  1000. if (this.isShowApcheckList.list.length === 0) {
  1001. return true
  1002. }
  1003. return this.isShowApcheckList.list.filter(item => {
  1004. return item.check === false
  1005. }).length
  1006. }
  1007. },
  1008. components: {
  1009. ModalWrapper,
  1010. BaseFilter,
  1011. PullUp,
  1012. EmptyStatus,
  1013. Picker,
  1014. RemindBox
  1015. },
  1016. filters: {
  1017. time: function (time) {
  1018. if (typeof time === 'number') {
  1019. if (!time) {
  1020. return '无'
  1021. } else {
  1022. let d = new Date(time)
  1023. let year = d.getFullYear()
  1024. let month = d.getMonth() + 1
  1025. let day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate()
  1026. return year + '-' + month + '-' + day
  1027. }
  1028. }
  1029. },
  1030. computeNum: function(price, num) {
  1031. return Math.floor(price * 100) / 100
  1032. }
  1033. }
  1034. }
  1035. </script>
  1036. <style lang="scss" scoped>
  1037. @mixin overFlowHidden {
  1038. overflow: hidden;
  1039. text-overflow: ellipsis;
  1040. white-space: nowrap;
  1041. }
  1042. .fixedPicker {
  1043. position: fixed;
  1044. bottom: 0;
  1045. left: 0;
  1046. width: 100%;
  1047. height: 100%;
  1048. z-index: 9999;
  1049. background: rgba(0,0,0,0.5);
  1050. .picker {
  1051. width: 100%;
  1052. left: 0;
  1053. bottom: 0;
  1054. position: absolute;
  1055. background: #fff;
  1056. }
  1057. .titls {
  1058. text-align: center;
  1059. font-size: 0.24rem;
  1060. line-height: 0.5rem
  1061. }
  1062. .leftBtn {
  1063. color: #666;
  1064. font-size: 0.24rem;
  1065. position: absolute;
  1066. left: 0.2rem;
  1067. top: 0.1rem
  1068. }
  1069. .rightBtn {
  1070. top: 0.1rem;
  1071. color: #3e82f5;
  1072. font-size: 0.24rem;
  1073. position: absolute;
  1074. right: 0.2rem;
  1075. }
  1076. }
  1077. .mobile-header{
  1078. position: fixed;
  1079. top: 0;
  1080. z-index: 100;
  1081. width:100%;
  1082. height: 1.26rem;
  1083. line-height: 1.26rem;
  1084. /*border-bottom:.01rem solid #ccc;*/
  1085. background: #3e82f5;
  1086. padding:0 .2rem 0 .1rem;
  1087. color:#fff;
  1088. }
  1089. .mobile-header p{
  1090. overflow: hidden;
  1091. text-overflow: ellipsis;
  1092. white-space: nowrap;
  1093. font-size:.36rem;
  1094. text-align: center;
  1095. width: 6rem;
  1096. padding-left: 1rem;
  1097. }
  1098. .mobile-center-header p.en-name {
  1099. font-size: .3rem;
  1100. }
  1101. .mobile-header a{
  1102. font-size:.28rem;
  1103. color:#fff;
  1104. position: absolute;
  1105. }
  1106. .mobile-header a i{
  1107. font-size: .48rem;
  1108. margin-right: -.1rem;
  1109. }
  1110. .mobile-header p span {
  1111. position: absolute;
  1112. right: .4rem;
  1113. font-size: .28rem;
  1114. }
  1115. .mobile-header p span i {
  1116. font-size: .28rem;
  1117. }
  1118. .btobapCheck-wrapper {
  1119. background: #f1f3f6;
  1120. margin: 1.26rem 0 0.98rem 0;
  1121. .search-content {
  1122. padding: .24rem 0;
  1123. text-align: center;
  1124. background: #f1f3f6;
  1125. input {
  1126. width: 6.48rem;
  1127. height: .58rem;
  1128. line-height: .58rem;
  1129. border-radius: .14rem;
  1130. margin: 0 0 0 .11rem;
  1131. font-size: .26rem;
  1132. padding: 0 .71rem 0 .21rem;
  1133. border: 1px solid #3f84f6;
  1134. }
  1135. }
  1136. .order-tab {
  1137. background: #3f84f6;
  1138. padding-bottom: 0.2rem;
  1139. .order-tab-wrapper {
  1140. border: solid 1px #ffffff;
  1141. width: 7.06rem;
  1142. margin: 0 auto;
  1143. border-radius: 0.04rem;
  1144. line-height: 0.72rem;
  1145. height: 0.72rem;
  1146. overflow: hidden;
  1147. div {
  1148. color: #ffffff;
  1149. font-size: 0.28rem;
  1150. text-align: center;
  1151. width: 50%;
  1152. &.active {
  1153. background-color: #ffffff;
  1154. color: #3f84f6;
  1155. }
  1156. }
  1157. }
  1158. }
  1159. .order-nav {
  1160. background: #fff;
  1161. div {
  1162. height: 0.82rem;
  1163. line-height: 0.82rem;
  1164. display: inline-block;
  1165. width: 49%;
  1166. text-align: center;
  1167. font-size: .28rem;
  1168. color: #666;
  1169. &.active span{
  1170. color: #3f84f6;
  1171. border-bottom: 0.04rem solid #3f84f6;
  1172. padding-bottom: 0.2rem;
  1173. }
  1174. }
  1175. }
  1176. .btobapCheck-wrapper-scroll {
  1177. height: calc(100vh - 1.26rem - 0.98rem - 1.06rem - 0.92rem);
  1178. overflow-y: auto;
  1179. &.btobapCheck-wrapper-scroll2 {
  1180. height: calc(100vh - 1.26rem - 0.98rem - 1.06rem - 0.92rem - 1.3rem);
  1181. }
  1182. }
  1183. .filter-wrapper{
  1184. width: 7.1rem;
  1185. margin: 0 auto 0.27rem;
  1186. background: #fff;
  1187. padding: 0.27rem 0.2rem;
  1188. border-radius: 0.05rem;
  1189. }
  1190. .invoice-btob-list {
  1191. width: 7.1rem;
  1192. margin: 0 auto 0.2rem;
  1193. background: #FFFFFF;
  1194. border-radius: 0.05rem;
  1195. padding: 0 0.24rem;
  1196. }
  1197. .invoice-btob-wrapper-top {
  1198. height: 0.8rem;
  1199. span{
  1200. margin-top: 0.24rem;
  1201. display: inline-block;
  1202. font-size: 0.28rem;
  1203. color: #333333;
  1204. height:0.25rem;
  1205. &.read {
  1206. color: #15B262;
  1207. }
  1208. &.noread {
  1209. color: #DE4545;
  1210. }
  1211. &.isPut {
  1212. background: #15B262;
  1213. color: #FFFFFF;
  1214. font-size: 0.24rem;
  1215. border-radius: 0.04rem;
  1216. }
  1217. &.noPut {
  1218. font-size: 0.24rem;
  1219. background: #DE4545;
  1220. color: #FFFFFF;
  1221. border-radius: 0.04rem;
  1222. }
  1223. }
  1224. }
  1225. .invoice-btob-wrapper-middle {
  1226. border-top: 1px solid #D9D9D9;
  1227. @include overFlowHidden();
  1228. padding-top: 0.15rem;
  1229. font-size: 0.28rem;
  1230. color: #151515;
  1231. line-height: 0.5rem;
  1232. padding-bottom: 0.15rem;
  1233. span {
  1234. color: #666666;
  1235. }
  1236. .invoice-btob-wrapper-middle .tilte{
  1237. color: #333333;
  1238. }
  1239. .middle_btn {
  1240. text-align: center;
  1241. font-size: 0.26rem;
  1242. color: #333333;
  1243. }
  1244. }
  1245. .invoice-btob-wrapper-content {
  1246. border-top: 1px solid #D9D9D9;
  1247. @include overFlowHidden();
  1248. padding-top: 0.15rem;
  1249. font-size: 0.28rem;
  1250. color: #151515;
  1251. line-height: 0.5rem;
  1252. padding-bottom: 0.15rem;
  1253. span {
  1254. color: #666666;
  1255. }
  1256. }
  1257. }
  1258. .btobapCheck-modal {
  1259. .search-content input {border: 1px solid #3f84f6;}
  1260. .date-wrap{
  1261. text-align: center;
  1262. display: inline-block;
  1263. label {
  1264. width: 2.3rem;
  1265. height: .5rem;
  1266. line-height: .5rem;
  1267. border-radius: .04rem;
  1268. border: 1px solid #bfbfbf;
  1269. background: url(/images/mobile/select-arrow.png) no-repeat;
  1270. background-size: .12rem .06rem;
  1271. vertical-align: middle;
  1272. background-color: #fff;
  1273. background-position: 2.1rem .2rem;
  1274. position: relative;
  1275. margin: .2rem 0 0 0;
  1276. i {
  1277. font-size: .28rem;
  1278. color: #3f84f6;
  1279. margin-left: .1rem;
  1280. float: left;
  1281. }
  1282. input {
  1283. opacity: 0;
  1284. width: 2.22rem;
  1285. height: .5rem;
  1286. position: absolute;
  1287. left: 0;
  1288. z-index: 1;
  1289. }
  1290. p {
  1291. font-weight: normal;
  1292. font-size: .22rem;
  1293. color: #3E81F6;
  1294. text-align: left;
  1295. text-indent: 10px;
  1296. }
  1297. }
  1298. span {
  1299. color: #a0a0a0;
  1300. margin: 0.3rem .05rem 0;
  1301. width: .3rem;
  1302. display: inline-block;
  1303. text-align: center;
  1304. vertical-align: top;
  1305. }
  1306. }
  1307. .choosescreen {
  1308. padding: 0 0.15rem;
  1309. font-size: 0.28rem;
  1310. color: #418DF6;
  1311. line-height: 0.52rem;
  1312. i {
  1313. font-size: 0.28rem;
  1314. }
  1315. }
  1316. .choosescreen-list {
  1317. margin: 0 0.15rem;
  1318. padding-bottom: 0.28rem;;
  1319. border-bottom: 1px solid #D9D9D9;
  1320. div {
  1321. line-height: 0.76rem;
  1322. span {
  1323. font-size: 0.28rem;
  1324. color: #666666;
  1325. display: inline-block;
  1326. width: 1.68rem;
  1327. }
  1328. input {
  1329. height: 0.5rem;
  1330. line-height: 0.5rem;
  1331. width: 4.44rem;
  1332. margin-left: 0.18rem;
  1333. font-size: 0.28rem;
  1334. color: #333;
  1335. border: 1px solid #AEAEAE;
  1336. text-indent: 0.12rem;
  1337. }
  1338. }
  1339. }
  1340. .choosescreen-result {
  1341. .choosescreen-result-list {
  1342. /*padding: 0 0.15rem 0rem;*/
  1343. background: #fff;
  1344. margin:0 0 0.2rem;
  1345. }
  1346. .choosescreen-result-list-content {
  1347. /*display: inline-block;*/
  1348. vertical-align: middle;
  1349. margin: 0 0.15rem;
  1350. div.OverHidden {
  1351. @include overFlowHidden();
  1352. width: 5.5rem;
  1353. }
  1354. padding-top: 0.15rem;
  1355. font-size: 0.28rem;
  1356. color: #151515;
  1357. line-height: 0.5rem;
  1358. padding-bottom: 0.15rem;
  1359. span {
  1360. color: #666666;
  1361. }
  1362. }
  1363. }
  1364. }
  1365. .timeLine-wrapper {
  1366. background: #fff;
  1367. border-radius: 0.05rem;
  1368. height: 1.1rem;
  1369. width: 7.1rem;
  1370. margin: 0 auto 0.2rem;
  1371. padding: 0.3rem 0 0 2rem;
  1372. position: relative;
  1373. .left {
  1374. background: #fff;
  1375. color: #333;
  1376. padding: 0rem 0.1rem;
  1377. /*box-shadow: 0 0 2px #a0a0a0;*/
  1378. text-align: center;
  1379. margin-right: 0.2rem;
  1380. height: 0.5rem;
  1381. line-height: 0.5rem;
  1382. border: 1px solid #BFBFBF;
  1383. }
  1384. .right {
  1385. text-align: center;
  1386. background: #fff;
  1387. color: #333;
  1388. padding: 0rem 0.1rem;
  1389. /*box-shadow: 0 0 2px #a0a0a0;*/
  1390. margin-left: 0.2rem;
  1391. height: 0.5rem;
  1392. line-height: 0.5rem;
  1393. border: 1px solid #BFBFBF;
  1394. }
  1395. .rightBtn {
  1396. margin: 0.1rem 0.2rem 0 0;
  1397. }
  1398. }
  1399. .modal-h {
  1400. background: #F3F3F3;
  1401. .modal-h-top {
  1402. padding: 0.15rem;
  1403. }
  1404. .overflowhidden {
  1405. @include overFlowHidden();
  1406. width: 5.9rem;
  1407. font-size: 0.28rem;
  1408. color: #333333;
  1409. margin-left: 0.1rem;
  1410. }
  1411. .timeLine-wrapper {
  1412. width: 100%;
  1413. padding: 0.1rem 0 0.1rem 0rem;
  1414. height: 1.4rem;
  1415. margin: 0
  1416. }
  1417. }
  1418. div.timeLine {
  1419. background: #FFFFFF;
  1420. border: 1px solid #BFBFBF;
  1421. border-radius: 4px;
  1422. font-size: 0.28rem;
  1423. color: #3E81F6;
  1424. width: 1.7rem;
  1425. display: inline-block;
  1426. height: 0.5rem;
  1427. line-height: 0.5rem
  1428. }
  1429. .footerBtn {
  1430. padding: 0 0 0 0.15rem;
  1431. height: 1rem;
  1432. line-height: 1rem;
  1433. background: #fff;
  1434. font-size: 0.26rem;
  1435. color: #666666;
  1436. border-top: 1px solid #D3D3D3;
  1437. .bbgoresult {
  1438. background: #008BF7;
  1439. color: #fff;
  1440. width: 1.3rem;
  1441. text-align: center;
  1442. }
  1443. .cancel {
  1444. background: #fff;
  1445. color: #333;
  1446. height: 0.98rem;
  1447. }
  1448. }
  1449. </style>