btobapCheck.vue 52 KB

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