btobapCheck.vue 50 KB

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