telephone-clients 3.0.100 → 3.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/ExportExcel.vue +275 -274
- package/src/components/MaterialsManage/MaterialsBase.vue +19 -5
- package/src/components/Util/RightTreeSafe.vue +11 -5
- package/src/components/android/AddMyTask.vue +29 -21
- package/src/components/guoxin/Console.vue +30 -0
- package/src/components/guoxin/RecordInfoRight.vue +75 -0
- package/src/components/guoxin/VisitInfo.vue +281 -0
- package/src/components/guoxin/telephone.js +2 -1
- package/src/components/pc/SiteSend.vue +0 -1
- package/src/components/pc/TelFindUser.vue +14 -9
- package/src/components/pc/TelListener.vue +19 -14
- package/src/components/pc/WorkCenterList.vue +30 -25
- package/src/components/pc/WorkList.vue +4 -15
- package/src/components/pc/WorkListAllNew.vue +33 -24
- package/src/components/pc/WorkListNew.vue +3 -3
- package/src/components/workorder/CompletedRepair.vue +43 -22
- package/src/components/workorder/Othercharge.vue +3 -3
- package/src/components/workorder/RepairFirstV.vue +41 -1
- package/src/filiale/qianneng/android/AppInstallationMaterial.vue +71 -51
- package/src/filiale/qianneng/android/FaultAll.vue +2 -2
- package/src/filiale/qianneng/android/MaterIialOne.vue +2 -2
- package/src/filiale/qianneng/android/RepairOrderV.vue +1 -1
- package/src/filiale/qianneng/android/TemporarySingle.vue +13 -2
- package/src/filiale/qianneng/pc/FailureEdit.vue +2 -0
- package/src/filiale/qianneng/pc/MaterialDetailed.vue +12 -1
- package/src/filiale/qianneng/pc/RepairsWork.vue +1 -1
- package/src/filiale/qianneng/pc/WorkListAllNew.vue +41 -9
- package/src/filiale/shanxian/pc/WorkList.vue +52 -20
- package/src/filiale/shexian/android/Outlay.vue +249 -0
- package/src/filiale/shexian/android/RepairFirstV.vue +61 -3
- package/src/filiale/shexian/android/RepairInfo.vue +11 -1
- package/src/filiale/shexian/android/RepairOrderV.vue +2 -2
- package/src/filiale/shexian/pc/NewRepairPaper.vue +374 -0
- package/src/filiale/shexian/pc/TelByOrderMan.vue +28 -32
- package/src/filiale/shexian/pc/TelByOrderManCount.vue +116 -0
- package/src/filiale/shexian/pc/TelByRepairType.vue +5 -5
- package/src/filiale/shexian/pc/WorkListAllNew.vue +714 -0
- package/src/filiale/shexian/telephone.js +5 -2
- package/src/filiale/shexian/telephoneAndroid.js +3 -0
- package/src/filiale/tongchuan/android/RepairFirstV.vue +13 -15
- package/src/filiale/tongchuan/pc/RepairsWork.vue +6 -2
- package/src/filiale/tongchuan/pc/WorkCenterList.vue +33 -34
- package/src/filiale/tongchuan/pc/WorkHistory.vue +5 -56
- package/src/filiale/tongchuan/pc/WorkList.vue +44 -98
- package/src/filiale/tongchuan/pc/WorkListAll.vue +4 -9
- package/src/filiale/tongchuan/pc/WorkOrderStatistics.vue +22 -10
package/package.json
CHANGED
|
@@ -36,306 +36,307 @@
|
|
|
36
36
|
</template>
|
|
37
37
|
|
|
38
38
|
<script>
|
|
39
|
-
import co from 'co'
|
|
40
|
-
import {HttpResetClass} from 'vue-client'
|
|
41
|
-
import Vue from "vue";
|
|
39
|
+
import co from 'co'
|
|
40
|
+
import {HttpResetClass} from 'vue-client'
|
|
41
|
+
import Vue from "vue";
|
|
42
42
|
|
|
43
|
-
let postGen = function* (self) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
43
|
+
let postGen = function* (self) {
|
|
44
|
+
try {
|
|
45
|
+
let p = {}
|
|
46
|
+
// 判断如果有field,说明表头为自动生成,否则为模板导出
|
|
47
|
+
if (self.exporthead) {
|
|
48
|
+
if (self.sqlName) {
|
|
49
|
+
p = yield self.$resetpost(self.sqlurl, {
|
|
50
|
+
data: {
|
|
51
|
+
body: {
|
|
52
|
+
header: self.header,
|
|
53
|
+
footer: self.footer,
|
|
54
|
+
sumName: self.sumname,
|
|
55
|
+
data: self.data,
|
|
56
|
+
field: self.exporthead,
|
|
57
|
+
templateName: self.templateName,
|
|
58
|
+
sqlName: self.sqlName,
|
|
59
|
+
uuid: self.uuid
|
|
60
|
+
},
|
|
61
|
+
bean: self.bean
|
|
62
|
+
}
|
|
63
|
+
}, {resolveMsg: null, rejectMsg: null}, 1000)
|
|
64
|
+
} else if (self.pathName) {
|
|
65
|
+
p = yield self.$resetpost(self.sqlurl, {
|
|
66
|
+
data: {
|
|
67
|
+
body: {
|
|
68
|
+
sumName: self.sumname,
|
|
69
|
+
data: self.data,
|
|
70
|
+
field: self.exporthead,
|
|
71
|
+
templateName: self.templateName,
|
|
72
|
+
pathName: self.pathName,
|
|
73
|
+
uuid: self.uuid
|
|
74
|
+
},
|
|
75
|
+
bean: self.bean
|
|
76
|
+
}
|
|
77
|
+
}, {resolveMsg: null, rejectMsg: null}, 0)
|
|
78
|
+
}
|
|
79
|
+
} else {
|
|
65
80
|
p = yield self.$resetpost(self.sqlurl, {
|
|
66
81
|
data: {
|
|
67
|
-
body: {
|
|
68
|
-
sumName: self.sumname,
|
|
69
|
-
data: self.data,
|
|
70
|
-
field: self.exporthead,
|
|
71
|
-
templateName: self.templateName,
|
|
72
|
-
pathName: self.pathName,
|
|
73
|
-
uuid: self.uuid
|
|
74
|
-
},
|
|
82
|
+
body: {sumName: self.sumname, data: self.data, total: self.total, uuid: self.uuid},
|
|
75
83
|
bean: self.bean
|
|
76
84
|
}
|
|
77
85
|
}, {resolveMsg: null, rejectMsg: null}, 0)
|
|
78
86
|
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
data: {
|
|
82
|
-
body: {sumName: self.sumname, data: self.data, total: self.total, uuid: self.uuid},
|
|
83
|
-
bean: self.bean
|
|
84
|
-
}
|
|
85
|
-
}, {resolveMsg: null, rejectMsg: null}, 0)
|
|
87
|
+
} catch (e) {
|
|
88
|
+
console.error(e)
|
|
86
89
|
}
|
|
87
|
-
|
|
88
|
-
|
|
90
|
+
self.modelval = []
|
|
91
|
+
self.fields = {}
|
|
92
|
+
self.exporthead = []
|
|
93
|
+
self.progressQuery()
|
|
89
94
|
}
|
|
90
|
-
self.modelval = []
|
|
91
|
-
self.fields = {}
|
|
92
|
-
self.exporthead = []
|
|
93
|
-
self.progressQuery()
|
|
94
|
-
}
|
|
95
95
|
|
|
96
|
-
export default {
|
|
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
|
-
props: {
|
|
125
|
-
// 表头
|
|
126
|
-
header: {},
|
|
127
|
-
// 表尾
|
|
128
|
-
footer: {},
|
|
129
|
-
sumname: {},
|
|
130
|
-
data: {},
|
|
131
|
-
sqlurl: {
|
|
132
|
-
type: String
|
|
133
|
-
},
|
|
134
|
-
field: {},
|
|
135
|
-
total: {},
|
|
136
|
-
bean: {
|
|
137
|
-
type: String
|
|
138
|
-
},
|
|
139
|
-
progress: {
|
|
140
|
-
type: String,
|
|
141
|
-
default: 'getExportProgress'
|
|
142
|
-
},
|
|
143
|
-
btnName: {
|
|
144
|
-
type: String,
|
|
145
|
-
default: '导出Excel'
|
|
146
|
-
},
|
|
147
|
-
templateName: {
|
|
148
|
-
type: String
|
|
149
|
-
},
|
|
150
|
-
sqlName: {
|
|
151
|
-
type: String
|
|
152
|
-
},
|
|
153
|
-
pathName: {
|
|
154
|
-
type: String
|
|
155
|
-
},
|
|
156
|
-
attach: {
|
|
157
|
-
type: String,
|
|
158
|
-
default: 'name'
|
|
96
|
+
export default {
|
|
97
|
+
//uuid:需要导出的Excel对应的key
|
|
98
|
+
// data:sql需要的替换字段
|
|
99
|
+
// sqlurl:导出Excel查询的sql语句
|
|
100
|
+
// field:需要导出Excel的字段名和对应中文名或hbm配置文件名(全名)
|
|
101
|
+
// total:统计字段(统计行)
|
|
102
|
+
// props: ['data', 'sqlurl', 'field', 'total', 'bean', 'chooseCol','sumName'],
|
|
103
|
+
data() {
|
|
104
|
+
return {
|
|
105
|
+
uuid: '',
|
|
106
|
+
show: false,
|
|
107
|
+
all: false,
|
|
108
|
+
fields: {},
|
|
109
|
+
modelval: [],
|
|
110
|
+
// 表头
|
|
111
|
+
exporthead: [],
|
|
112
|
+
selftotal: [],
|
|
113
|
+
// sumName:[],
|
|
114
|
+
// 进度条显示
|
|
115
|
+
progressShow: false,
|
|
116
|
+
// 进度百分比
|
|
117
|
+
percent: '0%',
|
|
118
|
+
// 定时器
|
|
119
|
+
timer: null,
|
|
120
|
+
// 请求对象
|
|
121
|
+
HttpReset: new HttpResetClass()
|
|
122
|
+
}
|
|
159
123
|
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
124
|
+
props: {
|
|
125
|
+
// 表头
|
|
126
|
+
header: {},
|
|
127
|
+
// 表尾
|
|
128
|
+
footer: {},
|
|
129
|
+
sumname: {},
|
|
130
|
+
data: {},
|
|
131
|
+
sqlurl: {
|
|
132
|
+
type: String
|
|
133
|
+
},
|
|
134
|
+
field: {},
|
|
135
|
+
total: {},
|
|
136
|
+
bean: {
|
|
137
|
+
type: String
|
|
138
|
+
},
|
|
139
|
+
progress: {
|
|
140
|
+
type: String,
|
|
141
|
+
default: 'getExportProgress'
|
|
142
|
+
},
|
|
143
|
+
btnName: {
|
|
144
|
+
type: String,
|
|
145
|
+
default: '导出Excel'
|
|
146
|
+
},
|
|
147
|
+
templateName: {
|
|
148
|
+
type: String
|
|
149
|
+
},
|
|
150
|
+
sqlName: {
|
|
151
|
+
type: String
|
|
152
|
+
},
|
|
153
|
+
pathName: {
|
|
154
|
+
type: String
|
|
155
|
+
},
|
|
156
|
+
attach: {
|
|
157
|
+
type: String,
|
|
158
|
+
default: 'name'
|
|
159
|
+
},
|
|
160
|
+
chooseCol: {
|
|
161
|
+
type: Boolean,
|
|
162
|
+
default: false
|
|
163
|
+
},
|
|
164
|
+
isshow: {
|
|
165
|
+
type: Boolean,
|
|
166
|
+
default: true
|
|
167
|
+
},
|
|
168
|
+
defaultselect: [],
|
|
169
|
+
chooserow: {
|
|
170
|
+
type: Boolean,
|
|
171
|
+
default: false
|
|
172
|
+
}
|
|
163
173
|
},
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
default: true
|
|
174
|
+
beforeDestroy() {
|
|
175
|
+
this.closeTimer()
|
|
167
176
|
},
|
|
168
|
-
|
|
169
|
-
chooserow: {
|
|
170
|
-
type: Boolean,
|
|
171
|
-
default: false
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
beforeDestroy() {
|
|
175
|
-
this.closeTimer()
|
|
176
|
-
},
|
|
177
|
-
methods: {
|
|
177
|
+
methods: {
|
|
178
178
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
179
|
+
exportExcel() {
|
|
180
|
+
//tag
|
|
181
|
+
if (this.field) {
|
|
182
|
+
if (this.chooseCol === true) {
|
|
183
|
+
this.fields = this.field
|
|
184
|
+
this.show = true;
|
|
185
|
+
//
|
|
186
|
+
if (this.defaultselect != null && this.defaultselect) {
|
|
187
|
+
for (var item in this.defaultselect) {
|
|
188
|
+
this.modelval.push(item)
|
|
189
|
+
}
|
|
190
|
+
if (this.chooserow) {
|
|
191
|
+
this.export()
|
|
192
|
+
}
|
|
189
193
|
}
|
|
190
|
-
if (this.chooserow) {
|
|
191
|
-
this.export()
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
194
|
|
|
195
|
+
} else {
|
|
196
|
+
this.data.items = '*'
|
|
197
|
+
Object.keys(this.field).forEach((key) => {
|
|
198
|
+
this.exporthead.push(key + ':' + this.field[key])
|
|
199
|
+
})
|
|
200
|
+
this.post()
|
|
201
|
+
}
|
|
195
202
|
} else {
|
|
196
|
-
this.data.items = '*'
|
|
197
|
-
Object.keys(this.field).forEach((key) => {
|
|
198
|
-
this.exporthead.push(key + ':' + this.field[key])
|
|
199
|
-
})
|
|
200
203
|
this.post()
|
|
201
204
|
}
|
|
202
|
-
}
|
|
205
|
+
},
|
|
206
|
+
export() {
|
|
207
|
+
if (this.$login.r.includes('限制导出')) {
|
|
208
|
+
this.$showMessage('你被限制导出, 请联系管理员')
|
|
209
|
+
return
|
|
210
|
+
}
|
|
211
|
+
// 获取导出选择的表头和列
|
|
212
|
+
let temp = ''
|
|
213
|
+
this.modelval.forEach((item) => {
|
|
214
|
+
temp = temp + item + ','
|
|
215
|
+
this.exporthead.push(item + ':' + this.field[item])
|
|
216
|
+
//this.exporthead[item] = this.field[item]
|
|
217
|
+
})
|
|
218
|
+
temp = temp.slice(0, temp.length - 1)
|
|
219
|
+
//tag
|
|
220
|
+
this.data.items = temp
|
|
203
221
|
this.post()
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
//this.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
222
|
+
},
|
|
223
|
+
post() {
|
|
224
|
+
// if(this.total) {
|
|
225
|
+
//
|
|
226
|
+
// var temp={"合计":"合计"}
|
|
227
|
+
// for (var a in this.field) {
|
|
228
|
+
// for (var b in this.total) {
|
|
229
|
+
// if(a==b){
|
|
230
|
+
// temp[a]=this.total[a]
|
|
231
|
+
// }
|
|
232
|
+
// }
|
|
233
|
+
// }
|
|
234
|
+
// this.selftotal.push(temp)
|
|
235
|
+
// //tag
|
|
236
|
+
// //tag
|
|
237
|
+
//
|
|
238
|
+
// // this.selftotal.push(this.total)
|
|
239
|
+
// // this.selftotal[0].a="合计"
|
|
240
|
+
// }
|
|
241
|
+
this.uuid = this.guid();
|
|
242
|
+
let gen = postGen(this)
|
|
243
|
+
co(gen)
|
|
244
|
+
},
|
|
245
|
+
stamp() {
|
|
246
|
+
this.modelval = []
|
|
247
|
+
this.show = true
|
|
248
|
+
},
|
|
249
|
+
sortModelval() {
|
|
250
|
+
let sortModel = []
|
|
251
|
+
Object.keys(this.fields).forEach((key) => {
|
|
252
|
+
if (this.modelval.includes(key)) {
|
|
253
|
+
sortModel.push(key)
|
|
254
|
+
}
|
|
255
|
+
})
|
|
256
|
+
//tag
|
|
257
|
+
this.modelval = sortModel
|
|
258
|
+
},
|
|
259
|
+
close() {
|
|
260
|
+
this.closeTimer()
|
|
261
|
+
this.all = false
|
|
262
|
+
this.modelval = []
|
|
263
|
+
this.show = false
|
|
264
|
+
this.progressShow = false
|
|
265
|
+
this.percent = '0%'
|
|
266
|
+
},
|
|
267
|
+
progressQuery() {
|
|
268
|
+
//tag
|
|
269
|
+
this.progressShow = true
|
|
270
|
+
// 启动定时器之前先关闭定时器,防止之前的定时器未关闭
|
|
271
|
+
this.closeTimer()
|
|
272
|
+
// 立即执行一遍
|
|
273
|
+
this.progressTask()
|
|
274
|
+
this.timer = setInterval(this.progressTask, 3000)
|
|
275
|
+
},
|
|
276
|
+
async progressTask() {
|
|
277
|
+
let self = this
|
|
278
|
+
let url = 'rs/logic/getBatchOperaPro'
|
|
279
|
+
if (Vue.$appdata.getSingleValue('工单excel单值')) {
|
|
280
|
+
url = 'rs/logic/getBatchOperaProNew'
|
|
254
281
|
}
|
|
255
|
-
})
|
|
256
|
-
//tag
|
|
257
|
-
this.modelval = sortModel
|
|
258
|
-
},
|
|
259
|
-
close() {
|
|
260
|
-
this.closeTimer()
|
|
261
|
-
this.all = false
|
|
262
|
-
this.modelval = []
|
|
263
|
-
this.show = false
|
|
264
|
-
this.progressShow = false
|
|
265
|
-
this.percent = '0%'
|
|
266
|
-
},
|
|
267
|
-
progressQuery() {
|
|
268
|
-
//tag
|
|
269
|
-
this.progressShow = true
|
|
270
|
-
// 启动定时器之前先关闭定时器,防止之前的定时器未关闭
|
|
271
|
-
this.closeTimer()
|
|
272
|
-
// 立即执行一遍
|
|
273
|
-
this.progressTask()
|
|
274
|
-
this.timer = setInterval(this.progressTask, 3000)
|
|
275
|
-
},
|
|
276
|
-
async progressTask() {
|
|
277
|
-
let self = this
|
|
278
|
-
let url ='rs/logic/getBatchOperaPro'
|
|
279
|
-
if(Vue.$appdata.getSingleValue('工单excel单值')){
|
|
280
|
-
url = 'rs/logic/getBatchOperaProNew'
|
|
281
|
-
}
|
|
282
282
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
283
|
+
let res = await self.HttpReset.load('POST', url, {data: {uuid: self.uuid}}, {resolveMsg: null, rejectMsg: null})
|
|
284
|
+
res = res.data
|
|
285
|
+
//tag
|
|
286
|
+
if (res.error) {
|
|
287
|
+
self.$showAlert(`导出excel错误: ${res.error}`, 'danger', 0)
|
|
288
|
+
self.closeTimer()
|
|
289
|
+
} else {
|
|
290
|
+
// self.$showAlert(`${res.msg}`, 'success', 2000)
|
|
291
|
+
self.percent = (res.percent ? res.percent : 0) + '%'
|
|
292
|
+
res.percent = res.fileName ? 100 : res.percent
|
|
293
|
+
// 进度100%
|
|
294
|
+
if (res.fileName && res.percent == 100) {
|
|
295
|
+
var link = document.createElement('a');
|
|
296
|
+
res.fileName.forEach((item) => {
|
|
297
|
+
//tag
|
|
298
|
+
// let path = item.filename.substring(item.filename.indexOf('webapps'), (item.filename.length))
|
|
299
|
+
// let pathName = path.substring(path.indexOf('/') + 1, path.length)
|
|
300
|
+
let path = item.filename
|
|
301
|
+
//webapps这个是在服务器上导出用的
|
|
302
|
+
let xy = this.$appdata.getSingleValue('协议') ? this.$appdata.getSingleValue('协议') : "http://"
|
|
303
|
+
let pathName = xy + location.host + "/webapps" + path.split('webapps')[1]
|
|
304
|
+
//excel这个是在本地导出用的
|
|
305
|
+
// let pathName = "http://" + location.host + "/excel" + path.split('excel')[1]
|
|
306
|
+
link.href = pathName;
|
|
307
|
+
link.download = path.split('excel/')[1];
|
|
308
|
+
link.dispatchEvent(new MouseEvent('click'));
|
|
309
|
+
})
|
|
310
|
+
self.close()
|
|
311
|
+
}
|
|
310
312
|
}
|
|
313
|
+
},
|
|
314
|
+
// 关闭定时器
|
|
315
|
+
closeTimer() {
|
|
316
|
+
if (this.timer) {
|
|
317
|
+
clearInterval(this.timer)
|
|
318
|
+
this.timer = null
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
guid() {
|
|
322
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
323
|
+
let r = Math.random() * 16 | 0,
|
|
324
|
+
v = c == 'x' ? r : (r & 0x3 | 0x8)
|
|
325
|
+
return v.toString(16)
|
|
326
|
+
})
|
|
311
327
|
}
|
|
312
328
|
},
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
v = c == 'x' ? r : (r & 0x3 | 0x8)
|
|
324
|
-
return v.toString(16)
|
|
325
|
-
})
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
watch: {
|
|
329
|
-
'all'(val) {
|
|
330
|
-
if (val) {
|
|
331
|
-
this.modelval = Object.keys(this.fields)
|
|
332
|
-
} else {
|
|
333
|
-
this.modelval = []
|
|
329
|
+
watch: {
|
|
330
|
+
'all'(val) {
|
|
331
|
+
if (val) {
|
|
332
|
+
this.modelval = Object.keys(this.fields)
|
|
333
|
+
} else {
|
|
334
|
+
this.modelval = []
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
'modelval.length'() {
|
|
338
|
+
this.sortModelval()
|
|
334
339
|
}
|
|
335
|
-
},
|
|
336
|
-
'modelval.length'() {
|
|
337
|
-
this.sortModelval()
|
|
338
340
|
}
|
|
339
341
|
}
|
|
340
|
-
}
|
|
341
342
|
</script>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
class="input_search full-with" placeholder="名称">
|
|
14
14
|
</div>
|
|
15
15
|
<div class="col-sm-6">
|
|
16
|
-
<label class="font_normal_body">类别</label>
|
|
16
|
+
<label style="width: 80px" class="font_normal_body">类别</label>
|
|
17
17
|
<v-select :disabled="look"
|
|
18
18
|
v-model="model.type"
|
|
19
19
|
placeholder='项目类别'
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
class="input_search full-with" id="name" placeholder="计量单位">
|
|
32
32
|
</div>
|
|
33
33
|
<div class="col-sm-6">
|
|
34
|
-
<label class="font_normal_body">编码</label>
|
|
34
|
+
<label style="width: 80px" class="font_normal_body">编码</label>
|
|
35
35
|
<input type="text"
|
|
36
36
|
:disabled="look"
|
|
37
37
|
v-model="model.code" style="width:60%"
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
v-model="model.price" style="width:60%"
|
|
45
45
|
class="input_search full-with" id="name" placeholder="物料单价">
|
|
46
46
|
</div>
|
|
47
|
+
<div class="col-sm-6">
|
|
48
|
+
<label style="width: 80px" class="font_normal_body">业务类型</label>
|
|
49
|
+
<v-select
|
|
50
|
+
v-model="model.material_type"
|
|
51
|
+
placeholder='请选择'
|
|
52
|
+
:value.sync="model.material_type"
|
|
53
|
+
:value-single="true"
|
|
54
|
+
:options='materialTypeOptions'></v-select>
|
|
55
|
+
</div>
|
|
47
56
|
</div>
|
|
48
57
|
<!-- 按钮 -->
|
|
49
58
|
<div class="row col-sm-12" style="margin-top: 1rem">
|
|
@@ -75,7 +84,9 @@ export default {
|
|
|
75
84
|
component: null,
|
|
76
85
|
create_by: '',
|
|
77
86
|
depict: '',
|
|
78
|
-
type: ''
|
|
87
|
+
type: '',
|
|
88
|
+
material_type: '',
|
|
89
|
+
org_id: ''
|
|
79
90
|
},
|
|
80
91
|
type: '',
|
|
81
92
|
isbusy: false,
|
|
@@ -85,7 +96,8 @@ export default {
|
|
|
85
96
|
}, {label: '燃气具设备', value: '燃气具设备'}, {label: '报建', value: '报建'},
|
|
86
97
|
{label: '规格', value: '规格'}, {label: '材料', value: '材料'}, {label: '品名', value: '品名'}],
|
|
87
98
|
showFile: 'false',
|
|
88
|
-
file: []
|
|
99
|
+
file: [],
|
|
100
|
+
materialTypeOptions: this.$appdata.getParam('材料管理-业务类型')
|
|
89
101
|
}
|
|
90
102
|
},
|
|
91
103
|
watch: {
|
|
@@ -108,9 +120,11 @@ export default {
|
|
|
108
120
|
name: '',
|
|
109
121
|
parent_id: '0',
|
|
110
122
|
create_by: '',
|
|
111
|
-
type: ''
|
|
123
|
+
type: '',
|
|
124
|
+
org_id: ''
|
|
112
125
|
}
|
|
113
126
|
this.model = Object.assign({}, this.model, this.data)
|
|
127
|
+
this.model.org_id = this.$login.f.orgid
|
|
114
128
|
// this.type = this.model.type
|
|
115
129
|
// if (this.model.id) {
|
|
116
130
|
// this.$resetpost('rs/sql/singleTable_OrderBy', {
|