diff --git a/miniprogram/pages/addDevice/addDevice.js b/miniprogram/pages/addDevice/addDevice.js index 42f5f47..53cf3f9 100644 --- a/miniprogram/pages/addDevice/addDevice.js +++ b/miniprogram/pages/addDevice/addDevice.js @@ -544,81 +544,81 @@ }) return false } - if (this.data.form.longitude == "" || this.data.form.latitude == "") { - wx.showToast({ - icon: 'none', - title: '经纬度不能为空!', - }) - return false - } - if (this.data.form.position == "") { - wx.showToast({ - icon: 'none', - title: '位置描述不能为空!', - }) - return false - } - if (this.data.form.wellcode == "") { - wx.showToast({ - icon: 'none', - title: '井编号不能为空!', - }) - return false - } + // if (this.data.form.longitude == "" || this.data.form.latitude == "") { + // wx.showToast({ + // icon: 'none', + // title: '经纬度不能为空!', + // }) + // return false + // } + // if (this.data.form.position == "") { + // wx.showToast({ + // icon: 'none', + // title: '位置描述不能为空!', + // }) + // return false + // } + // if (this.data.form.wellcode == "") { + // wx.showToast({ + // icon: 'none', + // title: '井编号不能为空!', + // }) + // return false + // } - if (this.data.form.devicetype == "") { - wx.showToast({ - icon: 'none', - title: '设备类型不能为空!', - }) - return false - } + // if (this.data.form.devicetype == "") { + // wx.showToast({ + // icon: 'none', + // title: '设备类型不能为空!', + // }) + // return false + // } - if (this.data.form.installperson == "") { - wx.showToast({ - icon: 'none', - title: '安装人员不能为空!', - }) - return false - } + // if (this.data.form.installperson == "") { + // wx.showToast({ + // icon: 'none', + // title: '安装人员不能为空!', + // }) + // return false + // } - if (this.data.form.welldepth != null) { - if (this.isNumber(this.data.form.welldepth)) { - wx.showToast({ - icon: 'none', - title: '井深必须为数值!', - }) - return false - } - } - if (this.data.form.installheigt != null) { - if (this.isNumber(this.data.form.installheigt)) { - wx.showToast({ - icon: 'none', - title: '到井口距离必须为数值!', - }) - return false - } - } + // if (this.data.form.welldepth != null) { + // if (this.isNumber(this.data.form.welldepth)) { + // wx.showToast({ + // icon: 'none', + // title: '井深必须为数值!', + // }) + // return false + // } + // } + // if (this.data.form.installheigt != null) { + // if (this.isNumber(this.data.form.installheigt)) { + // wx.showToast({ + // icon: 'none', + // title: '到井口距离必须为数值!', + // }) + // return false + // } + // } - if (this.data.form.project == "") { - wx.showToast({ - icon: 'none', - title: '所属项目不能为空!', - }) - return false - } + // if (this.data.form.project == "") { + // wx.showToast({ + // icon: 'none', + // title: '所属项目不能为空!', + // }) + // return false + // } - if (this.data.form.installtimeFmt == null) { - wx.showToast({ - icon: 'none', - title: '安装时间不能为空!', - }) - return false - } + // if (this.data.form.installtimeFmt == null) { + // wx.showToast({ + // icon: 'none', + // title: '安装时间不能为空!', + // }) + // return false + // } return true; }, //提交表单