|
@@ -141,23 +141,26 @@
|
|
|
|
|
|
|
|
save() {
|
|
save() {
|
|
|
|
|
|
|
|
- this.List.every(m => {
|
|
|
|
|
|
|
+ let bol
|
|
|
|
|
+ this.List.forEach(e => {
|
|
|
|
|
+ if (e.aridRegionList && e.aridRegionList.length > 0) {
|
|
|
|
|
+ bol = e.aridRegionList.every(v => v.occupationTime)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ bol = true
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
|
|
+ if (!bol) {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: '请输入干燥时间',
|
|
|
|
|
+ icon: 'none'
|
|
|
|
|
+ })
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- })
|
|
|
|
|
|
|
|
|
|
- // if(this.objData.aridRegionList.length > 0) {
|
|
|
|
|
- // if(!this.objData.aridRegionList[0].occupationTime) {
|
|
|
|
|
- // uni.showToast({
|
|
|
|
|
- // title: '请输入干燥时间',
|
|
|
|
|
- // icon: 'none'
|
|
|
|
|
- // })
|
|
|
|
|
- // return false
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
-
|
|
|
|
|
- console.log(_arr)
|
|
|
|
|
- return false
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
batchSave(this.List).then(res => {
|
|
batchSave(this.List).then(res => {
|
|
|
|
|
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|