chenhaozhe
2026-01-20 3e049efc6eb3970bb200058e41468f0a38de1a7e
src/views/scMould/basicModeling/Gy_MaterialPackingRelationList.vue
@@ -131,6 +131,36 @@
                </el-button>
            </el-col>
            <el-col :span="1.5">
                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
                    @click="set_CheckBill(0)">审核
                </el-button>
            </el-col>
            <el-col :span="1.5">
                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
                    @click="set_CheckBill(1)">反审核
                </el-button>
            </el-col>
            <el-col :span="1.5">
                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
                    @click="set_CloseBill(0)">关闭
                </el-button>
            </el-col>
            <el-col :span="1.5">
                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
                    @click="set_CloseBill(1)">反关闭
                </el-button>
            </el-col>
    <el-col :span="1.5">
                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
                    @click="set_DropBill(0)">作废
                </el-button>
            </el-col>
            <el-col :span="1.5">
                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
                    @click="set_DropBill(1)">反作废
                </el-button>
            </el-col>
            <el-col :span="1.5">
                <el-button type="primary" icon="el-icon-date" size="mini" @click="handleRowHide">隐藏列设置</el-button>
            </el-col>
        </el-row>
@@ -149,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>
@@ -177,7 +207,7 @@
<script>
import axios from "axios";
import RowSettings from "@/views/component/rowSettings";
import Edit from "@/views/warehouse/shipment/Kf_StockOutRequestBill.vue";
import Edit from "@/views/scMould/basicModeling/Gy_MaterialPackingRelation_Edit.vue";
import PrintList from "@/views/component/printList";
import BarCodeDetail from '@/views/component/BarCodeDetail'               //条码明细组件
import moment from "moment";
@@ -360,7 +390,7 @@
                this.pageSize = 50;
            }
            // 列表
            axios.get(this.baseURL + "/Gy_MaterialPackingRelation/Gy_MaterialPackingRelationList", {
            axios.get(this.$baseUrl + "/Gy_MaterialPackingRelation/Gy_MaterialPackingRelationList", {
                params: {
                    sWhere: this.sWhere,
                    user: sessionStorage["HUserName"],
@@ -463,7 +493,7 @@
        DisPlay_HideColumn(HModName, user, option, dataOption) {
            this.totalNameList = [];
            axios
                .get(this.baseURL + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
                .get(this.$baseUrl + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
                    params: {
                        HModName: HModName,
                        user: user,
@@ -808,7 +838,7 @@
        /** 删除按钮操作 */
        handleDelete() {
            this.$modal.confirm("确认要删除吗,删除后不能恢复").then(() => {
                axios.get(this.baseURL + "/Gy_MaterialPackingRelation/DeleteGy_MaterialPackingRelation", {
                axios.get(this.$baseUrl + "/Gy_MaterialPackingRelation/DeleteGy_MaterialPackingRelation", {
                    params: {
                        HInterID: this.rowForm.hmainid.toString(),
                        user: sessionStorage["HUserName"],
@@ -825,6 +855,60 @@
                });
            }).catch(() => { });
        },
        set_CheckBill(num) {
            //逻辑审核方法
            axios.get(this.$baseUrl + "/Sc_MouldinventoryBill/CheckGy_MaterialMouldBillMain", {
                params: { "HInterID": this.rowForm.hmainid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
            }).then(response => {
                let result = response.data
                if (result.code == 1) {
                    this.checkDisabled = true
                    this.abandoncheckDisabled = false
                    this.$modal.msgSuccess('操作成功');
                }
                else {
                    this.$modal.msgError("错误:" + result.code + result.Message,);
                }
            }).catch(error => {
                this.$modal.msgError("接口请求失败!");
            });
        },
        set_CloseBill(num) {
            //逻辑关闭方法
            axios.get(this.$baseUrl + "/Gy_MaterialPackingRelation/CloseGy_MaterialPackingRelation", {
                params: { "HInterID": this.rowForm.hmainid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
            }).then(response => {
                let result = response.data
                if (result.code == 1) {
                    this.checkDisabled = true
                    this.abandoncheckDisabled = false
                    this.$modal.msgSuccess('操作成功');
                }
                else {
                    this.$modal.msgError("错误:" + result.code + result.Message,);
                }
            }).catch(error => {
                this.$modal.msgError("接口请求失败!");
            });
        },
        set_DropBill(num) {
            //逻辑作废方法
            axios.get(this.$baseUrl + "/Gy_MaterialPackingRelation/DeleteGy_MaterialPackingRelation", {
                params: { "HInterID": this.rowForm.hmainid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
            }).then(response => {
                let result = response.data
                if (result.code == 1) {
                    this.checkDisabled = true
                    this.abandoncheckDisabled = false
                    this.$modal.msgSuccess('操作成功');
                }
                else {
                    this.$modal.msgError("错误:" + result.code + result.Message,);
                }
            }).catch(error => {
                this.$modal.msgError("接口请求失败!");
            });
        },
    },
};
</script>