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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.101",
3
+ "version": "3.3.104",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -164,56 +164,43 @@ export default {
164
164
  },
165
165
  methods: {
166
166
  async confirmModal () {
167
- if (this.modelTitle === '新增') {
168
- //报警器设备型号校验
169
- if (this.modelTitle === '新增' && this.selectdata.f_apply_type === '报警器报建'){
170
- let data = {
171
- f_material_name : "",
172
- f_bjq_sid: "",
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
- this.onetomany.fields.forEach(item=>{
175
- if (item.label === '材料编号'){
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
- }else {
209
- if (this.onetomany.add.event) {
210
- this.$dispatch(this.onetomany.add.event, this.index)
211
- } else {
212
- this.$dispatch('onetomanyadd', this.index)
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)