apply-clients 3.3.101 → 3.3.104
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/android/AppOnetomany.vue +32 -45
- package/src/components/android/AppServiceView.vue +732 -752
- package/src/components/android/AreaSelect/AppResAreaSelectGroup.vue +9 -3
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +513 -508
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +1 -1
- package/src/components/product/Onetomany.vue +31 -44
package/package.json
CHANGED
|
@@ -164,56 +164,43 @@ export default {
|
|
|
164
164
|
},
|
|
165
165
|
methods: {
|
|
166
166
|
async confirmModal () {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
167
|
+
//报警器设备型号校验
|
|
168
|
+
if (this.selectdata.f_apply_type === '报警器报建') {
|
|
169
|
+
let data = {
|
|
170
|
+
f_material_name: "",
|
|
171
|
+
f_bjq_sid: "",
|
|
172
|
+
}
|
|
173
|
+
this.onetomany.fields.forEach(item => {
|
|
174
|
+
if (item.label === '材料编号') {
|
|
175
|
+
data.f_bjq_sid = item.value
|
|
173
176
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
data.f_bjq_sid = item.value
|
|
177
|
-
}
|
|
178
|
-
if (item.label === '材料名称'){
|
|
179
|
-
data.f_material_name = item.value
|
|
180
|
-
}
|
|
181
|
-
})
|
|
182
|
-
if (data.f_material_name.substr(0,3) === '报警器'){
|
|
183
|
-
let res = await this.$resetpost(
|
|
184
|
-
`${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqcheck`,
|
|
185
|
-
// `ncc/rs/logic/bjqcheck`,
|
|
186
|
-
// `/rs/logic/bjqcheck`,
|
|
187
|
-
data
|
|
188
|
-
)
|
|
189
|
-
if (res.data.code == 200){
|
|
190
|
-
if (this.onetomany.add.event) {
|
|
191
|
-
this.$dispatch(this.onetomany.add.event, this.index)
|
|
192
|
-
} else {
|
|
193
|
-
this.$dispatch('onetomanyadd', this.index)
|
|
194
|
-
}
|
|
195
|
-
this.closeModal()
|
|
196
|
-
}else {
|
|
197
|
-
this.disableButton = true
|
|
198
|
-
this.$showMessage(res.data.msg)
|
|
199
|
-
}
|
|
200
|
-
}else {
|
|
201
|
-
if (this.onetomany.add.event) {
|
|
202
|
-
this.$dispatch(this.onetomany.add.event, this.index)
|
|
203
|
-
} else {
|
|
204
|
-
this.$dispatch('onetomanyadd', this.index)
|
|
205
|
-
}
|
|
206
|
-
this.closeModal()
|
|
177
|
+
if (item.label === '材料名称') {
|
|
178
|
+
data.f_material_name = item.value
|
|
207
179
|
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
180
|
+
})
|
|
181
|
+
if (data.f_material_name.substr(0, 3) === '报警器') {
|
|
182
|
+
let res = await this.$resetpost(
|
|
183
|
+
`${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqcheck`,
|
|
184
|
+
// `ncc/rs/logic/bjqcheck`,
|
|
185
|
+
// `/rs/logic/bjqcheck`,
|
|
186
|
+
data
|
|
187
|
+
)
|
|
188
|
+
if (res.data.code != 200) {
|
|
189
|
+
this.disableButton = true
|
|
190
|
+
this.$showMessage(res.data.msg)
|
|
191
|
+
return
|
|
213
192
|
}
|
|
214
|
-
this.closeModal()
|
|
215
193
|
}
|
|
216
194
|
}
|
|
195
|
+
|
|
196
|
+
if (this.modelTitle === '新增') {
|
|
197
|
+
if (this.onetomany.add.event) {
|
|
198
|
+
this.$dispatch(this.onetomany.add.event, this.index)
|
|
199
|
+
} else {
|
|
200
|
+
this.$dispatch('onetomanyadd', this.index)
|
|
201
|
+
}
|
|
202
|
+
this.closeModal()
|
|
203
|
+
}
|
|
217
204
|
if (this.modelTitle === '修改') {
|
|
218
205
|
if (this.onetomany.update.event) {
|
|
219
206
|
this.$dispatch(this.onetomany.update.event, this.index, this.rowIndex)
|