|  | @@ -16,13 +16,15 @@
 | 
	
		
			
				|  |  |            <el-input v-if="tab.isHouseName" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 140px;" placeholder="栏舍名称" />
 | 
	
		
			
				|  |  |            <el-input v-if="tab.isLivestockType" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 140px;" placeholder="牲畜名称" />
 | 
	
		
			
				|  |  |            <el-input v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.projname" class="filter-item" style="width: 100px;" placeholder="车次" />
 | 
	
		
			
				|  |  | -          <el-input v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.times" class="filter-item" style="width: 100px;" placeholder="班次" />
 | 
	
		
			
				|  |  | +          <!-- <el-input v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.times" class="filter-item" style="width: 100px;" placeholder="班次" /> -->
 | 
	
		
			
				|  |  | +          <el-select v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.times" filterable placeholder="班次" class="filter-item" style="width: 120px;" clearable>
 | 
	
		
			
				|  |  | +            <el-option v-for="item in tab2.frequencyList" :key="item.id" :label="item.name" :value="item.id" />
 | 
	
		
			
				|  |  | +          </el-select>
 | 
	
		
			
				|  |  |            <el-input v-if="tab.isTrainNumber" v-model="tab.table.getdataListParm.parammaps.fname" class="filter-item" style="width: 100px;" placeholder="TMR名称" />
 | 
	
		
			
				|  |  |            <el-select v-if="tab.isTMRName" v-model="tab.table.getdataListParm.parammaps.fname" placeholder="请选择TMR设备" class="filter-item" style="width: 150px;">
 | 
	
		
			
				|  |  |              <el-option v-for="(item,index) in tab.TMRNameList" :key="index" :label="item.tmrloadname" :value="item.tmrloadname" />
 | 
	
		
			
				|  |  |            </el-select>
 | 
	
		
			
				|  |  | -          <!-- 临时注释 -->
 | 
	
		
			
				|  |  | -         <!-- <div style="display: inline-block;" class="filter-item1">
 | 
	
		
			
				|  |  | +          <div style="display: inline-block;" class="filter-item1">
 | 
	
		
			
				|  |  |              <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.hlwc1" placeholder="混料误差值" style="width: 120px;" class="filter-item" clearable />
 | 
	
		
			
				|  |  |              <span>-</span>
 | 
	
		
			
				|  |  |              <el-input-number :controls="false" :precision="2"  v-model="tab.table.getdataListParm.parammaps.hlwc2" placeholder="混料误差值" style="width: 120px;" class="filter-item" clearable />
 | 
	
	
		
			
				|  | @@ -52,8 +54,7 @@
 | 
	
		
			
				|  |  |              <span>-</span>
 | 
	
		
			
				|  |  |              <el-input-number :controls="false" :precision="2" v-model="tab.table.getdataListParm.parammaps.slzql2" placeholder="撒料正确率" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  | -          <el-checkbox v-model="tab.table.getdataListParm.parammaps.error" style="margin-right: 10px;" @change="changeccysChecked">只看超出预设值数据</el-checkbox> -->
 | 
	
		
			
				|  |  | -          <!-- 临时注释 -->
 | 
	
		
			
				|  |  | +          <el-checkbox v-model="tab.table.getdataListParm.parammaps.error" style="margin-right: 10px;" @change="changeccysChecked">只看超出预设值数据</el-checkbox>
 | 
	
		
			
				|  |  |            <el-button class="successBorder" @click="handleSearch">查询</el-button>
 | 
	
		
			
				|  |  |            <el-button class="successBorder" @click="handleRefresh1">重置</el-button>
 | 
	
		
			
				|  |  |            <el-button class="export" icon="el-icon-upload2" @click="handleDownload">导出</el-button>
 | 
	
	
		
			
				|  | @@ -657,8 +658,7 @@
 | 
	
		
			
				|  |  |            <!-- <el-select v-model="tab2.table.getdataListParm.parammaps.isuse" style="margin-top: 5px;width: 130px;" filterable placeholder="上传状态" class="filter-item" clearable>
 | 
	
		
			
				|  |  |              <el-option v-for="item in tab2.isuseList" :key="item.id" :label="item.name" :value="item.id" />
 | 
	
		
			
				|  |  |            </el-select> -->
 | 
	
		
			
				|  |  | -          <!-- 临时注释 -->
 | 
	
		
			
				|  |  | -          <!-- <div style="display: inline-block;" class="filter-item1">
 | 
	
		
			
				|  |  | +          <div style="display: inline-block;" class="filter-item1">
 | 
	
		
			
				|  |  |              <el-input-number :controls="false" :precision="2" v-model="tab2.table.getdataListParm.parammaps.hlwc1" placeholder="混料误差值" style="width: 120px;" class="filter-item" clearable />
 | 
	
		
			
				|  |  |              <span>-</span>
 | 
	
		
			
				|  |  |              <el-input-number :controls="false" :precision="2"  v-model="tab2.table.getdataListParm.parammaps.hlwc2" placeholder="混料误差值" style="width: 120px;" class="filter-item" clearable />
 | 
	
	
		
			
				|  | @@ -673,8 +673,8 @@
 | 
	
		
			
				|  |  |              <span>-</span>
 | 
	
		
			
				|  |  |              <el-input-number :controls="false" :precision="2" v-model="tab2.table.getdataListParm.parammaps.hlzql2" placeholder="混料正确率" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  | -          <el-checkbox v-model="tab2.table.getdataListParm.parammaps.error" style="margin-right: 10px;">只看超出预设值数据</el-checkbox> -->
 | 
	
		
			
				|  |  | -          <!-- 临时注释 -->
 | 
	
		
			
				|  |  | +          <el-checkbox v-model="tab2.table.getdataListParm.parammaps.error" style="margin-right: 10px;">只看超出预设值数据</el-checkbox>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |            <el-button class="successBorder" style="margin-top: 5px;" @click="handleSearch2">查询</el-button>
 | 
	
		
			
				|  |  |            <el-button class="successBorder" style="margin-top: 5px;" @click="handleRefresh2">重置</el-button>
 | 
	
		
			
				|  |  |            <el-button style="float: right;margin-right: 10px;margin-bottom:10px;margin-top: 5px;" class="export" icon="el-icon-upload2" @click="handleExport2">导出</el-button>
 | 
	
	
		
			
				|  | @@ -699,10 +699,10 @@
 | 
	
		
			
				|  |  |              <u-table-column sortable label="TMR名称" min-width="70px" align="center" prop="TMR名称" />
 | 
	
		
			
				|  |  |              <u-table-column sortable label="车次" min-width="50px" align="center" prop="车次" />
 | 
	
		
			
				|  |  |              <u-table-column sortable label="班次" min-width="50px" align="center" prop="班次" />
 | 
	
		
			
				|  |  | -            <u-table-column sortable label="配方名称" min-width="90px" align="center" prop="配方名称" />
 | 
	
		
			
				|  |  | -            <u-table-column sortable label="饲料" min-width="70px" align="center" prop="饲料" />
 | 
	
		
			
				|  |  | +            <!-- <u-table-column sortable label="配方名称" min-width="90px" align="center" prop="配方名称" />
 | 
	
		
			
				|  |  | +            <u-table-column sortable label="饲料" min-width="70px" align="center" prop="饲料" /> -->
 | 
	
		
			
				|  |  |              <!-- 临时注释 -->
 | 
	
		
			
				|  |  | -           <!-- <u-table-column sortable label="配方名称" min-width="70px" align="center" prop="配方名称">
 | 
	
		
			
				|  |  | +           <u-table-column sortable label="配方名称" min-width="70px" align="center" prop="配方名称">
 | 
	
		
			
				|  |  |                <template slot-scope="{row}">
 | 
	
		
			
				|  |  |                  <a @click="clickRecipeName2(row)" style="text-decoration: underline;color: #0000FF;">{{ row.配方名称 }}</a>
 | 
	
		
			
				|  |  |                </template>
 | 
	
	
		
			
				|  | @@ -711,7 +711,7 @@
 | 
	
		
			
				|  |  |                <template slot-scope="{row}">
 | 
	
		
			
				|  |  |                  <a @click="clickFeed2(row)" style="text-decoration: underline;color: #0000FF;">{{ row.饲料 }}</a>
 | 
	
		
			
				|  |  |                </template>
 | 
	
		
			
				|  |  | -            </u-table-column> -->
 | 
	
		
			
				|  |  | +            </u-table-column>
 | 
	
		
			
				|  |  |              <!-- 临时注释 -->
 | 
	
		
			
				|  |  |              <u-table-column sortable label="理论重量" min-width="55px" align="center" prop="理论重量" />
 | 
	
		
			
				|  |  |              <u-table-column sortable label="实际重量" min-width="55px" align="center" prop="实际重量" />
 | 
	
	
		
			
				|  | @@ -751,8 +751,7 @@
 | 
	
		
			
				|  |  |            <!-- <el-select v-model="tab3.table.getdataListParm.parammaps.isuse" style="margin-top: 5px;width: 130px;" filterable placeholder="上传状态" class="filter-item" clearable>
 | 
	
		
			
				|  |  |              <el-option v-for="item in tab3.isuseList" :key="item.id" :label="item.name" :value="item.id" />
 | 
	
		
			
				|  |  |            </el-select> -->
 | 
	
		
			
				|  |  | -          <!-- 临时注释 -->
 | 
	
		
			
				|  |  | -          <!-- <div style="display: inline-block;" class="filter-item1">
 | 
	
		
			
				|  |  | +          <div style="display: inline-block;" class="filter-item1">
 | 
	
		
			
				|  |  |              <el-input-number :controls="false" :precision="2" v-model="tab3.table.getdataListParm.parammaps.slwc1" placeholder="撒料误差值" style="width: 120px;" class="filter-item" clearable />
 | 
	
		
			
				|  |  |              <span>-</span>
 | 
	
		
			
				|  |  |              <el-input-number :controls="false" :precision="2"  v-model="tab3.table.getdataListParm.parammaps.slwc2" placeholder="撒料误差值" style="width: 120px;" class="filter-item" clearable />
 | 
	
	
		
			
				|  | @@ -767,8 +766,7 @@
 | 
	
		
			
				|  |  |              <span>-</span>
 | 
	
		
			
				|  |  |              <el-input-number :controls="false" :precision="2" v-model="tab3.table.getdataListParm.parammaps.slzql2" placeholder="撒料正确率" :min="0" :max="100" style="width: 120px;" class="filter-item" clearable />
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  | -          <el-checkbox v-model="tab3.table.getdataListParm.parammaps.error" style="margin-right: 10px;">只看超出预设值数据</el-checkbox> -->
 | 
	
		
			
				|  |  | -          <!-- 临时注释 -->
 | 
	
		
			
				|  |  | +          <el-checkbox v-model="tab3.table.getdataListParm.parammaps.error" style="margin-right: 10px;">只看超出预设值数据</el-checkbox>
 | 
	
		
			
				|  |  |            <el-button class="successBorder" style="margin-top: 5px;" @click="handleSearch3">查询</el-button>
 | 
	
		
			
				|  |  |            <el-button class="successBorder" style="margin-top: 5px;" @click="handleRefresh3">重置</el-button>
 | 
	
		
			
				|  |  |            <el-button style="float: right;margin-right: 10px;margin-bottom:10px;margin-top: 5px;" class="export" icon="el-icon-upload2" @click="handleExport3">导出</el-button>
 | 
	
	
		
			
				|  | @@ -793,10 +791,10 @@
 | 
	
		
			
				|  |  |              <u-table-column sortable label="TMR名称" min-width="70px" align="center" prop="TMR名称" />
 | 
	
		
			
				|  |  |              <u-table-column sortable label="车次" min-width="45px" align="center" prop="车次" />
 | 
	
		
			
				|  |  |              <u-table-column sortable label="班次" min-width="45px" align="center" prop="班次" />
 | 
	
		
			
				|  |  | -            <u-table-column sortable label="配方名称" min-width="90px" align="center" prop="配方名称" />
 | 
	
		
			
				|  |  | -            <u-table-column sortable label="栏舍" min-width="90px" align="center" prop="栏舍" />
 | 
	
		
			
				|  |  | +           <!-- <u-table-column sortable label="配方名称" min-width="90px" align="center" prop="配方名称" />
 | 
	
		
			
				|  |  | +            <u-table-column sortable label="栏舍" min-width="90px" align="center" prop="栏舍" /> -->
 | 
	
		
			
				|  |  |              <!-- 临时注释 -->
 | 
	
		
			
				|  |  | -            <!-- <u-table-column sortable label="配方名称" min-width="70px" align="center" prop="配方名称">
 | 
	
		
			
				|  |  | +            <u-table-column sortable label="配方名称" min-width="70px" align="center" prop="配方名称">
 | 
	
		
			
				|  |  |                <template slot-scope="{row}">
 | 
	
		
			
				|  |  |                  <a @click="clickRecipeName3(row)" style="text-decoration: underline;color: #0000FF;">{{ row.配方名称 }}</a>
 | 
	
		
			
				|  |  |                </template>
 | 
	
	
		
			
				|  | @@ -805,7 +803,7 @@
 | 
	
		
			
				|  |  |                <template slot-scope="{row}">
 | 
	
		
			
				|  |  |                  <a @click="clickFence3(row)" style="text-decoration: underline;color: #0000FF;">{{ row.栏舍 }}</a>
 | 
	
		
			
				|  |  |                </template>
 | 
	
		
			
				|  |  | -            </u-table-column> -->
 | 
	
		
			
				|  |  | +            </u-table-column>
 | 
	
		
			
				|  |  |              <!-- 临时注释 -->
 | 
	
		
			
				|  |  |              <u-table-column sortable label="理论重量" min-width="55px" align="center" prop="理论重量" />
 | 
	
		
			
				|  |  |              <u-table-column sortable label="实际重量" min-width="55px" align="center" prop="实际重量" />
 | 
	
	
		
			
				|  | @@ -838,10 +836,10 @@
 | 
	
		
			
				|  |  |      <See :show.sync="isShowDialog"  :row-pid="rowPid" :start-time="startTime" :stop-time="stopTime"  :optdevice="optdevice" :title-fname="titlefname" :method-name="methodName" :error="error" />
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <!-- 配方名称弹窗 -->
 | 
	
		
			
				|  |  | -    <el-dialog :title="textMap[recipeNameTemp.dialogStatus]" :visible.sync="recipeNameTemp.dialogFormVisible" :close-on-click-modal="false" width="98%">
 | 
	
		
			
				|  |  | +    <el-dialog :title="textMap[recipeNameTemp.dialogStatus]" :visible.sync="recipeNameTemp.dialogFormVisible" :close-on-click-modal="false" width="90%">
 | 
	
		
			
				|  |  |        <div class="recipeNameTemp">
 | 
	
		
			
				|  |  |          <div class="search">
 | 
	
		
			
				|  |  | -          <el-date-picker ref="inputDatetime" v-model="recipeNameTemp.getdataListParm.parammaps.inputDatetime" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 | 
	
		
			
				|  |  | +          <el-date-picker ref="inputDatetime" :clearable="false" v-model="recipeNameTemp.getdataListParm.parammaps.inputDatetime" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 | 
	
		
			
				|  |  |            <el-button class="successBorder" @click="handleRecipeNameSearch">查询</el-button>
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |          <div class="table">
 | 
	
	
		
			
				|  | @@ -856,13 +854,14 @@
 | 
	
		
			
				|  |  |              :row-style="rowStyle"
 | 
	
		
			
				|  |  |              :cell-style="cellStyle"
 | 
	
		
			
				|  |  |              class="elTable table-fixed"
 | 
	
		
			
				|  |  | +            :max-height="450"
 | 
	
		
			
				|  |  |            >
 | 
	
		
			
				|  |  |              <el-table-column label="序号" align="center" type="index" width="50px">
 | 
	
		
			
				|  |  |                <template slot-scope="scope">
 | 
	
		
			
				|  |  |                  <span>{{ scope.$index + (recipeNameTemp.pageNum-1) * recipeNameTemp.pageSize + 1 }}</span>
 | 
	
		
			
				|  |  |                </template>
 | 
	
		
			
				|  |  |              </el-table-column>
 | 
	
		
			
				|  |  | -            <el-table-column label="修改时间" width="100px" align="center" prop="datetime1" />
 | 
	
		
			
				|  |  | +            <el-table-column label="修改时间" width="130px" align="center" prop="datetime1" />
 | 
	
		
			
				|  |  |              <el-table-column label="饲料名称(单位:kg)" min-width="800px" align="center">
 | 
	
		
			
				|  |  |                <template slot-scope="scope">
 | 
	
		
			
				|  |  |                  <div v-for="element in scope.row.arrList" :key="element.name" class="list-group-item2 item" style="width:150px;float: left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin: 5px 5px;padding: 0;height: 30px;">
 | 
	
	
		
			
				|  | @@ -893,7 +892,7 @@
 | 
	
		
			
				|  |  |      <el-dialog :title="textMap[feedTemp.dialogStatus]" :visible.sync="feedTemp.dialogFormVisible" :close-on-click-modal="false" width="98%">
 | 
	
		
			
				|  |  |        <div class="feedTemp">
 | 
	
		
			
				|  |  |          <div class="search">
 | 
	
		
			
				|  |  | -          <el-date-picker ref="inputDatetime" v-model="feedTemp.getdataListParm.parammaps.inputDatetime" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 | 
	
		
			
				|  |  | +          <el-date-picker ref="inputDatetime" v-model="feedTemp.getdataListParm.parammaps.inputDatetime" :clearable="false" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 | 
	
		
			
				|  |  |            <el-button class="successBorder" @click="handleFeedSearch">查询</el-button>
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |          <div class="table">
 | 
	
	
		
			
				|  | @@ -914,8 +913,13 @@
 | 
	
		
			
				|  |  |                  <span>{{ scope.$index + (feedTemp.pageNum-1) * feedTemp.pageSize + 1 }}</span>
 | 
	
		
			
				|  |  |                </template>
 | 
	
		
			
				|  |  |              </el-table-column>
 | 
	
		
			
				|  |  | -            <el-table-column label="修改时间" min-width="100px" align="center" prop="datetime1" />
 | 
	
		
			
				|  |  | -            <el-table-column label="饲料重量(KG)" min-width="100px" align="center" prop="datetime1" />
 | 
	
		
			
				|  |  | +            <el-table-column label="修改时间" min-width="100px" align="center" prop="updateTime" />
 | 
	
		
			
				|  |  | +            <el-table-column label="饲料重量(KG)" min-width="100px" align="center">
 | 
	
		
			
				|  |  | +              <template slot-scope="{row}">
 | 
	
		
			
				|  |  | +                  <span v-if="row.status == 0">{{row.weight}}</span>
 | 
	
		
			
				|  |  | +                  <span v-else style="color: red;">{{row.weight}}</span>
 | 
	
		
			
				|  |  | +                </template>
 | 
	
		
			
				|  |  | +            </el-table-column>
 | 
	
		
			
				|  |  |            </el-table>
 | 
	
		
			
				|  |  |            <pagination v-show="feedTemp.total>0" :total="feedTemp.total" :page.sync="feedTemp.getdataListParm.offset" :limit.sync="feedTemp.getdataListParm.pagecount" @pagination="getFeedList()" />
 | 
	
		
			
				|  |  |          </div>
 | 
	
	
		
			
				|  | @@ -926,12 +930,12 @@
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <!-- 栏舍 -->
 | 
	
		
			
				|  |  | -    <el-dialog :title="textMap[fenceTemp.dialogStatus]" :visible.sync="fenceTemp.dialogFormVisible" :close-on-click-modal="false" width="98%">
 | 
	
		
			
				|  |  | +    <el-dialog :title="textMap[fenceTemp.dialogStatus]" :visible.sync="fenceTemp.dialogFormVisible" :close-on-click-modal="false" width="90%">
 | 
	
		
			
				|  |  |        <div class="fenceTemp">
 | 
	
		
			
				|  |  |          <el-tabs v-model="fenceTemp.activeName" @tab-click="handleFenceTabClick">
 | 
	
		
			
				|  |  |            <el-tab-pane label="班次重量" name="first">
 | 
	
		
			
				|  |  |                <div class="search">
 | 
	
		
			
				|  |  | -                <el-date-picker ref="inputDatetime" v-model="fenceTemp.tab1.getdataListParm.parammaps.inputDatetime" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 | 
	
		
			
				|  |  | +                <el-date-picker ref="inputDatetime" v-model="fenceTemp.tab1.getdataListParm.parammaps.inputDatetime" :clearable="false" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 | 
	
		
			
				|  |  |                  <el-button class="successBorder" @click="handleFenceSearch">查询</el-button>
 | 
	
		
			
				|  |  |                </div>
 | 
	
		
			
				|  |  |                <div class="table">
 | 
	
	
		
			
				|  | @@ -946,31 +950,42 @@
 | 
	
		
			
				|  |  |                    :row-style="rowStyle"
 | 
	
		
			
				|  |  |                    :cell-style="cellStyle"
 | 
	
		
			
				|  |  |                    class="elTable table-fixed"
 | 
	
		
			
				|  |  | -                  :span-method="objectSpanMethod"
 | 
	
		
			
				|  |  | +                  :span-method="objectSpanMethod1"
 | 
	
		
			
				|  |  |                  >
 | 
	
		
			
				|  |  |                    <u-table-column label="序号" width="50px" align="center" type="index" />
 | 
	
		
			
				|  |  | -                  <u-table-column label="修改时间" width="100px" align="center" prop="barname" />
 | 
	
		
			
				|  |  | +                  <u-table-column label="修改时间" width="100px" align="center" prop="createdate" />
 | 
	
		
			
				|  |  |                    <u-table-column label="班次" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  | -                  <u-table-column label="实际牛头数" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  | -                  <u-table-column label="系数(%)" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  | -                  <u-table-column label="系数头数" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  | -                  <u-table-column label="配方模板" min-width="70px" align="center" prop="times">
 | 
	
		
			
				|  |  | +                  <u-table-column label="实际牛头数" min-width="100px" align="center" prop="ccount" />
 | 
	
		
			
				|  |  | +                  <u-table-column label="系数(%)" min-width="100px" align="center" prop="ratio" />
 | 
	
		
			
				|  |  | +                  <u-table-column label="系数头数" min-width="100px" align="center" prop="ccountratio" />
 | 
	
		
			
				|  |  | +                  <u-table-column label="配方模板" min-width="70px" align="center" prop="ftname">
 | 
	
		
			
				|  |  |                      <template slot-scope="{row}">
 | 
	
		
			
				|  |  | -                      <a @click="clickRecipeTemplate3(row)" style="text-decoration: underline;color: #0000FF;">{{ row.times }}</a>
 | 
	
		
			
				|  |  | +                      <a v-if="row.ftnamestatus == 1" @click="clickRecipeTemplate3(row)" style="text-decoration: underline;color: red;">{{ row.ftname }}</a>
 | 
	
		
			
				|  |  | +                      <a v-else @click="clickRecipeTemplate3(row)" style="text-decoration: underline;">{{ row.ftname }}</a>
 | 
	
		
			
				|  |  |                      </template>
 | 
	
		
			
				|  |  |                    </u-table-column>
 | 
	
		
			
				|  |  | -                  <u-table-column label="比例(%)" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  | -                  <u-table-column label="重量(KG)" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  | +                  <u-table-column label="比例(%)" min-width="100px" align="center">
 | 
	
		
			
				|  |  | +                    <template slot-scope="{row}">
 | 
	
		
			
				|  |  | +                        <span v-if="row.tratiostatus == 1" style="color: red;">{{row.tratio}}</span>
 | 
	
		
			
				|  |  | +                        <span v-else >{{row.tratio}}</span>
 | 
	
		
			
				|  |  | +                      </template>
 | 
	
		
			
				|  |  | +                  </u-table-column>
 | 
	
		
			
				|  |  | +                  <u-table-column label="重量(KG)" min-width="100px" align="center" prop="weight">
 | 
	
		
			
				|  |  | +                    <template slot-scope="{row}">
 | 
	
		
			
				|  |  | +                        <span v-if="row.weightstatus == 1" style="color: red;">{{row.weight}}</span>
 | 
	
		
			
				|  |  | +                        <span v-else>{{row.weight}}</span>
 | 
	
		
			
				|  |  | +                      </template>
 | 
	
		
			
				|  |  | +                  </u-table-column>
 | 
	
		
			
				|  |  |                  </u-table>
 | 
	
		
			
				|  |  |                </div>
 | 
	
		
			
				|  |  |            </el-tab-pane>
 | 
	
		
			
				|  |  |            <el-tab-pane label="车次重量" name="second">
 | 
	
		
			
				|  |  |                <div class="search">
 | 
	
		
			
				|  |  | -                <el-date-picker ref="inputDatetime" v-model="fenceTemp.tab2.getdataListParm.parammaps.inputDatetime" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 | 
	
		
			
				|  |  | +                <el-date-picker ref="inputDatetime" :clearable="false" v-model="fenceTemp.tab2.getdataListParm.parammaps.inputDatetime" class="filter-item inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
 | 
	
		
			
				|  |  |                  <el-button class="successBorder" @click="handleFenceSearch">查询</el-button>
 | 
	
		
			
				|  |  |                </div>
 | 
	
		
			
				|  |  |                <div class="table">
 | 
	
		
			
				|  |  | -                <u-table
 | 
	
		
			
				|  |  | +                <!-- <u-table
 | 
	
		
			
				|  |  |                    :key="fenceTemp.tab2.tableKey"
 | 
	
		
			
				|  |  |                    v-loading="fenceTemp.tab2.listLoading"
 | 
	
		
			
				|  |  |                    element-loading-text="给我一点时间"
 | 
	
	
		
			
				|  | @@ -979,17 +994,44 @@
 | 
	
		
			
				|  |  |                    highlight-current-row
 | 
	
		
			
				|  |  |                    style="width: 100%;"
 | 
	
		
			
				|  |  |                    :row-style="rowStyle"
 | 
	
		
			
				|  |  | -                  :cell-style="cellStyle"
 | 
	
		
			
				|  |  | +                  :cell-style="rowStyle"
 | 
	
		
			
				|  |  |                    class="elTable table-fixed"
 | 
	
		
			
				|  |  | -                  :span-method="objectSpanMethod"
 | 
	
		
			
				|  |  | +                  :span-method="objectSpanMethod2"
 | 
	
		
			
				|  |  |                  >
 | 
	
		
			
				|  |  |                    <u-table-column label="序号" width="50px" align="center" type="index" />
 | 
	
		
			
				|  |  | -                  <u-table-column label="修改时间" width="100px" align="center" prop="barname" />
 | 
	
		
			
				|  |  | +                  <u-table-column label="修改时间" width="100px" align="center" prop="createdate" />
 | 
	
		
			
				|  |  |                    <u-table-column label="班次" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  | -                  <u-table-column label="第一车" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  | +                  <u-table-column label="车" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  |                    <u-table-column label="第二车" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  |                    <u-table-column label="第三车" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  |                    <u-table-column label="第四车" min-width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  | +                </u-table> -->
 | 
	
		
			
				|  |  | +                <u-table
 | 
	
		
			
				|  |  | +                  :key="fenceTemp.tab2.tableKey"
 | 
	
		
			
				|  |  | +                  v-loading="fenceTemp.tab2.listLoading"
 | 
	
		
			
				|  |  | +                  element-loading-text="给我一点时间"
 | 
	
		
			
				|  |  | +                  :data="fenceTemp.tab2.list"
 | 
	
		
			
				|  |  | +                  border
 | 
	
		
			
				|  |  | +                  highlight-current-row
 | 
	
		
			
				|  |  | +                  style="width: 100%;"
 | 
	
		
			
				|  |  | +                  :row-style="rowStyle"
 | 
	
		
			
				|  |  | +                  class="elTable table-fixed"
 | 
	
		
			
				|  |  | +                  :span-method="objectSpanMethod2"
 | 
	
		
			
				|  |  | +                  >
 | 
	
		
			
				|  |  | +                  <u-table-column label="序号" width="50px" align="center" type="index" />
 | 
	
		
			
				|  |  | +                  <u-table-column label="修改时间" width="100px" align="center" prop="createdate" />
 | 
	
		
			
				|  |  | +                  <u-table-column label="班次" width="100px" align="center" prop="times" />
 | 
	
		
			
				|  |  | +                  <!-- <u-table-column v-for="(item, index) in fenceTemp.tab2.tableLabel" :key="index" align="center" :min-width="item.width" :prop="item.prop" :label="item.label"> -->
 | 
	
		
			
				|  |  | +                  <u-table-column v-for="(item, index) in fenceTemp.tab2.tableLabel" :key="index" align="center" :min-width="item.width" :prop="item.prop"  :label="item.label">
 | 
	
		
			
				|  |  | +                    <template slot-scope="scope">
 | 
	
		
			
				|  |  | +                      <span v-if="scope.row[item.prop] !== undefined && scope.row[item.prop].indexOf('/') !== -1" style="color: red;">
 | 
	
		
			
				|  |  | +                        {{scope.row[item.prop]}}
 | 
	
		
			
				|  |  | +                      </span>
 | 
	
		
			
				|  |  | +                      <span v-else>{{scope.row[item.prop]}}</span>
 | 
	
		
			
				|  |  | +                    </template>
 | 
	
		
			
				|  |  | +                    <!-- :prop="item.prop"
 | 
	
		
			
				|  |  | +                    indexOf("A") != -1 -->
 | 
	
		
			
				|  |  | +                  </u-table-column>
 | 
	
		
			
				|  |  |                  </u-table>
 | 
	
		
			
				|  |  |                </div>
 | 
	
		
			
				|  |  |            </el-tab-pane>
 | 
	
	
		
			
				|  | @@ -1000,26 +1042,26 @@
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  |      <!-- 配方模板修改记录 -->
 | 
	
		
			
				|  |  | -    <el-dialog :title="textMap[modificationRecordTemp.dialogStatus]" :visible.sync="modificationRecordTemp.dialogFormVisible" :close-on-click-modal="false" width="98%">
 | 
	
		
			
				|  |  | +    <el-dialog :title="textMap[modificationRecordTemp.dialogStatus]" :visible.sync="modificationRecordTemp.dialogFormVisible" :close-on-click-modal="false" width="90%">
 | 
	
		
			
				|  |  |        <div class="modificationRecord">
 | 
	
		
			
				|  |  |          <h3 style="flex: 1;">修改前</h3>
 | 
	
		
			
				|  |  |          <div class="top">
 | 
	
		
			
				|  |  |            <div class="left">
 | 
	
		
			
				|  |  | -            <div><b>配方名称</b>:{{modificationRecordTemp.temp1.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>配方编码</b>:{{modificationRecordTemp.temp1.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>配方颜色</b>:{{modificationRecordTemp.temp1.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>牲畜类别</b>:{{modificationRecordTemp.temp1.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>配方类型</b>:{{modificationRecordTemp.temp1.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>来源:</b>{{modificationRecordTemp.temp1.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>版本号:</b>{{modificationRecordTemp.temp1.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>备注:</b>{{modificationRecordTemp.temp1.times}}</div>
 | 
	
		
			
				|  |  | +            <div><b>配方名称:</b>{{modificationRecordTemp.list1.tname}}</div>
 | 
	
		
			
				|  |  | +            <div><b>配方编码:</b>{{modificationRecordTemp.list1.tcode}}</div>
 | 
	
		
			
				|  |  | +            <div><b>配方颜色:</b><el-color-picker v-model="modificationRecordTemp.list1.tcolor" size="mini" :predefine="predefineColors" style="vertical-align: middle;" disabled /></div>
 | 
	
		
			
				|  |  | +            <div><b>牲畜类别:</b>{{modificationRecordTemp.list1.ccname}}</div>
 | 
	
		
			
				|  |  | +            <div><b>配方类型:</b>{{modificationRecordTemp.list1.fttype}}</div>
 | 
	
		
			
				|  |  | +            <div><b>来源:</b>{{modificationRecordTemp.list1.source}}</div>
 | 
	
		
			
				|  |  | +            <div><b>版本号:</b>{{modificationRecordTemp.list1.version}}</div>
 | 
	
		
			
				|  |  | +            <div><b>备注:</b>{{modificationRecordTemp.list1.remark}}</div>
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  |            <div class="right">
 | 
	
		
			
				|  |  |              <el-table
 | 
	
		
			
				|  |  |                :key="modificationRecordTemp.tableKey1"
 | 
	
		
			
				|  |  |                v-loading="modificationRecordTemp.listLoading1"
 | 
	
		
			
				|  |  |                element-loading-text="给我一点时间"
 | 
	
		
			
				|  |  | -              :data="modificationRecordTemp.list1"
 | 
	
		
			
				|  |  | +              :data="modificationRecordTemp.list1.fit"
 | 
	
		
			
				|  |  |                border
 | 
	
		
			
				|  |  |                fit
 | 
	
		
			
				|  |  |                highlight-current-row
 | 
	
	
		
			
				|  | @@ -1028,11 +1070,14 @@
 | 
	
		
			
				|  |  |                :row-style="rowStyle"
 | 
	
		
			
				|  |  |                :cell-style="cellStyle"
 | 
	
		
			
				|  |  |                class="elTable table-fixed"
 | 
	
		
			
				|  |  | +              show-summary
 | 
	
		
			
				|  |  | +              :summary-method="getSummaries1"
 | 
	
		
			
				|  |  |              >
 | 
	
		
			
				|  |  | -              <el-table-column label="饲料组" min-width="90px" align="center" prop="日期" />
 | 
	
		
			
				|  |  | -              <el-table-column label="饲料名称" min-width="90px" align="center" prop="名称" />
 | 
	
		
			
				|  |  | -              <el-table-column label="重量(KG)" min-width="100px" align="center" prop="理论量" />
 | 
	
		
			
				|  |  | -              <el-table-column label="搅拌延时(min)" min-width="100px" align="center" prop="实际量" />
 | 
	
		
			
				|  |  | +              <el-table-column label="饲料组" min-width="90px" align="center" prop="feedgroup" />
 | 
	
		
			
				|  |  | +              <el-table-column label="饲料名称" min-width="90px" align="center" prop="name" />
 | 
	
		
			
				|  |  | +              <el-table-column v-if="Eweight == undefined" label="重量(KG)" min-width="100px" align="center" prop="weight" />
 | 
	
		
			
				|  |  | +              <el-table-column v-else label="重量(KG)" min-width="100px" align="center" prop="Eweight" />
 | 
	
		
			
				|  |  | +              <el-table-column label="搅拌延时(min)" min-width="100px" align="center" prop="autosecond" />
 | 
	
		
			
				|  |  |              </el-table>
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  |          </div>
 | 
	
	
		
			
				|  | @@ -1040,21 +1085,21 @@
 | 
	
		
			
				|  |  |          <h3 style="color: red;">修改后</h3>
 | 
	
		
			
				|  |  |          <div class="bottom">
 | 
	
		
			
				|  |  |            <div class="left">
 | 
	
		
			
				|  |  | -            <div><b>配方名称:</b>{{modificationRecordTemp.temp2.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>配方编码:</b>{{modificationRecordTemp.temp2.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>配方颜色:</b>{{modificationRecordTemp.temp2.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>牲畜类别:</b>{{modificationRecordTemp.temp2.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>配方类型:</b>{{modificationRecordTemp.temp2.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>来源:</b>{{modificationRecordTemp.temp2.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>版本号:</b>{{modificationRecordTemp.temp2.times}}</div>
 | 
	
		
			
				|  |  | -            <div><b>备注:</b>{{modificationRecordTemp.temp2.times}}</div>
 | 
	
		
			
				|  |  | +            <div><b>配方名称:</b>{{modificationRecordTemp.list2.tname}}</div>
 | 
	
		
			
				|  |  | +            <div><b>配方编码:</b>{{modificationRecordTemp.list2.tcode}}</div>
 | 
	
		
			
				|  |  | +            <div><b>配方颜色:</b><el-color-picker v-model="modificationRecordTemp.list2.tcolor" size="mini" :predefine="predefineColors" style="vertical-align: middle;" disabled /></div>
 | 
	
		
			
				|  |  | +            <div><b>牲畜类别:</b>{{modificationRecordTemp.list2.ccname}}</div>
 | 
	
		
			
				|  |  | +            <div><b>配方类型:</b>{{modificationRecordTemp.list2.fttype}}</div>
 | 
	
		
			
				|  |  | +            <div><b>来源:</b>{{modificationRecordTemp.list2.source}}</div>
 | 
	
		
			
				|  |  | +            <div><b>版本号:</b>{{modificationRecordTemp.list2.version}}</div>
 | 
	
		
			
				|  |  | +            <div><b>备注:</b>{{modificationRecordTemp.list2.remark}}</div>
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  |            <div class="right">
 | 
	
		
			
				|  |  |              <el-table
 | 
	
		
			
				|  |  |                :key="modificationRecordTemp.tableKey2"
 | 
	
		
			
				|  |  |                v-loading="modificationRecordTemp.listLoading2"
 | 
	
		
			
				|  |  |                element-loading-text="给我一点时间"
 | 
	
		
			
				|  |  | -              :data="modificationRecordTemp.list2"
 | 
	
		
			
				|  |  | +              :data="modificationRecordTemp.list2.fit"
 | 
	
		
			
				|  |  |                border
 | 
	
		
			
				|  |  |                fit
 | 
	
		
			
				|  |  |                highlight-current-row
 | 
	
	
		
			
				|  | @@ -1063,11 +1108,14 @@
 | 
	
		
			
				|  |  |                :row-style="rowStyle"
 | 
	
		
			
				|  |  |                :cell-style="cellStyle"
 | 
	
		
			
				|  |  |                class="elTable table-fixed"
 | 
	
		
			
				|  |  | +              show-summary
 | 
	
		
			
				|  |  | +              :summary-method="getSummaries2"
 | 
	
		
			
				|  |  |              >
 | 
	
		
			
				|  |  | -              <el-table-column label="饲料组"  min-width="90px" align="center" prop="日期" />
 | 
	
		
			
				|  |  | -              <el-table-column label="饲料名称"  min-width="90px" align="center" prop="名称" />
 | 
	
		
			
				|  |  | -              <el-table-column label="重量(KG)"  min-width="100px" align="center" prop="理论量" />
 | 
	
		
			
				|  |  | -              <el-table-column label="搅拌延时(min)"  min-width="100px" align="center" prop="实际量" />
 | 
	
		
			
				|  |  | +              <el-table-column label="饲料组" min-width="90px" align="center" prop="feedgroup" />
 | 
	
		
			
				|  |  | +              <el-table-column label="饲料名称" min-width="90px" align="center" prop="name" />
 | 
	
		
			
				|  |  | +              <el-table-column v-if="Eweight == undefined" label="重量(KG)" min-width="100px" align="center" prop="weight" />
 | 
	
		
			
				|  |  | +              <el-table-column v-else label="重量(KG)" min-width="100px" align="center" prop="Eweight" />
 | 
	
		
			
				|  |  | +              <el-table-column label="搅拌延时(min)" min-width="100px" align="center" prop="autosecond" />
 | 
	
		
			
				|  |  |              </el-table>
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  |          </div>
 | 
	
	
		
			
				|  | @@ -1094,6 +1142,14 @@ export default {
 | 
	
		
			
				|  |  |    components: { Pagination, mySelect, See },
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  | +      error:'',
 | 
	
		
			
				|  |  | +      optdevice:'',
 | 
	
		
			
				|  |  | +      stopTime:'',
 | 
	
		
			
				|  |  | +      startTime:'',
 | 
	
		
			
				|  |  | +      Eweight:'',
 | 
	
		
			
				|  |  | +      predefineColors: [
 | 
	
		
			
				|  |  | +        '#E57373', '#F06292', '#BA68C8', '#9575CD', '#7986CB', '#64B5F6', '#4FC3F7', '#4DD0E1', '#4DB6AC', '#81C784', '#AED581', '#DCE775', '#FFF176', '#FFD54F', '#FFB74D', '#FF8A65', '#A1887F', '#E0E0E0', '#90A4AE'
 | 
	
		
			
				|  |  | +      ],
 | 
	
		
			
				|  |  |        pickerMinMonth: '',
 | 
	
		
			
				|  |  |        pickerOptionsMonth: {
 | 
	
		
			
				|  |  |          onPick: ({ maxDate, minDate }) => {
 | 
	
	
		
			
				|  | @@ -1184,9 +1240,9 @@ export default {
 | 
	
		
			
				|  |  |        tab: {
 | 
	
		
			
				|  |  |          TMRNameList:[],
 | 
	
		
			
				|  |  |          radio: '2',
 | 
	
		
			
				|  |  | -        isDriver: true,
 | 
	
		
			
				|  |  | +        isDriver: false,
 | 
	
		
			
				|  |  |          isFormulaName: false, // 配方名称
 | 
	
		
			
				|  |  | -        isHouseName: false, // 栏舍名称
 | 
	
		
			
				|  |  | +        isHouseName: true, // 栏舍名称
 | 
	
		
			
				|  |  |          isLivestockType: false, // 牲畜类别
 | 
	
		
			
				|  |  |          isTrainNumber: false, // 车次
 | 
	
		
			
				|  |  |          isTMRName: false, // TMR名称
 | 
	
	
		
			
				|  | @@ -1632,12 +1688,14 @@ export default {
 | 
	
		
			
				|  |  |        fenceTemp:{
 | 
	
		
			
				|  |  |          dialogStatus: '',
 | 
	
		
			
				|  |  |          dialogFormVisible: false,
 | 
	
		
			
				|  |  | -        spanObj: {},
 | 
	
		
			
				|  |  | -        mergekeys: ['barname', 'sumweight'],
 | 
	
		
			
				|  |  | +        spanObj1: {},
 | 
	
		
			
				|  |  | +        spanObj2: {},
 | 
	
		
			
				|  |  | +        mergekeys1: ['createdate'],
 | 
	
		
			
				|  |  | +        mergekeys2: ['createdate'],
 | 
	
		
			
				|  |  |          tab1:{
 | 
	
		
			
				|  |  |            getdataListParm: {
 | 
	
		
			
				|  |  |              name: 'getPlanModifyFPlist',page: 1, offset: 1, pagecount: '', returntype: 'Map',
 | 
	
		
			
				|  |  | -            parammaps: { inputDatetime: '', pastureid: '', fitid: '' }
 | 
	
		
			
				|  |  | +            parammaps: { inputDatetime: [], pastureid: '', fitid: '' }
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |            tableKey: 0, total: 0, listLoading: true, list: [],
 | 
	
		
			
				|  |  |          },
 | 
	
	
		
			
				|  | @@ -1653,19 +1711,12 @@ export default {
 | 
	
		
			
				|  |  |        modificationRecordTemp:{
 | 
	
		
			
				|  |  |          dialogStatus: '',
 | 
	
		
			
				|  |  |          dialogFormVisible: false,
 | 
	
		
			
				|  |  | -        getdataListParm1: {
 | 
	
		
			
				|  |  | -          name: 'getPlanModifyFPlist',page: 1, offset: 1, pagecount: '', returntype: 'Map',
 | 
	
		
			
				|  |  | -          parammaps: { inputDatetime: '', pastureid: '', fitid: '' }
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  |          tableKey1: 0, total1: 0, listLoading1: false, list1: [],
 | 
	
		
			
				|  |  | -        getdataListParm2: {
 | 
	
		
			
				|  |  | -          name: 'getPlanModifyFPlist',page: 1, offset: 1, pagecount: '', returntype: 'Map',
 | 
	
		
			
				|  |  | -          parammaps: { inputDatetime: '', pastureid: '', fitid: '' }
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  |          tableKey2: 0, total2: 0, listLoading2: false, list2: [],
 | 
	
		
			
				|  |  |          temp1:{},
 | 
	
		
			
				|  |  | -        temp2:{}
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | +        temp2:{},
 | 
	
		
			
				|  |  | +        lastdate:'',currentdate:'',
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    created() {
 | 
	
	
		
			
				|  | @@ -4462,7 +4513,7 @@ export default {
 | 
	
		
			
				|  |  |        data.parammaps.startTime = this.tab2.table.getdataListParm.parammaps.startTime
 | 
	
		
			
				|  |  |        data.parammaps.stopTime = this.tab2.table.getdataListParm.parammaps.stopTime
 | 
	
		
			
				|  |  |        GetDataByName(data).then(response => {
 | 
	
		
			
				|  |  | -        if(response.data.list !== null){
 | 
	
		
			
				|  |  | +        if(response.data !== null){
 | 
	
		
			
				|  |  |            this.tab2.TMRNameList = response.data.list
 | 
	
		
			
				|  |  |          }else{
 | 
	
		
			
				|  |  |            this.tab2.TMRNameList =  []
 | 
	
	
		
			
				|  | @@ -4490,14 +4541,17 @@ export default {
 | 
	
		
			
				|  |  |        this.recipeNameTemp.dialogFormVisible = true
 | 
	
		
			
				|  |  |        this.textMap.recipeNameTxt = '配方修改记录——配方:' + row.配方名称
 | 
	
		
			
				|  |  |        this.recipeNameTemp.dialogStatus = 'recipeNameTxt'
 | 
	
		
			
				|  |  | -      this.recipeNameTemp.getdataListParm.parammaps.pastureid = row.pastureid
 | 
	
		
			
				|  |  | -      this.recipeNameTemp.getdataListParm.parammaps.fitid = row.id
 | 
	
		
			
				|  |  | +      this.recipeNameTemp.getdataListParm.parammaps.pastureid = Cookies.get('pastureid')
 | 
	
		
			
				|  |  | +      this.recipeNameTemp.getdataListParm.parammaps.fitid = row.ftid
 | 
	
		
			
				|  |  |        this.recipeNameTemp.getdataListParm.parammaps.inputDatetime = []
 | 
	
		
			
				|  |  | +      const start = new Date()
 | 
	
		
			
				|  |  | +      const end = new Date()
 | 
	
		
			
				|  |  | +      this.recipeNameTemp.getdataListParm.parammaps.inputDatetime[0] = parseTime(start.setTime(start.getTime() - 3600 * 1000 * 24 * 7), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  | +      this.recipeNameTemp.getdataListParm.parammaps.inputDatetime[1] = parseTime(end.setTime(end.getTime() - 3600 * 1000 * 24 * 1), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  |        this.getRecipeNameList()
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getRecipeNameList(){
 | 
	
		
			
				|  |  |        this.recipeNameTemp.listLoading = true
 | 
	
		
			
				|  |  | -      this.recipeNameTemp.getdataListParm.parammaps.fitid = this.recipeNameTemp.temp.id
 | 
	
		
			
				|  |  |        if (this.recipeNameTemp.getdataListParm.parammaps.inputDatetime == null) {
 | 
	
		
			
				|  |  |          this.recipeNameTemp.getdataListParm.parammaps.inputDatetime = ''
 | 
	
		
			
				|  |  |          this.recipeNameTemp.getdataListParm.parammaps.startTime = ''
 | 
	
	
		
			
				|  | @@ -4507,7 +4561,15 @@ export default {
 | 
	
		
			
				|  |  |          this.recipeNameTemp.getdataListParm.parammaps.stopTime = this.recipeNameTemp.getdataListParm.parammaps.inputDatetime[1]
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        const url = 'authdata/GetArrList'
 | 
	
		
			
				|  |  | -      const data = this.recipeNameTemp.getdataListParm
 | 
	
		
			
				|  |  | +      const data = {
 | 
	
		
			
				|  |  | +        name:'getFitHistory1',
 | 
	
		
			
				|  |  | +        name1:'getFitHistory2',
 | 
	
		
			
				|  |  | +        page:this.recipeNameTemp.getdataListParm.page,
 | 
	
		
			
				|  |  | +        offset:this.recipeNameTemp.getdataListParm.offset,
 | 
	
		
			
				|  |  | +        pagecount:this.recipeNameTemp.getdataListParm.pagecount,
 | 
	
		
			
				|  |  | +        returntype:this.recipeNameTemp.getdataListParm.returntype,
 | 
	
		
			
				|  |  | +        parammaps:this.recipeNameTemp.getdataListParm.parammaps
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        postJson(url, data).then(response => {
 | 
	
		
			
				|  |  |          if (response.data.list !== null) {
 | 
	
		
			
				|  |  |            for (let i = 0; i < response.data.list.length; i++) {
 | 
	
	
		
			
				|  | @@ -4539,13 +4601,17 @@ export default {
 | 
	
		
			
				|  |  |        this.textMap.feedTxt = '配方修改记录——饲料:' + row.饲料
 | 
	
		
			
				|  |  |        this.feedTemp.dialogStatus = 'feedTxt'
 | 
	
		
			
				|  |  |        this.feedTemp.getdataListParm.parammaps.pastureid = row.pastureid
 | 
	
		
			
				|  |  | -      this.feedTemp.getdataListParm.parammaps.fitid = row.id
 | 
	
		
			
				|  |  | +      this.feedTemp.getdataListParm.parammaps.ftid = row.ftid
 | 
	
		
			
				|  |  | +      this.feedTemp.getdataListParm.parammaps.name = row.饲料
 | 
	
		
			
				|  |  |        this.feedTemp.getdataListParm.parammaps.inputDatetime = []
 | 
	
		
			
				|  |  | +      const start = new Date()
 | 
	
		
			
				|  |  | +      const end = new Date()
 | 
	
		
			
				|  |  | +      this.feedTemp.getdataListParm.parammaps.inputDatetime[0] = parseTime(start.setTime(start.getTime() - 3600 * 1000 * 24 * 7), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  | +      this.feedTemp.getdataListParm.parammaps.inputDatetime[1] = parseTime(end.setTime(end.getTime() - 3600 * 1000 * 24 * 1), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  |        this.getFeedList()
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getFeedList(){
 | 
	
		
			
				|  |  |        this.feedTemp.listLoading = true
 | 
	
		
			
				|  |  | -      this.feedTemp.getdataListParm.parammaps.fitid = this.feedTemp.temp.id
 | 
	
		
			
				|  |  |        if (this.feedTemp.getdataListParm.parammaps.inputDatetime == null) {
 | 
	
		
			
				|  |  |          this.feedTemp.getdataListParm.parammaps.inputDatetime = ''
 | 
	
		
			
				|  |  |          this.feedTemp.getdataListParm.parammaps.startTime = ''
 | 
	
	
		
			
				|  | @@ -4554,8 +4620,15 @@ export default {
 | 
	
		
			
				|  |  |          this.feedTemp.getdataListParm.parammaps.startTime = this.feedTemp.getdataListParm.parammaps.inputDatetime[0]
 | 
	
		
			
				|  |  |          this.feedTemp.getdataListParm.parammaps.stopTime = this.feedTemp.getdataListParm.parammaps.inputDatetime[1]
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      const url = 'authdata/GetArrList'
 | 
	
		
			
				|  |  | -      const data = this.feedTemp.getdataListParm
 | 
	
		
			
				|  |  | +      const url = 'authdata/GetDataByName'
 | 
	
		
			
				|  |  | +      const data = {
 | 
	
		
			
				|  |  | +        name:'getFitistoryByName',
 | 
	
		
			
				|  |  | +        page: this.feedTemp.getdataListParm.page,
 | 
	
		
			
				|  |  | +        offset:  this.feedTemp.getdataListParm.offset,
 | 
	
		
			
				|  |  | +        pagecount:  this.feedTemp.getdataListParm.pagecount,
 | 
	
		
			
				|  |  | +        returntype:  this.feedTemp.getdataListParm.returntype,
 | 
	
		
			
				|  |  | +        parammaps:  this.feedTemp.getdataListParm.parammaps
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        postJson(url, data).then(response => {
 | 
	
		
			
				|  |  |          if (response.data.list !== null) {
 | 
	
		
			
				|  |  |            for (let i = 0; i < response.data.list.length; i++) {
 | 
	
	
		
			
				|  | @@ -4586,9 +4659,13 @@ export default {
 | 
	
		
			
				|  |  |        this.recipeNameTemp.dialogFormVisible = true
 | 
	
		
			
				|  |  |        this.textMap.recipeNameTxt = '配方修改记录——配方:' + row.配方名称
 | 
	
		
			
				|  |  |        this.recipeNameTemp.dialogStatus = 'rowRecipeRecordTxt'
 | 
	
		
			
				|  |  | -      this.recipeNameTemp.getdataListParm.parammaps.pastureid = row.pastureid
 | 
	
		
			
				|  |  | -      this.recipeNameTemp.getdataListParm.parammaps.fitid = row.id
 | 
	
		
			
				|  |  | +      this.recipeNameTemp.getdataListParm.parammaps.pastureid = Cookies.get('pastureid')
 | 
	
		
			
				|  |  | +      this.recipeNameTemp.getdataListParm.parammaps.fitid = row.ftid
 | 
	
		
			
				|  |  | +      const start = new Date()
 | 
	
		
			
				|  |  | +      const end = new Date()
 | 
	
		
			
				|  |  |        this.recipeNameTemp.getdataListParm.parammaps.inputDatetime = []
 | 
	
		
			
				|  |  | +      this.recipeNameTemp.getdataListParm.parammaps.inputDatetime[0] = parseTime(start.setTime(start.getTime() - 3600 * 1000 * 24 * 7), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  | +      this.recipeNameTemp.getdataListParm.parammaps.inputDatetime[1] = parseTime(end.setTime(end.getTime() - 3600 * 1000 * 24 * 1), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  |        this.getRecipeNameList()
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      clickFence3(row) {
 | 
	
	
		
			
				|  | @@ -4598,9 +4675,13 @@ export default {
 | 
	
		
			
				|  |  |        this.textMap.fenceTxt = '配方修改记录——饲料:' + row.饲料
 | 
	
		
			
				|  |  |        this.fenceTemp.dialogStatus = 'fenceTxt'
 | 
	
		
			
				|  |  |        this.fenceTemp.activeName = 'first'
 | 
	
		
			
				|  |  | -      this.fenceTemp.tab1.getdataListParm.parammaps.pastureid = row.pastureid
 | 
	
		
			
				|  |  | -      this.fenceTemp.tab1.getdataListParm.parammaps.fitid = row.id
 | 
	
		
			
				|  |  | +      this.fenceTemp.tab1.getdataListParm.parammaps.barname = row.栏舍
 | 
	
		
			
				|  |  | +      this.fenceTemp.tab2.getdataListParm.parammaps.barname = row.栏舍
 | 
	
		
			
				|  |  |        this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime = []
 | 
	
		
			
				|  |  | +      const start = new Date()
 | 
	
		
			
				|  |  | +      const end = new Date()
 | 
	
		
			
				|  |  | +      this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[0] = parseTime(start.setTime(start.getTime() - 3600 * 1000 * 24 * 7), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  | +      this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[1] = parseTime(end.setTime(end.getTime() - 3600 * 1000 * 24 * 1), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  |        this.getFenceList1()
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getFenceList1(){
 | 
	
	
		
			
				|  | @@ -4608,25 +4689,29 @@ export default {
 | 
	
		
			
				|  |  |        this.fenceTemp.tab1.getdataListParm.parammaps.fitid = this.fenceTemp.temp.id
 | 
	
		
			
				|  |  |        if (this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime == null) {
 | 
	
		
			
				|  |  |          this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime = ''
 | 
	
		
			
				|  |  | -        this.fenceTemp.tab1.getdataListParm.parammaps.startTime = ''
 | 
	
		
			
				|  |  | -        this.fenceTemp.tab1.getdataListParm.parammaps.stopTime = ''
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab1.getdataListParm.parammaps.startDate = ''
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab1.getdataListParm.parammaps.endDate = ''
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  | -        this.fenceTemp.tab1.getdataListParm.parammaps.startTime = this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[0]
 | 
	
		
			
				|  |  | -        this.fenceTemp.tab1.getdataListParm.parammaps.stopTime = this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[1]
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab1.getdataListParm.parammaps.startDate = this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[0]+' 00:00'
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab1.getdataListParm.parammaps.endDate = this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[1]+' 23:59'
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      const url = 'authdata/feedp/history'
 | 
	
		
			
				|  |  | +      // const data = this.fenceTemp.tab1.getdataListParm
 | 
	
		
			
				|  |  | +      const data = {
 | 
	
		
			
				|  |  | +          barname:this.fenceTemp.tab1.getdataListParm.parammaps.barname,
 | 
	
		
			
				|  |  | +          startDate:this.fenceTemp.tab1.getdataListParm.parammaps.startDate,
 | 
	
		
			
				|  |  | +          endDate:this.fenceTemp.tab1.getdataListParm.parammaps.endDate
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      const url = 'authdata/GetDataByName'
 | 
	
		
			
				|  |  | -      const data = this.fenceTemp.tab1.getdataListParm
 | 
	
		
			
				|  |  | -      this.fenceTemp.tab1.getdataListParm.parammaps.pastureid = Cookies.get('pastureid')
 | 
	
		
			
				|  |  | -      this.fenceTemp.tab1.getdataListParm.parammaps.date = '2022-05-27'
 | 
	
		
			
				|  |  |        postJson(url, data).then(response => {
 | 
	
		
			
				|  |  | -        if (response.data.list !== null) {
 | 
	
		
			
				|  |  | -          for (let i = 0; i < response.data.list.length; i++) {
 | 
	
		
			
				|  |  | -            if (response.data.list[i].ptid == undefined || response.data.list[i].ptname == '') {
 | 
	
		
			
				|  |  | -              this.$set(response.data.list[i], 'ptid', '')
 | 
	
		
			
				|  |  | -              this.$set(response.data.list[i], 'ptname', '')
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab1.listLoading = false
 | 
	
		
			
				|  |  | +        if (response.data !== null) {
 | 
	
		
			
				|  |  | +          for (let i = 0; i < response.data.length; i++) {
 | 
	
		
			
				|  |  | +            if (response.data[i].ptid == undefined || response.data[i].ptname == '') {
 | 
	
		
			
				|  |  | +              this.$set(response.data[i], 'ptid', '')
 | 
	
		
			
				|  |  | +              this.$set(response.data[i], 'ptname', '')
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          this.fenceTemp.tab1.list = response.data.list
 | 
	
		
			
				|  |  | +          this.fenceTemp.tab1.list = response.data
 | 
	
		
			
				|  |  |            this.handleSpan1()
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |            this.fenceTemp.tab1.list = []
 | 
	
	
		
			
				|  | @@ -4643,25 +4728,68 @@ export default {
 | 
	
		
			
				|  |  |        this.fenceTemp.tab2.getdataListParm.parammaps.fitid = this.fenceTemp.temp.id
 | 
	
		
			
				|  |  |        if (this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime == null) {
 | 
	
		
			
				|  |  |          this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime = ''
 | 
	
		
			
				|  |  | -        this.fenceTemp.tab2.getdataListParm.parammaps.startTime = ''
 | 
	
		
			
				|  |  | -        this.fenceTemp.tab2.getdataListParm.parammaps.stopTime = ''
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab2.getdataListParm.parammaps.startDate = ''
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab2.getdataListParm.parammaps.endDate = ''
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  | -        this.fenceTemp.tab2.getdataListParm.parammaps.startTime = this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[0]
 | 
	
		
			
				|  |  | -        this.fenceTemp.tab2.getdataListParm.parammaps.stopTime = this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[1]
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab2.getdataListParm.parammaps.startDate = this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[0]+' 00:00'
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab2.getdataListParm.parammaps.endDate = this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[1]+' 23:59'
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      const url = 'authdata/spillageall/history'
 | 
	
		
			
				|  |  | +      const data = {
 | 
	
		
			
				|  |  | +        barname:this.fenceTemp.tab2.getdataListParm.parammaps.barname,
 | 
	
		
			
				|  |  | +        pastureid:Cookies.get('pastureid'),
 | 
	
		
			
				|  |  | +        startDate:this.fenceTemp.tab2.getdataListParm.parammaps.startDate,
 | 
	
		
			
				|  |  | +        endDate:this.fenceTemp.tab2.getdataListParm.parammaps.endDate
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      const url = 'authdata/GetDataByName'
 | 
	
		
			
				|  |  | -      const data = this.fenceTemp.tab2.getdataListParm
 | 
	
		
			
				|  |  | -      this.fenceTemp.tab2.getdataListParm.parammaps.pastureid = Cookies.get('pastureid')
 | 
	
		
			
				|  |  | -      this.fenceTemp.tab2.getdataListParm.parammaps.date = '2022-05-27'
 | 
	
		
			
				|  |  |        postJson(url, data).then(response => {
 | 
	
		
			
				|  |  | -        if (response.data.list !== null) {
 | 
	
		
			
				|  |  | -          for (let i = 0; i < response.data.list.length; i++) {
 | 
	
		
			
				|  |  | -            if (response.data.list[i].ptid == undefined || response.data.list[i].ptname == '') {
 | 
	
		
			
				|  |  | -              this.$set(response.data.list[i], 'ptid', '')
 | 
	
		
			
				|  |  | -              this.$set(response.data.list[i], 'ptname', '')
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          this.fenceTemp.tab2.list = response.data.list
 | 
	
		
			
				|  |  | +        if (response.data.data !== null) {
 | 
	
		
			
				|  |  | +          // 表数据
 | 
	
		
			
				|  |  | +          this.fenceTemp.tab2.list = response.data.data
 | 
	
		
			
				|  |  | +          // this.fenceTemp.tab2.list = [{
 | 
	
		
			
				|  |  | +          // 			"a1": "2079.00(3号车)",
 | 
	
		
			
				|  |  | +          // 			"a2": "12000.00/12000.00(任意车1)",
 | 
	
		
			
				|  |  | +          // 			"createdate": "2022-07-11 17:18:12",
 | 
	
		
			
				|  |  | +          // 			"times": 3
 | 
	
		
			
				|  |  | +          // 		}, {
 | 
	
		
			
				|  |  | +          // 			"a1": "1000.00(任意车1)",
 | 
	
		
			
				|  |  | +          // 		  	"a2":"",
 | 
	
		
			
				|  |  | +          // 			"createdate": "2022-07-11 17:17:41",
 | 
	
		
			
				|  |  | +          // 			"times": 1
 | 
	
		
			
				|  |  | +          // 		}, {
 | 
	
		
			
				|  |  | +          // 			"a1": "260.00(任意车1)",
 | 
	
		
			
				|  |  | +          // 		  	"a2":"",
 | 
	
		
			
				|  |  | +          // 			"createdate": "2022-07-11 17:17:37",
 | 
	
		
			
				|  |  | +          // 			"times": 1
 | 
	
		
			
				|  |  | +          // 		}],
 | 
	
		
			
				|  |  | +          // [
 | 
	
		
			
				|  |  | +          //   {id: 1, createdate: '2018-07-24', times: 1, a1: 137597.76, a2: 102203.71, a3: 35394.05},
 | 
	
		
			
				|  |  | +          //   {id: 2, createdate: '2018-07-24', times: 2, a1: 137597.76, a2: 102203.71, a3: 35394.05},
 | 
	
		
			
				|  |  | +          //   {id: 3, createdate: '2018-07-24', times: 3, a1: 137597.76, a2: 102203.71, a3: 35394.05},
 | 
	
		
			
				|  |  | +          //   {id: 4, createdate: '2018-07-24', times: 4, a1: 137597.76, a2: 102203.71, a3: 35394.05},
 | 
	
		
			
				|  |  | +          //   {id: 5, createdate: '2018-07-25', times: 1, a1: 137597.76, a2: 102203.71, a3: 35394.05},
 | 
	
		
			
				|  |  | +          //   {id: 6, createdate: '2018-07-25', times: 2, a1: 137597.76, a2: 102203.71, a3: 35394.05},
 | 
	
		
			
				|  |  | +          //   {id: 7, createdate: '2018-07-25', times: 3, a1: 137597.76, a2: 102203.71, a3: 35394.05},
 | 
	
		
			
				|  |  | +          //   {id: 8, createdate: '2018-07-25', times: 4, a1: 137597.76, a2: 102203.71, a3: 35394.05},
 | 
	
		
			
				|  |  | +          //   {id: 9, createdate: '2018-07-26', times: 1, a1: 137597.76, a2: 102203.71, a3: 35394.05},
 | 
	
		
			
				|  |  | +          //   {id: 10, createdate: '2018-07-26', times: 2, a1: 137597.76, a2: 102203.71, a3: 35394.05},
 | 
	
		
			
				|  |  | +          //   {id: 11, createdate: '2018-07-26', times: 3, a1: 137597.76, a2: 102203.71, a3: 35394.05},
 | 
	
		
			
				|  |  | +          //   {id: 12, createdate: '2018-07-26', times: 4, a1: 137597.76, a2: 102203.71, a3: 35394.05}
 | 
	
		
			
				|  |  | +          // ]
 | 
	
		
			
				|  |  | +       // 表头数据
 | 
	
		
			
				|  |  | +       // for(let i=0;i<response.data.trains.length;i++){
 | 
	
		
			
				|  |  | +       //   var obj = {}
 | 
	
		
			
				|  |  | +       //   obj.label
 | 
	
		
			
				|  |  | +       //   this.$set(response.data.trains[i],'width')
 | 
	
		
			
				|  |  | +       // }
 | 
	
		
			
				|  |  | +       this.fenceTemp.tab2.tableLabel = response.data.trains
 | 
	
		
			
				|  |  | +       // [
 | 
	
		
			
				|  |  | +       //      {label: '序号', width: '40', prop: 'id'},
 | 
	
		
			
				|  |  | +       //      {label: '修改时间', width: '', prop: 'createdate'},
 | 
	
		
			
				|  |  | +       //      {label: '班次', width: '', prop: 'times'},
 | 
	
		
			
				|  |  | +       //      {label: '第一车', width: '', prop: 'a1'},
 | 
	
		
			
				|  |  | +       //      {label: '第二车', width: '', prop: 'a2'},
 | 
	
		
			
				|  |  | +       //      {label: '第三车', width: '', prop: 'a3'}
 | 
	
		
			
				|  |  | +       //    ]
 | 
	
		
			
				|  |  |            this.handleSpan2()
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |            this.fenceTemp.tab2.list = []
 | 
	
	
		
			
				|  | @@ -4673,6 +4801,7 @@ export default {
 | 
	
		
			
				|  |  |          }, 100)
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      handleFenceSearch(){
 | 
	
		
			
				|  |  |        if(this.fenceTemp.activeName == 'first'){
 | 
	
		
			
				|  |  |          this.getFenceList1()
 | 
	
	
		
			
				|  | @@ -4681,76 +4810,76 @@ export default {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      handleFenceTabClick(item){
 | 
	
		
			
				|  |  | +      const start = new Date()
 | 
	
		
			
				|  |  | +      const end = new Date()
 | 
	
		
			
				|  |  |        if(item == 'first'){
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime = []
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[0] = parseTime(start.setTime(start.getTime() - 3600 * 1000 * 24 * 7), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[1] = parseTime(end.setTime(end.getTime() - 3600 * 1000 * 24 * 1), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  |          this.getFenceList1()
 | 
	
		
			
				|  |  |        }else{
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime = []
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[0] = parseTime(start.setTime(start.getTime() - 3600 * 1000 * 24 * 7), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  | +        this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[1] = parseTime(end.setTime(end.getTime() - 3600 * 1000 * 24 * 1), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  |          this.getFenceList2()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      handleSpan1() {
 | 
	
		
			
				|  |  | -      this.fenceTemp.mergekeys.forEach(key => {
 | 
	
		
			
				|  |  | -        this.fenceTemp.spanObj[key] = []
 | 
	
		
			
				|  |  | +      this.fenceTemp.mergekeys1.forEach(key => {
 | 
	
		
			
				|  |  | +        this.fenceTemp.spanObj1[key] = []
 | 
	
		
			
				|  |  |          let position = 0
 | 
	
		
			
				|  |  |          this.fenceTemp.tab1.list.forEach((item, index) => {
 | 
	
		
			
				|  |  |            if (index === 0) {
 | 
	
		
			
				|  |  | -            this.fenceTemp.spanObj[key].push(1)
 | 
	
		
			
				|  |  | +            this.fenceTemp.spanObj1[key].push(1)
 | 
	
		
			
				|  |  |              position = 0
 | 
	
		
			
				|  |  |            } else {
 | 
	
		
			
				|  |  | -            if (key == 'sumweight') {
 | 
	
		
			
				|  |  | -              if (this.fenceTemp.tab1.list[index][key] === this.fenceTemp.tab1.list[index - 1][key] && this.fenceTemp.tab1.list[index]['barname'] === this.fenceTemp.tab1.list[index - 1]['barname']) {
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key][position] += 1
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key].push(0)
 | 
	
		
			
				|  |  | -              } else {
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key].push(1)
 | 
	
		
			
				|  |  | -                position = index
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | +            if (this.fenceTemp.tab1.list[index][key] === this.fenceTemp.tab1.list[index - 1][key]) {
 | 
	
		
			
				|  |  | +              this.fenceTemp.spanObj1[key][position] += 1
 | 
	
		
			
				|  |  | +              this.fenceTemp.spanObj1[key].push(0)
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  | -              if (this.fenceTemp.tab1.list[index][key] === this.fenceTemp.tab1.list[index - 1][key]) {
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key][position] += 1
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key].push(0)
 | 
	
		
			
				|  |  | -              } else {
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key].push(1)
 | 
	
		
			
				|  |  | -                position = index
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | +              this.fenceTemp.spanObj1[key].push(1)
 | 
	
		
			
				|  |  | +              position = index
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      handleSpan2() {
 | 
	
		
			
				|  |  | -      this.fenceTemp.mergekeys.forEach(key => {
 | 
	
		
			
				|  |  | -        this.fenceTemp.spanObj[key] = []
 | 
	
		
			
				|  |  | +      this.fenceTemp.mergekeys2.forEach(key => {
 | 
	
		
			
				|  |  | +        this.fenceTemp.spanObj2[key] = []
 | 
	
		
			
				|  |  |          let position = 0
 | 
	
		
			
				|  |  |          this.fenceTemp.tab2.list.forEach((item, index) => {
 | 
	
		
			
				|  |  |            if (index === 0) {
 | 
	
		
			
				|  |  | -            this.fenceTemp.spanObj[key].push(1)
 | 
	
		
			
				|  |  | +            this.fenceTemp.spanObj2[key].push(1)
 | 
	
		
			
				|  |  |              position = 0
 | 
	
		
			
				|  |  |            } else {
 | 
	
		
			
				|  |  | -            if (key == 'sumweight') {
 | 
	
		
			
				|  |  | -              if (this.fenceTemp.tab2.list[index][key] === this.fenceTemp.tab2.list[index - 1][key] && this.fenceTemp.tab2.list[index]['barname'] === this.fenceTemp.tab2.list[index - 1]['barname']) {
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key][position] += 1
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key].push(0)
 | 
	
		
			
				|  |  | -              } else {
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key].push(1)
 | 
	
		
			
				|  |  | -                position = index
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | +            if (this.fenceTemp.tab2.list[index][key] === this.fenceTemp.tab2.list[index - 1][key]) {
 | 
	
		
			
				|  |  | +              this.fenceTemp.spanObj2[key][position] += 1
 | 
	
		
			
				|  |  | +              this.fenceTemp.spanObj2[key].push(0)
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  | -              if (this.fenceTemp.tab2.list[index][key] === this.fenceTemp.tab2.list[index - 1][key]) {
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key][position] += 1
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key].push(0)
 | 
	
		
			
				|  |  | -              } else {
 | 
	
		
			
				|  |  | -                this.fenceTemp.spanObj[key].push(1)
 | 
	
		
			
				|  |  | -                position = index
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | +              this.fenceTemp.spanObj2[key].push(1)
 | 
	
		
			
				|  |  | +              position = index
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    objectSpanMethod({ row, column, rowIndex, columnIndex }) {
 | 
	
		
			
				|  |  | -      for (let i = 0; i < this.fenceTemp.mergekeys.length; i++) {
 | 
	
		
			
				|  |  | -        if (column.property === this.fenceTemp.mergekeys[i]) {
 | 
	
		
			
				|  |  | -          const _row = this.fenceTemp.spanObj[this.fenceTemp.mergekeys[i]][rowIndex]
 | 
	
		
			
				|  |  | +    objectSpanMethod1({ row, column, rowIndex, columnIndex }) {
 | 
	
		
			
				|  |  | +      for (let i = 0; i < this.fenceTemp.mergekeys1.length; i++) {
 | 
	
		
			
				|  |  | +        if (column.property === this.fenceTemp.mergekeys1[i]) {
 | 
	
		
			
				|  |  | +          const _row = this.fenceTemp.spanObj1[this.fenceTemp.mergekeys1[i]][rowIndex]
 | 
	
		
			
				|  |  | +          const _col = _row > 0 ? 1 : 0
 | 
	
		
			
				|  |  | +          return {
 | 
	
		
			
				|  |  | +            rowspan: _row,
 | 
	
		
			
				|  |  | +            colspan: _col
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    objectSpanMethod2({ row, column, rowIndex, columnIndex }) {
 | 
	
		
			
				|  |  | +      for (let i = 0; i < this.fenceTemp.mergekeys2.length; i++) {
 | 
	
		
			
				|  |  | +        if (column.property === this.fenceTemp.mergekeys2[i]) {
 | 
	
		
			
				|  |  | +          const _row = this.fenceTemp.spanObj2[this.fenceTemp.mergekeys2[i]][rowIndex]
 | 
	
		
			
				|  |  |            const _col = _row > 0 ? 1 : 0
 | 
	
		
			
				|  |  |            return {
 | 
	
		
			
				|  |  |              rowspan: _row,
 | 
	
	
		
			
				|  | @@ -4761,44 +4890,50 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      clickRecipeTemplate3(row){
 | 
	
		
			
				|  |  |        this.modificationRecordTemp.temp1 = Object.assign({}, row)
 | 
	
		
			
				|  |  | -      this.modificationRecordTemp.temp2 = Object.assign({}, row)
 | 
	
		
			
				|  |  |        this.modificationRecordTemp.dialogFormVisible = true
 | 
	
		
			
				|  |  |        this.modificationRecordTemp.dialogStatus = 'modificationRecord'
 | 
	
		
			
				|  |  | +      this.getFTHisdryweightList()
 | 
	
		
			
				|  |  |        this.getRecipeTemplateList1()
 | 
	
		
			
				|  |  | -      this.getRecipeTemplateList2()
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getRecipeTemplateList1() {
 | 
	
		
			
				|  |  |        this.modificationRecordTemp.listLoading1 = true
 | 
	
		
			
				|  |  | -      let url = 'authdata/GetDataByName'
 | 
	
		
			
				|  |  | -      let data = {}
 | 
	
		
			
				|  |  | -      data.parammaps = this.modificationRecordTemp.getdataListParm1.parammaps
 | 
	
		
			
				|  |  | +      let url = 'authdata/recipetemplate/history'
 | 
	
		
			
				|  |  | +      let data = {
 | 
	
		
			
				|  |  | +        ftid: this.modificationRecordTemp.temp1.ftid,
 | 
	
		
			
				|  |  | +        pastureid: Cookies.get('pastureid'),
 | 
	
		
			
				|  |  | +        createdate: this.modificationRecordTemp.temp1.createdate
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        postJson(url, data).then(response => {
 | 
	
		
			
				|  |  | -        // if (response.data.list !== null) {
 | 
	
		
			
				|  |  | -        //   this.modificationRecordTemp.list1 = response.data.list
 | 
	
		
			
				|  |  | -        // } else {
 | 
	
		
			
				|  |  | +        if (response.data !== null) {
 | 
	
		
			
				|  |  | +          this.modificationRecordTemp.list1 = response.data.current
 | 
	
		
			
				|  |  | +          this.modificationRecordTemp.list2 = response.data.last
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  |            this.modificationRecordTemp.list1 = []
 | 
	
		
			
				|  |  | -        // }
 | 
	
		
			
				|  |  | -        // this.modificationRecordTemp.total1 = response.data.total
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          setTimeout(() => {
 | 
	
		
			
				|  |  |            this.modificationRecordTemp.listLoading1 = false
 | 
	
		
			
				|  |  |          }, 100)
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    getRecipeTemplateList2() {
 | 
	
		
			
				|  |  | -      this.modificationRecordTemp.listLoading2 = true
 | 
	
		
			
				|  |  | +    getFTHisdryweightList(){
 | 
	
		
			
				|  |  |        let url = 'authdata/GetDataByName'
 | 
	
		
			
				|  |  | -      let data = {}
 | 
	
		
			
				|  |  | -      data.parammaps = this.modificationRecordTemp.getdataListParm2.parammaps
 | 
	
		
			
				|  |  | +      let data = {
 | 
	
		
			
				|  |  | +        name:'getFTHisdryweight',
 | 
	
		
			
				|  |  | +        parammaps:{
 | 
	
		
			
				|  |  | +          ftid: this.modificationRecordTemp.temp1.ftid,
 | 
	
		
			
				|  |  | +          pastureid: Cookies.get('pastureid'),
 | 
	
		
			
				|  |  | +          createdate: this.modificationRecordTemp.temp1.createdate
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        postJson(url, data).then(response => {
 | 
	
		
			
				|  |  | -        // if (response.data.list !== null) {
 | 
	
		
			
				|  |  | -        //   this.modificationRecordTemp.list2 = response.data.list
 | 
	
		
			
				|  |  | -        // } else {
 | 
	
		
			
				|  |  | -          this.modificationRecordTemp.list2 = []
 | 
	
		
			
				|  |  | -        // }
 | 
	
		
			
				|  |  | -        // this.modificationRecordTemp.total2 = response.data.total
 | 
	
		
			
				|  |  | -        setTimeout(() => {
 | 
	
		
			
				|  |  | -          this.modificationRecordTemp.listLoading2 = false
 | 
	
		
			
				|  |  | -        }, 100)
 | 
	
		
			
				|  |  | +        console.log(response)
 | 
	
		
			
				|  |  | +        if (response.data !== null) {
 | 
	
		
			
				|  |  | +          this.modificationRecordTemp.lastdate = response.data.list.lastdate
 | 
	
		
			
				|  |  | +          this.modificationRecordTemp.currentdate = response.data.list.currentdate
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  | +          this.modificationRecordTemp.lastdate = ''
 | 
	
		
			
				|  |  | +          this.modificationRecordTemp.currentdate = ''
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      changeccysChecked(item){
 | 
	
	
		
			
				|  | @@ -4807,7 +4942,71 @@ export default {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        this.getTabList()
 | 
	
		
			
				|  |  |        this.getTabList2()
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    getSummaries1(param) {
 | 
	
		
			
				|  |  | +      const { columns, data } = param
 | 
	
		
			
				|  |  | +      const sums = []
 | 
	
		
			
				|  |  | +      columns.forEach((column, index) => {
 | 
	
		
			
				|  |  | +        if (index === 0) {
 | 
	
		
			
				|  |  | +          sums[index] = '合计'
 | 
	
		
			
				|  |  | +          return
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (column.property !== undefined) {
 | 
	
		
			
				|  |  | +          // 加了prop属性的el-table-column 才能找到column.property
 | 
	
		
			
				|  |  | +          const values = data.map(item => Number(item[column.property]))
 | 
	
		
			
				|  |  | +          if (!values.every(value => isNaN(value))) {
 | 
	
		
			
				|  |  | +            sums[index] = values.reduce((prev, curr) => {
 | 
	
		
			
				|  |  | +              const value = Number(curr)
 | 
	
		
			
				|  |  | +              if (!isNaN(value)) {
 | 
	
		
			
				|  |  | +                return prev + curr // 多行相加
 | 
	
		
			
				|  |  | +              } else {
 | 
	
		
			
				|  |  | +                return prev
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +            }, 0)
 | 
	
		
			
				|  |  | +            if(this.modificationRecordTemp.lastdate == undefined){
 | 
	
		
			
				|  |  | +              this.modificationRecordTemp.lastdate = ''
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            sums[index] = sums[index].toFixed(4) + '(干物质量:' + this.modificationRecordTemp.lastdate + ')'
 | 
	
		
			
				|  |  | +          } else {
 | 
	
		
			
				|  |  | +            sums[index] = ''
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +      // console.log(sums, 'sums[index]')
 | 
	
		
			
				|  |  | +      return sums
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    getSummaries2(param) {
 | 
	
		
			
				|  |  | +      const { columns, data } = param
 | 
	
		
			
				|  |  | +      const sums = []
 | 
	
		
			
				|  |  | +      columns.forEach((column, index) => {
 | 
	
		
			
				|  |  | +        if (index === 0) {
 | 
	
		
			
				|  |  | +          sums[index] = '合计'
 | 
	
		
			
				|  |  | +          return
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (column.property !== undefined) {
 | 
	
		
			
				|  |  | +          // 加了prop属性的el-table-column 才能找到column.property
 | 
	
		
			
				|  |  | +          const values = data.map(item => Number(item[column.property]))
 | 
	
		
			
				|  |  | +          if (!values.every(value => isNaN(value))) {
 | 
	
		
			
				|  |  | +            sums[index] = values.reduce((prev, curr) => {
 | 
	
		
			
				|  |  | +              const value = Number(curr)
 | 
	
		
			
				|  |  | +              if (!isNaN(value)) {
 | 
	
		
			
				|  |  | +                return prev + curr // 多行相加
 | 
	
		
			
				|  |  | +              } else {
 | 
	
		
			
				|  |  | +                return prev
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +            }, 0)
 | 
	
		
			
				|  |  | +            if(this.modificationRecordTemp.currentdate == undefined){
 | 
	
		
			
				|  |  | +              this.modificationRecordTemp.currentdate = ''
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            sums[index] = sums[index].toFixed(4) + '(干物质量:' + this.modificationRecordTemp.currentdate + ')'
 | 
	
		
			
				|  |  | +          } else {
 | 
	
		
			
				|  |  | +            sums[index] = ''
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +      // console.log(sums, 'sums[index]')
 | 
	
		
			
				|  |  | +      return sums
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  </script>
 |