1
0
panhui 7 سال پیش
والد
کامیت
1b065983a6

+ 288 - 0
src/main/vue/src/pages/HandleDisinfection.vue

@@ -0,0 +1,288 @@
+<template>
+  <el-container style="flex-grow:1">
+    <el-main class="containMain">
+      <div class="contentTitle">消毒登记</div>
+      <el-form ref="form" :model="formData" label-width="80px" style="margin-top:20px;max-width:300px">
+        <el-form-item label="所在牧场">
+          <el-select v-model="formData.currFarm" placeholder="请选择所在牧场">
+            <el-option v-for="item in farmList" :key="item['牧场编号']" :label="item['牧场名称']" :value="item['牧场编号']"></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="消毒区域">
+          <el-input v-model="formData.area"></el-input>
+        </el-form-item>
+
+        <el-form-item label="消毒药品">
+          <el-input v-model="formData.drug"></el-input>
+        </el-form-item>
+
+        <el-form-item label="消毒方式">
+          <el-input v-model="formData.type"></el-input>
+        </el-form-item>
+
+        <el-form-item label="消毒用途">
+          <el-input v-model="formData.way"></el-input>
+        </el-form-item>
+
+        <el-form-item label="发放量">
+          <el-input-number v-model="formData.distribution" :min="0"></el-input-number>
+          <span style="margin-left:10px">L</span>
+        </el-form-item>
+
+        <el-form-item label="浓度">
+          <el-input-number v-model="formData.thickness" :min="0"></el-input-number>
+          <span style="margin-left:10px">%</span>
+        </el-form-item>
+
+        <el-form-item label="原液量">
+          <el-input-number v-model="formData.stoste" :min="0"></el-input-number>
+          <span style="margin-left:10px">L</span>
+        </el-form-item>
+
+        <el-form-item label="备注">
+          <el-input v-model="formData.note"></el-input>
+        </el-form-item>
+
+        <div style="margin-top:80px">
+          <el-button @click="onSave" type="primary" style="width:98px;" size="mediu">确认消毒</el-button>
+        </div>
+      </el-form>
+    </el-main>
+  </el-container>
+</template>
+<script>
+import formValidator from '../formValidator'
+import axios from 'axios'
+import { mapState } from 'vuex'
+export default {
+  created() {
+
+    this.getHaleInfo('wsCow', 'getAllFarm', [], 'list').then((data) => {
+      this.farmList = data
+    })
+
+
+  },
+  data() {
+    return {
+      saving: false,
+      formData: {
+        currFarm: this.$store.state.farmNO.toString(),
+        area: '',
+        drug: '',
+        type: '',
+        way: '',
+        distribution: '',
+        thickness: '',
+        stoste: '',
+        opeator: this.$store.state.userInfo.username,
+        note: ''
+      },
+      farmList: []
+    }
+  },
+  computed: {
+    ...mapState(['userInfo', 'allHeight']),
+
+  },
+  methods: {
+    onSave() {
+      if (!this.formData.currFarm) {
+        this.$message({
+          message: '请选择所在牧场',
+          type: 'warning'
+        });
+        return
+      }
+      if (!this.formData.area) {
+        this.$message({
+          message: '请输入消毒区域',
+          type: 'warning'
+        });
+        return
+      }
+
+      if (!this.formData.drug) {
+        this.$message({
+          message: '请输入消毒药品',
+          type: 'warning'
+        });
+        return
+      }
+
+      if (!this.formData.type) {
+        this.$message({
+          message: '请输入消毒方式',
+          type: 'warning'
+        });
+        return
+      }
+
+      if (!this.formData.way) {
+        this.$message({
+          message: '请输入消毒用途',
+          type: 'warning'
+        });
+        return
+      }
+
+      if (!this.formData.distribution) {
+        this.$message({
+          message: '请输入发放量',
+          type: 'warning'
+        });
+        return
+      }
+
+      if (!this.formData.thickness) {
+        this.$message({
+          message: '请输入浓度',
+          type: 'warning'
+        });
+        return
+      }
+
+      if (!this.formData.stoste) {
+        this.$message({
+          message: '请输入原液量',
+          type: 'warning'
+        });
+        return
+      }
+      if (!this.formData.note) {
+        this.$message({
+          message: '请输入备注',
+          type: 'warning'
+        });
+        return
+      }
+      var data={
+        "所在牧场":this.formData.currFarm,
+        "消毒区域":this.formData.area,
+        "消毒药品":this.formData.drug,
+        "消毒方式":this.formData.type,
+        "消毒用途":this.formData.way,
+        "发放量":this.formData.distribution,
+        "浓度":this.formData.thickness,
+        "原液量":this.formData.stoste,
+        "操作人":this.formData.opeator,
+        "备注":this.formData.note
+      }
+      var form=new FormData()
+      form.append('json',JSON.stringify(data))
+      axios.post('http://172.16.84.41:82/xdxx/ProviderActionHandler.ashx?action=add',form, {
+        withCredentials: false
+      }).then(res => {
+        
+        if (res.data.status == 0) {
+          this.$message({
+            message:res.data.msg,
+            type: 'warning'
+          });
+        }
+        else {
+          this.$message({
+            message: '消毒信息录入成功',
+            type: 'success'
+          });
+        }
+
+      })
+
+    },
+    submit() {
+      var data = JSON.parse(JSON.stringify(this.formData));
+      this.$http.post({
+        url: this.formData.id ? '/userInfo/update' : '/userInfo/save',
+        data: data
+      }).then(res => {
+        if (res.success) {
+          this.$message.success('成功');
+          this.$router.go(-1);
+        } else {
+          this.$message.warning('失败')
+        }
+      });
+    },
+    getNowCow() {
+
+      this.getCowInfo(this.formData.cowID).then((data) => {
+        // console.log(data)
+        if (data['是否在场'] == '否') {
+          this.$message({
+            message: '当前牛只并不在场',
+            type: 'warning'
+          });
+          this.formData.cowID = ''
+          return
+        }
+
+        if (data['当前牧场'] != this.$store.state.farmName) {
+          this.$message({
+            message: '牛只不属于你所在的牧场,无权转牛',
+            type: 'warning'
+          });
+          this.formData.cowID = ''
+          return
+        }
+        var list = []
+        Object.keys(data).forEach(item => {
+          list.push({
+            key: item,
+            value: data[item]
+          })
+        })
+
+        // console.log(list)
+
+        this.tableData = list
+      }).catch(() => {
+        this.formData.cowID = ''
+      })
+    }
+  }
+}
+</script>
+<style lang="less" scoped>
+.containMain {
+  background: rgba(255, 255, 255, 1);
+  border-radius: 4px;
+  padding: 15px;
+  // margin-right: 10px;
+  .contentTitle {
+    border-bottom: 1px solid #f2f4f5;
+  }
+  // min-width: 450px;
+
+  .sub {
+    font-size: 14px;
+    font-weight: 600;
+    color: rgba(102, 102, 102, 1);
+    line-height: 20px;
+    margin-bottom: 40px;
+    padding-left: 20px;
+  }
+}
+
+.contentTitle {
+  font-size: 16px;
+  font-weight: bold;
+  color: rgba(0, 0, 0, 1);
+  line-height: 22px;
+  letter-spacing: 1px;
+  padding-bottom: 14px;
+}
+
+.containAside {
+  padding: 0;
+  margin-left: 10px;
+  display: flex;
+  flex-direction: column;
+  .asideInfo {
+    flex-grow: 1;
+    background: rgba(255, 255, 255, 1);
+    border-radius: 4px;
+    padding: 15px;
+  }
+}
+</style>

+ 1 - 0
src/main/vue/src/pages/HandleProhibition.vue

@@ -58,6 +58,7 @@ export default {
     ...mapState(['userInfo', 'allHeight']),
     pageTitle() {
       return this.$route.meta.title
+      
     }
   },
   watch: {

+ 350 - 0
src/main/vue/src/pages/HandleQuarantine.vue

@@ -0,0 +1,350 @@
+<template>
+  <el-container style="flex-grow:1">
+    <el-aside class="containAside" max-width="500px" width="26%" style=" margin-right: 10px;">
+      <div class="asideInfo">
+        <div class="contentTitle">
+          {{pageTitle}}
+
+        </div>
+        <div class="selectContent">
+          <el-select v-model="cowshed" placeholder="请选择牛舍" style="width:230px">
+            <el-option v-for="item in cowshedList" :key="item['当前牛舍']" :label="item['当前牛舍']" :value="item['当前牛舍']"></el-option>
+          </el-select>
+        </div>
+        <div class="tableNum">{{list.length}}头奶牛</div>
+        <el-table class="handleTable" border :data="list" style="width: 100%" :height="(allHeight-220)+'px'" size="small" @row-click="rowClick">
+          <el-table-column prop="牛号" label="牛号" fixed="left" align="center"></el-table-column>
+          <el-table-column prop="当前牛舍" label="牛舍" align="center"></el-table-column>
+        </el-table>
+      </div>
+    </el-aside>
+    <el-main class="containMain">
+      <div class="contentTitle">{{pageTitle}}登记</div>
+      <el-form ref="form" :model="formData" label-width="120px" style="margin-top:20px;width:522px">
+        <el-form-item label label-width="0">
+          <el-input  v-model="formData.cowID" disabled prefix-icon="el-icon-search" style="width:300px" maxlength="8"></el-input>
+          <!-- <el-button type="primary" @click="getNowCow" style="width:90px;margin-left:12px">确认</el-button> -->
+        </el-form-item>
+        <div class="sub" v-if="tableData.length>0">操作牛号:{{tableData[0].value}}</div>
+        <el-form-item label="是否进行操作">
+          <el-radio-group v-model="formData.isEdit" v-if='task!=4&&task!=6'>
+            <el-radio label="0">是</el-radio>
+          </el-radio-group>
+           <el-radio-group v-model="formData.isEdit" v-else>
+            <el-radio label="0">阴性</el-radio>
+            <el-radio label="1">阳性</el-radio>
+          </el-radio-group>
+        </el-form-item>
+
+        <div style="margin-top:80px">
+          <el-button @click="onSave" type="primary" style="width:98px;" size="mediu">确认保存</el-button>
+        </div>
+      </el-form>
+    </el-main>
+    <el-aside class="containAside" width="25%" max-width="450px" style=" margin-left: 10px;">
+      <div class="asideInfo">
+        <div class="contentTitle">牛只信息</div>
+        <el-table class="handleTable" border :data="tableData" style="width: 100%" :height="(allHeight-120)+'px'" size="small">
+          <el-table-column prop="key" label="参数"></el-table-column>
+          <el-table-column prop="value" label="当前牛只信信息"></el-table-column>
+        </el-table>
+      </div>
+    </el-aside>
+  </el-container>
+</template>
+<script>
+import formValidator from '../formValidator'
+import axios from 'axios'
+import { mapState } from 'vuex'
+export default {
+  created() {
+    //配种列表
+    // this.getTask()
+   this.getList('')
+
+  },
+  data() {
+    return {
+      saving: false,
+      formData: {
+        cowID: '',
+        isEdit: '0'
+      },
+      mateModes: [],
+      methods: ['人工观察', '计步器揭发', '同期发情'],
+      bulls: [],
+      tableData: [],
+      list: [],
+      editCowInfo: {},
+      reasonList: [],
+      task: 7,
+      taskNOList: [],
+      taskNO: '',
+      cowshedList: [],
+      cowshed: ''
+    }
+  },
+  computed: {
+    ...mapState(['userInfo', 'allHeight']),
+    pageTitle() {
+      return '布疫检疫'
+    },
+    bullMsg() {
+      var jsonp = {}
+      if (this.formData.bull) {
+        this.bulls.forEach(item => {
+          if (item['牛号'] == this.formData.bull) {
+            jsonp = item
+          }
+        })
+      }
+
+      return jsonp
+
+
+    }
+  },
+  watch: {
+    'formData.reason'() {
+      setTimeout(() => {
+        this.formData.remark = this.remarks[0]
+      }, 100)
+    },
+    'formData.cowID'() {
+      if (this.formData.cowID.length != 8) {
+        return
+      }
+      this.getNowCow()
+    },
+    task() {
+      this.getTask()
+      this.list = []
+      this.cowshed=''
+       this.getList('')
+    },
+    cowshed() {
+      if (this.cowshed) {
+        this.getList(this.cowshed)
+      }
+    }
+  },
+  methods: {
+    getList(cowshed) {
+      this.getHaleInfo('wsVeterinary', 'getIQTaskDetail', [
+        this.$store.state.farmName, this.task, '', cowshed
+      ], 'list').then((data) => {
+        console.log(data)
+        if (!cowshed) {
+          this.cowshedList = data
+        }
+        else {
+          this.list = data
+        }
+
+
+      })
+    },
+    getTask() {
+      this.getHaleInfo('wsVeterinary', 'getIQTask', [
+        this.$store.state.farmName, this.task
+      ], 'list').then((data) => {
+
+        
+        console.log(data)
+        this.taskNOList = data
+
+
+      })
+    },
+    onSave() {
+      if (!this.formData.cowID) {
+        this.$message({
+          message: '请录入牛只牛号',
+          type: 'warning'
+        });
+        return
+      }
+
+      
+
+      this.getHaleInfo('wsVeterinary', 'updateIQInfo', [
+         this.formData.cowID, this.editCowInfo['任务单编号'], this.task, (this.task==4||this.task==6)?(this.formData.isEdit=='0'?'阴性':'阳性'):'', '', this.userInfo.username
+      ], 'json').then((data) => {
+        console.log(data)
+        if (data.rtnCode == -1) {
+          // this.$message({
+          //     message: data.rtnMessage,
+          //     type: 'warning'
+          // });
+          this.$alert(data.rtnMessage, '提示', {
+            confirmButtonText: '确定',
+            callback: action => {
+              this.formData.cowID = ''
+            }
+          });
+        }
+        else {
+          this.$message({
+            message: '录入成功',
+            type: 'success'
+          });
+          this.formData.cowID = ''
+          this.getList(this.cowshed)
+        }
+      })
+    },
+    notMatch() {
+
+      if (!this.formData.reason) {
+        this.$message({
+          message: '请选择未配原因',
+          type: 'warning'
+        });
+        return
+      }
+
+      if (!this.formData.person) {
+        this.$message({
+          message: '请选择配种员',
+          type: 'warning'
+        });
+        return
+      }
+      this.getHaleInfo('wsBreeding', 'updateHeatingByNomate', [
+        this.formData.cowID, this.formData.reason, this.formData.person
+      ], 'json').then((data) => {
+        console.log(data)
+        if (data.rtnCode == -1) {
+          this.$alert(data.rtnMessage, '提示', {
+            confirmButtonText: '确定',
+            callback: action => {
+              this.formData.cowID = ''
+            }
+          });
+        }
+        else {
+          this.$message({
+            message: '录入成功',
+            type: 'success'
+          });
+          this.formData.cowID = ''
+          this.getList()
+        }
+      })
+    },
+    getNowCow(data) {
+
+   
+
+
+      var list = []
+      data = this.JsonSort(['牛号', '任务单编号'], data)
+      Object.keys(data).forEach(item => {
+        list.push({
+          key: item,
+          value: data[item]
+        })
+      })
+
+      this.editCowInfo = data
+
+
+      this.tableData = list
+
+
+
+    },
+    rowClick(row) {
+      this.formData = {
+        cowID: row['牛号'],
+        isEdit: '0'
+      }
+
+      this.getNowCow(row)
+    }
+  }
+}
+</script>
+<style lang="less" scoped>
+.containMain {
+  background: rgba(255, 255, 255, 1);
+  border-radius: 4px;
+  padding: 15px;
+  // margin-right: 10px;
+  .contentTitle {
+    border-bottom: 1px solid #f2f4f5;
+  }
+  // min-width: 450px;
+
+  .sub {
+    font-size: 14px;
+    font-weight: 600;
+    color: rgba(102, 102, 102, 1);
+    line-height: 20px;
+    margin-bottom: 40px;
+    padding-left: 20px;
+  }
+}
+
+.tableNum {
+  font-size: 13px;
+  font-weight: bold;
+  color: rgba(102, 102, 102, 1);
+  line-height: 18px;
+  padding-bottom: 15px;
+}
+.selectContent {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  padding: 20px 0;
+}
+
+.contentTitle {
+  font-size: 16px;
+  font-weight: bold;
+  color: rgba(0, 0, 0, 1);
+  line-height: 22px;
+  letter-spacing: 1px;
+  padding-bottom: 14px;
+  span {
+    font-size: 13px;
+    color: rgba(102, 102, 102, 1);
+    line-height: 18px;
+    margin-left: 10px;
+  }
+}
+
+.containAside {
+  padding: 0;
+
+  display: flex;
+  flex-direction: column;
+  .asideInfo {
+    flex-grow: 1;
+    background: rgba(255, 255, 255, 1);
+    border-radius: 4px;
+    padding: 15px;
+  }
+}
+
+.item {
+  .item-title {
+    font-size: 14px;
+    font-weight: bold;
+
+    color: rgba(0, 0, 0, 1);
+    line-height: 20px;
+    letter-spacing: 1px;
+  }
+
+  .text {
+    font-size: 13px;
+    color: rgba(0, 0, 0, 1);
+    line-height: 18px;
+    letter-spacing: 1px;
+    word-wrap: break-word;
+    padding: 10px 0 15px;
+  }
+}
+</style>

+ 2 - 2
src/main/vue/src/pages/HandleTransition.vue

@@ -1,7 +1,7 @@
 <template>
   <el-container style="flex-grow:1">
     <el-main class="containMain">
-      <div class="contentTitle">场登记</div>
+      <div class="contentTitle">场登记</div>
       <el-form ref="form" :model="formData" label-width="80px" style="margin-top:20px;">
         <el-form-item label label-width="0">
           <el-input v-model="formData.cowID" prefix-icon="el-icon-search" style="width:300px" maxlength="8"></el-input>
@@ -15,7 +15,7 @@
         </el-form-item>
 
         <div style="margin-top:80px">
-          <el-button @click="onSave" type="primary" style="width:98px;" size="mediu">确认转场+</el-button>
+          <el-button @click="onSave" type="primary" style="width:98px;" size="mediu">确认转场</el-button>
         </div>
       </el-form>
     </el-main>

+ 372 - 0
src/main/vue/src/pages/HandleTuberculosis.vue

@@ -0,0 +1,372 @@
+<template>
+  <el-container style="flex-grow:1">
+    <el-aside class="containAside" max-width="500px" width="26%" style=" margin-right: 10px;">
+      <div class="asideInfo">
+        <div class="contentTitle">
+          {{pageTitle}}
+          <!-- <span>{{list.length}}头奶牛</span> -->
+          <el-select v-model="task" placeholder="请选择" size="mini" style="float:right">
+            <el-option v-for="item in taskList" :key="item.type" :label="item.name" :value="item.type"></el-option>
+          </el-select>
+        </div>
+        <div class="selectContent">
+          <el-select v-model="cowshed" placeholder="请选择牛舍" style="width:230px">
+            <el-option v-for="item in cowshedList" :key="item['当前牛舍']" :label="item['当前牛舍']" :value="item['当前牛舍']"></el-option>
+          </el-select>
+        </div>
+        <div class="tableNum">{{list.length}}头奶牛</div>
+        <el-table class="handleTable" border :data="list" style="width: 100%" :height="(allHeight-220)+'px'" size="small" @row-click="rowClick">
+          <el-table-column prop="牛号" label="牛号" fixed="left" align="center"></el-table-column>
+          <el-table-column prop="当前牛舍" label="牛舍" align="center"></el-table-column>
+        </el-table>
+      </div>
+    </el-aside>
+    <el-main class="containMain">
+      <div class="contentTitle">{{pageTitle}}登记</div>
+      <el-form ref="form" :model="formData" label-width="120px" style="margin-top:20px;width:522px">
+        <el-form-item label label-width="0">
+          <el-input  v-model="formData.cowID" disabled prefix-icon="el-icon-search" style="width:300px" maxlength="8"></el-input>
+          <!-- <el-button type="primary" @click="getNowCow" style="width:90px;margin-left:12px">确认</el-button> -->
+        </el-form-item>
+        <div class="sub" v-if="tableData.length>0">操作牛号:{{tableData[0].value}}</div>
+        <el-form-item label="是否进行操作">
+          <el-radio-group v-model="formData.isEdit" v-if='task!=4&&task!=6'>
+            <el-radio label="0">是</el-radio>
+          </el-radio-group>
+           <el-radio-group v-model="formData.isEdit" v-else>
+            <el-radio label="0">阴性</el-radio>
+            <el-radio label="1">阳性</el-radio>
+          </el-radio-group>
+        </el-form-item>
+
+        <div style="margin-top:80px">
+          <el-button @click="onSave" type="primary" style="width:98px;" size="mediu">确认保存</el-button>
+        </div>
+      </el-form>
+    </el-main>
+    <el-aside class="containAside" width="25%" max-width="450px" style=" margin-left: 10px;">
+      <div class="asideInfo">
+        <div class="contentTitle">牛只信息</div>
+        <el-table class="handleTable" border :data="tableData" style="width: 100%" :height="(allHeight-120)+'px'" size="small">
+          <el-table-column prop="key" label="参数"></el-table-column>
+          <el-table-column prop="value" label="当前牛只信信息"></el-table-column>
+        </el-table>
+      </div>
+    </el-aside>
+  </el-container>
+</template>
+<script>
+import formValidator from '../formValidator'
+import axios from 'axios'
+import { mapState } from 'vuex'
+export default {
+  created() {
+    //配种列表
+    // this.getTask()
+   this.getList('')
+
+  },
+  data() {
+    return {
+      saving: false,
+      formData: {
+        cowID: '',
+        isEdit: '0'
+      },
+      mateModes: [],
+      methods: ['人工观察', '计步器揭发', '同期发情'],
+      bulls: [],
+      tableData: [],
+      list: [],
+      editCowInfo: {},
+      reasonList: [],
+      taskList: [{
+        name: '结核初检',
+        type: 3
+      }, {
+        name: '初检结果',
+        type: 4
+      }, {
+        name: '结核复检',
+        type: 5
+      }, {
+        name: '复检结果',
+        type: 6
+      }],
+      task: 3,
+      taskNOList: [],
+      taskNO: '',
+      cowshedList: [],
+      cowshed: ''
+    }
+  },
+  computed: {
+    ...mapState(['userInfo', 'allHeight']),
+    pageTitle() {
+      var title=''
+      this.taskList.forEach(item=>{
+        if(item.type==this.task){
+          title=item.name
+        }
+      })
+      return title
+    },
+    bullMsg() {
+      var jsonp = {}
+      if (this.formData.bull) {
+        this.bulls.forEach(item => {
+          if (item['牛号'] == this.formData.bull) {
+            jsonp = item
+          }
+        })
+      }
+
+      return jsonp
+
+
+    }
+  },
+  watch: {
+    'formData.reason'() {
+      setTimeout(() => {
+        this.formData.remark = this.remarks[0]
+      }, 100)
+    },
+    'formData.cowID'() {
+      if (this.formData.cowID.length != 8) {
+        return
+      }
+      this.getNowCow()
+    },
+    task() {
+      this.getTask()
+      this.list = []
+      this.cowshed=''
+       this.getList('')
+    },
+    cowshed() {
+      if (this.cowshed) {
+        this.getList(this.cowshed)
+      }
+    }
+  },
+  methods: {
+    getList(cowshed) {
+      this.getHaleInfo('wsVeterinary', 'getIQTaskDetail', [
+        this.$store.state.farmName, this.task, '', cowshed
+      ], 'list').then((data) => {
+        console.log(data)
+        if (!cowshed) {
+          this.cowshedList = data
+        }
+        else {
+          this.list = data
+        }
+
+
+      })
+    },
+    getTask() {
+      this.getHaleInfo('wsVeterinary', 'getIQTask', [
+        this.$store.state.farmName, this.task
+      ], 'list').then((data) => {
+
+        
+        console.log(data)
+        this.taskNOList = data
+
+
+      })
+    },
+    onSave() {
+      if (!this.formData.cowID) {
+        this.$message({
+          message: '请录入牛只牛号',
+          type: 'warning'
+        });
+        return
+      }
+
+      
+
+      this.getHaleInfo('wsVeterinary', 'updateIQInfo', [
+         this.formData.cowID, this.editCowInfo['任务单编号'], this.task, (this.task==4||this.task==6)?(this.formData.isEdit=='0'?'阴性':'阳性'):'', '', this.userInfo.username
+      ], 'json').then((data) => {
+        console.log(data)
+        if (data.rtnCode == -1) {
+          // this.$message({
+          //     message: data.rtnMessage,
+          //     type: 'warning'
+          // });
+          this.$alert(data.rtnMessage, '提示', {
+            confirmButtonText: '确定',
+            callback: action => {
+              this.formData.cowID = ''
+            }
+          });
+        }
+        else {
+          this.$message({
+            message: '录入成功',
+            type: 'success'
+          });
+          this.formData.cowID = ''
+          this.getList(this.cowshed)
+        }
+      })
+    },
+    notMatch() {
+
+      if (!this.formData.reason) {
+        this.$message({
+          message: '请选择未配原因',
+          type: 'warning'
+        });
+        return
+      }
+
+      if (!this.formData.person) {
+        this.$message({
+          message: '请选择配种员',
+          type: 'warning'
+        });
+        return
+      }
+      this.getHaleInfo('wsBreeding', 'updateHeatingByNomate', [
+        this.formData.cowID, this.formData.reason, this.formData.person
+      ], 'json').then((data) => {
+        console.log(data)
+        if (data.rtnCode == -1) {
+          this.$alert(data.rtnMessage, '提示', {
+            confirmButtonText: '确定',
+            callback: action => {
+              this.formData.cowID = ''
+            }
+          });
+        }
+        else {
+          this.$message({
+            message: '录入成功',
+            type: 'success'
+          });
+          this.formData.cowID = ''
+          this.getList()
+        }
+      })
+    },
+    getNowCow(data) {
+
+   
+
+
+      var list = []
+      data = this.JsonSort(['牛号', '任务单编号'], data)
+      Object.keys(data).forEach(item => {
+        list.push({
+          key: item,
+          value: data[item]
+        })
+      })
+
+      this.editCowInfo = data
+
+
+      this.tableData = list
+
+
+
+    },
+    rowClick(row) {
+      this.formData = {
+        cowID: row['牛号'],
+        isEdit: '0'
+      }
+
+      this.getNowCow(row)
+    }
+  }
+}
+</script>
+<style lang="less" scoped>
+.containMain {
+  background: rgba(255, 255, 255, 1);
+  border-radius: 4px;
+  padding: 15px;
+  // margin-right: 10px;
+  .contentTitle {
+    border-bottom: 1px solid #f2f4f5;
+  }
+  // min-width: 450px;
+
+  .sub {
+    font-size: 14px;
+    font-weight: 600;
+    color: rgba(102, 102, 102, 1);
+    line-height: 20px;
+    margin-bottom: 40px;
+    padding-left: 20px;
+  }
+}
+
+.tableNum {
+  font-size: 13px;
+  font-weight: bold;
+  color: rgba(102, 102, 102, 1);
+  line-height: 18px;
+  padding-bottom: 15px;
+}
+.selectContent {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  padding: 20px 0;
+}
+
+.contentTitle {
+  font-size: 16px;
+  font-weight: bold;
+  color: rgba(0, 0, 0, 1);
+  line-height: 22px;
+  letter-spacing: 1px;
+  padding-bottom: 14px;
+  span {
+    font-size: 13px;
+    color: rgba(102, 102, 102, 1);
+    line-height: 18px;
+    margin-left: 10px;
+  }
+}
+
+.containAside {
+  padding: 0;
+
+  display: flex;
+  flex-direction: column;
+  .asideInfo {
+    flex-grow: 1;
+    background: rgba(255, 255, 255, 1);
+    border-radius: 4px;
+    padding: 15px;
+  }
+}
+
+.item {
+  .item-title {
+    font-size: 14px;
+    font-weight: bold;
+
+    color: rgba(0, 0, 0, 1);
+    line-height: 20px;
+    letter-spacing: 1px;
+  }
+
+  .text {
+    font-size: 13px;
+    color: rgba(0, 0, 0, 1);
+    line-height: 18px;
+    letter-spacing: 1px;
+    word-wrap: break-word;
+    padding: 10px 0 15px;
+  }
+}
+</style>

+ 30 - 0
src/main/vue/src/router/index.js

@@ -625,6 +625,36 @@ const router = new Router({
                         type: '手持机录入 ',
                         title: '转场登记'
                     }
+                },
+                {
+                    path: '/handleTuberculosis',
+                    name: 'handleTuberculosis',
+                    component: () =>
+                        import ('../pages/HandleTuberculosis'),
+                    meta: {
+                        type: '手持机录入 ',
+                        title: '结核检验'
+                    }
+                },
+                {
+                    path: '/handleQuarantine',
+                    name: 'handleQuarantine',
+                    component: () =>
+                        import ('../pages/HandleQuarantine'),
+                    meta: {
+                        type: '手持机录入 ',
+                        title: '布疫检疫'
+                    }
+                },
+                {
+                    path: '/handleDisinfection',
+                    name: 'handleDisinfection',
+                    component: () =>
+                        import ('../pages/HandleDisinfection'),
+                    meta: {
+                        type: '手持机录入 ',
+                        title: '消毒登记'
+                    }
                 }
             ]
         },