chenhaozhe
2026-03-05 06c0903e15254ad2bfd02fbcf9cda25be7b28470
Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev
3个文件已修改
178 ■■■■■ 已修改文件
pages/index/login.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanrukushengdan/Kf_ProductInBill.vue 117 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanrukushengdan/Kf_ProductInBillList.vue 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/login.vue
@@ -19,7 +19,7 @@
                    </view> -->
                    <view class="item">
                        <view class="left">{{ $t("login.Language") }}:</view>
                        <picker :range="['中文','English']" :value="Language" @change="onLanguageChangeHandler">
                        <picker :range="['中文','English','Thai']" :value="Language" @change="onLanguageChangeHandler">
                            <view class="right" style="display: flex;align-items: center;">
                                <input type="text" disabled v-model="Language" placeholder="请选择语言">
                                <uni-icons type="forward" color="#808080"
@@ -178,6 +178,11 @@
                    this.ApplyLanguagePack("en")
                    // this.$i18n.locale = 'en'
                }
                if (e.detail.value == 2) {
                    this.Language = 'Thai'
                    this.ApplyLanguagePack("Thai")
                    // this.$i18n.locale = 'en'
                }
            },
            async InitOrgination() {
                console.log("初始化组织")
pages/shengchanrukushengdan/Kf_ProductInBill.vue
@@ -2,9 +2,10 @@
    <view>
        <view class="form">
            <view class="form-item">
                <view class="title">条码:</view>
                <view class="title" id="BarCode">{{ $t("Kf_ProductInBill_PDA.BarCode") == "Kf_ProductInBill_PDA.BarCode" ? "条码" : $t("Kf_ProductInBill_PDA.BarCode") }}:</view>
                <!--  <view class="title">条码:</view>-->
                <view class="right" style="width: 380rpx;">
                    <input :focus="barCodeFocus" v-model="hform.HBarCode" placeholder="请扫描(或输入)条码"
                    <input :focus="barCodeFocus" v-model="hform.HBarCode" :placeholder="placeholder_BarCode"
                        @confirm="getCode(hform.HBarCode)" />
                </view>
                <view class="icon-wrapper">
@@ -12,23 +13,23 @@
                </view>
            </view>
            <view class="form-item">
                <view class="title">数量:</view>
                <view class="title">{{ $t("Kf_ProductInBill_PDA.Qty") == "Kf_ProductInBill_PDA.Qty" ? "数量" : $t("Kf_ProductInBill_PDA.Qty") }}:</view>
                <view class="right">
                    <input v-model="hform.HQty" placeholder="请输入数量" />
                    <input v-model="hform.HQty" :placeholder="placeholder_Qty" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">仓库:</view>
                <view class="title">{{ $t("Kf_ProductInBill_PDA.Warehouse") == "Kf_ProductInBill_PDA.Warehouse" ? "仓库" : $t("Kf_ProductInBill_PDA.Warehouse") }}:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHWHName" placeholder="请输入(或扫描)仓库" v-model="hform.HWHName"
                    <uni-combox :candidates="arrayHWHName" :placeholder="placeholder_Warehouse"
                        @input="HWHNameChange" @confirm="HWHNameScan"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title">仓位:</view>
                <view class="title">{{ $t("Kf_ProductInBill_PDA.StockPlace") == "Kf_ProductInBill_PDA.StockPlace" ? "仓位" : $t("Kf_ProductInBill_PDA.StockPlace") }}:</view>
                <!-- 四维尔需扫仓位码带出仓库和仓位信息,先去除仓位扫码的控制 -->
                <view class="right">
                    <uni-combox :candidates="HStockPlaceNameListComputed" placeholder="请输入(或扫描)仓位"
                    <uni-combox :candidates="HStockPlaceNameListComputed" :placeholder="placeholder_StockPlace"
                        v-model="hform.HStockPlaceName" @input="HStockPlaceNameChange"
                        @confirm="HStockPlaceNameScan"></uni-combox>
                </view>
@@ -38,16 +39,16 @@
            </view>
            <view class="tabs">
                <view :class="tabs == 0 ? 'on' : ''" @tap="tabs = 0">选择源单</view>
                <view :class="tabs == 1 ? 'on' : ''" @tap="tabs = 1">表头信息</view>
                <view :class="tabs == 2 ? 'on' : ''" @tap="tabs = 2">物料信息</view>
                <view :class="tabs == 3 ? 'on' : ''" @tap="tabs = 3">条码信息</view>
                <view :class="tabs == 4 ? 'on' : ''" @tap="tabs = 4">下架信息</view>
                <view :class="tabs == 0 ? 'on' : ''" @tap="tabs = 0">{{ $t("Kf_ProductInBill_PDA.selectSource") == "Kf_ProductInBill_PDA.selectSource" ? "选择源单" : $t("Kf_ProductInBill_PDA.selectSource") }}</view>
                <view :class="tabs == 1 ? 'on' : ''" @tap="tabs = 1">{{ $t("Kf_ProductInBill_PDA.tableInfo") == "Kf_ProductInBill_PDA.tableInfo" ? "表头信息" : $t("Kf_ProductInBill_PDA.tableInfo") }}</view>
                <view :class="tabs == 2 ? 'on' : ''" @tap="tabs = 2">{{ $t("Kf_ProductInBill_PDA.materInfo") == "Kf_ProductInBill_PDA.materInfo" ? "物料信息" : $t("Kf_ProductInBill_PDA.materInfo") }}</view>
                <view :class="tabs == 3 ? 'on' : ''" @tap="tabs = 3">{{ $t("Kf_ProductInBill_PDA.barInfo") == "Kf_ProductInBill_PDA.barInfo" ? "条码信息" : $t("Kf_ProductInBill_PDA.barInfo") }}</view>
                <view :class="tabs == 4 ? 'on' : ''" @tap="tabs = 4">{{ $t("Kf_ProductInBill_PDA.removeShelvesInfo") == "Kf_ProductInBill_PDA.removeShelvesInfo" ? "下架信息" : $t("Kf_ProductInBill_PDA.removeShelvesInfo") }}</view>
            </view>
            <view v-if="tabs == 0">
                <view class="form-item">
                    <view class="title">源单类型:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.SourceBillType") == "Kf_ProductInBill_PDA.SourceBillType" ? "源单类型" : $t("Kf_ProductInBill_PDA.SourceBillType") }}:</view>
                    <view class="right" v-show="showHMainSourceBillType">
                        <picker :range="arrayHMainSourceBillType" v-model="HMainSourceBillType"
                            @change="HMainSourceBillTypeChange">
@@ -63,13 +64,13 @@
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">源单单号:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.SourceBillNo") == "Kf_ProductInBill_PDA.SourceBillNo" ? "源单单号" : $t("Kf_ProductInBill_PDA.SourceBillNo") }}:</view>
                    <view class="right" v-show="showHSourceBillNo">
                        <!-- <uni-combox v-if="reHSourceBillNo" :candidates="arrayHSourceBillNo" placeholder="请输入源单单号"
                            v-model="hform.HSourceBillNo" @input="HSourceBillNoChange"></uni-combox> -->
                        <input type="text" :focus="HSourceBillNoFocus" name="HSourceBillNo"
                            @confirm="onHSourceBillNoConfirmHandler" v-model="hform.HSourceBillNo"
                            placeholder="请输入源单单号" />
                            :placeholder="placeholder_SourceBillNo" />
                    </view>
                    <view class="icon-wrapper" v-show="showHSourceBillNo" :disabled="hform.HMainSourceBillType === -1">
@@ -88,7 +89,7 @@
                    </view>
                </view> -->
                <view class="form-item">
                    <view class="title">日期:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.Date") == "Kf_ProductInBill_PDA.Date" ? "日期" : $t("Kf_ProductInBill_PDA.Date") }}:</view>
                    <view class="right">
                        <picker mode="date" v-model="hform.HDate" @change="HDateChange">
                            <view class="picker-overlay"></view>
@@ -97,13 +98,13 @@
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">制单人:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.Maker") == "Kf_ProductInBill_PDA.Maker" ? "制单人" : $t("Kf_ProductInBill_PDA.Maker") }}:</view>
                    <view class="righton">
                        <input name="HMaker" disabled v-model="hform.HMaker" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">单据号:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.BillNo") == "Kf_ProductInBill_PDA.BillNo" ? "单据号" : $t("Kf_ProductInBill_PDA.BillNo") }}:</view>
                    <view class="righton">
                        <input name="HBillNo" disabled v-model="hform.HBillNo" />
                    </view>
@@ -112,7 +113,7 @@
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">单据ID:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.BillID") == "Kf_ProductInBill_PDA.BillID" ? "单据ID" : $t("Kf_ProductInBill_PDA.BillID") }}:</view>
                    <view class="righton">
                        <input name="HInterID" disabled v-model="hform.HInterID" />
                    </view>
@@ -121,21 +122,21 @@
            <view v-if="tabs == 1">
                <view class="form-item">
                    <view class="title">保管:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.Keeper") == "Kf_ProductInBill_PDA.Keeper" ? "保管员" : $t("Kf_ProductInBill_PDA.Keeper") }}:</view>
                    <view class="right">
                        <uni-combox :candidates="arrayHEmpName" placeholder="请选择保管员" v-model="hform.HKeeperName"
                            @input="HKeeperNameChange"></uni-combox>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">验收:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.SecManager") == "Kf_ProductInBill_PDA.SecManager" ? "验收员" : $t("Kf_ProductInBill_PDA.SecManager") }}:</view>
                    <view class="right">
                        <uni-combox :candidates="arrayHEmpName" placeholder="请选择验收员" v-model="hform.HSecManagerName"
                            @input="HSecManagerNameChange"></uni-combox>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">部门:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.Dept") == "Kf_ProductInBill_PDA.Dept" ? "部门" : $t("Kf_ProductInBill_PDA.Dept") }}:</view>
                    <view class="right">
                        <uni-combox :candidates="arrayHDeptName" placeholder="请选择部门" v-model="hform.HDeptName"
                            @input="HDeptNameChange"></uni-combox>
@@ -152,7 +153,7 @@
                    </view>
                </view> -->
                <view class="form-item">
                    <view class="title">组织:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.StockOrg") == "Kf_ProductInBill_PDA.StockOrg" ? "组织" : $t("Kf_ProductInBill_PDA.StockOrg") }}:</view>
                    <view class="righton">
                        <input name="HStockOrgName" disabled v-model="hform.HStockOrgName" />
                    </view>
@@ -164,22 +165,22 @@
                    <uni-card :title="item.物料名称" :extra="item.物料代码" style="margin: 10px;" @tap="delMater(item)">
                        <view class="card-detail">
                            <view class="detail">
                                <text>源单单号:</text>{{ item.源单单号 }}
                                <text>{{ $t("Kf_ProductInBill_PDA.table_SourceBillNo") == "Kf_ProductInBill_PDA.table_SourceBillNo" ? "源单单号" : $t("Kf_ProductInBill_PDA.table_SourceBillNo") }}:</text>{{ item.源单单号 }}
                            </view>
                            <view class="detail">
                                <text>源单数量:</text>{{ item.源单数量 }}
                                <text>{{ $t("Kf_ProductInBill_PDA.table_SourceBillQty") == "Kf_ProductInBill_PDA.table_SourceBillQty" ? "源单数量" : $t("Kf_ProductInBill_PDA.table_SourceBillQty") }}:</text>{{ item.源单数量 }}
                            </view>
                            <view class="detail">
                                <text>数量:</text>{{ item.数量 }}
                                <text>{{ $t("Kf_ProductInBill_PDA.table_BarQty") == "Kf_ProductInBill_PDA.table_BarQty" ? "数量" : $t("Kf_ProductInBill_PDA.table_BarQty") }}:</text>{{ item.数量 }}
                            </view>
                            <view class="detail">
                                <text>条码个数:</text>{{ item.条码个数 }}
                                <text>{{ $t("Kf_ProductInBill_PDA.table_BarNum") == "Kf_ProductInBill_PDA.table_BarNum" ? "条码个数" : $t("Kf_ProductInBill_PDA.table_BarNum") }}:</text>{{ item.条码个数 }}
                            </view>
                            <view class="detail" v-if="item.规格型号">
                                <text>规格型号:</text>{{ item.规格型号 }}
                                <text>{{ $t("Kf_ProductInBill_PDA.table_MaterModel") == "Kf_ProductInBill_PDA.table_MaterModel" ? "规格型号" : $t("Kf_ProductInBill_PDA.table_MaterModel") }}:</text>{{ item.规格型号 }}
                            </view>
                            <view class="detail" v-if="item.辅助属性">
                                <text>辅助属性:</text>{{ item.辅助属性 }}
                                <text>{{ $t("Kf_ProductInBill_PDA.table_Aux") == "Kf_ProductInBill_PDA.table_Aux" ? "辅助属性" : $t("Kf_ProductInBill_PDA.table_Aux") }}:</text>{{ item.辅助属性 }}
                            </view>
                        </view>
                    </uni-card>
@@ -193,25 +194,25 @@
                        @tap="delMater(item)">
                        <view class="card-detail">
                            <view class="detail">
                                <text>数量:</text>{{ item.HQty }}
                                <text>{{ $t("Kf_ProductInBill_PDA.Qty") == "Kf_ProductInBill_PDA.Qty" ? "数量" : $t("Kf_ProductInBill_PDA.Qty") }}:</text>{{ item.HQty }}
                            </view>
                            <view class="detail">
                                <text>下架数量:</text>{{ item.HQtyMust }}
                                <text>下架{{ $t("Kf_ProductInBill_PDA.Qty") == "Kf_ProductInBill_PDA.Qty" ? "数量" : $t("Kf_ProductInBill_PDA.Qty") }}:</text>{{ item.HQtyMust }}
                            </view>
                            <view class="detail">
                                <text>仓库:</text>{{ item.HWhName }}
                                <text>{{ $t("Kf_ProductInBill_PDA.Warehouse") == "Kf_ProductInBill_PDA.Warehouse" ? "仓库" : $t("Kf_ProductInBill_PDA.Warehouse") }}:</text>{{ item.HWhName }}
                            </view>
                            <view class="detail">
                                <text>仓位:</text>{{ item.HSPName }}
                                <text>{{ $t("Kf_ProductInBill_PDA.StockPlace") == "Kf_ProductInBill_PDA.StockPlace" ? "仓位" : $t("Kf_ProductInBill_PDA.StockPlace") }}:</text>{{ item.HSPName }}
                            </view>
                            <view class="detail">
                                <text>规格型号:</text>{{ item.HMaterModel }}
                                <text>{{ $t("Kf_ProductInBill_PDA.MaterModel") == "Kf_ProductInBill_PDA.MaterModel" ? "规格型号" : $t("Kf_ProductInBill_PDA.MaterModel") }}:</text>{{ item.HMaterModel }}
                            </view>
                            <view class="detail" v-if="item.HBatchNo">
                                <text>批号:</text>{{ item.HBatchNo }}
                                <text>{{ $t("Kf_ProductInBill_PDA.BatchNo") == "Kf_ProductInBill_PDA.BatchNo" ? "批号" : $t("Kf_ProductInBill_PDA.BatchNo") }}:</text>{{ item.HBatchNo }}
                            </view>
                            <view class="detail" v-if="item.HAuxPropName">
                                <text>辅助属性:</text>{{ item.HAuxPropName }}
                                <text>{{ $t("Kf_ProductInBill_PDA.table_Aux") == "Kf_ProductInBill_PDA.table_Aux" ? "辅助属性" : $t("Kf_ProductInBill_PDA.table_Aux") }}:</text>{{ item.HAuxPropName }}
                            </view>
                        </view>
                    </uni-card>
@@ -221,55 +222,55 @@
            <view v-if="tabs == 3">
                <view class="form-item">
                    <view class="title">条码:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.BarCode") == "Kf_ProductInBill_PDA.BarCode" ? "条码" : $t("Kf_ProductInBill_PDA.BarCode") }}:</view>
                    <view class="righton">
                        <input name="HBarCode_B" disabled v-model="hform.HBarCode_B" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">物料:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.Material") == "Kf_ProductInBill_PDA.Material" ? "物料" : $t("Kf_ProductInBill_PDA.Material") }}:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HMaterName_B" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">规格:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.MaterModel") == "Kf_ProductInBill_PDA.MaterModel" ? "规格" : $t("Kf_ProductInBill_PDA.MaterModel") }}:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HMaterModel_B" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">批次:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.BatchNo") == "Kf_ProductInBill_PDA.BatchNo" ? "批次" : $t("Kf_ProductInBill_PDA.BatchNo") }}:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HBatchNo_B" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">单位:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.Unit") == "Kf_ProductInBill_PDA.Unit" ? "单位" : $t("Kf_ProductInBill_PDA.Unit") }}:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HUnitName_B" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">数量:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.Qty") == "Kf_ProductInBill_PDA.Qty" ? "数量" : $t("Kf_ProductInBill_PDA.Qty") }}:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HQty_B" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">容量:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.Capacity") == "Kf_ProductInBill_PDA.Capacity" ? "容量" : $t("Kf_ProductInBill_PDA.Capacity") }}:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HTMQty_B" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">仓库:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.Warehouse") == "Kf_ProductInBill_PDA.Warehouse" ? "仓库" : $t("Kf_ProductInBill_PDA.Warehouse") }}:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HWHName_B" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">仓位:</view>
                    <view class="title">{{ $t("Kf_ProductInBill_PDA.StockPlace") == "Kf_ProductInBill_PDA.StockPlace" ? "仓位" : $t("Kf_ProductInBill_PDA.StockPlace") }}:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HSPName_B" />
                    </view>
@@ -277,10 +278,10 @@
            </view>
            <view class="bottom-btn">
                <button class="btn-a" size="mini" @tap="submit">提交</button>
                <button class="btn-a" size="mini" @tap="submit">{{ $t("Kf_ProductInBill_PDA.btnSubmit") == "Kf_ProductInBill_PDA.btnSubmit" ? "提交" : $t("Kf_ProductInBill_PDA.btnSubmit") }}</button>
                <view style="flex: 1;"></view>
                <button class="btn-a" size="mini" @tap="addNew">新增</button>
                <button class="btn-c" size="mini" @tap="goBack">退出</button>
                <button class="btn-a" size="mini" @tap="addNew">{{ $t("Kf_ProductInBill_PDA.btnAdd") == "Kf_ProductInBill_PDA.btnAdd" ? "新增" : $t("Kf_ProductInBill_PDA.btnAdd") }}</button>
                <button class="btn-c" size="mini" @tap="goBack">{{ $t("Kf_ProductInBill_PDA.btnExit") == "Kf_ProductInBill_PDA.btnExit" ? "退出" : $t("Kf_ProductInBill_PDA.btnExit") }}</button>
            </view>
        </view>
        <BillSelectPopupXiaoWeiVue v-if="enableModule == 1" ref="billList" :HBillType="hform.HBillType"
@@ -388,7 +389,12 @@
                    HTMQty_B: '',
                    HWHName_B: '',
                    HSPName_B: '',
                }
                },
                placeholder_BarCode:this.$t("Kf_ProductInBill_PDA.placeholder_BarCode") == "Kf_ProductInBill_PDA.placeholder_BarCode" ? "请扫描(或输入)条码" : this.$t("Kf_ProductInBill_PDA.placeholder_BarCode"),
                placeholder_Qty:this.$t("Kf_ProductInBill_PDA.placeholder_Qty") == "Kf_ProductInBill_PDA.placeholder_Qty" ? "请输入数量" : this.$t("Kf_ProductInBill_PDA.placeholder_Qty"),
                placeholder_Warehouse:this.$t("Kf_ProductInBill_PDA.placeholder_Warehouse") == "Kf_ProductInBill_PDA.placeholder_Warehouse" ? "请输入(或扫描)仓库" : this.$t("Kf_ProductInBill_PDA.placeholder_Warehouse"),
                placeholder_StockPlace:this.$t("Kf_ProductInBill_PDA.placeholder_StockPlace") == "Kf_ProductInBill_PDA.placeholder_StockPlace" ? "请输入(或扫描)仓位" : this.$t("Kf_ProductInBill_PDA.placeholder_StockPlace"),
                placeholder_SourceBillNo:this.$t("Kf_ProductInBill_PDA.placeholder_SourceBillNo") == "Kf_ProductInBill_PDA.placeholder_SourceBillNo" ? "请输入源单单号" : this.$t("Kf_ProductInBill_PDA.placeholder_SourceBillNo")
            }
        },
        components: {
@@ -421,6 +427,9 @@
            }
        },
        async onLoad(e) {
            uni.setNavigationBarTitle({
                title: this.$t("Kf_ProductInBill_PDA.title")
            })
            console.log(e, this.userInfo)
            this.OperationType = e.OperationType
            await this.GetSourceBillType()
@@ -753,7 +762,13 @@
                        this.arrayHMainSourceBillType = []
                        this.arrayHMainSourceBillValue = []
                        Array.from(data).forEach(e => {
                            this.arrayHMainSourceBillType.push(e['HSourceBillTypeName'])
                            //this.arrayHMainSourceBillType.push(e['HSourceBillTypeName'])
                            for(var j = 0; j < this.$t("Kf_ProductInBill_PDA.select option").length; j++){
                                let HSourceBillType_FY = this.$t("Kf_ProductInBill_PDA.select option[" + j + "]").split("@");
                                if(e['HSourceBillType'] == HSourceBillType_FY[0]){
                                    this.arrayHMainSourceBillType.push(HSourceBillType_FY[1])
                                }
                            }
                            this.arrayHMainSourceBillValue.push(e['HSourceBillType'])
                        })
pages/shengchanrukushengdan/Kf_ProductInBillList.vue
@@ -1,33 +1,33 @@
<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_ProductInBillList_PDA.cacheList") == "Kf_ProductInBillList_PDA.cacheList" ? "缓存列表" : $t("Kf_ProductInBillList_PDA.cacheList") }}</view>
            <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">{{ $t("Kf_ProductInBillList_PDA.updatedList") == "Kf_ProductInBillList_PDA.updatedList" ? "已上传列表" : $t("Kf_ProductInBillList_PDA.updatedList") }}</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_ProductInBillList_PDA.btnAdd") == "Kf_ProductInBillList_PDA.btnAdd" ? "新增" : $t("Kf_ProductInBillList_PDA.btnAdd") }}
            </view>
        </view>
        <view class="form" v-if="tabs == 1">
            <view class="form-item">
                <view class="title">单据号:</view>
                <view class="title">{{ $t("Kf_ProductInBillList_PDA.billNo") == "Kf_ProductInBillList_PDA.billNo" ? "单据号" : $t("Kf_ProductInBillList_PDA.billNo") }}:</view>
                <view class="right">
                    <input v-model="hform.HBillNo" placeholder="请输入单据号" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">源单单号:</view>
                <view class="title">{{ $t("Kf_ProductInBillList_PDA.sourceBillNo") == "Kf_ProductInBillList_PDA.sourceBillNo" ? "源单单号" : $t("Kf_ProductInBillList_PDA.sourceBillNo") }}:</view>
                <view class="right">
                    <input v-model="hform.HSourceBillNo" placeholder="请输入源单单号" />
                </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_ProductInBillList_PDA.btn_Reset") == "Kf_ProductInBillList_PDA.btn_Reset" ? "重置" : $t("Kf_ProductInBillList_PDA.btn_Reset") }}</button>
                <button class="btn-c" size="mini" type="default" @tap="search">{{ $t("Kf_ProductInBillList_PDA.btn_Query") == "Kf_ProductInBillList_PDA.btn_Query" ? "查询" : $t("Kf_ProductInBillList_PDA.btn_Query") }}</button>
            </view>
        </view>
        
@@ -37,28 +37,28 @@
            <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("Kf_ProductInBillList_PDA.table_Maker") == "Kf_ProductInBillList_PDA.table_Maker" ? "制单人" : $t("Kf_ProductInBillList_PDA.table_Maker") }}:</text>{{item.制单人}}
                    </view>
                    <view class="detail" v-if="item.单据内码">
                        <text>单据内码:</text>{{item.单据内码}}
                        <text>{{ $t("Kf_ProductInBillList_PDA.table_BillID") == "Kf_ProductInBillList_PDA.table_BillID" ? "单据内码" : $t("Kf_ProductInBillList_PDA.table_BillID") }}:</text>{{item.单据内码}}
                    </view>
                    <view class="detail" v-if="item.数量">
                        <text>数量:</text>{{item.数量}}
                        <text>{{ $t("Kf_ProductInBillList_PDA.table_Qty") == "Kf_ProductInBillList_PDA.table_Qty" ? "数量" : $t("Kf_ProductInBillList_PDA.table_Qty") }}:</text>{{item.数量}}
                    </view>
                    <view class="detail" v-if="item.源单单号">
                        <text>源单单号:</text>{{item.源单单号}}
                        <text>{{ $t("Kf_ProductInBillList_PDA.table_SourceBillNo") == "Kf_ProductInBillList_PDA.table_SourceBillNo" ? "源单单号" : $t("Kf_ProductInBillList_PDA.table_SourceBillNo") }}:</text>{{item.源单单号}}
                    </view>
                    <view class="detail" v-if="item.组织">
                        <text>组织:</text>{{item.组织}}
                        <text>{{ $t("Kf_ProductInBillList_PDA.table_Org") == "Kf_ProductInBillList_PDA.table_Org" ? "组织" : $t("Kf_ProductInBillList_PDA.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_ProductInBillList_PDA.btn_Edit") == "Kf_ProductInBillList_PDA.btn_Edit" ? "编辑" : $t("Kf_ProductInBillList_PDA.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_ProductInBillList_PDA.btn_Del") == "Kf_ProductInBillList_PDA.btn_Del" ? "删除" : $t("Kf_ProductInBillList_PDA.btn_Del") }}
                    </view>
                </view>
            </uni-card>
@@ -67,45 +67,45 @@
            <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_ProductInBillList_PDA.table_Status") == "Kf_ProductInBillList_PDA.table_Status" ? "状态" : $t("Kf_ProductInBillList_PDA.table_Status") }}:</text>{{item.状态}}
                    </view>
                    <view class="detail" v-if="item.制单人">
                        <text>制单人:</text>{{item.制单人}}
                        <text>{{ $t("Kf_ProductInBillList_PDA.table_Maker") == "Kf_ProductInBillList_PDA.table_Maker" ? "制单人" : $t("Kf_ProductInBillList_PDA.table_Maker") }}:</text>{{item.制单人}}
                    </view>
                    <view class="detail" v-if="item.数量">
                        <text>数量:</text>{{item.数量}}
                        <text>{{ $t("Kf_ProductInBillList_PDA.table_Qty") == "Kf_ProductInBillList_PDA.table_Qty" ? "数量" : $t("Kf_ProductInBillList_PDA.table_Qty") }}:</text>{{item.数量}}
                    </view>
                    <view class="detail" v-if="item.源单单号">
                        <text>源单单号:</text>{{item.源单单号}}
                        <text>{{ $t("Kf_ProductInBillList_PDA.sourceBillNo") == "Kf_ProductInBillList_PDA.sourceBillNo" ? "源单单号" : $t("Kf_ProductInBillList_PDA.sourceBillNo") }}:</text>{{item.源单单号}}
                    </view>
                    <view class="detail" v-if="item.物料代码">
                        <text>物料代码:</text>{{item.物料代码}}
                        <text>{{ $t("Kf_ProductInBillList_PDA.table_MaterNumber") == "Kf_ProductInBillList_PDA.table_MaterNumber" ? "物料代码" : $t("Kf_ProductInBillList_PDA.table_MaterNumber") }}:</text>{{item.物料代码}}
                    </view>
                    <view class="detail" v-if="item.物料名称">
                        <text>物料名称:</text>{{item.物料名称}}
                        <text>{{ $t("Kf_ProductInBillList_PDA.table_MaterName") == "Kf_ProductInBillList_PDA.table_MaterName" ? "物料名称" : $t("Kf_ProductInBillList_PDA.table_MaterName") }}:</text>{{item.物料名称}}
                    </view>
                    <view class="detail" v-if="item.规格型号">
                        <text>规格型号:</text>{{item.规格型号}}
                        <text>{{ $t("Kf_ProductInBillList_PDA.table_MaterModel") == "Kf_ProductInBillList_PDA.table_MaterModel" ? "规格型号" : $t("Kf_ProductInBillList_PDA.table_MaterModel") }}:</text>{{item.规格型号}}
                    </view>
                    <view class="detail" v-if="item.组织">
                        <text>组织:</text>{{item.组织}}
                        <text>{{ $t("Kf_ProductInBillList_PDA.table_Org") == "Kf_ProductInBillList_PDA.table_Org" ? "组织" : $t("Kf_ProductInBillList_PDA.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_ProductInBillList_PDA.btn_DisplayCode") == "Kf_ProductInBillList_PDA.btn_DisplayCode" ? "显示二维码" : $t("Kf_ProductInBillList_PDA.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_ProductInBillList_PDA.btn_Revoke") == "Kf_ProductInBillList_PDA.btn_Revoke" ? "撤销" : $t("Kf_ProductInBillList_PDA.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_ProductInBillList_PDA.noDate") == "Kf_ProductInBillList_PDA.noDate" ? "暂无数据" : $t("Kf_ProductInBillList_PDA.noDate") }}</view>
        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">{{ $t("Kf_ProductInBillList_PDA.Loading") == "Kf_ProductInBillList_PDA.Loading" ? "加载中..." : $t("Kf_ProductInBillList_PDA.Loading") }}</view>
        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">{{ $t("Kf_ProductInBillList_PDA.bottom") == "Kf_ProductInBillList_PDA.bottom" ? "已到底" : $t("Kf_ProductInBillList_PDA.bottom") }}</view>
        <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
    </view>
</template>