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
|
| var vm = new Vue({
| el: '#app',
| data: function () {
| return {
| isLoading: false,
| active: 0,
| cardType: "",
| userInfo: {
| "loginGuid": '',
| "loginAccount": '',
| "loginName": '',
| },
| tabs: [
| {
| name: '待办列表',
| img: "../Images/sm.png",
| path: '/home/kcpg'
| },
| {
| name: '采购入库单',
| img: "../Images/cgrkd.png",
| path: '/home/kcpg'
| },
| {
| name: '来料检验',
| img: "../Images/cgrkd.png",
| path: '/home/kcpg'
| }, {
| name: '检验管理',
| img: "../Images/yj.png",
| path: '/home/kcpg'
| }, {
| name: '巡检管理',
| img: "../Images/yj.png",
| path: '/home/kcpg'
| }
| , {
| name: '巡检管理',
| img: "../Images/yj.png",
| path: '/home/kcpg'
| }, {
| name: '打印设置',
| img: "../Images/print.png",
| path: '/H5/Config.aspx'
| }
| ],
| actions: [],//列表的值
| orgName: "",//线体名称
| orgId: "",//线体编号
| show: false,//列表展示
| }
| },
| mounted() {
| var that = this;
| this.userInfo = {
| loginGuid: this.GetLoginInfor().loginGuid,
| loginAccount: this.GetLoginInfor().loginAccount,
| loginName: Cookies.get('loginName'),
| };
| },
| methods: {
| goOut() {
| var that = this;
| this.$dialog.confirm({
| title: '友情提示',
| message: '确定退出当前账号吗?',
| confirmButtonText: '确定',
| cancelButtonText: '取消'
| })
| .then(() => {
| window.location.href = "/UserLogin.aspx";
| })
| .catch(() => {
| // on cancel
| });
| },
| //goMsg() {
| // var that = this;
| // window.location.href = "/H5/Message.aspx";
| //},
| goMsg() {
| var that = this;
| uni.navigateTo({
| url: "/pages/index/test/PrintInit?type=1",
|
| });
| },
| changeOrg() {
| this.show = true;
| var that = this;
| that.actions = [];
| that.isLoading = true;
| that.AxiosHttp("post", 'Login/changeOrg', {
| userName: that.userInfo.loginAccount
| }, false)
| .then(function (res) {
| var json = res;
| if (json.status == 0) {
|
| if (json.data.tbBillList.length <= 0) {
| that.$toast.fail("没有可用的数据");
| that.$playSound('error');
| } else {
| that.itemInfo = json.data.tbBillList;
| that.actions = json.data.tbBillList.map(item => {
| return {
| name: item.orgName,
| orgId: item.orgId, // 新增
| orgNo: item.orgNo // 新增
| };
| });
| }
| }
| else {
| that.$toast.fail(json.message);
| that.$playSound('error');
| }
| that.isLoading = false;
| })
| .catch(function (error) {
| that.isLoading = false;
| that.$toast.fail("网络错误,请重试!");
| that.$playSound('error');
| console.log(error);
| });
| },
|
| onSelect(action) {
| //this.xtNum = action.lineNo; // 绑定line_no到xtNum字段
| //console.log("选择的线体编号:", this.xtNum);
| //this.xtName = action.name; // 绑定name到xtName字段
| //this.show = false;
|
| Cookies.set('orgId', action.orgId);
| Cookies.set('orgNo', action.orgNo);
| Cookies.set('orgName', action.name);
| this.show = false;
| },
| }
| })
|
|