123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>仓库管理-划拨记录-创业帮</title>
- <meta name="keywords" content="仓库管理-划拨记录-创业帮">
- <meta name="description" content="仓库管理-划拨记录-创业帮">
- <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <meta content="telephone=no" name="format-detection">
- <meta content="email=no" name="format-detection">
- <meta name="apple-mobile-web-app-title" content="仓库管理-划拨记录-创业帮">
- <meta http-equiv="Cache-Control" content="no-siteapp">
- <link rel="stylesheet" href="./static/css/main.css">
- </head>
- <body class="pb0 ovh pt0" style="padding-top:0;background-color:#f6f6f6;">
- <div class="warehouse rel" id="app" v-cloak>
- <van-nav-bar class="user_rank_explan_title user_title_normal titlef16 rightc333" left-arrow title="划拨记录" v-if="toptitleisshow" @click-left="goback">
- <template #left><img src="./static/images/left.png" alt=""></template>
- </van-nav-bar>
- <van-search class="top_search" v-model="searchContent" show-action placeholder="根据SN号搜索订单" @search="onSearch">
- <template #action>
- <div class="searchcolor" @click="onSearch">搜索</div>
- </template>
- </van-search>
- <van-tabs v-model="active" line-width="30" animated @change="changetab" swipeable>
- <van-tab title="拨入记录">
- <div class="ovh-x" ref="wrapper1">
- <van-pull-refresh v-model="refreshing" @refresh="onRefresh" style="height:100%;min-height:10vh;">
- <div class="nodata c999 f14 tc mt16" v-if="productinfo.length === 0">暂无任何记录</div>
- <van-list @load="onLoad" v-model="loading" :finished="finished" finished-text="没有更多数据了" :immediate-check="false" v-if="active === 0 && productinfo.length !== 0">
- <div class="panel rel bgcfff pt16 pb16 bottom_line" v-for="item,index in productinfo">
- <div class="info f14 c333">
- <div class="item mt8 df jcsb mt16" style="justify-content:space-between;">
- <div class="c999 f14">SN号:</div>
- <div>
- <div class="ml4 c333">{{item.SnNo}}</div>
- </div>
- </div>
- <div class="item mt8 df jcsb mt16" style="justify-content:space-between;">
- <div class="c999 f14">划拨时间:</div>
- <div class="ml4 c333">{{item.CreateDate}}</div>
- </div>
- <div class="item mt8 df jcsb pt4" style="justify-content:space-between;">
- <div class="c999 f14">来源仓库:</div>
- <div class="ml4 c333">{{item.StoreInfo.StoreName}}</div>
- </div>
- <div class="item mt8 df jcsb pt4" style="justify-content:space-between;">
- <div class="c999 f14">管理员:</div>
- <div class="ml4 c333">{{item.UserInfo.RealName}} {{item.UserInfo.MakerCode}}</div>
- </div>
- <div class="item mt8 df jcsb pt4" style="justify-content:space-between;">
- <div class="c999 f14">联系电话:</div>
- <div class="df">
- <div class="c333">{{item.UserInfo.Mobile}}</div>
- <div class="f12 c666 ml16 spcolor" @click="takephone(item.UserInfo.Mobile)">拨号</div>
- </div>
- </div>
- </div>
- </div>
- </van-list>
- </van-pull-refresh>
- </div>
- </van-tab>
- <van-tab title="拨出记录">
- <div class="ovh-x" ref="wrapper1">
- <van-pull-refresh v-model="refreshing" @refresh="onRefresh" style="height:100%;min-height:10vh;">
- <div class="nodata c999 f14 tc mt16" v-if="productinfo.length === 0">暂无任何记录</div>
- <van-list @load="onLoad" v-model="loading" :finished="finished" finished-text="没有更多数据了" :immediate-check="false" v-if="active === 1 && productinfo.length !== 0">
- <div class="panel rel bgcfff pt16 pb16 bottom_line" v-for="item,index in productinfo">
- <div class="info f14 c333">
- <div class="item mt8 df jcsb mt16" style="justify-content:space-between;">
- <div class="c999 f14">SN号:</div>
- <div>
- <div class="ml4 c333">{{item.SnNo}}</div>
- </div>
- </div>
- <div class="item mt8 df jcsb mt16" style="justify-content:space-between;">
- <div class="c999 f14">划拨时间:</div>
- <div class="ml4 c333">{{item.CreateDate}}</div>
- </div>
- <div class="item mt8 df jcsb pt4" style="justify-content:space-between;">
- <div class="c999 f14">拨出至:</div>
- <div class="ml4 c333">{{item.UserInfo.RealName}} {{item.UserInfo.MakerCode}}</div>
- </div>
- <div class="item mt8 df jcsb pt4" style="justify-content:space-between;">
- <div class="c999 f14">联系电话:</div>
- <div class="df">
- <div class="c333">{{item.UserInfo.Mobile}}</div>
- <div class="f12 c666 ml16 spcolor" @click="takephone(item.UserInfo.Mobile)">拨号</div>
- </div>
- </div>
- <div class="item mt8 df jcsb pt4" style="justify-content:space-between;">
- <div class="c999 f14">订单号:</div>
- <div class="ml4 c333">{{item.ChangeNo}}</div>
- </div>
- </div>
- </div>
- </van-list>
- </van-pull-refresh>
- </div>
- </van-tab>
- </van-tabs>
- </div>
- <script src="./static/js/clipboard.min.js"></script>
- <script src="./static/js/klm-vv.min.js"></script>
- <script src="./static/js/appfunc.min.js"></script>
- <script src="./static/js/klm-axios-config.js"></script>
- <script src="./static/js/publicfn.js"></script>
- <script>
- function OnStart(){
- app.active = 0;
- app.backgetwarehouselist();
- };
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
-
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- toptitleisshow:true,
- active: 0,
- lastactive:0,
- overisshow:false,
- loading: false,
- finished: false,
- refreshing: false,
- searchContent:'',
- productinfo:[
- ],
- showDate: false,
- pageinfo:{
- PageSize:10,
- PageNum:1
- },
- };
- },
- created() {
- this.toptitleisshow = toptitleisshow;
- this.getwarehouselist();
- },
- beforeUpdate() {
- this.$nextTick(() => {
- this.$refs.wrapper1.style.height = `${document.documentElement.clientHeight - 98}px`;
- });
- },
- methods: {
- changetab(){
- if(this.lastactive === this.active) return;
- this.pageinfo.PageNum = 1;
- this.finished = false;
- this.lastactive = this.active;
- this.backgetwarehouselist();
- },
- onLoad() {
- this.pageinfo.PageNum++;
- if(this.active === 3){
- this.productinfo = [];
- }else{
- this.getwarehouselist();
- };
- },
- onRefresh() {
- this.searchContent = '';
- this.loading = true;
- this.pageinfo.PageNum = 1;
- this.backgetwarehouselist();
- },
- //- 点击搜索
- onSearch(){
- //- if(this.searchContent === '')return;
- this.productinfo = [];
- this.pageinfo.PageNum = 1;
- this.getwarehouselist();
- },
- //- 获取仓库列表
- async getwarehouselist(){
- const StoreId = PublicLib.getCookieInfo('warehouseId');
- let Url = '';
- switch(this.active){
- case 0:
- Url = 'api/v1/storestockchange/in?t=';
- break;
- case 1:
- Url = 'api/v1/storestockchange/out?t=';
- break;
- };
- const res = await getRequest(Url+Math.random(6),JSON.stringify({...this.pageinfo,StoreId,SearchKey:this.searchContent}));
- if(res.status !== '1') return tips('获取记录失败');
- if(res.data.length < this.pageinfo.PageSize) {
- this.finished = true;
- };
- this.productinfo.push(...res.data);
- this.loading = false;
- },
- async backgetwarehouselist(){
- const StoreId = PublicLib.getCookieInfo('warehouseId');
- let Url = '';
- switch(this.active){
- case 0:
- Url = 'api/v1/storestockchange/in?t=';
- break;
- case 1:
- Url = 'api/v1/storestockchange/out?t=';
- break;
- };
- const res = await getRequest(Url+Math.random(6),JSON.stringify({...this.pageinfo,StoreId,SearchKey:this.searchContent}));
- if(res.status !== '1') return tips('获取记录失败');
- if(res.data.length < this.pageinfo.PageSize) {
- this.finished = true;
- };
- this.productinfo = res.data;
- this.loading = false;
- this.refreshing = false;
- },
- goback(){
- PublicLib.GoBack({Level:1});
- },
- //- 拨打电话
- takephone(phonenum){
- PublicLib.PhoneCall(phonenum);
- },
- }
- });
- </script>
- </body>
- </html>
|