| | |
| | | style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/customerbanner.png') no-repeat;background-size:contain"> |
| | | </view> |
| | | <!-- 自主配送界面 --> |
| | | <view class="self-deliver"> |
| | | <view class="self-deliver" v-if="personnelType === 1"> |
| | | <view class="self-deliver_text"> |
| | | 创建日计划订单 |
| | | 创建日计划订单 |
| | | </view> |
| | | <view class="self-deliver_btn"> |
| | | <u-button text="去创建" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import card from '@/components/card/card.vue'; |
| | | import combinedTitle from '@/components/combined-title/combined-title.vue'; |
| | | import { customerId } from '@/utils/status'; |
| | | export default { |
| | | props: { |
| | | orderPlanDataStore: { |
| | |
| | | } |
| | | }, |
| | | components: { |
| | | card, |
| | | combinedTitle |
| | | }, |
| | | watch: { |
| | |
| | | data() { |
| | | return { |
| | | orderPlanData: [], |
| | | personnelType:'', // 用户类型 |
| | | show: false, // 领取收发单弹出框 |
| | | receiveNum: null, |
| | | getOrderNum: { |
| | |
| | | init() { |
| | | this.GetOrderPlan(); |
| | | this.getJhOrderPlanDataPage(); |
| | | this.getType(); |
| | | }, |
| | | // 获取发运计划列表 |
| | | GetOrderPlan() { |
| | |
| | | // (顶部)发运计划详情 |
| | | cardBodyClick(v) { |
| | | uni |
| | | .navigateTo({ url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2}` }); |
| | | .navigateTo({ url: `/subPages/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2}` }); |
| | | }, |
| | | // 点击历史收发单获取详情 |
| | | faYundetail(v) { |
| | | uni.navigateTo({ |
| | | url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}&productNames=${v.productNames || v.productName}&deptName=${v.deptName}` |
| | | url: `/subPages/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}&productNames=${v.productNames || v.productName}&deptName=${v.deptName}` |
| | | }); |
| | | }, |
| | | // 转发 |
| | |
| | | // 自主配送 |
| | | selfDeliver() { |
| | | uni.navigateTo({ |
| | | url: '/pages/customer-page/addDailyPlan/addDailyPlan' |
| | | url: '/subPages/addDailyPlan/addDailyPlan' |
| | | }) |
| | | }, |
| | | //获取用户标识 |
| | | getType(){ |
| | | this.$reqGetId('getPersonnelType',uni.getStorageSync('customerId')).then(res=>{ |
| | | console.log(res,'ressss') |
| | | if(res.code === 0){ |
| | | this.personnelType = res.data.personnelType; |
| | | }else{ |
| | | this.personnelType = ''; |
| | | } |
| | | }) |
| | | } |
| | | } |