btobarCheck.vue 51 KB

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