btobapCheck.vue 52 KB

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