apply-clients 4.1.48-weinan → 4.1.49-weinan
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
|
@@ -858,6 +858,20 @@ export default {
|
|
|
858
858
|
if (this.show_data.fields[index].label === '地址类型'){
|
|
859
859
|
this.addressType()
|
|
860
860
|
}
|
|
861
|
+
if (this.show_data.fields[index].label === '项目名称'){
|
|
862
|
+
let http = new HttpResetClass()
|
|
863
|
+
let data = {
|
|
864
|
+
tablename:'t_apply',
|
|
865
|
+
condition:`f_entry_name = '${this.show_data.fields[index].value}'`
|
|
866
|
+
}
|
|
867
|
+
let res = await http.load('post','rs/sql/singleTable', {data:data},{
|
|
868
|
+
resolveMsg: null,
|
|
869
|
+
rejectMsg: '查询失败'})
|
|
870
|
+
if (res.data.length > 0){
|
|
871
|
+
this.$showMessage('项目名称不能重复,请重新输入!!!')
|
|
872
|
+
this.show_data.fields[index].value = ''
|
|
873
|
+
}
|
|
874
|
+
}
|
|
861
875
|
// if (this.show_data.fields[index].label === '街道'){
|
|
862
876
|
// console.log('-----------添加街道-----------')
|
|
863
877
|
// if (this.show_data.fields[index].value === null || this.show_data.fields[index].value === '') {
|