Parcourir la source

修改了部分优化项

duanxiaoduan il y a 6 mois
Parent
commit
d28a01b67e

+ 1 - 1
.env.development

@@ -4,7 +4,7 @@ ENV = 'development'
 # base api
 # 测试线
 # VUE_APP_BASE_API = 'http://192.168.1.70:8082/'
-VUE_APP_BASE_API = 'http://kpttest.kptyun.com/'
+# VUE_APP_BASE_API = 'http://kpttest.kptyun.com/'
 # 白少后台本地
 # VUE_APP_BASE_API = 'http://192.168.1.56:8081/'
 

+ 3 - 3
src/utils/request.js

@@ -14,9 +14,9 @@ if (DoMainString) {
 var reg =  /(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)/;
 var browserUrl = window.location.hostname
 console.log("========url===",reg.test(browserUrl))
-// if (reg.test(browserUrl)){
-//   URL = window.location.protocol +"//"+ browserUrl + ":80/"
-// }
+if (reg.test(browserUrl)){
+  URL = window.location.protocol +"//"+ browserUrl + ":80/"
+}
 
 Cookies.set('url',URL)
 console.log(process.env.VUE_APP_BASE_API,'===========URL1111')

+ 15 - 15
src/views/basicData/defaultParameter/earlyWarning/index.vue

@@ -16,7 +16,7 @@
       </el-row>
       <el-row>
         <el-col :span="12">
-          <el-form-item label="群准确率预警值(%):" prop="remainOptRate">
+          <el-form-item label="群准确率预警值(%):" prop="remainOptRate">
             <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item" placeholder="剩料分配占比原混料" type="text" />
           </el-form-item>
         </el-col>
@@ -38,7 +38,7 @@
           </el-form-item>
         </el-col>
       </el-row>
-      <el-row>
+      <!-- <el-row>
         <el-col :span="12">
           <el-form-item label="泌乳牛采食量平均值偏差预警值(kg):" prop="remainOptRate">
             <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item" placeholder="剩料分配占比原混料" type="text" />
@@ -49,7 +49,7 @@
             <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item" placeholder="剩料分配占比原混料" type="text" />
           </el-form-item>
         </el-col>
-      </el-row>
+      </el-row> -->
       <el-row>
         <el-col :span="12">
           <el-form-item label="撒料时间偏差预警值(min):" prop="remainOptRate">
@@ -68,13 +68,13 @@
             <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item" placeholder="剩料分配占比原混料" type="text" />
           </el-form-item>
         </el-col>
-        <el-col :span="12">
+        <!-- <el-col :span="12">
           <el-form-item label="超出平均公斤奶饲料成本(%):" prop="remainOptRate">
             <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item" placeholder="剩料分配占比原混料" type="text" />
           </el-form-item>
-        </el-col>
+        </el-col> -->
       </el-row>
-      <el-row>
+      <!-- <el-row>
         <el-col :span="12">
           <el-form-item label="牛栏剩料率超出预警值(%):" prop="remainOptRate">
             <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item" placeholder="剩料分配占比原混料" type="text" />
@@ -85,7 +85,7 @@
             <el-input ref="remainOptRate" v-model="createTemp.remainOptRate" :disabled="isRoleEdit==false" class="filter-item" placeholder="剩料分配占比原混料" type="text" />
           </el-form-item>
         </el-col>
-      </el-row>
+      </el-row> -->
     </el-form>
     <div slot="footer" class="dialog-footer" style="bottom: 10px;">
       <el-button v-if="isRoleEdit" class="save" :disabled="isokDisable" @click="handleSave">保存</el-button>
@@ -98,7 +98,7 @@
           <br>
           2、配方准确率预警值:配方准确率低于此预警值则统计在统计报告中。
           <br>
-          3、群准确率预警值:群准确率低于此预警值则统计在统计报告中。
+          3、群准确率预警值:群准确率低于此预警值则统计在统计报告中。
           <br>
           4、车次准确率预警值:车次准确率低于此预警值则统计在统计报告中。
           <br>
@@ -106,21 +106,21 @@
           <br>
           6、混料手动跳转准确率预警值:混料手动跳转准确率低于此预警值则统计在统计报告中。
           <br>
-          7、泌乳牛采食量平均值偏差预警值:泌乳牛采食量平均值偏差高于此预警值则统计在统计报告中。
+         <!-- 7、泌乳牛采食量平均值偏差预警值:泌乳牛采食量平均值偏差高于此预警值则统计在统计报告中。
           <br>
           8、泌乳牛产奶量平均值偏差预警值:泌乳牛产奶量平均值偏差高于此预警值则统计在统计报告中。
+          <br> -->
+          7、撒料时间偏差预警值:撒料时间偏差高于此预警值则统计在统计报告中。
           <br>
-          9、撒料时间偏差预警值:撒料时间偏差高于此预警值则统计在统计报告中。
-          <br>
-          10、超出平均混料时间预警值:平均混料时间高于此预警值则统计在统计报告中。
-          <br>
-          11、超出平均转化率预警值:平均转换率高于此预警值则统计在统计报告中。
+          8、超出平均混料时间预警值:平均混料时间高于此预警值则统计在统计报告中。
           <br>
+          9、超出平均转化率预警值:平均转换率高于此预警值则统计在统计报告中。
+          <!-- <br>
           12、超出平均公斤奶饲料成本:平均公斤奶饲料成本高于此预警值则统计在统计报告中。
           <br>
           13、牛栏剩料率超出预警值:牛栏剩料率高于此预警值则统计在统计报告中。
           <br>
-          14、库存预警天数:库存预警模块根据设置天数进行统计。限制正整数。
+          14、库存预警天数:库存预警模块根据设置天数进行统计。限制正整数。 -->
         </div>
       </div>
       <div slot="footer" class="dialog-footer">

+ 22 - 22
src/views/basicData/defaultParameter/function/index.vue

@@ -43,17 +43,22 @@
           </el-form-item>
         </el-col>
         <el-col :span="12">
+          <el-form-item label="集团端域名或IP:" prop="domain">
+            <el-input ref="domain" v-model="createTemp.domain" :disabled="isRoleEdit==false" class="filter-item" placeholder="集团端域名或IP" type="text" />
+          </el-form-item>
+        </el-col>
+        <!-- <el-col :span="12">
           <el-form-item label="是否启用饲料合同:" prop="isEnableContract">
             <el-select v-model="createTemp.isEnableContract" :disabled="isRoleEdit==false" filterable placeholder="启用饲料合同" class="filter-item" style="width:100%">
               <el-option v-for="item in feedontractList" :key="item.id" :label="item.name" :value="item.id" />
             </el-select>
           </el-form-item>
-        </el-col>
+        </el-col> -->
       </el-row>
       <el-row>
         <el-col :span="12">
-          <el-form-item label="启用饲料锁定头数:" prop="isLockCount">
-            <el-select v-model="createTemp.isLockCount" :disabled="isRoleEdit==false" filterable placeholder="启用饲料锁定头数" class="filter-item" style="width:100%">
+          <el-form-item label="启用饲料锁定头数:" prop="isLockCount">
+            <el-select v-model="createTemp.isLockCount" :disabled="isRoleEdit==false" filterable placeholder="启用饲料锁定头数" class="filter-item" style="width:100%">
               <el-option v-for="item in isLockBullsList" :key="item.id" :label="item.name" :value="item.id" />
             </el-select>
           </el-form-item>
@@ -78,7 +83,7 @@
           </el-form-item>
         </el-col>
       </el-row>
-      <el-row>
+     <!-- <el-row>
         <el-col :span="12">
           <el-form-item label="是否启用剩料:" prop="isEnableRemainFeed">
             <el-select v-model="createTemp.isEnableRemainFeed" :disabled="isRoleEdit==false" filterable placeholder="是否启用剩料" class="filter-item" style="width:100%">
@@ -123,7 +128,7 @@
             </el-select>
           </el-form-item>
         </el-col>
-      </el-row>
+      </el-row> -->
       <el-row>
         <!-- <el-col :span="12">
           <el-form-item label="设备运转标准时间(分钟):" prop="remainOptRate">
@@ -154,11 +159,6 @@
             <el-input ref="sprinkleFeedTimeAllow" v-model="createTemp.sprinkleFeedTimeAllow" :disabled="isRoleEdit==false" class="filter-item" placeholder="允许撒料时间误差" type="text" />
           </el-form-item>
         </el-col>
-        <el-col :span="12">
-          <el-form-item label="集团端域名或IP:" prop="domain">
-            <el-input ref="domain" v-model="createTemp.domain" :disabled="isRoleEdit==false" class="filter-item" placeholder="集团端域名或IP" type="text" />
-          </el-form-item>
-          </el-col>
         <el-col :span="12">
           <el-form-item label="tmr容量上限(%):" prop="tmrUpper">
             <el-input ref="tmrUpper" v-model="createTemp.tmrUpper" :disabled="isRoleEdit==false" class="filter-item" placeholder="tmr容量上限(%)" type="number" />
@@ -186,17 +186,17 @@
           3、班次数量:控制栏舍配方,计划等页面班次数量。
           <br>
           4、重量小数点位数:控制栏舍配方、撒料计划等页面重量小数位数。
+          <!-- <br>
+          5、是否启用饲料合同:若选择是,则开启库存管理中饲料合同页面。 -->
           <br>
-          5、是否启用饲料合同:若选择是,则开启库存管理中饲料合同页面。
-          <br>
-          6、启用饲料锁定牛头数:开启后则配方模板中饲料表显示此字段。
+          5、启用饲料锁定头数:开启后则配方模板中饲料表显示此字段。
           <br>
-          7、车辆载重超出重量提醒比例:撒料计划中车次分配栏舍重量,当分配的合计重量超出车辆最大重量*此比例时,进行提示。限制输入正整数。
+          6、车辆载重超出重量提醒比例:撒料计划中车次分配栏舍重量,当分配的合计重量超出车辆最大重量*此比例时,进行提示。限制输入正整数。
           <br>
-          8、车辆载重超出重量禁止比例:撒料计划中车次分配栏舍重量,当分配的合计重量超出车辆最大重量*此比例时,禁止分配。限制输入正整数。
-          <br>
-          9、是否启用补料:若选择是,则栏舍配方中启用此字段。
+          7、车辆载重超出重量禁止比例:撒料计划中车次分配栏舍重量,当分配的合计重量超出车辆最大重量*此比例时,禁止分配。限制输入正整数。
           <br>
+          8、是否启用补料:若选择是,则栏舍配方中启用此字段。
+          <!-- <br>
           10、是否启用剩料:若选择否则剩料计划不可用,剩料量不影响原计划。
           <br>
           11、剩料处理选项:①若选择转为饲料,按饲料配方整体替换扣减;②如果选择替换某饲料,则此剩料替换待饲喂中的对应饲料量,扣完为止;③不处理:不做剩料计算处理。
@@ -205,11 +205,11 @@
           <br>
           ②平均分配,按收集的总剩料量平均分配值,若分配值超出栏舍原料量的百分比,剩余值累加到未分配满的栏舍中,最终剩余剩料不计入内。
           <br>
-          13、剩料分配占比原料:剩料应分配量不超出此比例计算出的值,与剩料分配方式关联使用。限制输入正整数。
-          <br>
-          14、小料是否称量:若选择是,则饲料表中饲料可选小料称,撒料计划中可设置是否提前称量。
+          13、剩料分配占比原料:剩料应分配量不超出此比例计算出的值,与剩料分配方式关联使用。限制输入正整数。 -->
           <br>
-          15、是否启用数据同步:启用后日执行页面开启数据同步按钮,用于与第三方系统数据对接。
+          9、小料是否称量:若选择是,则饲料表中饲料可选小料称,撒料计划中可设置是否提前称量。
+         <!-- <br>
+          15、是否启用数据同步:启用后日执行页面开启数据同步按钮,用于与第三方系统数据对接。 -->
         </div>
       </div>
       <div slot="footer" class="dialog-footer">
@@ -233,7 +233,7 @@ export default {
       isSupplementList: [{ id: '1', name: '是' }, { id: '0', name: '否' }], // 是否启用补料
       isLeftoverMaterialList: [{ id: '1', name: '是' }, { id: '0', name: '否' }], // 是否启用剩料
       decimalPlacesList: [{ id: '0', name: '整数' }, { id: '1', name: '一位小数' }, { id: '2', name: '两位小数' }, { id: '3', name: '三位小数' }], // 日计划报表小数点位数
-      isLockBullsList: [{ id: '1', name: '是' }, { id: '0', name: '否' }], // 启用饲料锁定头数
+      isLockBullsList: [{ id: '1', name: '是' }, { id: '0', name: '否' }], // 启用饲料锁定头数
       disposalList: [], // 剩料处理选项
       numberList: [{ id: '0', name: '1' }, { id: '1', name: '2' }, { id: '2', name: '3' }, { id: '3', name: '4' },{ id: '4', name: '5' },{ id: '5', name: '6' }], // 班次数量
       feedontractList: [{ id: '1', name: '是' }, { id: '0', name: '否' }], // 是否启用饲料合同

+ 3 - 2
src/views/basicData/equipmentTMR/index.vue

@@ -161,6 +161,7 @@
           <div class="operation">
             <el-button v-if="isRoleEdit" class="success" icon="el-icon-plus" @click="handleAddGear">添加档位</el-button>
           </div>
+          <span>注:保存时,系统会根据转速大小进行档位排序,从小到大依次排序。</span>
           <div class="table">
             <el-table
               :key="set.table.tableKey"
@@ -239,7 +240,7 @@ export default {
         tableKey: 0,
         list: [],
         total: 0,
-        listLoading: true,
+        listLoading: false,
         temp: {}
       },
       requestParam: {},
@@ -724,7 +725,7 @@ export default {
       this.getsetList()
     },
     getsetList() {
-      this.table.listLoading = true
+      this.set.table.listLoading = true
       this.set.table.getdataListParm.parammaps.tmrId = this.set.temp.id
       GetDataByName(this.set.table.getdataListParm).then(response => {
         console.log('table数据', response.data.list)

+ 5 - 8
src/views/basicData/feedTable/index.vue

@@ -38,7 +38,7 @@
     <div class="operation" ref="operation">
       <el-button v-if="isRoleEdit" class="success" icon="el-icon-plus" @click="handleCreate">新增</el-button>
       <el-button v-if="isRoleEdit" class="success" icon="el-icon-plus" @click="handleSet">设置</el-button>
-      <el-button v-if="isRoleEdit" class="success" icon="el-icon-plus" @click="handleGetSapCode">获取SAP编码</el-button>
+      <!-- <el-button v-if="isRoleEdit" class="success" icon="el-icon-plus" @click="handleGetSapCode">获取SAP编码</el-button> -->
       <el-button v-if="isRoleEdit" class="danger" icon="el-icon-delete" @click="form_delete">删除</el-button>
       <el-button class="success" icon="el-icon-receiving" @click="handleFeedBank">饲料库</el-button>
       <el-button v-if="isOrder && isRoleEdit" icon="el-icon-sort" class="success" @click="handleChangeOrder">更改顺序</el-button>
@@ -46,7 +46,7 @@
         <el-button v-if="isRoleEdit" icon="el-icon-folder-checked" class="success" @click="saveChangeOrder">保存</el-button>
         <el-button v-if="isRoleEdit" icon="el-icon-close" class="sortCancel" @click="cancelChangeOrder">取消</el-button>
       </div>
-      <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd">获取UD饲料</el-button>
+      <!-- <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd">获取UD饲料</el-button> -->
       <el-upload style="float: right;" :headers="headers" :data="uploadData" :action="uploadExcelUrl" :show-file-list="false" :before-upload="beforeImport" :on-success="handleImportSuccess">
         <el-button v-if="isRoleEdit" class="import" icon="el-icon-download" style="float: right;">导入</el-button>
       </el-upload>
@@ -87,7 +87,7 @@
         <u-table-column label="物料类型" min-width="90px" align="center" prop="sapMaterialtypeName" />
         <!-- <u-table-column label="SAP货位" min-width="90px" align="center" prop="goods" /> -->
         <u-table-column label="唯一编码" min-width="80px" align="center" prop="feedcode" />
-        <u-table-column label="UD名称" min-width="80px" align="center" prop="udname" />
+        <!-- <u-table-column label="UD名称" min-width="80px" align="center" prop="udname" /> -->
         <!-- <u-table-column label="SAP编码" min-width="90px" align="center" prop="sapCode" /> -->
         <u-table-column label="饲料来源" min-width="80px" align="center" prop="source" />
         <u-table-column label="计划类型" min-width="80px" align="center" prop="printgroup" />
@@ -203,7 +203,7 @@
                 </el-select>
               </el-form-item>
             </el-col>
-            <el-col :span="6">
+            <!-- <el-col :span="6">
               <el-form-item label="SAP货位:" prop="sapGoods">
                 <el-select v-model="create.temp.sapGoods" filterable placeholder="SAP货位" class="filter-item" style="width: 100%;">
                   <el-option v-for="item in sapGoodsList" :key="item.id" :label="item.distName" :value="item.distCode" />
@@ -213,11 +213,8 @@
             <el-col :span="6">
               <el-form-item label="SAP编码:" prop="sapCode">
                 <el-input ref="sapCode" v-model="create.temp.sapCode" class="filter-item" disabled placeholder="SAP编码" type="text" />
-                <!-- <el-select v-model="create.temp.sapcode" filterable placeholder="SAP编码" class="filter-item" style="width: 100%;">
-                  <el-option v-for="item in sapCodeList" :key="item.id" :label="item.mixname" :value="item.id" />
-                </el-select> -->
               </el-form-item>
-            </el-col>
+            </el-col> -->
           </el-row>
           <el-row>
             <el-col :span="24">

+ 6 - 6
src/views/basicData/groupColumn/index.vue

@@ -39,7 +39,7 @@
         <el-button v-if="isRoleEdit" icon="el-icon-close" class="sortCancel" @click="cancelChangeOrder">取消</el-button>
       </div>
       <el-button v-if="isRoleEdit && sapUpload.isSap" class="success" icon="el-icon-plus" @click="handleGetSapCode">获取SAP编码</el-button>
-      <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd">获取UD栏舍</el-button>
+      <!-- <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd">获取UD栏舍</el-button> -->
     </div>
     <div class="table">
       <u-table
@@ -71,7 +71,7 @@
         <el-table-column label="栏舍名称" min-width="130px" align="center">
           <template slot-scope="scope">
             <span v-if="scope.row.NoEdit">{{ scope.row.bname }}</span>
-            <el-input v-if="scope.row.Edit" v-model="scope.row.bname" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" style="width:95%;padding:10px 0;" maxlength="32" />
+            <el-input v-if="scope.row.Edit" v-model="scope.row.bname" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" style="width:95%;padding:10px 0;" maxlength="6" />
           </template>
         </el-table-column>
         <el-table-column label="栏舍编号" min-width="130px" align="center">
@@ -107,14 +107,14 @@
             </el-select>
           </template>
         </el-table-column>
-        <el-table-column label="栏舍" min-width="150px" align="center">
+        <!-- <el-table-column label="栏舍" min-width="150px" align="center">
           <template slot-scope="scope">
             <span v-if="scope.row.NoEdit">{{ scope.row.KTEXT }}</span>
             <el-select v-if="scope.row.Edit" v-model="scope.row.AUFNR" filterable class="filter-item" style="width: 95%;padding:10px 0;">
               <el-option v-for="item in cattleorderList" :key="item.AUFNR" :label="item.KTEXT" :value="item.AUFNR" />
             </el-select>
           </template>
-        </el-table-column>
+        </el-table-column> -->
         <el-table-column label="确认开始" min-width="110px" align="center">
           <template slot-scope="scope">
             <el-switch v-model="scope.row.isstart" :disabled="scope.row.NoEdit==true" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="handleConfirmStartChange(scope.$index, scope.row)" />
@@ -125,7 +125,7 @@
             <el-switch v-model="scope.row.enable" :disabled="scope.row.NoEdit==true" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="handleEnableChange(scope.$index, scope.row)" />
           </template>
         </el-table-column>
-        <el-table-column label="ud编码" min-width="110px" align="center">
+       <!-- <el-table-column label="ud编码" min-width="110px" align="center">
           <template slot-scope="scope">
             <span>{{scope.row.udcode}}</span>
           </template>
@@ -134,7 +134,7 @@
           <template slot-scope="scope">
             <span>{{scope.row.udname}}</span>
           </template>
-        </el-table-column>
+        </el-table-column> -->
         <el-table-column label="操作" align="center" width="80" class-name="small-padding fixed-width" fixed="right">
           <template slot-scope="{row}">
             <!-- 新增 -->

+ 4 - 4
src/views/dashboard/pasture/index.vue

@@ -139,7 +139,7 @@
           </div>
         </div>
 
-        <div class="row3" style="position: relative;">
+        <!-- <div class="row3" style="position: relative;">
           <div class="title">
             <div class="img-title" />
             <span class="content">成本统计</span>
@@ -173,7 +173,7 @@
               <el-table-column label="公斤奶饲料成本(元)" sortable min-width="120px" align="center" prop="field1" />
             </el-table>
           </div>
-        </div>
+        </div> -->
       </div>
       <div class="dashboard-r">
         <div class="row1">
@@ -340,7 +340,7 @@
           </div>
 
         </div>
-        <div class="row3">
+        <!-- <div class="row3">
           <div class="row3-l" style="position: relative;">
 
             <div class="title">
@@ -406,7 +406,7 @@
               </el-table>
             </div>
           </div>
-        </div>
+        </div> -->
       </div>
     </div>
   </div>

+ 122 - 40
src/views/formulationPlan/dailyExecutionPlan/index.vue

@@ -54,7 +54,7 @@
         <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd1">搅拌数据上传</el-button>
         <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd2">剩料上传</el-button>
         <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd3">撒料上传</el-button>
-        <el-button v-if="isRoleEdit" class="success" icon="el-icon-circle-check" @click="handleQuickcompletion">快速完成</el-button>
+        <!-- <el-button v-if="isRoleEdit" class="success" icon="el-icon-circle-check" @click="handleQuickcompletion">快速完成</el-button> -->
       </div>
       <!-- 日执行计划 -->
       <div class="table">
@@ -131,7 +131,7 @@
               <b style="font-size: 26px;line-height: 30px;">{{ scope.row.ftname }}</b>
             </template>
           </el-table-column>
-          <el-table-column label="头数" min-width="80px" align="center">
+          <el-table-column label="头数" min-width="80px" align="center">
             <template slot-scope="scope">
               <span>{{ scope.row.cowcount }}</span>
             </template>
@@ -211,10 +211,10 @@
                     <el-button v-if="row.isUpdateSave" :disabled="isokDisable" icon="el-icon-folder-checked" class="miniSuccess" @click="updateData2(row,'0')" />
                     <span v-if="row.isUpdateSave" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdateSave" class="minCancel" icon="el-icon-close" @click="updateCancel2(row)" />
-                    <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
+                    <!-- <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdate && isRoleEdit" class="miniSuccess" @click="handleRowEmpty(row,0)">
                       <svg-icon icon-class="clear" />
-                    </el-button>
+                    </el-button> -->
                   </template>
                 </el-table-column>
               </el-table>
@@ -274,10 +274,10 @@
                     <el-button v-if="row.isUpdateSave" :disabled="isokDisable" icon="el-icon-folder-checked" class="miniSuccess" @click="updateData2(row,'0')" />
                     <span v-if="row.isUpdateSave" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdateSave" class="minCancel" icon="el-icon-close" @click="updateCancel2(row)" />
-                    <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
+                    <!-- <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdate && isRoleEdit" class="miniSuccess" @click="handleRowEmpty(row,0)">
                       <svg-icon icon-class="clear" />
-                    </el-button>
+                    </el-button> -->
                   </template>
                 </el-table-column>
               </el-table>
@@ -309,20 +309,20 @@
                     <span>{{ scope.row.sort }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column label="栏舍编码" min-width="60px" align="center" prop="bcode" />
-                <el-table-column label="栏舍长度" min-width="60px" align="center" prop="length" />
-                <el-table-column label="栏舍" min-width="90px" align="center">
+                <!-- <el-table-column label="栏舍编码" min-width="60px" align="center" prop="bcode" /> -->
+                <el-table-column label="栏舍名称" min-width="90px" align="center">
                   <template slot-scope="scope">
                     <span>{{ scope.row.fname }}</span>
                   </template>
                 </el-table-column>
+                <el-table-column label="栏舍长度" min-width="60px" align="center" prop="length" />
                 <el-table-column label="设计重量(KG)" prop="weight" min-width="130px" align="center">
                   <template slot-scope="scope">
                     <span v-if="scope.row.NoEdit">{{ scope.row.weight }}</span>
                     <el-input v-if="scope.row.Edit" v-model="scope.row.weight"  type="number" maxlength="32" style="width:95%;padding:10px 0;" />
                   </template>
                 </el-table-column>
-                <el-table-column label="数量" min-width="60px" align="center" prop="ccount" />
+                <!-- <el-table-column label="数量" min-width="60px" align="center" prop="ccount" /> -->
                 <el-table-column label="使用档位" min-width="60px" align="center" prop="gear" />
                 <el-table-column label="车行速度" min-width="60px" align="center" prop="speed" />
                 <el-table-column label="操作" align="left" min-width="200" class-name="small-padding">
@@ -331,10 +331,10 @@
                     <el-button v-if="row.isUpdateSave" :disabled="isokDisable" icon="el-icon-folder-checked" class="miniSuccess" @click="updateData3(row,'1')" />
                     <span v-if="row.isUpdateSave" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdateSave" class="minCancel" icon="el-icon-close" @click="updateCancel3(row)" />
-                    <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
+                    <!-- <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
                     <e<el-button v-if="row.isUpdate && isRoleEdit" class="miniSuccess" @click="handleRowEmpty(row,1)">
                       <svg-icon icon-class="clear" />
-                    </el-button>
+                    </el-button> -->
                   </template>
                 </el-table-column>
               </el-table>
@@ -479,10 +479,10 @@
                     <el-button v-if="row.isUpdateSave" :disabled="isokDisable" icon="el-icon-folder-checked" class="miniSuccess" @click="updateData2(row,'0')" />
                     <span v-if="row.isUpdateSave" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdateSave" class="minCancel" icon="el-icon-close" @click="updateCancel2(row)" />
-                    <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
+                    <!-- <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdate && isRoleEdit" class="miniSuccess" @click="handleRowEmpty(row,0)">
                       <svg-icon icon-class="clear" />
-                    </el-button>
+                    </el-button> -->
                   </template>
                 </el-table-column>
               </el-table>
@@ -531,10 +531,10 @@
                     <el-button v-if="row.isUpdateSave" :disabled="isokDisable" icon="el-icon-folder-checked" class="miniSuccess" @click="updateData3(row,'1')" />
                     <span v-if="row.isUpdateSave" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdateSave" class="minCancel" icon="el-icon-close" @click="updateCancel3(row)" />
-                    <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
+                    <!-- <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdate && isRoleEdit" class="miniSuccess" @click="handleRowEmpty(row,1)">
                       <svg-icon icon-class="clear" />
-                    </el-button>
+                    </el-button> -->
                   </template>
                 </el-table-column>
               </el-table>
@@ -594,10 +594,10 @@
                     <el-button v-if="row.isUpdateSave" :disabled="isokDisable" icon="el-icon-folder-checked" class="miniSuccess" @click="updateData3(row,'0')" />
                     <span v-if="row.isUpdateSave" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdateSave" class="minCancel" icon="el-icon-close" @click="updateCancel3(row)" />
-                    <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
+                    <!-- <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdate && isRoleEdit" class="miniSuccess" @click="handleRowEmpty(row,0)">
                       <svg-icon icon-class="clear" />
-                    </el-button>
+                    </el-button> -->
                   </template>
                 </el-table-column>
               </el-table>
@@ -629,27 +629,32 @@
                     <span>{{ scope.row.sort }}</span>
                   </template>
                 </el-table-column>
+                <!-- <el-table-column label="栏舍编码" min-width="60px" align="center" prop="bcode" /> -->
                 <el-table-column label="栏舍名称" prop="fname" min-width="90px" align="center">
                   <template slot-scope="scope">
                     <span>{{ scope.row.fname }}</span>
                   </template>
                 </el-table-column>
+                <el-table-column label="栏舍长度" min-width="60px" align="center" prop="length" />
                 <el-table-column label="设计重量(KG)" prop="weight" width="130px" align="center">
                   <template slot-scope="scope">
                     <span v-if="scope.row.NoEdit">{{ scope.row.weight }}</span>
                     <el-input v-if="scope.row.Edit" v-model="scope.row.weight"  type="number" maxlength="32" style="width:95%;padding:10px 0;" />
                   </template>
                 </el-table-column>
+                <!-- <el-table-column label="数量" min-width="60px" align="center" prop="ccount" /> -->
+                <el-table-column label="使用档位" min-width="60px" align="center" prop="gear" />
+                <el-table-column label="车行速度" min-width="60px" align="center" prop="speed" />
                <el-table-column label="操作" align="left" min-width="200" class-name="small-padding">
                   <template slot-scope="{row}">
                     <el-button v-if="row.isUpdate && isRoleEdit" :disabled="table2.getdataListParm.parammaps.havebutton == 1" class="miniSuccess" icon="el-icon-edit-outline" @click="handleUpdate2(row)" />
                     <el-button v-if="row.isUpdateSave" :disabled="isokDisable" icon="el-icon-folder-checked" class="miniSuccess" @click="updateData2(row,'1')" />
                     <span v-if="row.isUpdateSave" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdateSave" class="minCancel" icon="el-icon-close" @click="updateCancel2(row)" />
-                    <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
+                    <!-- <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
                     <el-button v-if="row.isUpdate && isRoleEdit" class="miniSuccess" @click="handleRowEmpty(row,1)">
                       <svg-icon icon-class="clear" />
-                    </el-button>
+                    </el-button> -->
                   </template>
                 </el-table-column>
               </el-table>
@@ -866,7 +871,7 @@
             </el-table-column>
             <el-table-column label="时间" min-width="80px" align="center" prop="plantime" />
             <el-table-column label="配方名称" min-width="100px" align="center" prop="ftname" />
-            <el-table-column label="头数" min-width="80px" align="center" prop="cowcount" />
+            <el-table-column label="头数" min-width="80px" align="center" prop="cowcount" />
             <el-table-column label="描述" min-width="80px" align="center" prop="display" />
             <el-table-column label="发料位" min-width="80px" align="left" prop="barnames" />
           </el-table>
@@ -927,7 +932,9 @@ export default {
       requestParams: [
         // { name: 'getDictByName', offset: 0, pagecount: 0, params: ['牲畜父类'] }
       ],
-      planTypeList: [{ lable: '预混计划', value: '4' }, { lable: '撒料计划', value: '0' }, { lable: '剩料计划', value: '3' }, { lable: '撒料计划-混料', value: '1' }, { lable: '撒料计划-撒料', value: '2' }, { lable: '预称重计划', value: '5' }], // 计划类型
+      planTypeList: [{ lable: '预混计划', value: '4' }, { lable: '撒料计划', value: '0' },
+      // { lable: '剩料计划', value: '3' },
+      { lable: '撒料计划-混料', value: '1' }, { lable: '撒料计划-撒料', value: '2' }, { lable: '预称重计划', value: '5' }], // 计划类型
       printingTypeList: [{ lable: '精料', value: '1' }, { lable: '铲车', value: '2' }], // 打印类型
       frequencyList: [], // 班次
       planningDimensionList: [{ lable: '发料顺序', value: '0' }, { lable: 'TMR', value: '1' }], // 发料顺序
@@ -1410,6 +1417,7 @@ export default {
             this.table2.getdataListParm.parammaps.tmrId = response.data.list[0].tmrid
             this.table3.getdataListParm.parammaps.tmrId = response.data.list[0].tmrid
             this.table3.getdataListParm.parammaps.lpplantype = response.data.list[0].lpplantype
+            this.table2.getdataListParm.parammaps.lpplantype = response.data.list[0].lpplantype
             this.getList2()
             this.getList3()
           } else if (response.data.list[0].lpplantype == 1) {
@@ -1436,6 +1444,7 @@ export default {
             this.table2.getdataListParm.parammaps.id = response.data.list[0].id
             this.table3.getdataListParm.parammaps.id = response.data.list[0].id
             this.table3.getdataListParm.parammaps.lpplantype = response.data.list[0].lpplantype
+            this.table2.getdataListParm.parammaps.lpplantype = response.data.list[0].lpplantype
             this.getList2()
             this.getList3()
           } else if (response.data.list[0].lpplantype == 3) {
@@ -1620,6 +1629,7 @@ export default {
         this.table2.getdataListParm.parammaps.tmrId = row.tmrid
         this.table3.getdataListParm.parammaps.tmrId = row.tmrid
         this.table3.getdataListParm.parammaps.lpplantype = row.lpplantype
+        this.table2.getdataListParm.parammaps.lpplantype = row.lpplantype
         this.getList2()
         this.getList3()
       } else if (row.lpplantype == 1) {
@@ -1645,7 +1655,10 @@ export default {
         this.table3.getdataListParm.parammaps.date = this.table.getdataListParm.parammaps.mydate
         this.table2.getdataListParm.parammaps.id = row.id
         this.table3.getdataListParm.parammaps.id = row.id
+        this.table2.getdataListParm.parammaps.tmrId = row.tmrid
+        this.table3.getdataListParm.parammaps.tmrId = row.tmrid
         this.table3.getdataListParm.parammaps.lpplantype = row.lpplantype
+        this.table2.getdataListParm.parammaps.lpplantype = row.lpplantype
         this.getList2()
         this.getList3()
         console.log(this.table3.getdataListParm.parammaps.lpplantype)
@@ -1691,14 +1704,18 @@ export default {
       this.isDetail = false
       this.myheight = document.documentElement.clientHeight - 280
     },
-    // 计划内容操作详情 
+    // 计划内容操作详情
     getList2() {
-      this.table2.listLoading = true
-      this.table2.getdataListParm.parammaps.date = this.table.getdataListParm.parammaps.mydate
-
-      GetDataByName(this.table2.getdataListParm).then(response => {
-        console.log('table数据', response.data.list)
-        if (response.data.list !== null) {
+      console.log(this.table2.getdataListParm.parammaps.lpplantype,'lpplantype===')
+      if(this.table2.getdataListParm.parammaps.lpplantype == 2){
+        const url = 'new_api/user/gear'
+        const data = {
+          pasture_id:this.table2.getdataListParm.parammaps.pastureid,
+          id:this.table2.getdataListParm.parammaps.id,
+          tmr_id:this.table2.getdataListParm.parammaps.tmrId,
+          use_in_bar_type:this.table2.getdataListParm.parammaps.useinbartype
+        }
+        postJson(url, data).then(response => {
           for (let i = 0; i < response.data.list.length; i++) {
             this.$set(response.data.list[i], 'Edit', false) // 编辑
             this.$set(response.data.list[i], 'NoEdit', true) // 不可编辑/输入
@@ -1708,7 +1725,7 @@ export default {
           }
           this.table2.list = response.data.list
           // 撒料计划0/撒料计划-混料1/撒料计划-撒料2/剩料计划3/预混计划4
-          if (this.table3.getdataListParm.parammaps.lpplantype == 0 || this.table3.getdataListParm.parammaps.lpplantype == 1 || this.table3.getdataListParm.parammaps.lpplantype == 4) {
+          if (this.table2.getdataListParm.parammaps.lpplantype == 0 || this.table2.getdataListParm.parammaps.lpplantype == 1 || this.table2.getdataListParm.parammaps.lpplantype == 4) {
             const arr = []
             var a = 0
             let b = this.table2.list[0].sort
@@ -1727,7 +1744,7 @@ export default {
             arr.push({ 'sort': '总计', 'weight': c.toFixed(parseInt(Cookies.get('decimal'))) })
             this.table2.list = arr
           }
-          if (this.table3.getdataListParm.parammaps.lpplantype == 2) {
+          if (this.table2.getdataListParm.parammaps.lpplantype == 2) {
             const arr = []
             var aa = 0
             let bb = this.table2.list[0].sort
@@ -1744,21 +1761,86 @@ export default {
             arr.push({ 'sort': '总计', 'weight': cc.toFixed(parseInt(Cookies.get('decimal'))) })
             this.table2.list = arr
             console.log('this.table2.list', this.table2.list)
-            console.log(this.table3.getdataListParm.parammaps.lpplantype)
+            console.log(this.table2.getdataListParm.parammaps.lpplantype)
           }
 
           console.log(this.table2.list)
           this.table2.pageNum = response.data.pageNum
           this.table2.pageSize = response.data.pageSize
           this.table2.total = response.data.total
-        } else {
-          this.table2.list = []
-        }
-        this.handleSpan()
-        setTimeout(() => {
-          this.table2.listLoading = false
-        }, 100)
-      })
+          this.handleSpan()
+          setTimeout(() => {
+            this.table2.listLoading = false
+          }, 100)
+        })
+      }else{
+        this.table2.listLoading = true
+        this.table2.getdataListParm.parammaps.date = this.table.getdataListParm.parammaps.mydate
+
+        GetDataByName(this.table2.getdataListParm).then(response => {
+          console.log('table数据', response.data.list)
+          if (response.data.list !== null) {
+            for (let i = 0; i < response.data.list.length; i++) {
+              this.$set(response.data.list[i], 'Edit', false) // 编辑
+              this.$set(response.data.list[i], 'NoEdit', true) // 不可编辑/输入
+              this.$set(response.data.list[i], 'isCreate', false) // 新增操作
+              this.$set(response.data.list[i], 'isUpdate', true) // 编辑操作
+              this.$set(response.data.list[i], 'isUpdateSave', false) // 编辑保存
+            }
+            this.table2.list = response.data.list
+            // 撒料计划0/撒料计划-混料1/撒料计划-撒料2/剩料计划3/预混计划4
+            if (this.table3.getdataListParm.parammaps.lpplantype == 0 || this.table3.getdataListParm.parammaps.lpplantype == 1 || this.table3.getdataListParm.parammaps.lpplantype == 4) {
+              const arr = []
+              var a = 0
+              let b = this.table2.list[0].sort
+              let c = 0
+              for (let i = 0; i < this.table2.list.length; i++) {
+                if (b !== parseInt(this.table2.list[i].sort)) {
+                  b = this.table2.list[i].sort
+                  // arr.push({ 'sort': '小计', 'weight': a.toFixed(parseInt(Cookies.get('decimal'))) })
+                  a = 0
+                }
+                a = a + parseFloat(this.table2.list[i].weight)
+                c = c + parseFloat(this.table2.list[i].weight)
+                arr.push(this.table2.list[i])
+              }
+              // arr.push({ 'sort': '小计', 'weight': a.toFixed(parseInt(Cookies.get('decimal'))) })
+              arr.push({ 'sort': '总计', 'weight': c.toFixed(parseInt(Cookies.get('decimal'))) })
+              this.table2.list = arr
+            }
+            if (this.table3.getdataListParm.parammaps.lpplantype == 2) {
+              const arr = []
+              var aa = 0
+              let bb = this.table2.list[0].sort
+              let cc = 0
+              for (let i = 0; i < this.table2.list.length; i++) {
+                if (bb !== parseInt(this.table2.list[i].sort)) {
+                  bb = this.table2.list[i].sort
+                  aa = 0
+                }
+                aa = aa + parseFloat(this.table2.list[i].weight)
+                cc = cc + parseFloat(this.table2.list[i].weight)
+                arr.push(this.table2.list[i])
+              }
+              arr.push({ 'sort': '总计', 'weight': cc.toFixed(parseInt(Cookies.get('decimal'))) })
+              this.table2.list = arr
+              console.log('this.table2.list', this.table2.list)
+              console.log(this.table3.getdataListParm.parammaps.lpplantype)
+            }
+
+            console.log(this.table2.list)
+            this.table2.pageNum = response.data.pageNum
+            this.table2.pageSize = response.data.pageSize
+            this.table2.total = response.data.total
+          } else {
+            this.table2.list = []
+          }
+          this.handleSpan()
+          setTimeout(() => {
+            this.table2.listLoading = false
+          }, 100)
+        })
+      }
     },
 
     // 计划内容栏舍详 情

+ 2 - 2
src/views/formulationPlan/dailyExecutionPlan/revisePlan.vue

@@ -25,9 +25,9 @@
           <el-tab-pane label="预混计划" name="预混计划">
             <PremixedPlan ref="PremixedPlan" :parent-date="date" />
           </el-tab-pane>
-          <el-tab-pane label="剩料计划" name="剩料计划">
+          <!-- <el-tab-pane label="剩料计划" name="剩料计划">
             <SurplusMaterialPlan ref="SurplusMaterialPlan" :parent-date="date" />
-          </el-tab-pane>
+          </el-tab-pane> -->
         </el-tabs>
       </el-row>
       <div slot="footer" class="dialog-footer">

+ 4 - 4
src/views/formulationPlan/dailyExecutionPlan/typePage/dhedFormula.vue

@@ -26,8 +26,8 @@
         </el-table-column>
         <el-table-column :key="2" label="栏舍名称" prop="barname" min-width="90px" align="center" class-name="small-padding fixed-width" fixed="left" />
         <el-table-column :key="3" label="班次" prop="times" min-width="90px" align="center" class-name="small-padding fixed-width" fixed="left" />
-        <el-table-column :key="4" label="软件头数" prop="softccount" min-width="70px" align="center" />
-        <el-table-column :key="5" label="实际头数" min-width="100px" align="center">
+        <el-table-column :key="4" label="软件头数" prop="softccount" min-width="70px" align="center" />
+        <el-table-column :key="5" label="实际头数" min-width="100px" align="center">
           <template slot-scope="scope">
             <span v-if="scope.row.NoEdit">{{ scope.row.ccount }}</span>
             <el-input v-if="scope.row.Edit" v-model="scope.row.ccount" step="0.01" type="number" style="width:95%;padding:10px 0;" @blur="blurCcount(scope.row)" />
@@ -503,11 +503,11 @@ export default {
       const positiveInteger = /^[1-9]\d*$/
       if (row.ccount !== '') {
         if (!positiveInteger.test(parseFloat(row.ccount))) {
-          this.$message({ type: 'error', message: '实际头数请输入正整数', duration: 2000 })
+          this.$message({ type: 'error', message: '实际头数请输入正整数', duration: 2000 })
           return false
         }
       } else {
-        this.$message({ type: 'error', message: '实际头数不能为空', duration: 2000 })
+        this.$message({ type: 'error', message: '实际头数不能为空', duration: 2000 })
       }
       const positiveNumber = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
       if (row.ratio !== '') {

+ 26 - 26
src/views/formulationPlan/dhedFormula/index.vue

@@ -17,7 +17,7 @@
         <!-- <el-input v-model="table.getdataListParm.parammaps.tname" placeholder="请输入配方名称" style="width: 180px;" class="filter-item" /> -->
         <el-button class="successBorder" @click="form_search">查询</el-button>
         <el-button v-if="isRoleEdit" class="successBorder" @click="handleDryMatterRegulation">干物质调节</el-button>
-        <el-button v-if="isRoleEdit && isSynchronous" class="successBorder" @click="handleSynchronous">软件头数同步</el-button>
+        <el-button v-if="isRoleEdit && isSynchronous" class="successBorder" @click="handleSynchronous">软件头数同步</el-button>
         <el-button v-if="isRoleEdit && !isproportion" class="successBorder" @click="handle_batchEdit">批量编辑</el-button>
         <el-button v-if="isRoleEdit && isproportion" icon="el-icon-folder-checked" class="success" @click="handle_batchEdit_save">保存</el-button>
         <el-button v-if="isRoleEdit && isproportion" icon="el-icon-close" class="sortCancel" @click="cancelChangeEdit">取消</el-button>
@@ -66,12 +66,12 @@
             <span>{{ scope.row.pen }}</span>
           </template>
         </el-table-column>
-        <el-table-column :key="2" label="软件头数" min-width="60px" align="center">
+        <el-table-column :key="2" label="软件头数" min-width="60px" align="center">
           <template slot-scope="scope">
             <span>{{ scope.row.softccount }}</span>
           </template>
         </el-table-column>
-        <el-table-column :key="3" label="实际头数" min-width="80px" align="center">
+        <el-table-column :key="3" label="实际头数" min-width="80px" align="center">
           <template slot-scope="scope">
             <span v-if="scope.row.NoEdit && !isproportion">{{ scope.row.ccount }}</span>
             <el-input v-if="scope.row.Edit || isproportion" v-model="scope.row.ccount" step="0.01" type="number" style="width:100%;padding:10px 0;" @blur="blurCcount(scope.row)" :placeholder="scope.row.placeholder_ccount" @focus="focusData(scope.row)" />
@@ -312,8 +312,8 @@
             </u-table-column> -->
             <u-table-column :key="2" label="栏舍名称" prop="barname" min-width="90px" align="center" class-name="small-padding fixed-width" fixed="left" />
             <u-table-column :key="3" label="班次" prop="times" min-width="90px" align="center" class-name="small-padding fixed-width" fixed="left" />
-            <u-table-column :key="4" label="软件头数" prop="softccount" min-width="70px" align="center" />
-            <u-table-column :key="5" label="实际头数" prop="ccount" min-width="70px" align="center" />
+            <u-table-column :key="4" label="软件头数" prop="softccount" min-width="70px" align="center" />
+            <u-table-column :key="5" label="实际头数" prop="ccount" min-width="70px" align="center" />
             <u-table-column :key="6" label="系数(%)" prop="ratio" min-width="70px" align="center" />
             <u-table-column :key="7" label="系数头数" prop="ccountratio" min-width="70px" align="center" />
             <u-table-column :key="8" label="配方模板" prop="ptname" min-width="70px" align="center" />
@@ -1131,16 +1131,16 @@ export default {
     uploadData() {
       return {
         name: 'checkbarname,checkftsw,checkftbl',
-        importParams: '栏舍名称,实际头数,系数(%),配方模板,补料配方,第一班比例(%),第二班比例(%),第三班比例(%)',
+        importParams: '栏舍名称,实际头数,系数(%),配方模板,补料配方,第一班比例(%),第二班比例(%),第三班比例(%)',
         sheetname: 'Sheet1',
         // 登录牧场
         pastureid: Cookies.get('pastureid'),
         // 日期参数
         dateParams: '',
         // 必填参数
-        requiredParams: '栏舍名称,实际头数,系数(%),配方模板,',
+        requiredParams: '栏舍名称,实际头数,系数(%),配方模板,',
         // 为数值的参数
-        numParams: '实际头数,系数(%),第一班比例(%),第二班比例(%),第三班比例(%),,第四班比例(%)'
+        numParams: '实际头数,系数(%),第一班比例(%),第二班比例(%),第三班比例(%),,第四班比例(%)'
       }
     },
     // 设置上传地址
@@ -2321,7 +2321,7 @@ export default {
         obj.data.push({'old':this.oldRowList.bw6,'new':row.bw6,times:6,'ptid':row.ftid,'ptsid':row.ptsfid})
       }
       if (this.table.temp.ccount == '' && this.table.temp.ratio == '' && this.table.temp.ccountratio == '' && this.table.temp.ftid == '') {
-        this.$message({ type: 'error', message: '实际头数/系数/系数头数/配方模版不能为空', duration: 2000 })
+        this.$message({ type: 'error', message: '实际头数/系数/系数头数/配方模版不能为空', duration: 2000 })
         return false
       }
       if (this.table.temp.ratio == '' && this.table.temp.ccountratio == '' && this.table.temp.ftid == '') {
@@ -2332,9 +2332,9 @@ export default {
         this.$message({ type: 'error', message: '系数头数/配方模版不能为空', duration: 2000 })
         return false
       }
-      console.log(this.table.temp.ccount, '实际头数不能为空')
+      console.log(this.table.temp.ccount, '实际头数不能为空')
       if (this.table.temp.ccount === '') {
-        this.$message({ type: 'error', message: '实际头数不能为空', duration: 2000 })
+        this.$message({ type: 'error', message: '实际头数不能为空', duration: 2000 })
         return false
       }
       if (this.table.temp.ratio === '') {
@@ -2353,7 +2353,7 @@ export default {
       if (!positiveInteger.test(parseFloat(this.table.temp.ccount))) {
         this.$message({
           type: 'error',
-          message: '实际头数请输入正整数',
+          message: '实际头数请输入正整数',
           duration: 2000
         })
         return false
@@ -2715,7 +2715,7 @@ export default {
             const positiveInteger = /^[1-9]\d*$/
             if (this.nutritional.tab1.temp.cowsum !== '') {
               if (!positiveInteger.test(parseFloat(this.nutritional.tab1.temp.cowsum))) {
-                this.$message({ type: 'error', message: '头数请输入正整数', duration: 2000 })
+                this.$message({ type: 'error', message: '头数请输入正整数', duration: 2000 })
                 return false
               }
             }
@@ -3185,15 +3185,15 @@ export default {
           var downloadList = [
             { 'obj1': '1、文件类型为xlsx类型,对应表格文件名格式为:文件名称.xlsx;' },
             { 'obj1': '2、底部工作表名称不可更改,默认为:Sheet1;' },
-            { 'obj1': '3、栏舍名称,实际头数,系数(%),系数头数,配方模板,补料配方字体为必填;' },
+            { 'obj1': '3、栏舍名称,实际头数,系数(%),系数头数,配方模板,补料配方字体为必填;' },
             { 'obj1': '4、第一列栏舍名称默认为系统中栏舍,不可修改;' },
-            { 'obj1': '5、实际头数为正整数,系数为正数,至多保留俩位小数;' },
+            { 'obj1': '5、实际头数为正整数,系数为正数,至多保留俩位小数;' },
             { 'obj1': '6、配方模板名称必须与系统中配方计划—配方模板中的饲喂配方匹配;若补料配方开启,需与配方模板中的补料配方匹配;' },
             { 'obj1': '7、数据最多可导入200条,超过200条请分多个文件导入。' }
           ]
           var excelDatas = [
             {
-              tHeader: ['栏舍名称', '实际头数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', '第四班比例(%)','第五班比例(%)','第六班比例(%)'],
+              tHeader: ['栏舍名称', '实际头数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', '第四班比例(%)','第五班比例(%)','第六班比例(%)'],
               filterVal: ['barname', '', '', '', '', '', '', '', ''],
               tableDatas: this.download.list,
               sheetName: 'Sheet1'
@@ -3262,7 +3262,7 @@ export default {
           if (this.table.isRW1 == true && this.table.isRW2 == false && this.table.isRW3 == false && this.table.isRW4 == false && this.table.isRW5 == false && this.table.isRW6 == false) {
             var excelDatas = [
               {
-                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
+                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
                 filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
                 tableDatas: this.download.list,
                 sheetName: 'Sheet1'
@@ -3271,7 +3271,7 @@ export default {
           } else if (this.table.isRW1 == true && this.table.isRW2 == true && this.table.isRW3 == false && this.table.isRW4 == false && this.table.isRW5 == false && this.table.isRW6 == false) {
             var excelDatas = [
               {
-                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
+                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
                 filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'r2', 'w2', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
                 tableDatas: this.download.list,
                 sheetName: 'Sheet1'
@@ -3280,7 +3280,7 @@ export default {
           } else if (this.table.isRW1 == true && this.table.isRW2 == true && this.table.isRW3 == true && this.table.isRW4 == false && this.table.isRW5 == false && this.table.isRW6 == false) {
             var excelDatas = [
               {
-                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
+                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
                 filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'r2', 'w2', 'r3', 'w3', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
                 tableDatas: this.download.list,
                 sheetName: 'Sheet1'
@@ -3289,7 +3289,7 @@ export default {
           } else if (this.table.isRW1 == true && this.table.isRW2 == true && this.table.isRW3 == true && this.table.isRW4 == true && this.table.isRW5 == false && this.table.isRW6 == false) {
             var excelDatas = [
               {
-                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
+                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
                 filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'r2', 'w2', 'r3', 'w3', 'r4', 'w4', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
                 tableDatas: this.download.list,
                 sheetName: 'Sheet1'
@@ -3298,7 +3298,7 @@ export default {
           }else if (this.table.isRW1 == true && this.table.isRW2 == true && this.table.isRW3 == true && this.table.isRW4 == true && this.table.isRW5 == true && this.table.isRW6 == false) {
             var excelDatas = [
               {
-                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量','第五班比例(%)', '第五班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
+                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量','第五班比例(%)', '第五班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
                 filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'r2', 'w2', 'r3', 'w3', 'r4', 'w4','r5', 'w5', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
                 tableDatas: this.download.list,
                 sheetName: 'Sheet1'
@@ -3307,7 +3307,7 @@ export default {
           }else if (this.table.isRW1 == true && this.table.isRW2 == true && this.table.isRW3 == true && this.table.isRW4 == true && this.table.isRW5 == true && this.table.isRW6 == true) {
             var excelDatas = [
               {
-                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量','第五班比例(%)', '第五班重量','第六班比例(%)', '第六班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
+                tHeader: ['栏舍名称', '软件头数', '实际头数', '系数(%)', '系数头数', '配方模板', '补料配方', '第一班比例(%)', '第一班重量', '第二班比例(%)', '第二班重量', '第三班比例(%)', '第三班重量', '第四班比例(%)', '第四班重量','第五班比例(%)', '第五班重量','第六班比例(%)', '第六班重量', '总比例', '日投喂量', '配方重量', '补料重量', '配方干物质'],
                 filterVal: ['barname', 'softccount', 'ccount', 'ratio', 'ccountratio', 'ftname', 'ptsfname', 'r1', 'w1', 'r2', 'w2', 'r3', 'w3', 'r4', 'w4','r5', 'w5','r6', 'w6', 'sumr', 'dailyWeight', 'ftweight', 'supplyweight', 'dryweight'],
                 tableDatas: this.download.list,
                 sheetName: 'Sheet1'
@@ -3335,10 +3335,10 @@ export default {
            import('@/vendor/Export2Excel').then(excel => {
              const list1 = res.data.result
              const tHeader = [
-               '栏舍名称', '实际头数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', '错误信息'
+               '栏舍名称', '实际头数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', '错误信息'
              ]
              const filterVal = [
-               '栏舍名称', '实际头数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', 'error_msg'
+               '栏舍名称', '实际头数', '系数(%)', '配方模板', '补料配方', '第一班比例(%)', '第二班比例(%)', '第三班比例(%)', 'error_msg'
              ]
              const data1 = this.formatJson(filterVal, list1)
              excel.export_json_to_excel({ header: tHeader, data: data1, filename: '栏舍配方导入报错信息', autoWidth: true, bookType: 'xlsx' })
@@ -3367,7 +3367,7 @@ export default {
       this.$refs.mychild.restTemp()
     },
     handleSynchronous(){
-      MessageBox.confirm('是否进行软件头数同步?', {
+      MessageBox.confirm('是否进行软件头数同步?', {
         confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
       }).then(() => {
         const url = 'authdata/ud/feedp/sync'
@@ -3378,7 +3378,7 @@ export default {
           }
         })
       }).catch(() => {
-        this.$message({ type: 'info', message: '已取消软件头数同步' })
+        this.$message({ type: 'info', message: '已取消软件头数同步' })
       })
     },
     handle_batchEdit(){

+ 19 - 19
src/views/formulationPlan/recipeTemplate/index.vue

@@ -41,8 +41,8 @@
         </div>
         <div class="operation">
           <el-button v-if="isRoleEdit" class="success" icon="el-icon-plus" @click="handleCreate">新增</el-button>
-          <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd">配方上传</el-button>
-          <el-upload style="float: right;margin-right: 15px;" :headers="headers" :data="uploadData" :action="uploadExcelUrl" :show-file-list="false" :before-upload="beforeImport" :on-success="handleImportSuccess">
+          <!-- <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd">配方上传</el-button> -->
+         <!-- <el-upload style="float: right;margin-right: 15px;" :headers="headers" :data="uploadData" :action="uploadExcelUrl" :show-file-list="false" :before-upload="beforeImport" :on-success="handleImportSuccess">
             <el-button v-if="isRoleEdit" class="export" icon="el-icon-download" style="float: right;">导入</el-button>
           </el-upload>
           <el-dropdown style="float: right;">
@@ -51,7 +51,7 @@
               <el-dropdown-item @click.native="handleExport(1)">导出模板</el-dropdown-item>
               <el-dropdown-item @click.native="handleExport(2)">导出数据</el-dropdown-item>
             </el-dropdown-menu>
-          </el-dropdown>
+          </el-dropdown> -->
           <el-button class="export" style="float: right;" @click="handleRecipeRecord">配方记录</el-button>
         </div>
         <div ref="table" class="table">
@@ -132,14 +132,14 @@
                 <span>{{ scope.row.version }}</span>
               </template>
             </el-table-column>
-            <el-table-column label="群类别" min-width="130px" align="center">
+            <!-- <el-table-column label="群类别" min-width="130px" align="center">
               <template slot-scope="scope">
                 <span v-if="scope.row.NoEdit">{{ scope.row.cattleName }}</span>
-                <el-select v-if="scope.row.Edit" v-model="scope.row.cattle" filterable placeholder="群类别" class="filter-item" style="width:95%;padding:10px 0;">
+                <el-select v-if="scope.row.Edit" v-model="scope.row.cattle" filterable placeholder="群类别" class="filter-item" style="width:95%;padding:10px 0;">
                   <el-option v-for="item in distCattle" :key="item.value" :label="item.distName" :value="item.distCode" />
                 </el-select>
               </template>
-            </el-table-column>
+            </el-table-column> -->
             <el-table-column label="是否启用" min-width="90px" align="center">
               <template slot-scope="scope">
                 <el-switch v-model="scope.row.enable" :disabled="scope.row.NoEdit==true" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="handleEnableChange(scope.$index, scope.row)" />
@@ -164,8 +164,8 @@
                 <el-button v-if="row.isUpdateSave && isRoleEdit" :disabled="isokDisable" icon="el-icon-folder-checked" class="miniSuccess" @click="updateData(row)" />
                 <span v-if="row.isUpdateSave && isRoleEdit" class="centerSpan">|</span>
                 <el-button v-if="row.isUpdateSave && isRoleEdit" class="minCancel" icon="el-icon-close" @click="updateCancel(row)" />
-                <span v-if="row.NoEdit && isRoleEdit && ispastureuse ==0" icon="el-icon-data-line" class="centerSpan">|</span>
-                <el-button v-if="row.NoEdit && isRoleEdit && ispastureuse==0" icon="el-icon-data-line" class="miniSuccess" @click="handleFormulationEvaluation(row)" />
+                <!-- <span v-if="row.NoEdit && isRoleEdit && ispastureuse ==0" icon="el-icon-data-line" class="centerSpan">|</span>
+                <el-button v-if="row.NoEdit && isRoleEdit && ispastureuse==0" icon="el-icon-data-line" class="miniSuccess" @click="handleFormulationEvaluation(row)" /> -->
               </template>
             </el-table-column>
           </el-table>
@@ -209,7 +209,7 @@
                 </el-select>
               </li>
               <li>
-                <a style="width: 130px;">是否锁定头数比例</a>
+                <a style="width: 130px;">是否锁定头数比例</a>
                 <el-select v-model="table2.getdataListParm.parammaps.islockcount" placeholder="" style="width:190px;" clearable>
                   <el-option v-for="item in lockBullsList" :key="item.id" :label="item.name" :value="item.id" />
                 </el-select>
@@ -288,7 +288,7 @@
                 <el-input v-if="scope.row.Edit" v-model="scope.row.deviation" step="0.01" type="number" style="width:95%;padding:10px 0;" min-number="0" />
               </template>
             </el-table-column>
-            <el-table-column v-if="lockCount.isLockCount" label="是否锁定头数比例" min-width="80px" align="center">
+            <el-table-column v-if="lockCount.isLockCount" label="是否锁定头数比例" min-width="80px" align="center">
               <template slot-scope="scope">
                 <span v-if="scope.row.NoEdit && scope.row.islockcount == '0'">否</span>
                 <span v-if="scope.row.NoEdit && scope.row.islockcount == '1'">是</span>
@@ -373,7 +373,7 @@
                 </el-select>
               </template>
             </el-table-column>
-            <el-table-column v-if="lockCount.isLockCount" label="是否锁定头数比例" min-width="80px" align="center">
+            <el-table-column v-if="lockCount.isLockCount" label="是否锁定头数比例" min-width="80px" align="center">
               <template slot-scope="scope">
                 <span v-if="scope.row.NoEdit && scope.row.islockcount == '0'">否</span>
                 <span v-if="scope.row.NoEdit && scope.row.islockcount == '1'">是</span>
@@ -562,7 +562,7 @@
                   </el-select>
                 </li>
                 <li>
-                  <a style="width: 130px;">是否锁定头数比例</a>
+                  <a style="width: 130px;">是否锁定头数比例</a>
                   <el-select v-model="template.table2.getdataListParm.parammaps.islockcount" placeholder="" style="width:245px;">
                     <el-option v-for="item in lockBullsList" :key="item.id" :label="item.name" :value="item.id" />
                   </el-select>
@@ -619,7 +619,7 @@
                   <span>{{ scope.row.autosecondname }}</span>
                 </template>
               </el-table-column>
-              <el-table-column label="是否锁定头数比例" min-width="130px" align="center">
+              <el-table-column label="是否锁定头数比例" min-width="130px" align="center">
                 <template slot-scope="scope">
                   <span v-if="scope.row.islockcount == '0'">否</span>
                   <span v-if="scope.row.islockcount == '1'">是</span>
@@ -681,7 +681,7 @@
                 <span>{{ scope.row.autosecond }}</span>
               </template>
             </el-table-column>
-            <el-table-column v-if="lockCount.isLockCount" label="是否锁定头数比例" min-width="130px" align="center">
+            <el-table-column v-if="lockCount.isLockCount" label="是否锁定头数比例" min-width="130px" align="center">
               <template slot-scope="scope">
                 <span v-if="scope.row.islockcount == '0'">否</span>
                 <span v-if="scope.row.islockcount == '1'">是</span>
@@ -1112,14 +1112,14 @@ export default {
     uploadData() {
       return {
         name: 'checkfttype,checkbigcowclass,checkFeed,insertFTUpload,insertFTdetailUpload',
-        importParams: '配方名称,牲畜类别,配方类型,备注,饲料组,饲料名称,重量(kg),搅拌延时(min),是否锁定头数比例',
+        importParams: '配方名称,牲畜类别,配方类型,备注,饲料组,饲料名称,重量(kg),搅拌延时(min),是否锁定头数比例',
         sheetname: 'Sheet1',
         // 登录牧场
         pastureid: Cookies.get('pastureid'),
         // 日期参数
         dateParams: '',
         // 必填参数
-        requiredParams: '配方名称,牲畜类别,配方类型,饲料名称,重量(kg),搅拌延时(min),是否锁定头数比例',
+        requiredParams: '配方名称,牲畜类别,配方类型,饲料名称,重量(kg),搅拌延时(min),是否锁定头数比例',
         // 为数值的参数
         numParams: '重量(kg),搅拌延时(min)'
       }
@@ -1902,7 +1902,7 @@ export default {
           }
           var excelDatas = [
             {
-              tHeader: ['配方名称', '配方编码', '牲畜类别', '配方类型', '来源', '备注', '是否启用', '饲料组', '饲料名称', '重量(kg)', '搅拌延时(min)', '是否锁定头数比例', '顺序'],
+              tHeader: ['配方名称', '配方编码', '牲畜类别', '配方类型', '来源', '备注', '是否启用', '饲料组', '饲料名称', '重量(kg)', '搅拌延时(min)', '是否锁定头数比例', '顺序'],
               filterVal: ['tname', 'tcode', 'ccname', 'fttype', 'source', 'remark', 'enable', 'feedgroup', 'fname', 'fweight', 'autosecond', 'islockcount', 'sort'],
               tableDatas: this.download.list,
               sheetName: 'Sheet1'
@@ -1929,10 +1929,10 @@ export default {
            import('@/vendor/Export2Excel').then(excel => {
              const list1 = res.data.result
              const tHeader = [
-               '配方名称', '牲畜类别', '配方类型', '备注', '饲料组', '饲料名称', '重量(kg)', '搅拌延时(min)', '是否锁定头数比例', '错误信息'
+               '配方名称', '牲畜类别', '配方类型', '备注', '饲料组', '饲料名称', '重量(kg)', '搅拌延时(min)', '是否锁定头数比例', '错误信息'
              ]
              const filterVal = [
-               '配方名称', '牲畜类别', '配方类型', '备注', '饲料组', '饲料名称', '重量(kg)', '搅拌延时(min)', '是否锁定头数比例', 'error_msg'
+               '配方名称', '牲畜类别', '配方类型', '备注', '饲料组', '饲料名称', '重量(kg)', '搅拌延时(min)', '是否锁定头数比例', 'error_msg'
              ]
              const data1 = this.formatJson(filterVal, list1)
              excel.export_json_to_excel({ header: tHeader, data: data1, filename: '配方模板导入报错信息', autoWidth: true, bookType: 'xlsx' })