apply-clients 3.1.58 → 3.1.60

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.1.58",
3
+ "version": "3.1.60",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -81,6 +81,7 @@
81
81
  // AOP:进入vue组件前初始化内容
82
82
  // json配置数据处理 比如下拉框的options
83
83
  async initializtion() {
84
+
84
85
  if (this.show_data && this.show_data.f_process_id == this.data.f_process_id
85
86
  && this.show_data.defname==this.selectdata.defname){
86
87
  this.data = Object.assign({}, this.data, this.selectdata,this.show_data)
@@ -189,7 +190,7 @@
189
190
 
190
191
  // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
191
192
  let temp = JSON.parse(JSON.stringify(this.data))
192
-
193
+ debugger
193
194
  this.show_data = temp
194
195
  this.$nextTick(() => {
195
196
  this.showview = true
@@ -207,6 +208,11 @@
207
208
  this.moneyDue()
208
209
  this.moneySumArrears()
209
210
  }
211
+ let istrue=this.data.f_is_true;
212
+ let isrefund=this.data.f_is_refund;
213
+ if(istrue==="是"||isrefund==="是"){
214
+ this.show_data.buttons[2].hidden = true
215
+ }
210
216
 
211
217
  },
212
218
  // 金额转大写
@@ -1041,7 +1047,7 @@
1041
1047
  }
1042
1048
  }
1043
1049
  // 给后台存工改接口所需的附件
1044
- if(this.data.defname=='方案确认'){
1050
+ /*if(this.data.defname=='方案确认'){
1045
1051
  let http = new HttpResetClass()
1046
1052
  await http.load('POST', 'rs/sql/singleTable', {
1047
1053
  data: {
@@ -1083,7 +1089,7 @@
1083
1089
  return
1084
1090
  }
1085
1091
  })
1086
- }else{
1092
+ }else{*/
1087
1093
  // 修改提交数据
1088
1094
  model = Object.assign({}, this.selectdata, model)
1089
1095
  let http = new HttpResetClass()
@@ -1111,7 +1117,7 @@
1111
1117
  this.$showMessage(res.data.msg)
1112
1118
  }
1113
1119
  }
1114
- }
1120
+ //}
1115
1121
  },
1116
1122
  // 失去焦点出触发事件
1117
1123
  async 'check'(index) {
@@ -1182,7 +1188,6 @@
1182
1188
  this.$showAlert('电话号码格式不正确,请重新输入。', 'info', 2000)
1183
1189
  }
1184
1190
  }
1185
-
1186
1191
  //时间提醒
1187
1192
  if (this.$refs.service_show.data.fields[index].label.includes("时间") || this.$refs.service_show.data.fields[index].type === 'datepicker') {
1188
1193
  let setTime = this.$refs.service_show.data.fields[i].value
@@ -1192,18 +1197,43 @@
1192
1197
  }
1193
1198
  }
1194
1199
 
1195
- // // 任何是否的选择框只要是否都不能提交
1196
- // if (this.$refs.service_show.data.fields[index].value === '否') {
1197
- // this.$refs.service_show.disable_button = true
1198
- // // this.$refs.service_show.data.buttons[1].button_name = '保存'
1199
- // this.$showMessage("当审核/确认为否时,无法提交")
1200
- // return
1201
- // }else {
1202
- // // this.$refs.service_show.data.buttons[1].button_name = '提交'
1203
- // this.$refs.service_show.disable_button = false
1204
- // }
1200
+ // 派工是,退费否,不提交,不退费
1201
+ //派工否,退费是,到退费环节
1202
+ //派工是,退费是,到退费环节-》施工
1203
+ //派工否,退费否,不提交,不退费
1204
+ let paigong= this.$refs.service_show.data.fields[9].value
1205
+ let tuifei= this.$refs.service_show.data.fields[10].value
1206
+
1207
+ if ( paigong === '否' && tuifei === '是') {
1208
+ //禁用提交按钮,启用退费按钮
1209
+ //获取id值为1的button,设置disabled为false
1210
+ var button = document.getElementById("1"); // 获取id值为1的button元素
1211
+ button.disabled = true; // 设置button元素为不可用
1212
+ var button2 = document.getElementById("2"); // 获取id值为1的button元素
1213
+ button2.disabled = false; // 设置button元素为不可用
1214
+ }else if ( paigong === '是' && tuifei === '是') {
1215
+ //禁用提交按钮,启用退费按钮,后转到施工环节
1216
+ var button = document.getElementById("1"); // 获取id值为1的button元素
1217
+ button.disabled = true; // 设置button元素为不可用
1218
+ var button2 = document.getElementById("2"); // 获取id值为1的button元素
1219
+ button2.disabled = false; // 设置button元素为不可用
1220
+ }else if ( paigong === '否' && tuifei === '否') {
1221
+ //禁用提交按钮,禁用退费按钮
1222
+ var button1 = document.getElementById("1"); // 获取id值为1的button元素
1223
+ button1.disabled = true; // 设置button元素为不可用
1224
+ var button2 = document.getElementById("2"); // 获取id值为1的button元素
1225
+ button2.disabled = true; // 设置button元素为不可用
1226
+
1227
+ } else if ( paigong === '是' && tuifei === '否') {
1228
+ //启用提交按钮,禁用退费按钮
1229
+ var button1 = document.getElementById("1"); // 获取id值为1的button元素
1230
+ button1.disabled = false; // 设置button元素为不可用
1231
+ var button2 = document.getElementById("2"); //
1232
+ button2.disabled = true; // 设置button元素为不可用
1233
+
1234
+ }
1205
1235
  },
1206
- // input值发生变化
1236
+ // input值发生变·
1207
1237
  async 'oninput'(index) {},
1208
1238
  // 错误事件
1209
1239
  error_check(index) {