Эх сурвалжийг харах

Merge branch 'release-201846-wangcz'

wangcz 7 жил өмнө
parent
commit
fcf94aa82b

+ 4 - 4
components/applyPurchase/SayPrice.vue

@@ -244,7 +244,7 @@
         }
       },
       onLeadtimeInput: function () {
-        this.sayPriceObj.leadtime = this.sayPriceObj.leadtime.replace(/[^0-9]*$/g, '')
+        this.sayPriceObj.leadtime = this.sayPriceObj.leadtime.replace(/[^0-9]*/g, '')
         if (this.sayPriceObj.leadtime.length > 3) {
           this.sayPriceObj.leadtime = this.sayPriceObj.leadtime.substring(0, 3)
         }
@@ -258,7 +258,7 @@
         }
       },
       onTaxrateInput () {
-        this.sayPriceObj.taxrate = this.sayPriceObj.taxrate.replace(/[^0-9]*$/g, '')
+        this.sayPriceObj.taxrate = this.sayPriceObj.taxrate.replace(/[^0-9]*/g, '')
         if (this.sayPriceObj.taxrate.length > 2) {
           this.sayPriceObj.taxrate = this.sayPriceObj.taxrate.substring(0, 2)
         }
@@ -272,7 +272,7 @@
         }
       },
       onReplyPriceInput: function (index) {
-        this.sayPriceObj.replies[index].price = this.sayPriceObj.replies[index].price.replace(/[^0-9.]*$/g, '')
+        this.sayPriceObj.replies[index].price = this.sayPriceObj.replies[index].price.replace(/[^0-9.]*/g, '')
         let price = this.sayPriceObj.replies[index].price
         if (price >= 10000) {
           this.sayPriceObj.replies[index].price = price.substring(0, 4)
@@ -319,7 +319,7 @@
         }
       },
       onReplyLapQtyInput: function (index) {
-        this.sayPriceObj.replies[index].lapQty = this.sayPriceObj.replies[index].lapQty.replace(/[^0-9]*$/g, '')
+        this.sayPriceObj.replies[index].lapQty = this.sayPriceObj.replies[index].lapQty.replace(/[^0-9]*/g, '')
         let lapQty = this.sayPriceObj.replies[index].lapQty
         if (lapQty.length > 9) {
           this.sayPriceObj.replies[index].lapQty = lapQty.substring(0, 9)

+ 11 - 8
components/mobile/staffManagement/StaffAdd.vue

@@ -91,7 +91,7 @@
         remindText: '',
         timeoutCount: 0,
         newPhoneCheck: false,
-        newEmailCheck: false,
+        newEmailCheck: true,
         showSearchUser: false,
         searchKeyword: '',
         newUserInfo: '',
@@ -154,8 +154,7 @@
       // 验证邮箱
       checkEmail () {
         if (!this.newUserEmail || this.newUserEmail === '') {
-          this.onRemind('请输入邮箱')
-          this.newEmailCheck = false
+          this.newEmailCheck = true
         } else {
           if ((/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/).test(this.newUserEmail)) {
             this.$http.get('/basic/user/emailEnable', {params: {email: this.newUserEmail}})
@@ -180,12 +179,16 @@
         } else if (!this.newUserPhone || this.newUserPhone === '') {
           this.onRemind('请输入手机号码')
           this.newPhoneCheck = false
-        } else if (!this.newUserEmail || this.newUserEmail === '') {
-          this.onRemind('请输入邮箱')
-          this.newEmailCheck = false
         } else {
           if (this.newEmailCheck && this.newPhoneCheck) {
-            this.$http.post('/basic/user', {userEmail: this.newUserEmail, userName: this.newUserName, userSex: this.sex, userTel: this.newUserPhone})
+            let params = {
+              userName: this.newUserName,
+              userTel: this.newUserPhone
+            }
+            if (this.newUserEmail) {
+              params.userEmail = this.newUserEmail
+            }
+            this.$http.post('/basic/user', params)
               .then(response => {
                 if (response) {
                   this.onRemind('增加用户成功' + this.newUserName)
@@ -252,7 +255,7 @@
           this.$http.get('/basic/user/bindUser', {params: {userUU: this.newUserInfo.userUU}})
             .then(response => {
               if (response) {
-                this.onRemind('增加' + this.newUserInfo.userName +'用户成功')
+                this.onRemind('增加' + this.newUserInfo.userName + '用户成功')
                 this.$router.push('/mobile/user/staff')
               }
             })

+ 2 - 2
components/mobile/staffManagement/StaffList.vue

@@ -34,7 +34,7 @@
                 <div class="list-item"><span>姓名:</span><span v-text="item.userName">张洪别</span></div>
                 <!--<div class="list-item"><span>性别:</span><span v-text="(item.userSex === 'F' || item.userSex === '女') ? '女' : (item.userSex === 'M' || item.userSex === '男') ? '男' : '-'">男</span></div>-->
                 <div class="list-item"><span>手机:</span><span v-text="item.userTel">12345678901</span></div>
-                <div class="list-item"><span>邮箱:</span><span v-text="item.userEmail">12345678901</span></div>
+                <div class="list-item"><span>邮箱:</span><span v-text="item.userEmail || '-'">12345678901</span></div>
                 <div class="list-item"><span>角色:</span><span class="role" v-for="role in item.roles" v-text="role.desc ? role.desc.slice(0,2) : ''" v-bind:class="'bg' + role.color">普通</span></div>
               </div>
               <div class="list-footer">
@@ -58,7 +58,7 @@
                 <div class="list-item"><span>用户名:</span><span v-text="item.user.vipName"></span></div>
                 <!--<div class="list-item"><span>UU账号:</span><span v-text="item.user.userUU">100000721</span></div>-->
                 <div class="list-item"><span>手机:</span><span v-text="item.user.mobile">12345678901</span></div>
-                <div class="list-item"><span>邮箱:</span><span v-text="item.user.email">12345678901</span></div>
+                <div class="list-item"><span>邮箱:</span><span v-text="item.user.email || '-'">12345678901</span></div>
               </div>
               <div class="list-footer">
                 <div class="edit handle" @click="agreeEvent(item, '1')"><i class="iconfont icon-check-circle"></i><span>同意</span></div>

+ 3 - 5
nuxt.config.js

@@ -11,7 +11,7 @@ const cmsUrl = process.env.CMS_URL || (isProdMode ? 'https://cms.usoftchina.com'
 // 消息
 const messageUrl = process.env.MESSAGE_URL || (isProdMode ? 'https://api-message.usoftchina.com/' : 'http://test-message.uuzcc.cn/')
 // B2B
-const uasUrl = process.env.uasUrl || (isProdMode ? 'https://b2b.usoftchina.com/' : 'http://rel-b2b.uuzcc.cn/')
+const uasUrl = process.env.uasUrl || (isProdMode ? 'https://b2b.usoftchina.com/' : 'http://test-b2b.uuzcc.cn/')
 // 帐户中心
 const ssoUrl = process.env.ssoUrl || (isProdMode ? 'https://sso.ubtob.com/' : 'http://test-sso-server.uuzcc.cn/')
 // pcb展示ID
@@ -146,7 +146,6 @@ module.exports = {
    */
   proxyTable: {
     // B2B服务接口 uasUrl
-    '/btob/**': uasUrl,
     '/purchase/arCheck': uasUrl,
     '/sale/inquiry/**': uasUrl,
     '/purc/inquiry/**': uasUrl,
@@ -220,7 +219,7 @@ module.exports = {
     '/goods/**': baseUrl,
     // 公共物料匹配物料名称
     '/productuser/**': materialUrl,
-    // '/account/**': baseUrl,
+    '/account/**': baseUrl,
     '/internalmessage-service/**': baseUrl,
     '/wx/**': baseUrl,
     '/messages**': messageUrl,
@@ -234,7 +233,6 @@ module.exports = {
     // 账户中心获取申请绑定列表接口
     '/api/userspace/apply/**': ssoUrl,
     // 权限管理
-    '/account/user/**': uasUrl,
-    '/account/role/**': uasUrl
+    '/btob/**': {target: uasUrl, changeOrigin: true, pathRewrite: {'^/btob': '/'}}
   }
 }

+ 88 - 34
pages/mobile/center/user/btobarCheck.vue

@@ -24,7 +24,7 @@
       <!--</div>-->
       <div v-show="activeType !== 'all'">
         <div class="search-content mi-search-content">
-          <input type="text" v-model="filterParams.keyword" @keyup.13="onFilter" placeholder="单据编号/客户名称/物料名称">
+          <input type="text" v-model="filterParams.keyword" @keyup.13="onFilter" placeholder="单据编号/供应商名称/物料名称">
           <span @click="onFilter"><i class="iconfont icon-sousuo"></i></span>
         </div>
         <div class="btobapCheck-wrapper-scroll" id="btobapCheck-wrapper-scroll">
@@ -74,16 +74,33 @@
 
       <div v-show="activeType === 'all'">
         <div class="search-content mi-search-content">
-          <input type="text" v-model="filterParams.keyword" @keyup.13="onFilter" placeholder="客户名称">
+          <input type="text" v-model="filterParams.keyword" @keyup.13="onFilter" placeholder="供应商名称">
           <span @click="onFilter"><i class="iconfont icon-sousuo"></i></span>
         </div>
-        <div class="timeLine-wrapper">
-          <div class="inline-block left" @click="addMonth('out', 'outTimeMonth', -1)">
-            <i class="iconfont icon-xiangzuo" style="font-size: 0.3rem"></i>
-          </div>
-          <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>
-          <div class="inline-block right" @click="addMonth('out', 'outTimeMonth', 1)" v-show="MouthOutShow">
-            <i class="iconfont icon-xiangyou" style="font-size: 0.3rem"></i>
+        <div class="modal-h">
+          <div class="timeLine-wrapper clearfix" style="margin-bottom: 0.2rem;">
+            <div style="margin-left: 0.5rem">
+              <div class="inline-block left" @click="addMonth('out', 'outTimeMonth', -1)">
+                <i class="iconfont icon-xiangzuo" style="font-size: 0.3rem"></i>
+              </div>
+              <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>
+              <div class="inline-block right" @click="addMonth('out', 'outTimeMonth', 1)" v-show="MouthOutShow">
+                <i class="iconfont icon-xiangyou" style="font-size: 0.3rem"></i>
+              </div>
+              </div>
+            <div style="clear:both"></div>
+            <base-filter
+              ref="baseFilterTwo"
+              v-for="filterOption in ApcheckfilterOptions"
+              :ShowTitle="ShowTitle"
+              :key="filterOption.selectOption"
+              :selectItems="filterOption.selectItems"
+              :defaultVal="filterOption.defaultVal"
+              :selectOption="filterOption.selectOption"
+              @selectAction="ApcheckonSelectAction"
+              @valueAction="ApcheckonValueAction"
+              :title="filterOption.title">
+            </base-filter>
           </div>
         </div>
         <div class="btobapCheck-wrapper-scroll btobapCheck-wrapper-scroll2" id="btobapCheck-wrapper-scroll2">
@@ -94,35 +111,45 @@
               </div>
               <div class="invoice-btob-wrapper-middle">
                 <div v-if="item.thisMonthCount && item.thisMonthCount.length > 0">
-                  <span class="inline-block"  style="vertical-align: top">本应付:</span>
+                  <span class="inline-block"  style="vertical-align: top">本应付:</span>
                   <div class="inline-block" style="vertical-align: top" >
                     <div v-for="count in item.thisMonthCount" v-if="count.amount > 0">
                       <span>{{count.currency}}:{{count.amount | computeNum(2)}}</span>
                     </div>
                   </div>
                 </div>
-                <div v-else><span>本应付:0</span></div>
+                <div v-else><span>本应付:0</span></div>
 
                 <div v-if="item.thisMonthDoneCount && item.thisMonthDoneCount.length > 0">
-                <span class="inline-block"  style="vertical-align: top">本月已对:</span>
+                <span class="inline-block"  style="vertical-align: top">本期已对账:</span>
                   <div class="inline-block" style="vertical-align: top" >
                     <div v-for="count in item.thisMonthDoneCount" v-if="count.amount > 0">
                       <span>{{count.currency}}:{{count.amount | computeNum(2)}}</span>
                     </div>
                   </div>
                 </div>
-                <div v-else><span>本月已对:0</span></div>
+                <div v-else><span>本期已对账:0</span></div>
 
 
                 <div v-if="item.thisMonthTodoCount && item.thisMonthTodoCount.length > 0">
-                  <span class="inline-block"  style="vertical-align: top">本月未对:</span>
+                  <span class="inline-block"  style="vertical-align: top">本期未对账:</span>
                   <div class="inline-block" style="vertical-align: top" >
                     <div v-for="count in item.thisMonthTodoCount" v-if="count.amount > 0">
                       <span>{{count.currency}}:{{count.amount | computeNum(2)}}</span>
                     </div>
                   </div>
                 </div>
-                <div v-else><span>本月未对:0</span></div>
+                <div v-else><span>本期未对账:0</span></div>
+
+                <!--<div v-if="item.apCheckAmounts && item.apCheckAmounts.length > 0">-->
+                  <!--<span class="inline-block"  style="vertical-align: top">本月已付:</span>-->
+                  <!--<div class="inline-block" style="vertical-align: top" >-->
+                    <!--<div v-for="count in item.apCheckAmounts" v-if="count.amount > 0">-->
+                      <!--<span>{{count.currency}}:{{count.amount | computeNum(2)}}</span>-->
+                    <!--</div>-->
+                  <!--</div>-->
+                <!--</div>-->
+                <!--<div v-else><span>本月已付:0</span></div>-->
 
                 <div v-if="item.totalCount && item.totalCount.length > 0">
                   <span class="inline-block"  style="vertical-align: top">应付总额:</span>
@@ -387,11 +414,12 @@
             defaultVal: 1
           }
         ],
+        ShowApcheckChooseTimeOUT: false,
         ShowApcheckChooseTime: false
       }
     },
     created() {
-      this.$http.get('/account/role/isUser').then(res => {
+      this.$http.get('/btob/account/role/isUser').then(res => {
         this.isUser = res.data.isUser
       })
       this.getUnread()
@@ -432,8 +460,11 @@
           } else {
             this.MouthOutShow = true
           }
+          this.$monthClick = true
           this.outTimeMonth = this.$value
           this.filterParams.page = 1
+          this.$refs.baseFilterTwo[0].setSelect(1)
+          this.ShowApcheckChooseTimeOUT = false
           this.setSelect('', '', true)
         } else {
           let _time2 = this.computedTime(this.$value + '-01')
@@ -539,9 +570,14 @@
       },
       ApcheckonSelectAction(selectObj) {
         if (this.$monthClick) return
-        this.ShowApcheckChooseTime = true
         this.isShowApcheckList.objTime = selectObj
-        this.getApcheckDetailsinfo(selectObj.key, selectObj.value)
+        if (this.isShowApcheckList.show) {
+          this.ShowApcheckChooseTime = true
+          this.getApcheckDetailsinfo(selectObj.key, selectObj.value)
+        } else {
+          this.ShowApcheckChooseTimeOUT = true
+          this.setSelect(selectObj.key, selectObj.value, true)
+        }
       },
       ApcheckonValueAction(selectObj) {
         // if (this.$monthClick) return
@@ -877,6 +913,7 @@
           this.getApcheckDetailsinfo()
         } else {
           let _sp = new Date()
+          this.$monthClick = true
           let _d = this.computedTime(this[key] + '-01', val)
           let _m = Number(_d.getMonth() + 1) < 10 ? '0' + (_d.getMonth() + 1) : (_d.getMonth() + 1)
           this[key] = _d.getFullYear() + '-' + _m
@@ -886,6 +923,8 @@
             this.MouthOutShow = true
           }
           this.filterParams.page = 1
+          this.$refs.baseFilterTwo[0].setSelect(1)
+          this.ShowApcheckChooseTimeOUT = false
           this.setSelect('', '', true)
         }
       },
@@ -906,21 +945,33 @@
         let _url = '/purchase/arCheck'
         let itemL = {}
         if (this.activeType === 'all') {
-          let _fromDate = this.outTimeMonth + '-01 00:00:00'
-          let _d = this.computedTime(_fromDate)
-          let _endDate = _d.getFullYear() + '-' + (_d.getMonth() + 1) + '-' + _d.getDate() + ' 00:00:00'
-          _endDate = _endDate.replace(/-/g, '/')
-          _endDate = new Date(_endDate).getTime()
-          _fromDate = _fromDate.replace(/-/g, '/')
-          _fromDate = new Date(_fromDate).getTime()
-           _url = '/sale/arCheck/vendor'
-          itemL = {
-            params: {
-              count: 20,
-              page: this.filterParams.page,
-              keyword: this.filterParams.keyword,
-              searchFilter: {'fromDate': _fromDate, 'endDate': _endDate},
-              sorting: { 'recordDate': 'desc' }
+          _url = '/sale/arCheck/vendor'
+          if (!this.ShowApcheckChooseTimeOUT) {
+            let _fromDate = this.outTimeMonth + '-01 00:00:00'
+            let _d = this.computedTime(_fromDate)
+            let _endDate = _d.getFullYear() + '-' + (_d.getMonth() + 1) + '-' + _d.getDate() + ' 00:00:00'
+            _endDate = _endDate.replace(/-/g, '/')
+            _endDate = new Date(_endDate).getTime()
+            _fromDate = _fromDate.replace(/-/g, '/')
+            _fromDate = new Date(_fromDate).getTime()
+            itemL = {
+              params: {
+                count: 20,
+                page: this.filterParams.page,
+                keyword: this.filterParams.keyword,
+                searchFilter: { 'fromDate':  _fromDate, 'endDate': _endDate },
+                sorting: { 'recordDate': 'desc' }
+              }
+            }
+          } else {
+            itemL = {
+              params: {
+                count: 20,
+                page: this.filterParams.page,
+                keyword: this.filterParams.keyword,
+                searchFilter: { 'fromDate':  val[1].fromDate, 'endDate': val[1].toDate },
+                sorting: { 'recordDate': 'desc' }
+              }
             }
           }
         } else {
@@ -972,6 +1023,7 @@
         } else {
           this.resourceList.content = []
         }
+        this.$monthClick = false
         this.resourceList = data
       },
       // 选择月份
@@ -985,6 +1037,8 @@
           this.$picker.setSlotValue(0, this.isShowApcheckList.thisMonth.split('-')[0] + '年')
           this.$picker.setSlotValue(1, _m + '月')
         } else {
+          this.ShowApcheckChooseTimeOUT = false
+          this.$monthClick = true
           let _m = this[key].split('-')[1].length < 2 ? '0' + this[key].split('-')[1] : this[key].split('-')[1]
           this.$picker.setSlotValue(0, this[key].split('-')[0] + '年')
           this.$picker.setSlotValue(1, _m + '月')
@@ -1190,7 +1244,7 @@
       height: calc(100vh - 1.26rem - 0.98rem - 1.06rem - 0.92rem);
       overflow-y: auto;
       &.btobapCheck-wrapper-scroll2 {
-        height: calc(100vh - 1.26rem - 0.98rem - 1.06rem - 0.92rem - 1.3rem);
+        height: calc(100vh - 1.26rem - 0.98rem - 1.06rem - 0.92rem - 1.6rem);
       }
     }
     .filter-wrapper{

+ 1 - 1
pages/mobile/center/user/supplier/index.vue

@@ -113,7 +113,7 @@
       }
     },
     created() {
-      this.$http.get('/account/role/currentRole').then(res => {
+      this.$http.get('/btob/account/role/currentRole').then(res => {
         this.thisUser = this.$store.state.option.user.data
         this.enabled = res.data.count > 0 || this.thisUser.sys
       })

+ 1 - 1
pages/mobile/center/user/tender/index.vue

@@ -217,7 +217,7 @@
         this.setSelect(selectObj.key, selectObj.value, false)
       },
       getHasUser () {
-        this.$http.get('/account/role/isUser').then(res => {
+        this.$http.get('/btob/account/role/isUser').then(res => {
           this.isUser = res.data.isUser
         })
       },

+ 87 - 32
pages/mobile/center/vendor/btobapCheck.vue

@@ -77,13 +77,30 @@
           <input type="text" v-model="filterParams.keyword" @keyup.13="onFilter" placeholder="客户名称">
           <span @click="onFilter"><i class="iconfont icon-sousuo"></i></span>
         </div>
-        <div class="timeLine-wrapper">
-          <div class="inline-block left" @click="addMonth('out', 'outTimeMonth', -1)">
-            <i class="iconfont icon-xiangzuo" style="font-size: 0.3rem"></i>
-          </div>
-          <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>
-          <div class="inline-block right" @click="addMonth('out', 'outTimeMonth', 1)" v-show="MouthOutShow">
-            <i class="iconfont icon-xiangyou" style="font-size: 0.3rem"></i>
+        <div class="modal-h">
+          <div class="timeLine-wrapper clearfix" style="margin-bottom: 0.2rem;">
+            <div style="margin-left: 0.5rem">
+              <div class="inline-block left" @click="addMonth('out', 'outTimeMonth', -1)">
+                <i class="iconfont icon-xiangzuo" style="font-size: 0.3rem"></i>
+              </div>
+              <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>
+              <div class="inline-block right" @click="addMonth('out', 'outTimeMonth', 1)" v-show="MouthOutShow">
+                <i class="iconfont icon-xiangyou" style="font-size: 0.3rem"></i>
+              </div>
+            </div>
+            <div style="clear:both"></div>
+            <base-filter
+              ref="baseFilterTwo"
+              v-for="filterOption in ApcheckfilterOptions"
+              :ShowTitle="ShowTitle"
+              :key="filterOption.selectOption"
+              :selectItems="filterOption.selectItems"
+              :defaultVal="filterOption.defaultVal"
+              :selectOption="filterOption.selectOption"
+              @selectAction="ApcheckonSelectAction"
+              @valueAction="ApcheckonValueAction"
+              :title="filterOption.title">
+            </base-filter>
           </div>
         </div>
         <div class="btobapCheck-wrapper-scroll btobapCheck-wrapper-scroll2" id="btobapCheck-wrapper-scroll2">
@@ -94,35 +111,45 @@
               </div>
               <div class="invoice-btob-wrapper-middle">
                 <div v-if="item.thisMonthCount && item.thisMonthCount.length > 0">
-                  <span class="inline-block"  style="vertical-align: top">本应收:</span>
+                  <span class="inline-block"  style="vertical-align: top">本应收:</span>
                   <div class="inline-block" style="vertical-align: top" >
                     <div v-for="count in item.thisMonthCount" v-if="count.amount > 0">
                       <span>{{count.currency}}:{{count.amount | computeNum(2)}}</span>
                     </div>
                   </div>
                 </div>
-                <div v-else><span>本应收:0</span></div>
+                <div v-else><span>本应收:0</span></div>
 
                 <div v-if="item.thisMonthDoneCount && item.thisMonthDoneCount.length > 0">
-                  <span class="inline-block"  style="vertical-align: top">本月已对:</span>
+                  <span class="inline-block"  style="vertical-align: top">本期已对账:</span>
                   <div class="inline-block" style="vertical-align: top" >
                     <div v-for="count in item.thisMonthDoneCount" v-if="count.amount > 0">
                       <span>{{count.currency}}:{{count.amount | computeNum(2)}}</span>
                     </div>
                   </div>
                 </div>
-                <div v-else><span>本月已对:0</span></div>
+                <div v-else><span>本期已对账:0</span></div>
 
 
                 <div v-if="item.thisMonthTodoCount && item.thisMonthTodoCount.length > 0">
-                  <span class="inline-block"  style="vertical-align: top">本月未对:</span>
+                  <span class="inline-block"  style="vertical-align: top">本期未对账:</span>
                   <div class="inline-block" style="vertical-align: top" >
                     <div v-for="count in item.thisMonthTodoCount" v-if="count.amount > 0">
                       <span>{{count.currency}}:{{count.amount | computeNum(2)}}</span>
                     </div>
                   </div>
                 </div>
-                <div v-else><span>本月未对:0</span></div>
+                <div v-else><span>本期未对账:0</span></div>
+
+                <!--<div v-if="item.apCheckAmounts && item.apCheckAmounts.length > 0">-->
+                  <!--<span class="inline-block"  style="vertical-align: top">本月已收:</span>-->
+                  <!--<div class="inline-block" style="vertical-align: top" >-->
+                    <!--<div v-for="count in item.apCheckAmounts" v-if="count.amount > 0">-->
+                      <!--<span>{{count.currency}}:{{count.amount | computeNum(2)}}</span>-->
+                    <!--</div>-->
+                  <!--</div>-->
+                <!--</div>-->
+                <!--<div v-else><span>本月已收:0</span></div>-->
 
 
                 <div v-if="item.totalCount && item.totalCount.length > 0">
@@ -252,7 +279,7 @@
          <span class="item inline-block" @click="checkAll()" v-show="!isShowApcheckList.showApcheck">
             <label class="mobile-cart-check" :class="{active: !isCheckAll}"></label>全选
          </span>
-        <div class="fr bbgoresult" @click="goTopayfor" v-show="!isShowApcheckList.showApcheck">确认</div>
+        <div class="fr bbgoresult" @click="goTopayfor" v-show="!isShowApcheckList.showApcheck">确认对账</div>
         <div class="fr" style="margin-right: 0.2rem" v-show="!isShowApcheckList.showApcheck">合计:<a style="color: #001408;">{{allMoney | computeNum}}</a></div>
         <div class="fl" style="margin-left: 0.2rem" v-show="isShowApcheckList.showApcheck">合计:<a style="color: #001408;">{{allMoney | computeNum}}</a></div>
         <!--<div class="fr bbgoresult" v-show="isShowApcheckList.showApcheck" @click="submitCheck">提交</div>-->
@@ -391,11 +418,12 @@
             defaultVal: 1
           }
         ],
+        ShowApcheckChooseTimeOUT: false,
         ShowApcheckChooseTime: false
       }
     },
     created() {
-      this.$http.get('/account/role/isUser').then(res => {
+      this.$http.get('/btob/account/role/isUser').then(res => {
         this.isUser = res.data.isUser
       })
       this.getUnread()
@@ -436,8 +464,11 @@
           } else {
             this.MouthOutShow = true
           }
+          this.$monthClick = true
           this.outTimeMonth = this.$value
           this.filterParams.page = 1
+          this.$refs.baseFilterTwo[0].setSelect(1)
+          this.ShowApcheckChooseTimeOUT = false
           this.setSelect('', '', true)
         } else {
           let _time2 = this.computedTime(this.$value + '-01')
@@ -545,7 +576,13 @@
         if (this.$monthClick) return
         this.ShowApcheckChooseTime = true
         this.isShowApcheckList.objTime = selectObj
-        this.getApcheckDetailsinfo(selectObj.key, selectObj.value)
+        if (this.isShowApcheckList.show) {
+          this.ShowApcheckChooseTime = true
+          this.getApcheckDetailsinfo(selectObj.key, selectObj.value)
+        } else {
+          this.ShowApcheckChooseTimeOUT = true
+          this.setSelect(selectObj.key, selectObj.value, true)
+        }
       },
       ApcheckonValueAction(selectObj) {
         // if (this.$monthClick) return
@@ -880,6 +917,7 @@
           this.getApcheckDetailsinfo()
         } else {
           let _sp = new Date()
+          this.$monthClick = true
           let _d = this.computedTime(this[key] + '-01', val)
           let _m = Number(_d.getMonth() + 1) < 10 ? '0' + (_d.getMonth() + 1) : (_d.getMonth() + 1)
           this[key] = _d.getFullYear() + '-' + _m
@@ -889,6 +927,8 @@
             this.MouthOutShow = true
           }
           this.filterParams.page = 1
+          this.$refs.baseFilterTwo[0].setSelect(1)
+          this.ShowApcheckChooseTimeOUT = false
           this.setSelect('', '', true)
         }
       },
@@ -909,21 +949,33 @@
         let _url = '/sale/apCheck/info/search'
         let itemL = {}
         if (this.activeType === 'all') {
-          let _fromDate = this.outTimeMonth + '-01 00:00:00'
-          let _d = this.computedTime(_fromDate)
-          let _endDate = _d.getFullYear() + '-' + (_d.getMonth() + 1) + '-' + _d.getDate() + ' 00:00:00'
-          _endDate = _endDate.replace(/-/g, '/')
-          _endDate = new Date(_endDate).getTime()
-          _fromDate = _fromDate.replace(/-/g, '/')
-          _fromDate = new Date(_fromDate).getTime()
-           _url = '/sale/apCheck/customer'
-          itemL = {
-            params: {
-              count: 20,
-              page: this.filterParams.page,
-              keyword: this.filterParams.keyword,
-              searchFilter: {'fromDate': _fromDate, 'endDate': _endDate},
-              sorting: { 'recordDate': 'desc' }
+          _url = '/sale/apCheck/customer'
+          if (!this.ShowApcheckChooseTimeOUT) {
+            let _fromDate = this.outTimeMonth + '-01 00:00:00'
+            let _d = this.computedTime(_fromDate)
+            let _endDate = _d.getFullYear() + '-' + (_d.getMonth() + 1) + '-' + _d.getDate() + ' 00:00:00'
+            _endDate = _endDate.replace(/-/g, '/')
+            _endDate = new Date(_endDate).getTime()
+            _fromDate = _fromDate.replace(/-/g, '/')
+            _fromDate = new Date(_fromDate).getTime()
+            itemL = {
+              params: {
+                count: 20,
+                page: this.filterParams.page,
+                keyword: this.filterParams.keyword,
+                searchFilter: { 'fromDate': _fromDate, 'endDate': _endDate },
+                sorting: { 'recordDate': 'desc' }
+              }
+            }
+          } else {
+            itemL = {
+              params: {
+                count: 20,
+                page: this.filterParams.page,
+                keyword: this.filterParams.keyword,
+                searchFilter: { 'fromDate':  val[1].fromDate, 'endDate': val[1].toDate },
+                sorting: { 'recordDate': 'desc' }
+              }
             }
           }
         } else {
@@ -975,6 +1027,7 @@
         } else {
           this.resourceList.content = []
         }
+        this.$monthClick = false
         this.resourceList = data
       },
       // 选择月份
@@ -988,6 +1041,8 @@
           this.$picker.setSlotValue(0, this.isShowApcheckList.thisMonth.split('-')[0] + '年')
           this.$picker.setSlotValue(1, _m + '月')
         } else {
+          this.ShowApcheckChooseTimeOUT = false
+          this.$monthClick = true
           let _m = this[key].split('-')[1].length < 2 ? '0' + this[key].split('-')[1] : this[key].split('-')[1]
           this.$picker.setSlotValue(0, this[key].split('-')[0] + '年')
           this.$picker.setSlotValue(1, _m + '月')
@@ -1194,7 +1249,7 @@
       height: calc(100vh - 1.26rem - 0.98rem - 1.06rem - 0.92rem);
       overflow-y: auto;
       &.btobapCheck-wrapper-scroll2 {
-        height: calc(100vh - 1.26rem - 0.98rem - 1.06rem - 0.92rem - 1.3rem);
+        height: calc(100vh - 1.26rem - 0.98rem - 1.06rem - 0.92rem - 1.6rem);
       }
     }
     .filter-wrapper{

+ 8 - 8
pages/mobile/center/vendor/customer/index.vue

@@ -151,7 +151,7 @@
       }
     },
     created() {
-      this.$http.get('/account/role/currentRole').then(res => {
+      this.$http.get('/btob/account/role/currentRole').then(res => {
         this.thisUser = this.$store.state.option.user.data
         this.enabled = res.data.count > 0 || this.thisUser.sys
       })
@@ -164,7 +164,7 @@
           if (this.modalObj.customer.myEnterprise.uu) {
             // 当前用户是管理员时
             if (this.thisUser.sys) {
-                this.$http.post(`/account/user/transferUserToVendor/${this.modalObj.customer.id}`, this.modalObj.originList).then(data => {
+                this.$http.post(`/btob/account/user/transferUserToVendor/${this.modalObj.customer.id}`, this.modalObj.originList).then(data => {
                   this.onMind('转移成功!')
                   this.closeModal()
                   this.setSelect(true)
@@ -187,7 +187,7 @@
                 this.onMind('您未选择权限转移对象!')
                 this.closeModal()
               } else {
-                this.$http.post(`/account/user/transferMyDistribute?custUU=${this.modalObj.customer.myEnterprise.uu}&userUU=${this.target.userUU}`, {})
+                this.$http.post(`/btob/account/user/transferMyDistribute?custUU=${this.modalObj.customer.myEnterprise.uu}&userUU=${this.target.userUU}`, {})
                   .then(data => {
                   this.onMind('转移成功!')
                   this.closeModal()
@@ -202,7 +202,7 @@
             this.closeModal()
           }
         } else {
-          this.$http.post(`/account/user/bindUserToVendor/${this.modalObj.customer.id}`, this.modalObj.originList).then(res => {
+          this.$http.post(`/btob/account/user/bindUserToVendor/${this.modalObj.customer.id}`, this.modalObj.originList).then(res => {
             this.onMind('分配成功!')
             this.closeModal()
             this.setSelect(true)
@@ -287,10 +287,10 @@
         this.modalObj.keyword = ''
         this.modalObj.type = 'add'
         this.modalObj.customer = customer
-        this.$http.get(`/account/user/getEnTransfer/${customer.myEnterprise.uu}`).then(res => {
+        this.$http.get(`/btob/account/user/getEnTransfer/${customer.myEnterprise.uu}`).then(res => {
           customer.enTransfer = res.data.result
           if (this.enabled || customer.enTransfer) {
-            this.$http.get(`/account/user/customer/${customer.id}`, {params: this.modalParams}).then(data => {
+            this.$http.get(`/btob/account/user/customer/${customer.id}`, {params: this.modalParams}).then(data => {
                 customer.userinfos = data.data.content
                 this.modalObj.showModal = true
                 this.modalObj.showModalList = customer.userinfos
@@ -307,13 +307,13 @@
         this.modalObj.keyword = ''
         this.modalObj.type = 'chance'
         this.modalObj.customer = customer
-        this.$http.get(`/account/user/getDistribute/${customer.id}`).then(res => {
+        this.$http.get(`/btob/account/user/getDistribute/${customer.id}`).then(res => {
           customer.enTransfer = res.data.result
           if (this.enabled || customer.enTransfer) {
             this.$http.get('/authentication').then(res => {
               this.thisUser = res.data
             })
-            this.$http.get(`/account/user/customer/${customer.id}`, {params: this.modalParams}).then(data => {
+            this.$http.get(`/btob/account/user/customer/${customer.id}`, {params: this.modalParams}).then(data => {
               customer.userinfos = data.data.content
               customer.userinfos.forEach(user => {
                 if (this.$store.state.option.user.data.userUU === user.userUU && user.transfer) {

+ 1 - 1
pages/mobile/center/vendor/invoice/invoice_btob.vue

@@ -153,7 +153,7 @@
       }
     },
     created() {
-      this.$http.get('/account/role/isUser').then(res => {
+      this.$http.get('/btob/account/role/isUser').then(res => {
         this.isUser = res.data.isUser
       })
     },

+ 1 - 1
pages/mobile/center/vendor/sample/index.vue

@@ -297,7 +297,7 @@
         this.setSelect(selectObj.key, selectObj.value, false)
       },
       getHasUser () {
-        this.$http.get('/account/role/isUser').then(res => {
+        this.$http.get('/btob/account/role/isUser').then(res => {
           this.isUser = res.data.isUser
         })
       },