duhe
2026-01-21 97f498cb734b919e6335e46c896ee5a1b40ad7f0
src/views/scMould/basicModeling/Gy_MaterialPackingRelationList.vue
@@ -150,7 +150,7 @@
                    @click="set_CloseBill(1)">反关闭
                </el-button>
            </el-col>
    <el-col :span="1.5">
            <el-col :span="1.5">
                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
                    @click="set_DropBill(0)">作废
                </el-button>
@@ -179,7 +179,7 @@
                            <div :style="item.style">
                                <span v-if="column.property.includes('日期')">{{
                                    parseTime(row[column.property], "{y}-{m}-{d}")
                                    }}</span>
                                }}</span>
                                <el-button type="text" @click="handleEdit(row, (OperationType = 3))"
                                    v-else-if="column.property == '单据号'">{{ row.单据号 }}</el-button>
                                <span v-else>{{ row[column.label] }}</span>
@@ -215,6 +215,11 @@
export default {
    name: "Kf_StockOutRequestBillList",
    components: { RowSettings, Edit, PrintList, BarCodeDetail },
    props: {
        openPage: { type: String, },
        propHMaterID: { },
        propHOrgID: {},
    },
    data() {
        return {
            activeSeach: "",
@@ -388,6 +393,12 @@
            }
            if (this.pageSize == 0) {
                this.pageSize = 50;
            }
             if (this.propHOrgID) {
                this.sWhere += " and HOrgID like '%" + this.propHOrgID + "%'";
            }
            if (this.propHMaterID) {
                this.sWhere += " and HMaterID like '%" + this.propHMaterID + "%'";
            }
            // 列表
            axios.get(this.$baseUrl + "/Gy_MaterialPackingRelation/Gy_MaterialPackingRelationList", {
@@ -641,6 +652,9 @@
            this.selectedRow = row; // 记录当前选中的行
            this.lastSelectedRowIndex = this.tableData.indexOf(row);
            this.$refs.tableData.toggleRowSelection(row);
            if (this.openPage) {
                this.$emit('deptEmit', row, 17)
            }
        },
        //选中行高亮样式
        rowStyle({ row, rowIndex }) {
@@ -651,7 +665,12 @@
        //双击行
        handleDblclick(row, column, cell, event) {
            this.OperationType = 3;
            this.handleEdit();
            if (this.openPage) {
                this.$emit('deptEmitDb', row, 17)
            }
            else {
                this.handleEdit();
            }
        },
        // 多选框选中数据
        handleSelectionChange(selection) {
@@ -764,22 +783,22 @@
                this.sWhere += " and 物料代码 like '%" + this.queryParams.MaterialCode + "%'";
            }
            if (this.queryParams.MaterialName) {
                this.sWhere += " and 物料名称 like '%" + MaterialName + "%'";
                this.sWhere += " and 物料名称 like '%" +  this.queryParams.MaterialName + "%'";
            }
            if (this.queryParams.SpecificationModel) {
                this.sWhere += " and 规格型号 like '%" + SpecificationModel + "%'";
                this.sWhere += " and 规格型号 like '%" +  this.queryParams.SpecificationModel + "%'";
            }
            if (this.queryParams.HSourceBillNo) {
                this.sWhere += " and 源单单号 like '%" + HSourceBillNo + "%'";
                this.sWhere += " and 源单单号 like '%" +  this.queryParams.HSourceBillNo + "%'";
            }
            if (this.queryParams.Warehouse) {
                this.sWhere += " and 发货仓库 like '%" + Warehouse + "%'";
                this.sWhere += " and 发货仓库 like '%" + this.queryParams.Warehouse + "%'";
            }
            if (this.queryParams.Hmaker) {
                this.sWhere += " and 制单人 like '%" + Hmaker + "%'";
                this.sWhere += " and 制单人 like '%" +  this.queryParams.Hmaker + "%'";
            }
            if (this.queryParams.HUSEORGID) {
                this.sWhere += " and HOrgID like '%" + HUSEORGID + "%'";
                this.sWhere += " and HOrgID like '%" +  this.queryParams.HUSEORGID + "%'";
            }
            this.getList();
        },