cnf
2025-12-09 2b63e5084652153305c10b4fd3b2445fe2843ad1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
new Vue({
    el: '#app',
    data: function () {
        return {
            showPhone: false,//包装数量
            showDaa: false,//daa
            showBgr: false,//报工人
            showAction: false,//右上角
            modelDaaJson: [],
            modelYgJson:[],
            modelJson: [],
            actions: [{ name: '开工' }, { name: '暂停' }, { name: '提交首检' }, { name: '提交入库检' }],
            erd: null,
            tableHeight: 1,
            searchHeight: 1,
            fjInfor: {
                guid:"",
                gdbh: "PPBOM00015331-1",
                bgUserNo: "刘秀丽",
                "gdzs": "500",
                "yscs": "20",
                "yrks": "20",
                "kdysl": "480",//可打印数量
                "gdzt": "生产中",
                "prdName": "塑件-XQJ-001-水箱",
                "prdNo": "011616000382",
                "prdModel": "模内注塑 鸿效电脑板专用",
                "qt": "齐套",
                "yjkg": "2025-09-27 16:36:28.003",
                "yjwg": "2025-09-27 16:36:28.003",
                "xsdd": "salw123",
                "ydsl": "20",//已打数量
                "sj": "合格",
                "xj": "合格",
                "sysl": "400",
                "dyzs": "0", //打印张数
                list: [
                      { bg: 1, rk: 1, tbm: 'TB25111827361', nbzsl: 48, dw: '个', itemNo: "060101030301", itemName: '印刷品-功率贴-New General', bgr: '刘秀丽', bgrDate: '2025-11-26 13:24:25' }
                    , { bg: 0, rk: 0, tbm: 'TB25111827361', nbzsl: 48, dw: '个', itemNo: "060101030301", itemName: '印刷品-功率贴-New General', bgr: '刘秀丽', bgrDate: '2025-11-26 13:24:25' }
                    , { bg: 1, rk: 1, tbm: 'TB25111827361', nbzsl: 48, dw: '个', itemNo: "060101030301", itemName: '印刷品-功率贴-New General', bgr: '刘秀丽', bgrDate: '2025-11-26 13:24:25' }
                    , { bg: 0, rk: 0, tbm: 'TB25111827361', nbzsl: 48, dw: '个', itemNo: "060101030301", itemName: '印刷品-功率贴-New General', bgr: '刘秀丽', bgrDate: '2025-11-26 13:24:25' }
                ]
            },
        }
    },
    computed: {
 
    },
    mounted() {
        var that = this;
        this.erd = elementResizeDetectorMaker();
        this.$nextTick(() => {
            this.erd.listenTo(this.$refs.searchForm, element => {
                let searchHeight = that.$refs["searchForm"].clientHeight;
                let aiHeight = 0;
                let pageHeight = document.documentElement.clientHeight;
                if (pageHeight <= 0) pageHeight = 768;
                that.tableHeight = Number(pageHeight - (searchHeight + aiHeight)) - 10;
                that.searchHeight = searchHeight;
            });
        })
    },
    methods: {
        onClickLeft() {
            var that = this;
            window.location.href = ("/BaoGong/fjDefault.aspx?cjId=" + that.Request("cjId"));
        },
        getDaaList() {
            var that = this;
            that.showDaa = true;
            that.isLoading = true;
            var model = {
                "inLineId": that.Request("cxId"),
            }
            var _apiUrl = ('BaoGong/GetDaaList');
            that.AxiosHttp("post", _apiUrl, model)
                .then(function (res) {
                    var json = res;
                    if (json.rtnCode * 1 > 0) {
                        that.isLoading = false;
                        that.modelDaaJson = res.rtnData;
                    }
                    else {
                        that.$message.error(json.rtnMsg);
                    }
                })
                .catch(function (error) {
                });
        },
        getYgList() {
            var that = this;
            that.showBgr = true;
            that.isLoading = true;
            var model = {
                "inLineId": that.Request("cxId"),
                "inCjId": that.Request("cjId"),
            }
            var _apiUrl = ('BaoGong/GetYgList');
            that.AxiosHttp("post", _apiUrl, model)
                .then(function (res) {
                    var json = res;
                    if (json.rtnCode * 1 > 0) {
                        that.isLoading = false;
                        that.modelYgJson = res.rtnData;
                    }
                    else {
                        that.$message.error(json.rtnMsg);
                    }
                })
                .catch(function (error) {
                });
        },
        getDaa(daaGuid) {
            var that = this;
            that.isLoading = true;
            var model = {
                "inDaaGuid": daaGuid,
            }
            var _apiUrl = ('BaoGong/GetModel');
            that.AxiosHttp("post", _apiUrl, model)
                .then(function (res) {
                    var json = res;
                    if (json.rtnCode * 1 > 0) {
                        that.isLoading = false;
                        that.fjInfor = res.rtnData;
                        that.showDaa = false;
                    }
                    else {
                        that.$message.error(json.rtnMsg);
                    }
                })
                .catch(function (error) {
                });
        },
        getBgr(item) {
            var that = this;
            that.fjInfor.bgUserNo = item.ygName;
            that.showBgr = false;
        }
    },
})