apply-clients 3.1.52 → 3.1.53
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
|
@@ -847,8 +847,34 @@
|
|
|
847
847
|
|
|
848
848
|
|
|
849
849
|
|
|
850
|
-
}
|
|
850
|
+
},
|
|
851
|
+
async stopApply () {
|
|
852
|
+
console.log('终止报建!!!!!')
|
|
853
|
+
|
|
854
|
+
if (this.show_data.defname === '报建受理') {
|
|
855
|
+
this.show_data.f_stop_reason = this.show_data.f_accept_result
|
|
856
|
+
}
|
|
857
|
+
if (this.show_data.defname === '现场勘察') {
|
|
858
|
+
this.show_data.f_stop_reason = this.show_data.f_project_describe
|
|
859
|
+
}
|
|
860
|
+
if(!this.show_data.f_stop_reason){
|
|
861
|
+
this.show_data.f_stop_reason = '终止'
|
|
862
|
+
}
|
|
863
|
+
let data = {
|
|
864
|
+
selectdata: this.show_data,
|
|
865
|
+
loginUser: this.$login.f,
|
|
866
|
+
model: {f_stop_remarks: this.show_data.f_stop_reason}
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
let res = await this.$resetpost(
|
|
870
|
+
`rs/logic/stopApply`,
|
|
871
|
+
{data: data},
|
|
872
|
+
{resolveMsg: null, rejectMsg: '终止报建失败!!!'}
|
|
873
|
+
)
|
|
851
874
|
|
|
875
|
+
this.$dispatch('selfsearch')
|
|
876
|
+
|
|
877
|
+
}
|
|
852
878
|
},
|
|
853
879
|
events: {
|
|
854
880
|
test(i, j){
|
|
@@ -857,6 +883,11 @@
|
|
|
857
883
|
},
|
|
858
884
|
// 获取view层button事件/
|
|
859
885
|
async 'button'(model) {
|
|
886
|
+
//before事件
|
|
887
|
+
console.log("当前按钮",model.button)
|
|
888
|
+
if (model.button.before) {
|
|
889
|
+
await this[model.button.before]()
|
|
890
|
+
}
|
|
860
891
|
// 点击重置按钮就重置数据
|
|
861
892
|
if (model.button.button_name === '重置') {
|
|
862
893
|
this.refurbish()
|
|
@@ -399,6 +399,9 @@
|
|
|
399
399
|
}
|
|
400
400
|
buttondatas.button_name = button.button_name
|
|
401
401
|
buttondatas.button_index = index
|
|
402
|
+
if (button.before){
|
|
403
|
+
buttondatas.before = button.before
|
|
404
|
+
}
|
|
402
405
|
if (button.button_fields) {
|
|
403
406
|
button.button_fields.forEach(item => {
|
|
404
407
|
buttondatas.button_fields[item.field] = item.value
|