APP 生产领料暂存列表 多语言开APP 生产补料暂存列表 多语言开APP 生产入库暂存列表 多语言开发 APP 生产退料暂存列表 多语言开发 APP 委外领料暂存列表 多语言开发APP 委外入库暂存列表 多语言开发
4个文件已修改
407 ■■■■■ 已修改文件
pages/shengchanbuliao/MateReplenishOutBillList.vue 99 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanlingliaoshengdan/Kf_MateOutBillList.vue 106 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/weiwailingliao/Kf_EntrustOutBillList.vue 102 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/weiwairuku/EntrustInBillList.vue 100 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanbuliao/MateReplenishOutBillList.vue
@@ -1,33 +1,42 @@
<template>
    <view class="content">
        <view class="tabs">
            <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">缓存列表</view>
            <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">已上传列表</view>
            <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">
                {{ $t("MateReplenishOutBillList.cacheList") == "MateReplenishOutBillList.cacheList" ? "缓存列表" : $t("MateReplenishOutBillList.cacheList") }}
            </view>
            <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">
                {{ $t("MateReplenishOutBillList.uploadedList") == "MateReplenishOutBillList.uploadedList" ? "已上传列表" : $t("MateReplenishOutBillList.uploadedList") }}
            </view>
        </view>
        <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
        <view class="form" v-if="tabs == 0">
            <view class="buttons" @tap="add">
                <uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>新增
                <uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>
                {{ $t("MateReplenishOutBillList.btnAdd") == "MateReplenishOutBillList.btnAdd" ? "新增" : $t("MateReplenishOutBillList.btnAdd") }}
            </view>
        </view>
        <view class="form" v-if="tabs == 1">
            <view class="form-item">
                <view class="title">单据号:</view>
                <view class="title">{{ $t("MateReplenishOutBillList.billNo") == "MateReplenishOutBillList.billNo" ? "单据号:" : $t("MateReplenishOutBillList.billNo") }}:</view>
                <view class="right">
                    <input type="text" v-model="hform.HBillNo" placeholder="请输入单据号" />
                    <input type="text" v-model="hform.HBillNo" :placeholder="$t('MateReplenishOutBillList.billNoPlaceholder') == 'MateReplenishOutBillList.billNoPlaceholder' ? '请输入单据号' : $t('MateReplenishOutBillList.billNoPlaceholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">源单单号:</view>
                <view class="title">{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}:</view>
                <view class="right">
                    <input v-model="hform.HSourceBillNo" placeholder="请输入源单单号" />
                    <input v-model="hform.HSourceBillNo" :placeholder="$t('MateReplenishOutBillList.sourceBillNoPlaceholder') == 'MateReplenishOutBillList.sourceBillNoPlaceholder' ? '请输入源单单号' : $t('MateReplenishOutBillList.sourceBillNoPlaceholder')" />
                </view>
            </view>
            <view class="buttons">
                <button class="btn-a" size="mini" type="default" @tap="clear">重置</button>
                <button class="btn-c" size="mini" type="default" @tap="search">查询</button>
                <button class="btn-a" size="mini" type="default" @tap="clear">
                    {{ $t("MateReplenishOutBillList.btn_Reset") == "MateReplenishOutBillList.btn_Reset" ? "重置" : $t("MateReplenishOutBillList.btn_Reset") }}
                </button>
                <button class="btn-c" size="mini" type="default" @tap="search">
                    {{ $t("MateReplenishOutBillList.btn_Query") == "MateReplenishOutBillList.btn_Query" ? "查询" : $t("MateReplenishOutBillList.btn_Query") }}
                </button>
            </view>
        </view>
@@ -38,28 +47,30 @@
                @tap="showDetail = showDetail==index?-1:index">
                <view class="card-detail">
                    <view class="detail" v-if="item.制单人">
                        <text>制单人:</text>{{item.制单人}}
                        <text>{{ $t("Gy.HMaker") == "Gy.HMaker" ? "制单人:" : $t("Gy.HMaker") }}:</text>{{item.制单人}}
                    </view>
                    <view class="detail" v-if="item.单据内码">
                        <text>单据内码:</text>{{item.单据内码}}
                        <text>{{ $t("MateReplenishOutBillList.table_BillID") == "MateReplenishOutBillList.table_BillID" ? "单据内码:" : $t("MateReplenishOutBillList.table_BillID") }}:</text>{{item.单据内码}}
                    </view>
                    <view class="detail" v-if="item.数量">
                        <text>数量:</text>{{item.数量}}
                        <text>{{ $t("Gy.HQty") == "Gy.HQty" ? "数量:" : $t("Gy.HQty") }}:</text>{{item.数量}}
                    </view>
                    <view class="detail" v-if="item.源单单号">
                        <text>源单单号:</text>{{item.源单单号}}
                        <text>{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}:</text>{{item.源单单号}}
                    </view>
                    <view class="detail" v-if="item.组织">
                        <text>组织:</text>{{item.组织}}
                        <text>{{ $t("MateReplenishOutBillList.table_Org") == "MateReplenishOutBillList.table_Org" ? "组织:" : $t("MateReplenishOutBillList.table_Org") }}:</text>{{item.组织}}
                    </view>
                </view>
                <view class="more">
                    <view class="part" style="border-right: 1px solid #eee;color: #3a78ff;" @tap.stop="edit(item)">
                        <uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>编辑
                        <uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("MateReplenishOutBillList.btn_Edit") == "MateReplenishOutBillList.btn_Edit" ? "编辑" : $t("MateReplenishOutBillList.btn_Edit") }}
                    </view>
                    <view class="part" style="color: #da0000;" @tap.stop="del(item)">
                        <uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>删除
                        <uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("MateReplenishOutBillList.btn_Del") == "MateReplenishOutBillList.btn_Del" ? "删除" : $t("MateReplenishOutBillList.btn_Del") }}
                    </view>
                </view>
            </uni-card>
@@ -69,45 +80,53 @@
                @tap="showDetail = showDetail==index?-1:index">
                <view class="card-detail">
                    <view class="detail" v-if="item.状态">
                        <text>状态:</text>{{item.状态}}
                        <text>{{ $t("MateReplenishOutBillList.table_Status") == "MateReplenishOutBillList.table_Status" ? "状态:" : $t("MateReplenishOutBillList.table_Status") }}:</text>{{item.状态}}
                    </view>
                    <view class="detail" v-if="item.制单人">
                        <text>制单人:</text>{{item.制单人}}
                        <text>{{ $t("Gy.HMaker") == "Gy.HMaker" ? "制单人:" : $t("Gy.HMaker") }}:</text>{{item.制单人}}
                    </view>
                    <view class="detail" v-if="item.数量">
                        <text>数量:</text>{{item.数量}}
                        <text>{{ $t("Gy.HQty") == "Gy.HQty" ? "数量:" : $t("Gy.HQty") }}:</text>{{item.数量}}
                    </view>
                    <view class="detail" v-if="item.源单单号">
                        <text>源单单号:</text>{{item.源单单号}}
                        <text>{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}:</text>{{item.源单单号}}
                    </view>
                    <view class="detail" v-if="item.物料代码">
                        <text>物料代码:</text>{{item.物料代码}}
                        <text>{{ $t("Gy.HNumber") == "Gy.HNumber" ? "物料代码:" : $t("Gy.HNumber") }}:</text>{{item.物料代码}}
                    </view>
                    <view class="detail" v-if="item.物料名称">
                        <text>物料名称:</text>{{item.物料名称}}
                        <text>{{ $t("Gy.HName") == "Gy.HName" ? "物料名称:" : $t("Gy.HName") }}:</text>{{item.物料名称}}
                    </view>
                    <view class="detail" v-if="item.规格型号">
                        <text>规格型号:</text>{{item.规格型号}}
                        <text>{{ $t("Gy.HModel") == "Gy.HModel" ? "规格型号:" : $t("Gy.HModel") }}:</text>{{item.规格型号}}
                    </view>
                    <view class="detail" v-if="item.组织">
                        <text>组织:</text>{{item.组织}}
                        <text>{{ $t("MateReplenishOutBillList.table_Org") == "MateReplenishOutBillList.table_Org" ? "组织:" : $t("MateReplenishOutBillList.table_Org") }}:</text>{{item.组织}}
                    </view>
                </view>
                <view class="more">
                    <view class="part" style="color: #3a78ff;width: 100%;" @tap.stop="qrCodeDisplay(item)">
                        <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>显示二维码
                        <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("MateReplenishOutBillList.btn_DisplayCode") == "MateReplenishOutBillList.btn_DisplayCode" ? "显示二维码" : $t("MateReplenishOutBillList.btn_DisplayCode") }}
                    </view>
                    <view class="part" style="color: #d98d00;width: 100%;" @tap.stop="revoke(item)">
                        <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>撤销
                        <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("MateReplenishOutBillList.btn_Revoke") == "MateReplenishOutBillList.btn_Revoke" ? "撤销" : $t("MateReplenishOutBillList.btn_Revoke") }}
                    </view>
                </view>
            </uni-card>
        </view>
        <view class="over" v-if="!listData || listData.length == 0">暂无数据</view>
        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">加载中...</view>
        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">已到底</view>
        <view class="over" v-if="!listData || listData.length == 0">
            {{ $t("MateReplenishOutBillList.noData") == "MateReplenishOutBillList.noData" ? "暂无数据" : $t("MateReplenishOutBillList.noData") }}
        </view>
        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">
            {{ $t("MateReplenishOutBillList.Loading") == "MateReplenishOutBillList.Loading" ? "加载中..." : $t("MateReplenishOutBillList.Loading") }}
        </view>
        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">
            {{ $t("MateReplenishOutBillList.bottom") == "MateReplenishOutBillList.bottom" ? "已到底" : $t("MateReplenishOutBillList.bottom") }}
        </view>
        <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
    </view>
</template>
@@ -124,7 +143,7 @@
                serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
                tabs: 0,
                urls: '/WEBSController/GetKf_PonderationBillMain_TempList_New_Json',
                MvarReportTitle: '生产领料单缓存列表',
                MvarReportTitle: this.$t('MateReplenishOutBillList.reportTitle') == 'MateReplenishOutBillList.reportTitle' ? '生产领料单缓存列表' : this.$t('MateReplenishOutBillList.reportTitle'),
                hform: {
                    HBillNo: '',
                    HSourceBillNo: '',
@@ -185,7 +204,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MateReplenishOutBillList.requestFailed') == 'MateReplenishOutBillList.requestFailed' ? '接口请求失败' : this.$t('MateReplenishOutBillList.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -212,7 +231,7 @@
            },
            getList() {
                uni.showLoading({
                    title: '加载中...'
                    title: this.$t('MateReplenishOutBillList.loadingTitle') == 'MateReplenishOutBillList.loadingTitle' ? '加载中...' : this.$t('MateReplenishOutBillList.loadingTitle')
                })
                uni.request({
                    url: this.serverUrl + this.urls,
@@ -238,7 +257,7 @@
                        console.log(res);
                        uni.hideLoading()
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MateReplenishOutBillList.requestFailed') == 'MateReplenishOutBillList.requestFailed' ? '接口请求失败' : this.$t('MateReplenishOutBillList.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -307,7 +326,7 @@
                        console.log(res);
                        uni.hideLoading()
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MateReplenishOutBillList.requestFailed') == 'MateReplenishOutBillList.requestFailed' ? '接口请求失败' : this.$t('MateReplenishOutBillList.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -317,8 +336,8 @@
            del(item) {
                // console.log(item.hmainid,uni.getStorageSync('HUserName'))
                uni.showModal({
                    title: '提示',
                    content: '确认要删除记录?删除后不能恢复',
                    title: this.$t('MateReplenishOutBillList.confirmTitle') == 'MateReplenishOutBillList.confirmTitle' ? '提示' : this.$t('MateReplenishOutBillList.confirmTitle'),
                    content: this.$t('MateReplenishOutBillList.delConfirm') == 'MateReplenishOutBillList.delConfirm' ? '确认要删除记录?删除后不能恢复' : this.$t('MateReplenishOutBillList.delConfirm'),
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
@@ -346,7 +365,7 @@
                                    console.log(res);
                                    uni.hideLoading()
                                    uni.showToast({
                                        title: '接口请求失败',
                                        title: this.$t('MateReplenishOutBillList.requestFailed') == 'MateReplenishOutBillList.requestFailed' ? '接口请求失败' : this.$t('MateReplenishOutBillList.requestFailed'),
                                        icon: 'none'
                                    })
                                },
@@ -361,8 +380,8 @@
            revoke(item) {
                // console.log(item.hmainid,uni.getStorageSync('HUserName'))
                uni.showModal({
                    title: '提示',
                    content: '是否确认撤销',
                    title: this.$t('MateReplenishOutBillList.confirmTitle') == 'MateReplenishOutBillList.confirmTitle' ? '提示' : this.$t('MateReplenishOutBillList.confirmTitle'),
                    content: this.$t('MateReplenishOutBillList.revokeConfirm') == 'MateReplenishOutBillList.revokeConfirm' ? '是否确认撤销' : this.$t('MateReplenishOutBillList.revokeConfirm'),
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
@@ -390,7 +409,7 @@
                                    console.log(res);
                                    uni.hideLoading()
                                    uni.showToast({
                                        title: '接口请求失败',
                                        title: this.$t('MateReplenishOutBillList.requestFailed') == 'MateReplenishOutBillList.requestFailed' ? '接口请求失败' : this.$t('MateReplenishOutBillList.requestFailed'),
                                        icon: 'none'
                                    })
                                },
pages/shengchanlingliaoshengdan/Kf_MateOutBillList.vue
@@ -1,33 +1,42 @@
<template>
    <view class="content">
        <view class="tabs">
            <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">缓存列表</view>
            <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">已上传列表</view>
            <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">
                {{ $t("Kf_MateOutBillList.cacheList") == "Kf_MateOutBillList.cacheList" ? "缓存列表" : $t("Kf_MateOutBillList.cacheList") }}
            </view>
            <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">
                {{ $t("Kf_MateOutBillList.uploadedList") == "Kf_MateOutBillList.uploadedList" ? "已上传列表" : $t("Kf_MateOutBillList.uploadedList") }}
            </view>
        </view>
        
        <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
        
        <view class="form" v-if="tabs == 0">
            <view class="buttons" @tap="add">
                <uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>新增
                <uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>
                {{ $t("Kf_MateOutBillList.btnAdd") == "Kf_MateOutBillList.btnAdd" ? "新增" : $t("Kf_MateOutBillList.btnAdd") }}
            </view>
        </view>
        <view class="form" v-if="tabs == 1">
            <view class="form-item">
                <view class="title">单据号:</view>
                <view class="title">{{ $t("Kf_MateOutBillList.billNo") == "Kf_MateOutBillList.billNo" ? "单据号:" : $t("Kf_MateOutBillList.billNo") }}:</view>
                <view class="right">
                    <input v-model="hform.HBillNo" placeholder="请输入单据号" />
                    <input v-model="hform.HBillNo" :placeholder="$t('Kf_MateOutBillList.billNoPlaceholder') == 'Kf_MateOutBillList.billNoPlaceholder' ? '请输入单据号' : $t('Kf_MateOutBillList.billNoPlaceholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">源单单号:</view>
                <view class="title">{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}:</view>
                <view class="right">
                    <input v-model="hform.HSourceBillNo" placeholder="请输入源单单号" />
                    <input v-model="hform.HSourceBillNo" :placeholder="$t('Kf_MateOutBillList.sourceBillNoPlaceholder') == 'Kf_MateOutBillList.sourceBillNoPlaceholder' ? '请输入源单单号' : $t('Kf_MateOutBillList.sourceBillNoPlaceholder')" />
                </view>
            </view>
            <view class="buttons">
                <button class="btn-a" size="mini" type="default" @tap="clear">重置</button>
                <button class="btn-c" size="mini" type="default" @tap="search">查询</button>
                <button class="btn-a" size="mini" type="default" @tap="clear">
                    {{ $t("Kf_MateOutBillList.btn_Reset") == "Kf_MateOutBillList.btn_Reset" ? "重置" : $t("Kf_MateOutBillList.btn_Reset") }}
                </button>
                <button class="btn-c" size="mini" type="default" @tap="search">
                    {{ $t("Kf_MateOutBillList.btn_Query") == "Kf_MateOutBillList.btn_Query" ? "查询" : $t("Kf_MateOutBillList.btn_Query") }}
                </button>
            </view>
        </view>
        
@@ -37,28 +46,30 @@
            <uni-card :title="item.制单日期.substr(0,10)" :extra="item.单据号" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index">
                <view class="card-detail">
                    <view class="detail" v-if="item.制单人">
                        <text>制单人:</text>{{item.制单人}}
                        <text>{{ $t("Gy.HMaker") == "Gy.HMaker" ? "制单人:" : $t("Gy.HMaker") }}:</text>{{item.制单人}}
                    </view>
                    <view class="detail" v-if="item.单据内码">
                        <text>单据内码:</text>{{item.单据内码}}
                        <text>{{ $t("Kf_MateOutBillList.table_BillID") == "Kf_MateOutBillList.table_BillID" ? "单据内码:" : $t("Kf_MateOutBillList.table_BillID") }}:</text>{{item.单据内码}}
                    </view>
                    <view class="detail" v-if="item.数量">
                        <text>数量:</text>{{item.数量}}
                        <text>{{ $t("Gy.HQty") == "Gy.HQty" ? "数量:" : $t("Gy.HQty") }}:</text>{{item.数量}}
                    </view>
                    <view class="detail" v-if="item.源单单号">
                        <text>源单单号:</text>{{item.源单单号}}
                        <text>{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}:</text>{{item.源单单号}}
                    </view>
                    <view class="detail" v-if="item.组织">
                        <text>组织:</text>{{item.组织}}
                        <text>{{ $t("Kf_MateOutBillList.table_Org") == "Kf_MateOutBillList.table_Org" ? "组织:" : $t("Kf_MateOutBillList.table_Org") }}:</text>{{item.组织}}
                    </view>
                </view>
                <view class="more">
                    <view class="part" style="border-right: 1px solid #eee;color: #3a78ff;" @tap.stop="edit(item)">
                        <uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>编辑
                        <uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("Kf_MateOutBillList.btn_Edit") == "Kf_MateOutBillList.btn_Edit" ? "编辑" : $t("Kf_MateOutBillList.btn_Edit") }}
                    </view>
                    <view class="part" style="color: #da0000;" @tap.stop="del(item)">
                        <uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>删除
                        <uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("Kf_MateOutBillList.btn_Del") == "Kf_MateOutBillList.btn_Del" ? "删除" : $t("Kf_MateOutBillList.btn_Del") }}
                    </view>
                </view>
            </uni-card>
@@ -67,51 +78,59 @@
            <uni-card :title="item.日期" :extra="item.单据号" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index">
                <view class="card-detail">
                    <view class="detail" v-if="item.状态">
                        <text>状态:</text>{{item.状态}}
                        <text>{{ $t("Kf_MateOutBillList.table_Status") == "Kf_MateOutBillList.table_Status" ? "状态:" : $t("Kf_MateOutBillList.table_Status") }}:</text>{{item.状态}}
                    </view>
                    <view class="detail" v-if="item.制单人">
                        <text>制单人:</text>{{item.制单人}}
                        <text>{{ $t("Gy.HMaker") == "Gy.HMaker" ? "制单人:" : $t("Gy.HMaker") }}:</text>{{item.制单人}}
                    </view>
                    <view class="detail" v-if="item.数量">
                        <text>数量:</text>{{item.数量}}
                        <text>{{ $t("Gy.HQty") == "Gy.HQty" ? "数量:" : $t("Gy.HQty") }}:</text>{{item.数量}}
                    </view>
                    <view class="detail" v-if="item.源单单号">
                        <text>源单单号:</text>{{item.源单单号}}
                        <text>{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}:</text>{{item.源单单号}}
                    </view>
                    <view class="detail" v-if="item.物料代码">
                        <text>物料代码:</text>{{item.物料代码}}
                        <text>{{ $t("Gy.HNumber") == "Gy.HNumber" ? "物料代码:" : $t("Gy.HNumber") }}:</text>{{item.物料代码}}
                    </view>
                    <view class="detail" v-if="item.物料名称">
                        <text>物料名称:</text>{{item.物料名称}}
                        <text>{{ $t("Gy.HName") == "Gy.HName" ? "物料名称:" : $t("Gy.HName") }}:</text>{{item.物料名称}}
                    </view>
                    <view class="detail" v-if="item.生产订单号">
                        <text>生产订单号:</text>{{item.生产订单号}}
                        <text>{{ $t("Kf_MateOutBillList.table_ProductionOrderNo") == "Kf_MateOutBillList.table_ProductionOrderNo" ? "生产订单号:" : $t("Kf_MateOutBillList.table_ProductionOrderNo") }}:</text>{{item.生产订单号}}
                    </view>
                    <view class="detail" v-if="item.款号">
                        <text>款号:</text>{{item.款号}}
                        <text>{{ $t("Kf_MateOutBillList.table_StyleNo") == "Kf_MateOutBillList.table_StyleNo" ? "款号:" : $t("Kf_MateOutBillList.table_StyleNo") }}:</text>{{item.款号}}
                    </view>
                    <view class="detail" v-if="item.规格型号">
                        <text>规格型号:</text>{{item.规格型号}}
                        <text>{{ $t("Gy.HModel") == "Gy.HModel" ? "规格型号:" : $t("Gy.HModel") }}:</text>{{item.规格型号}}
                    </view>
                    <view class="detail" v-if="item.组织">
                        <text>组织:</text>{{item.组织}}
                        <text>{{ $t("Kf_MateOutBillList.table_Org") == "Kf_MateOutBillList.table_Org" ? "组织:" : $t("Kf_MateOutBillList.table_Org") }}:</text>{{item.组织}}
                    </view>
                </view>
        
                <view class="more">
                    <view class="part" style="color: #3a78ff;width: 100%;" @tap.stop="qrCodeDisplay(item)">
                        <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>显示二维码
                        <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("Kf_MateOutBillList.btn_DisplayCode") == "Kf_MateOutBillList.btn_DisplayCode" ? "显示二维码" : $t("Kf_MateOutBillList.btn_DisplayCode") }}
                    </view>
                    <view class="part" style="color: #d98d00;width: 100%;" @tap.stop="revoke(item)">
                        <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>撤销
                        <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("Kf_MateOutBillList.btn_Revoke") == "Kf_MateOutBillList.btn_Revoke" ? "撤销" : $t("Kf_MateOutBillList.btn_Revoke") }}
                    </view>
                </view>
            </uni-card>
        </view>
        
        <view class="over" v-if="!listData || listData.length == 0">暂无数据</view>
        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">加载中...</view>
        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">已到底</view>
        <view class="over" v-if="!listData || listData.length == 0">
            {{ $t("Kf_MateOutBillList.noData") == "Kf_MateOutBillList.noData" ? "暂无数据" : $t("Kf_MateOutBillList.noData") }}
        </view>
        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">
            {{ $t("Kf_MateOutBillList.Loading") == "Kf_MateOutBillList.Loading" ? "加载中..." : $t("Kf_MateOutBillList.Loading") }}
        </view>
        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">
            {{ $t("Kf_MateOutBillList.bottom") == "Kf_MateOutBillList.bottom" ? "已到底" : $t("Kf_MateOutBillList.bottom") }}
        </view>
        <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
    </view>
</template>
@@ -126,7 +145,7 @@
                serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
                tabs:0,
                urls:'/WEBSController/GetKf_PonderationBillMain_TempList_New_Json',
                MvarReportTitle:'生产领料单缓存列表',
                MvarReportTitle: this.$t('Kf_MateOutBillList.reportTitle') == 'Kf_MateOutBillList.reportTitle' ? '生产领料单缓存列表' : this.$t('Kf_MateOutBillList.reportTitle'),
                hform:{
                    HBillNo:'',
                    HSourceBillNo:'',
@@ -185,7 +204,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'接口请求失败',
                            title: this.$t('Kf_MateOutBillList.requestFailed') == 'Kf_MateOutBillList.requestFailed' ? '接口请求失败' : this.$t('Kf_MateOutBillList.requestFailed'),
                            icon:'none'
                        })
                    },
@@ -212,7 +231,7 @@
            },
            getList(){
                uni.showLoading({
                    title:'加载中...'
                    title: this.$t('Kf_MateOutBillList.loadingTitle') == 'Kf_MateOutBillList.loadingTitle' ? '加载中...' : this.$t('Kf_MateOutBillList.loadingTitle')
                })
                uni.request({
                    url: this.serverUrl + this.urls,
@@ -238,7 +257,7 @@
                        console.log(res);
                        uni.hideLoading()
                        uni.showToast({
                            title:'接口请求失败',
                            title: this.$t('Kf_MateOutBillList.requestFailed') == 'Kf_MateOutBillList.requestFailed' ? '接口请求失败' : this.$t('Kf_MateOutBillList.requestFailed'),
                            icon:'none'
                        })
                    },
@@ -303,7 +322,7 @@
                        console.log(res);
                        uni.hideLoading()
                        uni.showToast({
                            title:'接口请求失败',
                            title: this.$t('Kf_MateOutBillList.requestFailed') == 'Kf_MateOutBillList.requestFailed' ? '接口请求失败' : this.$t('Kf_MateOutBillList.requestFailed'),
                            icon:'none'
                        })
                    },
@@ -313,8 +332,8 @@
            del(item){
                // console.log(item.hmainid,uni.getStorageSync('HUserName'))
                uni.showModal({
                    title: '提示',
                    content: '确认要删除记录?删除后不能恢复',
                    title: this.$t('Kf_MateOutBillList.confirmTitle') == 'Kf_MateOutBillList.confirmTitle' ? '提示' : this.$t('Kf_MateOutBillList.confirmTitle'),
                    content: this.$t('Kf_MateOutBillList.delConfirm') == 'Kf_MateOutBillList.delConfirm' ? '确认要删除记录?删除后不能恢复' : this.$t('Kf_MateOutBillList.delConfirm'),
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
@@ -341,7 +360,7 @@
                                    console.log(res);
                                    uni.hideLoading()
                                    uni.showToast({
                                        title:'接口请求失败',
                                        title: this.$t('Kf_MateOutBillList.requestFailed') == 'Kf_MateOutBillList.requestFailed' ? '接口请求失败' : this.$t('Kf_MateOutBillList.requestFailed'),
                                        icon:'none'
                                    })
                                },
@@ -356,8 +375,8 @@
            revoke(item){
                // console.log(item.hmainid,uni.getStorageSync('HUserName'))
                uni.showModal({
                    title: '提示',
                    content: '是否确认撤销',
                    title: this.$t('Kf_MateOutBillList.confirmTitle') == 'Kf_MateOutBillList.confirmTitle' ? '提示' : this.$t('Kf_MateOutBillList.confirmTitle'),
                    content: this.$t('Kf_MateOutBillList.revokeConfirm') == 'Kf_MateOutBillList.revokeConfirm' ? '是否确认撤销' : this.$t('Kf_MateOutBillList.revokeConfirm'),
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
@@ -384,7 +403,7 @@
                                    console.log(res);
                                    uni.hideLoading()
                                    uni.showToast({
                                        title:'接口请求失败',
                                        title: this.$t('Kf_MateOutBillList.requestFailed') == 'Kf_MateOutBillList.requestFailed' ? '接口请求失败' : this.$t('Kf_MateOutBillList.requestFailed'),
                                        icon:'none'
                                    })
                                },
@@ -511,5 +530,4 @@
            }
        }
    }
</style>
</style>
pages/weiwailingliao/Kf_EntrustOutBillList.vue
@@ -1,33 +1,42 @@
<template>
    <view class="content">
        <view class="tabs">
            <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">缓存列表</view>
            <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">已上传列表</view>
            <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">
                {{ $t("Kf_EntrustOutBillList.cacheList") == "Kf_EntrustOutBillList.cacheList" ? "缓存列表" : $t("Kf_EntrustOutBillList.cacheList") }}
            </view>
            <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">
                {{ $t("Kf_EntrustOutBillList.uploadedList") == "Kf_EntrustOutBillList.uploadedList" ? "已上传列表" : $t("Kf_EntrustOutBillList.uploadedList") }}
            </view>
        </view>
        
        <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
        
        <view class="form" v-if="tabs == 0">
            <view class="buttons" @tap="add">
                <uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>新增
                <uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>
                {{ $t("Kf_EntrustOutBillList.btnAdd") == "Kf_EntrustOutBillList.btnAdd" ? "新增" : $t("Kf_EntrustOutBillList.btnAdd") }}
            </view>
        </view>
        <view class="form" v-if="tabs == 1">
            <view class="form-item">
                <view class="title">单据号:</view>
                <view class="title">{{ $t("Kf_EntrustOutBillList.billNo") == "Kf_EntrustOutBillList.billNo" ? "单据号:" : $t("Kf_EntrustOutBillList.billNo") }}:</view>
                <view class="right">
                    <input v-model="hform.HBillNo" placeholder="请输入单据号" />
                    <input v-model="hform.HBillNo" :placeholder="$t('Kf_EntrustOutBillList.billNoPlaceholder') == 'Kf_EntrustOutBillList.billNoPlaceholder' ? '请输入单据号' : $t('Kf_EntrustOutBillList.billNoPlaceholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">源单单号:</view>
                <view class="title">{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}:</view>
                <view class="right">
                    <input v-model="hform.HSourceBillNo" placeholder="请输入源单单号" />
                    <input v-model="hform.HSourceBillNo" :placeholder="$t('Kf_EntrustOutBillList.sourceBillNoPlaceholder') == 'Kf_EntrustOutBillList.sourceBillNoPlaceholder' ? '请输入源单单号' : $t('Kf_EntrustOutBillList.sourceBillNoPlaceholder')" />
                </view>
            </view>
            <view class="buttons">
                <button class="btn-a" size="mini" type="default" @tap="clear">重置</button>
                <button class="btn-c" size="mini" type="default" @tap="search">查询</button>
                <button class="btn-a" size="mini" type="default" @tap="clear">
                    {{ $t("Kf_EntrustOutBillList.btn_Reset") == "Kf_EntrustOutBillList.btn_Reset" ? "重置" : $t("Kf_EntrustOutBillList.btn_Reset") }}
                </button>
                <button class="btn-c" size="mini" type="default" @tap="search">
                    {{ $t("Kf_EntrustOutBillList.btn_Query") == "Kf_EntrustOutBillList.btn_Query" ? "查询" : $t("Kf_EntrustOutBillList.btn_Query") }}
                </button>
            </view>
        </view>
        
@@ -37,28 +46,30 @@
            <uni-card :title="item.制单日期.substr(0,10)" :extra="item.单据号" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index">
                <view class="card-detail">
                    <view class="detail" v-if="item.制单人">
                        <text>制单人:</text>{{item.制单人}}
                        <text>{{ $t("Gy.HMaker") == "Gy.HMaker" ? "制单人:" : $t("Gy.HMaker") }}:</text>{{item.制单人}}
                    </view>
                    <view class="detail" v-if="item.单据内码">
                        <text>单据内码:</text>{{item.单据内码}}
                        <text>{{ $t("Kf_EntrustOutBillList.table_BillID") == "Kf_EntrustOutBillList.table_BillID" ? "单据内码:" : $t("Kf_EntrustOutBillList.table_BillID") }}:</text>{{item.单据内码}}
                    </view>
                    <view class="detail" v-if="item.数量">
                        <text>数量:</text>{{item.数量}}
                        <text>{{ $t("Gy.HQty") == "Gy.HQty" ? "数量:" : $t("Gy.HQty") }}:</text>{{item.数量}}
                    </view>
                    <view class="detail" v-if="item.源单单号">
                        <text>源单单号:</text>{{item.源单单号}}
                        <text>{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}:</text>{{item.源单单号}}
                    </view>
                    <view class="detail" v-if="item.组织">
                        <text>组织:</text>{{item.组织}}
                        <text>{{ $t("Kf_EntrustOutBillList.table_Org") == "Kf_EntrustOutBillList.table_Org" ? "组织:" : $t("Kf_EntrustOutBillList.table_Org") }}:</text>{{item.组织}}
                    </view>
                </view>
                <view class="more">
                    <view class="part" style="border-right: 1px solid #eee;color: #3a78ff;" @tap.stop="edit(item)">
                        <uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>编辑
                        <uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("Kf_EntrustOutBillList.btn_Edit") == "Kf_EntrustOutBillList.btn_Edit" ? "编辑" : $t("Kf_EntrustOutBillList.btn_Edit") }}
                    </view>
                    <view class="part" style="color: #da0000;" @tap.stop="del(item)">
                        <uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>删除
                        <uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("Kf_EntrustOutBillList.btn_Del") == "Kf_EntrustOutBillList.btn_Del" ? "删除" : $t("Kf_EntrustOutBillList.btn_Del") }}
                    </view>
                </view>
            </uni-card>
@@ -67,45 +78,53 @@
            <uni-card :title="item.日期" :extra="item.单据号" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index">
                <view class="card-detail">
                    <view class="detail" v-if="item.状态">
                        <text>状态:</text>{{item.状态}}
                        <text>{{ $t("Kf_EntrustOutBillList.table_Status") == "Kf_EntrustOutBillList.table_Status" ? "状态:" : $t("Kf_EntrustOutBillList.table_Status") }}:</text>{{item.状态}}
                    </view>
                    <view class="detail" v-if="item.制单人">
                        <text>制单人:</text>{{item.制单人}}
                        <text>{{ $t("Gy.HMaker") == "Gy.HMaker" ? "制单人:" : $t("Gy.HMaker") }}:</text>{{item.制单人}}
                    </view>
                    <view class="detail" v-if="item.数量">
                        <text>数量:</text>{{item.数量}}
                        <text>{{ $t("Gy.HQty") == "Gy.HQty" ? "数量:" : $t("Gy.HQty") }}:</text>{{item.数量}}
                    </view>
                    <view class="detail" v-if="item.源单单号">
                        <text>源单单号:</text>{{item.源单单号}}
                        <text>{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}:</text>{{item.源单单号}}
                    </view>
                    <view class="detail" v-if="item.物料代码">
                        <text>物料代码:</text>{{item.物料代码}}
                        <text>{{ $t("Gy.HNumber") == "Gy.HNumber" ? "物料代码:" : $t("Gy.HNumber") }}:</text>{{item.物料代码}}
                    </view>
                    <view class="detail" v-if="item.物料名称">
                        <text>物料名称:</text>{{item.物料名称}}
                        <text>{{ $t("Gy.HName") == "Gy.HName" ? "物料名称:" : $t("Gy.HName") }}:</text>{{item.物料名称}}
                    </view>
                    <view class="detail" v-if="item.规格型号">
                        <text>规格型号:</text>{{item.规格型号}}
                        <text>{{ $t("Gy.HModel") == "Gy.HModel" ? "规格型号:" : $t("Gy.HModel") }}:</text>{{item.规格型号}}
                    </view>
                    <view class="detail" v-if="item.组织">
                        <text>组织:</text>{{item.组织}}
                        <text>{{ $t("Kf_EntrustOutBillList.table_Org") == "Kf_EntrustOutBillList.table_Org" ? "组织:" : $t("Kf_EntrustOutBillList.table_Org") }}:</text>{{item.组织}}
                    </view>
                </view>
        
                <view class="more">
                    <view class="part" style="color: #3a78ff;width: 100%;" @tap.stop="qrCodeDisplay(item)">
                        <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>显示二维码
                        <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("Kf_EntrustOutBillList.btn_DisplayCode") == "Kf_EntrustOutBillList.btn_DisplayCode" ? "显示二维码" : $t("Kf_EntrustOutBillList.btn_DisplayCode") }}
                    </view>
                    <view class="part" style="color: #d98d00;width: 100%;" @tap.stop="revoke(item)">
                        <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>撤销
                        <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("Kf_EntrustOutBillList.btn_Revoke") == "Kf_EntrustOutBillList.btn_Revoke" ? "撤销" : $t("Kf_EntrustOutBillList.btn_Revoke") }}
                    </view>
                </view>
            </uni-card>
        </view>
        
        <view class="over" v-if="!listData || listData.length == 0">暂无数据</view>
        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">加载中...</view>
        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">已到底</view>
        <view class="over" v-if="!listData || listData.length == 0">
            {{ $t("Kf_EntrustOutBillList.noData") == "Kf_EntrustOutBillList.noData" ? "暂无数据" : $t("Kf_EntrustOutBillList.noData") }}
        </view>
        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">
            {{ $t("Kf_EntrustOutBillList.Loading") == "Kf_EntrustOutBillList.Loading" ? "加载中..." : $t("Kf_EntrustOutBillList.Loading") }}
        </view>
        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">
            {{ $t("Kf_EntrustOutBillList.bottom") == "Kf_EntrustOutBillList.bottom" ? "已到底" : $t("Kf_EntrustOutBillList.bottom") }}
        </view>
        <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
    </view>
</template>
@@ -120,7 +139,7 @@
                serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
                tabs:0,
                urls:'/WEBSController/GetKf_PonderationBillMain_TempList_New_Json',
                MvarReportTitle:'生产领料单缓存列表',
                MvarReportTitle: this.$t('Kf_EntrustOutBillList.reportTitle') == 'Kf_EntrustOutBillList.reportTitle' ? '生产领料单缓存列表' : this.$t('Kf_EntrustOutBillList.reportTitle'),
                hform:{
                    HBillNo:'',
                    HSourceBillNo:'',
@@ -181,7 +200,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'接口请求失败',
                            title: this.$t('Kf_EntrustOutBillList.requestFailed') == 'Kf_EntrustOutBillList.requestFailed' ? '接口请求失败' : this.$t('Kf_EntrustOutBillList.requestFailed'),
                            icon:'none'
                        })
                    },
@@ -208,7 +227,7 @@
            },
            getList(){
                uni.showLoading({
                    title:'加载中...'
                    title: this.$t('Kf_EntrustOutBillList.loadingTitle') == 'Kf_EntrustOutBillList.loadingTitle' ? '加载中...' : this.$t('Kf_EntrustOutBillList.loadingTitle')
                })
                uni.request({
                    url: this.serverUrl + this.urls,
@@ -234,7 +253,7 @@
                        console.log(res);
                        uni.hideLoading()
                        uni.showToast({
                            title:'接口请求失败',
                            title: this.$t('Kf_EntrustOutBillList.requestFailed') == 'Kf_EntrustOutBillList.requestFailed' ? '接口请求失败' : this.$t('Kf_EntrustOutBillList.requestFailed'),
                            icon:'none'
                        })
                    },
@@ -299,7 +318,7 @@
                        console.log(res);
                        uni.hideLoading()
                        uni.showToast({
                            title:'接口请求失败',
                            title: this.$t('Kf_EntrustOutBillList.requestFailed') == 'Kf_EntrustOutBillList.requestFailed' ? '接口请求失败' : this.$t('Kf_EntrustOutBillList.requestFailed'),
                            icon:'none'
                        })
                    },
@@ -309,8 +328,8 @@
            del(item){
                // console.log(item.hmainid,uni.getStorageSync('HUserName'))
                uni.showModal({
                    title: '提示',
                    content: '确认要删除记录?删除后不能恢复',
                    title: this.$t('Kf_EntrustOutBillList.confirmTitle') == 'Kf_EntrustOutBillList.confirmTitle' ? '提示' : this.$t('Kf_EntrustOutBillList.confirmTitle'),
                    content: this.$t('Kf_EntrustOutBillList.delConfirm') == 'Kf_EntrustOutBillList.delConfirm' ? '确认要删除记录?删除后不能恢复' : this.$t('Kf_EntrustOutBillList.delConfirm'),
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
@@ -337,7 +356,7 @@
                                    console.log(res);
                                    uni.hideLoading()
                                    uni.showToast({
                                        title:'接口请求失败',
                                        title: this.$t('Kf_EntrustOutBillList.requestFailed') == 'Kf_EntrustOutBillList.requestFailed' ? '接口请求失败' : this.$t('Kf_EntrustOutBillList.requestFailed'),
                                        icon:'none'
                                    })
                                },
@@ -352,8 +371,8 @@
            revoke(item){
                // console.log(item.hmainid,uni.getStorageSync('HUserName'))
                uni.showModal({
                    title: '提示',
                    content: '是否确认撤销',
                    title: this.$t('Kf_EntrustOutBillList.confirmTitle') == 'Kf_EntrustOutBillList.confirmTitle' ? '提示' : this.$t('Kf_EntrustOutBillList.confirmTitle'),
                    content: this.$t('Kf_EntrustOutBillList.revokeConfirm') == 'Kf_EntrustOutBillList.revokeConfirm' ? '是否确认撤销' : this.$t('Kf_EntrustOutBillList.revokeConfirm'),
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
@@ -380,7 +399,7 @@
                                    console.log(res);
                                    uni.hideLoading()
                                    uni.showToast({
                                        title:'接口请求失败',
                                        title: this.$t('Kf_EntrustOutBillList.requestFailed') == 'Kf_EntrustOutBillList.requestFailed' ? '接口请求失败' : this.$t('Kf_EntrustOutBillList.requestFailed'),
                                        icon:'none'
                                    })
                                },
@@ -507,5 +526,4 @@
            }
        }
    }
</style>
</style>
pages/weiwairuku/EntrustInBillList.vue
@@ -1,33 +1,42 @@
<template>
    <view class="content">
        <view class="tabs">
            <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">缓存列表</view>
            <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">已上传列表</view>
            <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">
                {{ $t("EntrustInBillList.cacheList") == "EntrustInBillList.cacheList" ? "缓存列表" : $t("EntrustInBillList.cacheList") }}
            </view>
            <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">
                {{ $t("EntrustInBillList.uploadedList") == "EntrustInBillList.uploadedList" ? "已上传列表" : $t("EntrustInBillList.uploadedList") }}
            </view>
        </view>
        
        <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
        
        <view class="form" v-if="tabs == 0">
            <view class="buttons" @tap="add">
                <uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>新增
                <uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>
                {{ $t("EntrustInBillList.btnAdd") == "EntrustInBillList.btnAdd" ? "新增" : $t("EntrustInBillList.btnAdd") }}
            </view>
        </view>
        <view class="form" v-if="tabs == 1">
            <view class="form-item">
                <view class="title">单据号:</view>
                <view class="title">{{ $t("EntrustInBillList.billNo") == "EntrustInBillList.billNo" ? "单据号:" : $t("EntrustInBillList.billNo") }}</view>
                <view class="right">
                    <input v-model="hform.HBillNo" placeholder="请输入单据号" />
                    <input v-model="hform.HBillNo" :placeholder="$t('EntrustInBillList.billNoPlaceholder') == 'EntrustInBillList.billNoPlaceholder' ? '请输入单据号' : $t('EntrustInBillList.billNoPlaceholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">源单单号:</view>
                <view class="title">{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}</view>
                <view class="right">
                    <input v-model="hform.HSourceBillNo" placeholder="请输入源单单号" />
                    <input v-model="hform.HSourceBillNo" :placeholder="$t('EntrustInBillList.sourceBillNoPlaceholder') == 'EntrustInBillList.sourceBillNoPlaceholder' ? '请输入源单单号' : $t('EntrustInBillList.sourceBillNoPlaceholder')" />
                </view>
            </view>
            <view class="buttons">
                <button class="btn-a" size="mini" type="default" @tap="clear">重置</button>
                <button class="btn-c" size="mini" type="default" @tap="search">查询</button>
                <button class="btn-a" size="mini" type="default" @tap="clear">
                    {{ $t("EntrustInBillList.btn_Reset") == "EntrustInBillList.btn_Reset" ? "重置" : $t("EntrustInBillList.btn_Reset") }}
                </button>
                <button class="btn-c" size="mini" type="default" @tap="search">
                    {{ $t("EntrustInBillList.btn_Query") == "EntrustInBillList.btn_Query" ? "查询" : $t("EntrustInBillList.btn_Query") }}
                </button>
            </view>
        </view>
        
@@ -37,28 +46,30 @@
            <uni-card :title="item.制单日期.substr(0,10)" :extra="item.单据号" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index">
                <view class="card-detail">
                    <view class="detail" v-if="item.制单人">
                        <text>制单人:</text>{{item.制单人}}
                        <text>{{ $t("Gy.HMaker") == "Gy.HMaker" ? "制单人:" : $t("Gy.HMaker") }}</text>{{item.制单人}}
                    </view>
                    <view class="detail" v-if="item.单据内码">
                        <text>单据内码:</text>{{item.单据内码}}
                        <text>{{ $t("EntrustInBillList.table_BillID") == "EntrustInBillList.table_BillID" ? "单据内码:" : $t("EntrustInBillList.table_BillID") }}</text>{{item.单据内码}}
                    </view>
                    <view class="detail" v-if="item.数量">
                        <text>数量:</text>{{item.数量}}
                        <text>{{ $t("Gy.HQty") == "Gy.HQty" ? "数量:" : $t("Gy.HQty") }}</text>{{item.数量}}
                    </view>
                    <view class="detail" v-if="item.源单单号">
                        <text>源单单号:</text>{{item.源单单号}}
                        <text>{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}</text>{{item.源单单号}}
                    </view>
                    <view class="detail" v-if="item.组织">
                        <text>组织:</text>{{item.组织}}
                        <text>{{ $t("EntrustInBillList.table_Org") == "EntrustInBillList.table_Org" ? "组织:" : $t("EntrustInBillList.table_Org") }}</text>{{item.组织}}
                    </view>
                </view>
                <view class="more">
                    <view class="part" style="border-right: 1px solid #eee;color: #3a78ff;" @tap.stop="edit(item)">
                        <uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>编辑
                        <uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("EntrustInBillList.btn_Edit") == "EntrustInBillList.btn_Edit" ? "编辑" : $t("EntrustInBillList.btn_Edit") }}
                    </view>
                    <view class="part" style="color: #da0000;" @tap.stop="del(item)">
                        <uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>删除
                        <uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("EntrustInBillList.btn_Del") == "EntrustInBillList.btn_Del" ? "删除" : $t("EntrustInBillList.btn_Del") }}
                    </view>
                </view>
            </uni-card>
@@ -67,42 +78,50 @@
            <uni-card :title="item.日期" :extra="item.单据号" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index">
                <view class="card-detail">
                    <view class="detail" v-if="item.制单人">
                        <text>制单人:</text>{{item.制单人}}
                        <text>{{ $t("Gy.HMaker") == "Gy.HMaker" ? "制单人:" : $t("Gy.HMaker") }}</text>{{item.制单人}}
                    </view>
                    <view class="detail" v-if="item.数量">
                        <text>数量:</text>{{item.数量}}
                        <text>{{ $t("Gy.HQty") == "Gy.HQty" ? "数量:" : $t("Gy.HQty") }}</text>{{item.数量}}
                    </view>
                    <view class="detail" v-if="item.源单单号">
                        <text>源单单号:</text>{{item.源单单号}}
                        <text>{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "源单单号:" : $t("Gy.HMainSourceBillNo") }}</text>{{item.源单单号}}
                    </view>
                    <view class="detail" v-if="item.物料代码">
                        <text>物料代码:</text>{{item.物料代码}}
                        <text>{{ $t("Gy.HNumber") == "Gy.HNumber" ? "物料代码:" : $t("Gy.HNumber") }}</text>{{item.物料代码}}
                    </view>
                    <view class="detail" v-if="item.物料名称">
                        <text>物料名称:</text>{{item.物料名称}}
                        <text>{{ $t("Gy.HName") == "Gy.HName" ? "物料名称:" : $t("Gy.HName") }}</text>{{item.物料名称}}
                    </view>
                    <view class="detail" v-if="item.规格型号">
                        <text>规格型号:</text>{{item.规格型号}}
                        <text>{{ $t("Gy.HModel") == "Gy.HModel" ? "规格型号:" : $t("Gy.HModel") }}</text>{{item.规格型号}}
                    </view>
                    <view class="detail" v-if="item.组织">
                        <text>组织:</text>{{item.组织}}
                        <text>{{ $t("EntrustInBillList.table_Org") == "EntrustInBillList.table_Org" ? "组织:" : $t("EntrustInBillList.table_Org") }}</text>{{item.组织}}
                    </view>
                </view>
        
                <view class="more">
                    <view class="part" style="color: #3a78ff;width: 100%;" @tap.stop="qrCodeDisplay(item)">
                        <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>显示二维码
                        <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("EntrustInBillList.btn_DisplayCode") == "EntrustInBillList.btn_DisplayCode" ? "显示二维码" : $t("EntrustInBillList.btn_DisplayCode") }}
                    </view>
                    <view class="part" style="color: #d98d00;width: 100%;" @tap.stop="revoke(item)">
                        <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>撤销
                        <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>
                        {{ $t("EntrustInBillList.btn_Revoke") == "EntrustInBillList.btn_Revoke" ? "撤销" : $t("EntrustInBillList.btn_Revoke") }}
                    </view>
                </view>
            </uni-card>
        </view>
        
        <view class="over" v-if="!listData || listData.length == 0">暂无数据</view>
        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">加载中...</view>
        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">已到底</view>
        <view class="over" v-if="!listData || listData.length == 0">
            {{ $t("EntrustInBillList.noData") == "EntrustInBillList.noData" ? "暂无数据" : $t("EntrustInBillList.noData") }}
        </view>
        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">
            {{ $t("EntrustInBillList.Loading") == "EntrustInBillList.Loading" ? "加载中..." : $t("EntrustInBillList.Loading") }}
        </view>
        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">
            {{ $t("EntrustInBillList.bottom") == "EntrustInBillList.bottom" ? "已到底" : $t("EntrustInBillList.bottom") }}
        </view>
        <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
    </view>
</template>
@@ -117,7 +136,7 @@
                serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
                tabs:0,
                urls:'/WEBSController/GetKf_PonderationBillMain_TempList_New_Json',
                MvarReportTitle:'生产领料单缓存列表',
                MvarReportTitle: this.$t('EntrustInBillList.reportTitle') == 'EntrustInBillList.reportTitle' ? '生产领料单缓存列表' : this.$t('EntrustInBillList.reportTitle'),
                hform:{
                    HBillNo:'',
                    HSourceBillNo:'',
@@ -178,7 +197,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'接口请求失败',
                            title: this.$t('EntrustInBillList.requestFailed') == 'EntrustInBillList.requestFailed' ? '接口请求失败' : this.$t('EntrustInBillList.requestFailed'),
                            icon:'none'
                        })
                    },
@@ -205,7 +224,7 @@
            },
            getList(){
                uni.showLoading({
                    title:'加载中...'
                    title: this.$t('EntrustInBillList.loadingTitle') == 'EntrustInBillList.loadingTitle' ? '加载中...' : this.$t('EntrustInBillList.loadingTitle')
                })
                uni.request({
                    url: this.serverUrl + this.urls,
@@ -231,7 +250,7 @@
                        console.log(res);
                        uni.hideLoading()
                        uni.showToast({
                            title:'接口请求失败',
                            title: this.$t('EntrustInBillList.requestFailed') == 'EntrustInBillList.requestFailed' ? '接口请求失败' : this.$t('EntrustInBillList.requestFailed'),
                            icon:'none'
                        })
                    },
@@ -296,7 +315,7 @@
                        console.log(res);
                        uni.hideLoading()
                        uni.showToast({
                            title:'接口请求失败',
                            title: this.$t('EntrustInBillList.requestFailed') == 'EntrustInBillList.requestFailed' ? '接口请求失败' : this.$t('EntrustInBillList.requestFailed'),
                            icon:'none'
                        })
                    },
@@ -306,8 +325,8 @@
            del(item){
                // console.log(item.hmainid,uni.getStorageSync('HUserName'))
                uni.showModal({
                    title: '提示',
                    content: '确认要删除记录?删除后不能恢复',
                    title: this.$t('EntrustInBillList.confirmTitle') == 'EntrustInBillList.confirmTitle' ? '提示' : this.$t('EntrustInBillList.confirmTitle'),
                    content: this.$t('EntrustInBillList.delConfirm') == 'EntrustInBillList.delConfirm' ? '确认要删除记录?删除后不能恢复' : this.$t('EntrustInBillList.delConfirm'),
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
@@ -334,7 +353,7 @@
                                    console.log(res);
                                    uni.hideLoading()
                                    uni.showToast({
                                        title:'接口请求失败',
                                        title: this.$t('EntrustInBillList.requestFailed') == 'EntrustInBillList.requestFailed' ? '接口请求失败' : this.$t('EntrustInBillList.requestFailed'),
                                        icon:'none'
                                    })
                                },
@@ -349,8 +368,8 @@
            revoke(item){
                // console.log(item.hmainid,uni.getStorageSync('HUserName'))
                uni.showModal({
                    title: '提示',
                    content: '是否确认撤销',
                    title: this.$t('EntrustInBillList.confirmTitle') == 'EntrustInBillList.confirmTitle' ? '提示' : this.$t('EntrustInBillList.confirmTitle'),
                    content: this.$t('EntrustInBillList.revokeConfirm') == 'EntrustInBillList.revokeConfirm' ? '是否确认撤销' : this.$t('EntrustInBillList.revokeConfirm'),
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
@@ -377,7 +396,7 @@
                                    console.log(res);
                                    uni.hideLoading()
                                    uni.showToast({
                                        title:'接口请求失败',
                                        title: this.$t('EntrustInBillList.requestFailed') == 'EntrustInBillList.requestFailed' ? '接口请求失败' : this.$t('EntrustInBillList.requestFailed'),
                                        icon:'none'
                                    })
                                },
@@ -504,5 +523,4 @@
            }
        }
    }
</style>
</style>