陈婷婷
2025-12-17 6ea478a58480965b6dcb66176acb2f5ff75b0a1d
条码生成物料选择
1个文件已修改
44 ■■■■ 已修改文件
src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue
@@ -51,7 +51,8 @@
                <el-col :span="6">
                    <el-form-item label="选单号" prop="HSourceBillNo">
                        <el-input v-model="form.HSourceBillNo" placeholder="请输入选单号" disabled>
                            <el-button class="input-search-btn"  slot="append" icon="el-icon-search" @click="openDataDialog(null)"></el-button>
                            <el-button class="input-search-btn" slot="append" icon="el-icon-search"
                                @click="openDataDialog(null)"></el-button>
                        </el-input>
                    </el-form-item>
                </el-col>
@@ -83,7 +84,11 @@
                        </el-table-column>
                        <el-table-column align="center" label="物料代码" prop="HMaterNumber" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HMaterNumber" /></template>
                            <template slot-scope="scope">
                                <el-input v-model="scope.row.HMaterNumber"
                                    @keyup.native.f7="openDataDialog(3, scope.row)"
                                    @dblclick.native="openDataDialog(3, scope.row)" />
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="物料名称" prop="HMaterName" width="120"
                            show-overflow-tooltip>
@@ -231,7 +236,8 @@
                </el-tab-pane>
                <el-tab-pane label="条码信息" name="tiaoma">
                    <el-table :data="editTmData" style="width: 100%" height="480" width="100%" ref="tbzbTable"
                        @selection-change="handleTableWlxxZbEdit" :row-class-name="tiaomaZbIndex" border v-if="editTmData.length>0">
                        @selection-change="handleTableWlxxZbEdit" :row-class-name="tiaomaZbIndex" border
                        v-if="editTmData.length > 0">
                        <el-table-column align="center" label="序号" type="index" width="80" fixed />
                        <template v-for="(item, index) in tmBtList">
                            <el-table-column align="center" :prop="item.field" :label="item.title" :width="item.width"
@@ -241,7 +247,8 @@
                </el-tab-pane>
                <el-tab-pane label="档案列表" name="dangan">
                    <el-table :data="editDaData" style="width: 100%" height="480" width="100%" ref="dazbTable"
                        @selection-change="handleTableDangan" :row-class-name="danganZbIndex" border v-if="editDaData.length>0">
                        @selection-change="handleTableDangan" :row-class-name="danganZbIndex" border
                        v-if="editDaData.length > 0">
                        <el-table-column type="selection" width="55" align="center" />
                        <el-table-column align="center" label="序号" type="index" width="80" fixed />
                        <template v-for="(item, index) in daBtList">
@@ -260,13 +267,8 @@
        <el-dialog :title="dialogTitle" :visible.sync="openData" width="1280px" append-to-body @close="closeBill">
            <HSourceReportHtml @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName"
                :HOrgID='this.form.HOrgID' :HSouceBillType="HSouceBillType" v-if="ScICMOBillShow" />
                 <GyProperty
                   @deptEmitDb="dbEmitData"
                   @deptEmit="emitData"
                   :openPage="HModName"
                   v-if="propertyShow"
                 />
            <Material @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="materialShow" />
            <GyProperty @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="propertyShow" />
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="deptClickSub">确 定</el-button>
                <el-button @click="deptClose">取 消</el-button>
@@ -285,10 +287,11 @@
import PrintList from "@/views/component/printList";
import moment from 'moment';
import GyProperty from "@/views/basic/gyProperty/gyPropertyList.vue";
import Material from '@/views/gyMaterial/GyMaterial.vue'
export default {
    name: 'Gy_BarCodeBill',
    components: { HSourceReportHtml, PrintList, GyProperty },
    components: { HSourceReportHtml, PrintList, GyProperty, Material },
    props: {
        OperationType: { type: Number, },
        linterid: { type: Number, },
@@ -790,8 +793,17 @@
                    this.editWlxxData[this.zbIndex]["HAuxPropNumber"] = deptRow["辅助属性代码"];
                    this.propertyShow = false;
                    this.openData = false;
                } else if (num == 3) {
                    this.editWlxxData[this.zbIndex].HMaterID = deptRow.HItemID;
                    this.editWlxxData[this.zbIndex].HMaterNumber = deptRow.物料代码;
                    this.editWlxxData[this.zbIndex].HMaterName = deptRow.物料名称;
                    this.editWlxxData[this.zbIndex].HMaterModel = deptRow.规格型号
                    this.editWlxxData[this.zbIndex].HUnitID = deptRow.HUnitID;
                    this.editWlxxData[this.zbIndex].HUnitName = deptRow.计量单位名称
                    this.editWlxxData[this.zbIndex].HUnitNumber = deptRow.计量单位代码
                    this.materialShow = false
                    this.openData = false
                }
                return
            }
            console.log(deptRow)
@@ -1212,6 +1224,7 @@
            this.danganSelList = selection
        },
        showReset() {
            this.materialShow = false
            this.ScICMOBillShow = false
        },
        //  打开数据列表弹窗
@@ -1227,6 +1240,11 @@
                    this.propertyShow = true
                    this.openData = true
                    ;break;
                    case 3:
                        this.dialogTitle = '物料列表'
                        this.materialShow = true
                        this.openData = true
                        break;
                }
            }else {
                this.showReset()