|  | @@ -902,7 +902,8 @@ export default {
 | 
											
												
													
														|  |          list: [],
 |  |          list: [],
 | 
											
												
													
														|  |          total: 0,
 |  |          total: 0,
 | 
											
												
													
														|  |          listLoading: true,
 |  |          listLoading: true,
 | 
											
												
													
														|  | -        temp: {}
 |  | 
 | 
											
												
													
														|  | 
 |  | +        temp: {},
 | 
											
												
													
														|  | 
 |  | +        updateList: {}
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        isDetailDialog: false,
 |  |        isDetailDialog: false,
 | 
											
												
													
														|  |        template: {
 |  |        template: {
 | 
											
										
											
												
													
														|  | @@ -2291,7 +2292,8 @@ export default {
 | 
											
												
													
														|  |        this.requestParam.data[1] = { 'name': 'updateFPbyFTChange', 'type': 'e', 'parammaps': {
 |  |        this.requestParam.data[1] = { 'name': 'updateFPbyFTChange', 'type': 'e', 'parammaps': {
 | 
											
												
													
														|  |          pastureid: this.table2.temp.pastureid,
 |  |          pastureid: this.table2.temp.pastureid,
 | 
											
												
													
														|  |          ftid: this.table2.getdataListParm.parammaps.ftid,
 |  |          ftid: this.table2.getdataListParm.parammaps.ftid,
 | 
											
												
													
														|  | -        type: this.table2.getdataListParm.parammaps.fttypeid
 |  | 
 | 
											
												
													
														|  | 
 |  | +        type: this.table2.getdataListParm.parammaps.fttypeid,
 | 
											
												
													
														|  | 
 |  | +        status: 0
 | 
											
												
													
														|  |        }}
 |  |        }}
 | 
											
												
													
														|  |        this.requestParam.data[2] = { 'name': 'updateftversion', 'type': 'e', 'parammaps': {
 |  |        this.requestParam.data[2] = { 'name': 'updateftversion', 'type': 'e', 'parammaps': {
 | 
											
												
													
														|  |          pastureid: this.table2.getdataListParm.parammaps.pastureid,
 |  |          pastureid: this.table2.getdataListParm.parammaps.pastureid,
 | 
											
										
											
												
													
														|  | @@ -2333,7 +2335,7 @@ export default {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      // 详情编辑
 |  |      // 详情编辑
 | 
											
												
													
														|  |      handleUpdate2(row) {
 |  |      handleUpdate2(row) {
 | 
											
												
													
														|  | -      console.log('详情编辑', row)
 |  | 
 | 
											
												
													
														|  | 
 |  | +      console.log('详情编辑', row)
 | 
											
												
													
														|  |        this.dropState = true
 |  |        this.dropState = true
 | 
											
												
													
														|  |        row.isGroupDisabled = false
 |  |        row.isGroupDisabled = false
 | 
											
												
													
														|  |        row.islockcount = String(row.islockcount)
 |  |        row.islockcount = String(row.islockcount)
 | 
											
										
											
												
													
														|  | @@ -2354,7 +2356,7 @@ export default {
 | 
											
												
													
														|  |          if (rowArr[i] == row.sort) {
 |  |          if (rowArr[i] == row.sort) {
 | 
											
												
													
														|  |            count++
 |  |            count++
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -      }
 |  | 
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  |        // 判断是否有相同顺序,如果没有饲料组不可编辑,若有饲料组可编辑
 |  |        // 判断是否有相同顺序,如果没有饲料组不可编辑,若有饲料组可编辑
 | 
											
												
													
														|  |        if (count == 1) {
 |  |        if (count == 1) {
 | 
											
												
													
														|  |          // 饲料组编辑false,不可编辑true
 |  |          // 饲料组编辑false,不可编辑true
 | 
											
										
											
												
													
														|  | @@ -2380,14 +2382,15 @@ export default {
 | 
											
												
													
														|  |          row.isUpdate = false
 |  |          row.isUpdate = false
 | 
											
												
													
														|  |          row.isUpdateSave = true
 |  |          row.isUpdateSave = true
 | 
											
												
													
														|  |          return false
 |  |          return false
 | 
											
												
													
														|  | -      }
 |  | 
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +      this.table2.updateList = Object.assign({}, row)
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      updateData2(row) {
 |  |      updateData2(row) {
 | 
											
												
													
														|  |        console.log('点击了详情编辑保存', row)
 |  |        console.log('点击了详情编辑保存', row)
 | 
											
												
													
														|  |        this.isokDisable = true
 |  |        this.isokDisable = true
 | 
											
												
													
														|  |        setTimeout(() => {
 |  |        setTimeout(() => {
 | 
											
												
													
														|  |          this.isokDisable = false
 |  |          this.isokDisable = false
 | 
											
												
													
														|  | -      }, 1000)
 |  | 
 | 
											
												
													
														|  | 
 |  | +      }, 1000)
 | 
											
												
													
														|  |        this.table2.temp.pastureid = row.pastureid
 |  |        this.table2.temp.pastureid = row.pastureid
 | 
											
												
													
														|  |        this.table2.temp.ftid = this.table2.getdataListParm.parammaps.ftid
 |  |        this.table2.temp.ftid = this.table2.getdataListParm.parammaps.ftid
 | 
											
												
													
														|  |        this.table2.temp.fid = row.fid
 |  |        this.table2.temp.fid = row.fid
 | 
											
										
											
												
													
														|  | @@ -2398,7 +2401,15 @@ export default {
 | 
											
												
													
														|  |        this.table2.temp.feedgroup = row.feedgroup
 |  |        this.table2.temp.feedgroup = row.feedgroup
 | 
											
												
													
														|  |        this.table2.temp.preftid = this.table2.temp.preftid
 |  |        this.table2.temp.preftid = this.table2.temp.preftid
 | 
											
												
													
														|  |        this.table2.temp.autosecond = row.autosecond
 |  |        this.table2.temp.autosecond = row.autosecond
 | 
											
												
													
														|  | -      this.table2.temp.id = row.id
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.table2.temp.id = row.id
 | 
											
												
													
														|  | 
 |  | +      console.log('this.table2.updateList', this.table2.updateList)
 | 
											
												
													
														|  | 
 |  | +      console.log('temp', this.table2.temp)
 | 
											
												
													
														|  | 
 |  | +      var status = ''
 | 
											
												
													
														|  | 
 |  | +      if (parseFloat(this.table2.temp.fweight) > parseFloat(this.table2.updateList.fweight)) {
 | 
											
												
													
														|  | 
 |  | +        status = 0
 | 
											
												
													
														|  | 
 |  | +      } else {
 | 
											
												
													
														|  | 
 |  | +        status = 1
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  |        if (this.table2.temp.fid == '' && this.table2.temp.fweight == '' && this.table2.temp.autosecond == '') {
 |  |        if (this.table2.temp.fid == '' && this.table2.temp.fweight == '' && this.table2.temp.autosecond == '') {
 | 
											
												
													
														|  |          this.$message({ type: 'error', message: '饲料名称/重量/搅拌延时不能为空', duration: 2000 })
 |  |          this.$message({ type: 'error', message: '饲料名称/重量/搅拌延时不能为空', duration: 2000 })
 | 
											
												
													
														|  |          return false
 |  |          return false
 | 
											
										
											
												
													
														|  | @@ -2467,7 +2478,8 @@ export default {
 | 
											
												
													
														|  |        this.requestParam.data[2] = { 'name': 'updateFPbyFTChange', 'type': 'e', 'parammaps': {
 |  |        this.requestParam.data[2] = { 'name': 'updateFPbyFTChange', 'type': 'e', 'parammaps': {
 | 
											
												
													
														|  |          pastureid: row.pastureid,
 |  |          pastureid: row.pastureid,
 | 
											
												
													
														|  |          ftid: this.table2.getdataListParm.parammaps.ftid,
 |  |          ftid: this.table2.getdataListParm.parammaps.ftid,
 | 
											
												
													
														|  | -        type: this.table2.getdataListParm.parammaps.fttypeid
 |  | 
 | 
											
												
													
														|  | 
 |  | +        type: this.table2.getdataListParm.parammaps.fttypeid,
 | 
											
												
													
														|  | 
 |  | +        status: status
 | 
											
												
													
														|  |        }}
 |  |        }}
 | 
											
												
													
														|  |        this.requestParam.data[3] = { 'name': 'updateFTdetailbySort', 'type': 'e', 'parammaps': {
 |  |        this.requestParam.data[3] = { 'name': 'updateFTdetailbySort', 'type': 'e', 'parammaps': {
 | 
											
												
													
														|  |          pastureid: row.pastureid,
 |  |          pastureid: row.pastureid,
 | 
											
										
											
												
													
														|  | @@ -2533,7 +2545,8 @@ export default {
 | 
											
												
													
														|  |            this.requestParam.data[2] = { 'name': 'updateFPbyFTChange', 'type': 'e', 'parammaps': {
 |  |            this.requestParam.data[2] = { 'name': 'updateFPbyFTChange', 'type': 'e', 'parammaps': {
 | 
											
												
													
														|  |              pastureid: row.pastureid,
 |  |              pastureid: row.pastureid,
 | 
											
												
													
														|  |              ftid: this.table2.getdataListParm.parammaps.ftid,
 |  |              ftid: this.table2.getdataListParm.parammaps.ftid,
 | 
											
												
													
														|  | -            type: this.table2.getdataListParm.parammaps.fttypeid
 |  | 
 | 
											
												
													
														|  | 
 |  | +            type: this.table2.getdataListParm.parammaps.fttypeid,
 | 
											
												
													
														|  | 
 |  | +            status: 1
 | 
											
												
													
														|  |            }}
 |  |            }}
 | 
											
												
													
														|  |            this.requestParam.data[3] = { 'name': 'updateftversion', 'type': 'e', 'parammaps': {
 |  |            this.requestParam.data[3] = { 'name': 'updateftversion', 'type': 'e', 'parammaps': {
 | 
											
												
													
														|  |              pastureid: this.table2.getdataListParm.parammaps.pastureid,
 |  |              pastureid: this.table2.getdataListParm.parammaps.pastureid,
 | 
											
										
											
												
													
														|  | @@ -2562,7 +2575,8 @@ export default {
 | 
											
												
													
														|  |            this.requestParam.data[3] = { 'name': 'updateFPbyFTChange', 'type': 'e', 'parammaps': {
 |  |            this.requestParam.data[3] = { 'name': 'updateFPbyFTChange', 'type': 'e', 'parammaps': {
 | 
											
												
													
														|  |              pastureid: row.pastureid,
 |  |              pastureid: row.pastureid,
 | 
											
												
													
														|  |              ftid: this.table2.getdataListParm.parammaps.ftid,
 |  |              ftid: this.table2.getdataListParm.parammaps.ftid,
 | 
											
												
													
														|  | -            type: this.table2.getdataListParm.parammaps.fttypeid
 |  | 
 | 
											
												
													
														|  | 
 |  | +            type: this.table2.getdataListParm.parammaps.fttypeid,
 | 
											
												
													
														|  | 
 |  | +            status: 1
 | 
											
												
													
														|  |            }}
 |  |            }}
 | 
											
												
													
														|  |            this.requestParam.data[4] = { 'name': 'updateftversion', 'type': 'e', 'parammaps': {
 |  |            this.requestParam.data[4] = { 'name': 'updateftversion', 'type': 'e', 'parammaps': {
 | 
											
												
													
														|  |              pastureid: this.table2.getdataListParm.parammaps.pastureid,
 |  |              pastureid: this.table2.getdataListParm.parammaps.pastureid,
 |