12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <!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="bgc-back h100p ovh">
- <div id="app" v-cloak>
- <div class="search-box">
- <van-search v-model="value" show-action placeholder="请输入机具SN号或扫描" @search="onsearch">
- <template #action><span class="vm pl16 pr16 more" @click="goback">取消</span></template>
- <template #right-icon><span class="pl8" @click="onScan"><img class="vm" src="./static/images/icon-scan@3x.png" alt="" width="20" height="20"></span></template>
- </van-search>
- </div>
- <van-row v-cloak>
- <van-col span="24">
- <div class="ovh-x" ref="wrapper2">
- <van-cell-group class="dialoutrecord" :border="false">
- <van-cell v-for="item,index in transactions" :title="item.FromDate" :value="item.SnType" title-class="f14 c333" value-class="f12 c999" center>
- <template #label>
- <div class="f999">SN: {{item.SnNo}}</div>
- <div class="f999 makerinfo">拨出至: {{item.MakerName}}{{item.MakerCode}}</div>
- </template>
- </van-cell>
- </van-cell-group>
- </div>
- </van-col>
- </van-row>
- </div>
- <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>
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
- PublicLib.SetStatusBarBgColor({bgcolor:'ffffff'});
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- transactions: [
- ],
- value: '',
- pageinfo:{
- PageSize:100,
- PageNum:1
- }
- };
- },
- mounted() {
- scan(this.value,this.getprofitlist);
- this.$nextTick(() => {
- this.$refs.wrapper2.style.height = `${document.documentElement.clientHeight - 55}px`;
- });
- },
- methods: {
- onsearch(){
- this.getprofitlist();
- },
- goback() {
- PublicLib.GoBack({Level:1});
- },
- onScan(){
- PublicLib.ScanQRCode();
- },
- async getprofitlist(){
- //- PublicLib.ShowLoading({Message:''});
- const BrandId = PublicLib.getCookieInfo('productMachineId');
- const UserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/pos/storechangehistory/outrecords?t='+Math.random(6),JSON.stringify({...this.pageinfo,SnNo:this.value,BrandId,UserId}));
- if(res.status !== '1')return tips('交易分润列表获取失败!');
- //- PublicLib.HideLoading();
- this.transactions =[
- ]
- this.transactions.push(...res.data);
- },
- }
- });
- </script>
- </body>
- </html>
|