apply-clients 4.1.11-weinan-1 → 4.1.11-weinan-2

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": "4.1.11-weinan-1",
3
+ "version": "4.1.11-weinan-2",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -180,6 +180,27 @@
180
180
  deleteLocalApply(model){
181
181
  console.log(`前台上传完成,开始删除本地报建工单`)
182
182
  this.$androidUtil.bzLogic('deleteApply', {data:model})
183
+ },
184
+ stopapply(model1,model2){
185
+ this.$showMessage('确定不具备安装条件!',['confirm', 'cancel']).then((res)=>{
186
+ if (res=='confirm'){
187
+ let model = Object.assign({},model2,model1)
188
+ let data = {
189
+ loginUser: Vue.user,
190
+ selectdata: this.selectdata,
191
+ model: model
192
+ }
193
+ let http = new HttpResetClass()
194
+ http.load('POST', this.$androidUtil.getProxyUrl()+'/rs/logic/stopApply', {data: data}, {resolveMsg: null,rejectMsg: '删除失败'})
195
+ .then(res => {
196
+ if (res.data === 200) {
197
+ this.$dispatch('search')
198
+ } else {
199
+ this.$showMessage('终止报建失败')
200
+ }
201
+ })
202
+ }
203
+ })
183
204
  }
184
205
  },
185
206
  events: {
@@ -227,27 +248,19 @@
227
248
  model=Object.assign({},this.selectdata,model)
228
249
  console.log('合并selectdata与model后的model=>' + JSON.stringify(model))
229
250
  let http = new HttpResetClass()
230
- if(this.selectdata.defname = '现场勘察' && this.show_data.f_is_have == '否' ){
231
- this.$showMessage('确定不具备安装条件!','confirm').then(res=>{
232
- if (res = 'confirm'){
233
- let data = {
234
- loginUser: Vue.user,
235
- selectdata: this.selectdata,
236
- model: this.model
237
- }
238
- data.model.f_stop_remarks = '不具备安装条件'
239
- let http = new HttpResetClass()
240
- http.load('POST', this.$androidUtil.getProxyUrl()+'/rs/logic/stopApply', {data: data}, {resolveMsg: null,rejectMsg: '删除失败'})
241
- .then(res => {
242
- if (res.data === 200) {
243
- this.$dispatch('search')
244
- } else {
245
- this.$showMessage('终止报建失败')
246
- }
247
- })
248
- return
249
- }
250
- })
251
+ if(this.selectdata.defname =='现场勘察' && model.f_is_have == '否'){
252
+ let model1 ={
253
+ f_stop_remarks : '不具备安装条件'
254
+ }
255
+ this.stopapply(model1,model)
256
+ return
257
+ }
258
+ if(this.selectdata.defname =='现场勘察' && model.f_is_aerate == '否'){
259
+ let model ={
260
+ f_stop_remarks : '未通气'
261
+ }
262
+ this.stopapply(model1,model)
263
+ return
251
264
  }
252
265
  var url = this.$androidUtil.getProxyUrl() + '/rs/logic/ApplyProductService'
253
266
  // let res = await http.load('POST',url,{data:{tables:this.data.tables,start_activity:this.$workflow_vue.start_activity,model:model,loginUser:Vue.user}}, {resolveMsg: null, rejectMsg: null})