btobapCheck.vue 47 KB

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