|  | @@ -29,7 +29,8 @@
 | 
	
		
			
				|  |  |          </el-select>
 | 
	
		
			
				|  |  |          <el-select v-model="table.getdataListParm.parammaps.iscompleted" filterable placeholder="执行状态" class="filter-item" style="width: 120px;" :clearable="false">
 | 
	
		
			
				|  |  |            <el-option v-for="item in iscompletedList" :key="item.value" :label="item.lable" :value="item.value" />
 | 
	
		
			
				|  |  | -        </el-select>
 | 
	
		
			
				|  |  | +        </el-select>
 | 
	
		
			
				|  |  | +        <el-button class="successBorder" @click="form_search">查询</el-button>
 | 
	
		
			
				|  |  |          <el-button class="export" icon="el-icon-upload2" @click="handleExport">导出</el-button>
 | 
	
		
			
				|  |  |          <el-button class="export" icon="el-icon-upload2" @click="handlePrint">打印</el-button>
 | 
	
		
			
				|  |  |          <el-button class="export" style="margin-left: -5px;" @click="form_deleteRecord">删除记录</el-button>
 | 
	
	
		
			
				|  | @@ -45,12 +46,10 @@
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |          <el-button v-if="isRoleEdit" class="success" icon="el-icon-open" @click="handleTakeEffect">生效</el-button>
 | 
	
		
			
				|  |  |          <el-button v-if="isRoleEdit" class="danger" icon="el-icon-turn-off" @click="handleDisable">禁用</el-button>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          <el-button v-if="dataSynchronization2.isDataSynchronization" class="success" icon="el-icon-plus" @click="form_updata">上传计划</el-button>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        <el-button v-if="dataSynchronization.isDataSynchronization && isRoleEdit" class="success" @click="handleDataSynchronization">数据同步</el-button>
 | 
	
		
			
				|  |  | +        <el-button v-if="dataSynchronization.isDataSynchronization && isRoleEdit" class="success" @click="handleDataSynchronization">数据同步</el-button>
 | 
	
		
			
				|  |  | +        <el-button v-if="dataSynchronization3.isDataSynchronization&&isRoleEdit" class="success" @click="handleDataUpload">数据上传</el-button>
 | 
	
		
			
				|  |  | +        <el-button v-if="isRoleEdit" class="danger" icon="el-icon-delete" @click="handleDelete">删除</el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |        <!-- 日执行计划 -->
 | 
	
		
			
				|  |  |        <div class="table">
 | 
	
	
		
			
				|  | @@ -87,9 +86,12 @@
 | 
	
		
			
				|  |  |                <span>{{ scope.row.tmrtname }}</span>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  | -          <el-table-column label="驾驶员" min-width="80px" align="center">
 | 
	
		
			
				|  |  | +          <el-table-column label="驾驶员" min-width="150px" align="center">
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  | -              <span>{{ scope.row.driver }}</span>
 | 
	
		
			
				|  |  | +              <!-- <span>{{ scope.row.driver }}</span> -->
 | 
	
		
			
				|  |  | +              <el-select v-model="scope.row.driverId" :disabled="scope.row.havebutton == 1" filterable placeholder="驾驶员" class="filter-item" style="width:95%;padding:10px 0;" :clearable="false"  @change="(value)=> {changeDriver(value, scope.row)}">
 | 
	
		
			
				|  |  | +                <el-option v-for="item in driverList" :key="item.id" :label="item.drivername" :value="item.id" />
 | 
	
		
			
				|  |  | +              </el-select>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column label="已执行" min-width="70px" align="center">
 | 
	
	
		
			
				|  | @@ -173,25 +175,35 @@
 | 
	
		
			
				|  |  |                  class="elTable table-fixed"
 | 
	
		
			
				|  |  |                  :span-method="objectSpanMethod"
 | 
	
		
			
				|  |  |                >
 | 
	
		
			
				|  |  | -                <el-table-column label="操作序号" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label="操作序号" width="90px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  |                      <span>{{ scope.row.sort }}</span>
 | 
	
		
			
				|  |  |                    </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  | -                <el-table-column label="饲料名称" prop="fname" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <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="设计重量(KG)" prop="weight" min-width="130px" align="center">
 | 
	
		
			
				|  |  | -                  <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                    <span>{{ scope.row.weight }}</span>
 | 
	
		
			
				|  |  | +                  <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="小计" prop="description" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label="小计" prop="description" min-width="90px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  |                      <span>{{ scope.row.subtotal }}</span>
 | 
	
		
			
				|  |  |                    </template>
 | 
	
		
			
				|  |  | +                </el-table-column>
 | 
	
		
			
				|  |  | +                <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)" />
 | 
	
		
			
				|  |  | +                    <span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
 | 
	
		
			
				|  |  | +                    <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)" />
 | 
	
		
			
				|  |  | +                  </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  |                </el-table>
 | 
	
		
			
				|  |  |              </div>
 | 
	
	
		
			
				|  | @@ -224,25 +236,34 @@
 | 
	
		
			
				|  |  |                  class="elTable table-fixed"
 | 
	
		
			
				|  |  |                  :span-method="objectSpanMethod"
 | 
	
		
			
				|  |  |                >
 | 
	
		
			
				|  |  | -                <el-table-column label="操作序号" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label="操作序号" min-width="90px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  |                      <span>{{ scope.row.sort }}</span>
 | 
	
		
			
				|  |  |                    </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  | -                <el-table-column label="饲料名称" prop="fname" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <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="设计重量(KG)" prop="weight" min-width="130px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                    <span>{{ scope.row.weight }}</span>
 | 
	
		
			
				|  |  | +                    <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="小计" prop="description" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label="小计" prop="description" min-width="90px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  |                      <span>{{ scope.row.subtotal }}</span>
 | 
	
		
			
				|  |  |                    </template>
 | 
	
		
			
				|  |  | +                </el-table-column>
 | 
	
		
			
				|  |  | +                <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,'0')" />
 | 
	
		
			
				|  |  | +                    <span v-if="row.isUpdateSave" class="centerSpan">|</span>
 | 
	
		
			
				|  |  | +                    <el-button v-if="row.isUpdateSave" class="minCancel" icon="el-icon-close" @click="updateCancel2(row)" />
 | 
	
		
			
				|  |  | +                  </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  |                </el-table>
 | 
	
		
			
				|  |  |              </div>
 | 
	
	
		
			
				|  | @@ -268,20 +289,29 @@
 | 
	
		
			
				|  |  |                  :cell-style="cellStyle"
 | 
	
		
			
				|  |  |                  class="elTable table-fixed"
 | 
	
		
			
				|  |  |                >
 | 
	
		
			
				|  |  | -                <el-table-column label=" 操作序号" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label=" 操作序号" min-width="90px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  |                      <span>{{ scope.row.sort }}</span>
 | 
	
		
			
				|  |  |                    </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  | -                <el-table-column label="栏舍" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <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="设计重量(KG)" prop="weight" min-width="130px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                    <span>{{ scope.row.weight }}</span>
 | 
	
		
			
				|  |  | +                    <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="操作" align="left" min-width="200" class-name="small-padding">
 | 
	
		
			
				|  |  | +                  <template slot-scope="{row}">
 | 
	
		
			
				|  |  | +                    <el-button v-if="row.isUpdate && isRoleEdit" :disabled="table3.getdataListParm.parammaps.havebutton == 1" class="miniSuccess" icon="el-icon-edit-outline" @click="handleUpdate3(row)" />
 | 
	
		
			
				|  |  | +                    <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)" />
 | 
	
		
			
				|  |  | +                  </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  |                </el-table>
 | 
	
		
			
				|  |  |              </div>
 | 
	
	
		
			
				|  | @@ -398,25 +428,34 @@
 | 
	
		
			
				|  |  |                  class="elTable table-fixed"
 | 
	
		
			
				|  |  |                  :span-method="objectSpanMethod"
 | 
	
		
			
				|  |  |                >
 | 
	
		
			
				|  |  | -                <el-table-column label="操作序号" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label="操作序号" min-width="90px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  |                      <span>{{ scope.row.sort }}</span>
 | 
	
		
			
				|  |  |                    </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  | -                <el-table-column label="饲料名称" prop="fname" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <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="设计重量(KG)" prop="weight" min-width="130px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                    <span>{{ scope.row.weight }}</span>
 | 
	
		
			
				|  |  | +                    <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="小计" prop="description" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label="小计" prop="description" min-width="90px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  |                      <span>{{ scope.row.subtotal }}</span>
 | 
	
		
			
				|  |  |                    </template>
 | 
	
		
			
				|  |  | +                </el-table-column>
 | 
	
		
			
				|  |  | +               <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,'0')" />
 | 
	
		
			
				|  |  | +                    <span v-if="row.isUpdateSave" class="centerSpan">|</span>
 | 
	
		
			
				|  |  | +                    <el-button v-if="row.isUpdateSave" class="minCancel" icon="el-icon-close" @click="updateCancel2(row)" />
 | 
	
		
			
				|  |  | +                  </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  |                </el-table>
 | 
	
		
			
				|  |  |              </div>
 | 
	
	
		
			
				|  | @@ -442,20 +481,29 @@
 | 
	
		
			
				|  |  |                  :cell-style="cellStyle"
 | 
	
		
			
				|  |  |                  class="elTable table-fixed"
 | 
	
		
			
				|  |  |                >
 | 
	
		
			
				|  |  | -                <el-table-column label=" 操作序号" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label=" 操作序号" min-width="90px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  |                      <span>{{ scope.row.sort }}</span>
 | 
	
		
			
				|  |  |                    </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  | -                <el-table-column label="撒料车辆" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <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="设计重量(KG)" min-width="130px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                    <span>{{ scope.row.weight }}</span>
 | 
	
		
			
				|  |  | +                    <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="操作" align="left" min-width="200" class-name="small-padding">
 | 
	
		
			
				|  |  | +                  <template slot-scope="{row}">
 | 
	
		
			
				|  |  | +                    <el-button v-if="row.isUpdate && isRoleEdit" :disabled="table3.getdataListParm.parammaps.havebutton == 1" class="miniSuccess" icon="el-icon-edit-outline" @click="handleUpdate3(row)" />
 | 
	
		
			
				|  |  | +                    <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)" />
 | 
	
		
			
				|  |  | +                  </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  |                </el-table>
 | 
	
		
			
				|  |  |              </div>
 | 
	
	
		
			
				|  | @@ -487,25 +535,34 @@
 | 
	
		
			
				|  |  |                  :cell-style="cellStyle"
 | 
	
		
			
				|  |  |                  class="elTable table-fixed"
 | 
	
		
			
				|  |  |                >
 | 
	
		
			
				|  |  | -                <el-table-column label=" 操作序号" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label="操作序号" min-width="90px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  |                      <span>{{ scope.row.sort }}</span>
 | 
	
		
			
				|  |  |                    </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  | -                <el-table-column label="撒料车辆" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <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="设计重量(KG)" min-width="130px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                    <span>{{ scope.row.weight }}</span>
 | 
	
		
			
				|  |  | +                    <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="小计" prop="description" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label="小计" prop="description" min-width="90px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  |                      <span>{{ scope.row.subtotal }}</span>
 | 
	
		
			
				|  |  |                    </template>
 | 
	
		
			
				|  |  | +                </el-table-column>
 | 
	
		
			
				|  |  | +               <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="table3.getdataListParm.parammaps.havebutton == 1" class="miniSuccess" icon="el-icon-edit-outline" @click="handleUpdate3(row)" />
 | 
	
		
			
				|  |  | +                    <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)" />
 | 
	
		
			
				|  |  | +                  </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  |                </el-table>
 | 
	
		
			
				|  |  |              </div>
 | 
	
	
		
			
				|  | @@ -531,20 +588,29 @@
 | 
	
		
			
				|  |  |                  :cell-style="cellStyle"
 | 
	
		
			
				|  |  |                  class="elTable table-fixed"
 | 
	
		
			
				|  |  |                >
 | 
	
		
			
				|  |  | -                <el-table-column label="操作序号" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label="操作序号" min-width="90px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  |                      <span>{{ scope.row.sort }}</span>
 | 
	
		
			
				|  |  |                    </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  | -                <el-table-column label="栏舍名称" prop="fname" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <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="设计重量(KG)" prop="weight" min-width="130px" align="center">
 | 
	
		
			
				|  |  | +                <el-table-column label="设计重量(KG)" prop="weight" width="130px" align="center">
 | 
	
		
			
				|  |  |                    <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                    <span>{{ scope.row.weight }}</span>
 | 
	
		
			
				|  |  | +                    <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="操作" 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)" />
 | 
	
		
			
				|  |  | +                  </template>
 | 
	
		
			
				|  |  |                  </el-table-column>
 | 
	
		
			
				|  |  |                </el-table>
 | 
	
		
			
				|  |  |              </div>
 | 
	
	
		
			
				|  | @@ -775,7 +841,7 @@
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | -import { GetDataByName, GetDataByNames, ExecDataByConfig, PostDataByName, getDorm, GetReportform, checkButtons,postJson,SyncSCJH } from '@/api/common'
 | 
	
		
			
				|  |  | +import { GetDataByName, GetDataByNames, ExecDataByConfig, PostDataByName, getDorm, GetReportform, checkButtons,postJson,postJson2,SyncSCJH } from '@/api/common'
 | 
	
		
			
				|  |  |  import RevisePlan from './revisePlan.vue'
 | 
	
		
			
				|  |  |  import printJS from 'print-js'
 | 
	
		
			
				|  |  |  import { parseTime, json2excel,handleTableSpan, handleObjectSpanMethod } from '@/utils/index.js'
 | 
	
	
		
			
				|  | @@ -974,6 +1040,22 @@ export default {
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          isDataSynchronization: false
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      dataSynchronization3: {
 | 
	
		
			
				|  |  | +        dialogFormVisible: false,
 | 
	
		
			
				|  |  | +        dialogStatus: '',
 | 
	
		
			
				|  |  | +        getdataListParm: {
 | 
	
		
			
				|  |  | +          name: 'getSysoptEnable',
 | 
	
		
			
				|  |  | +          page: 1,
 | 
	
		
			
				|  |  | +          offset: 1,
 | 
	
		
			
				|  |  | +          pagecount: 1,
 | 
	
		
			
				|  |  | +          returntype: 'Map',
 | 
	
		
			
				|  |  | +          parammaps: {
 | 
	
		
			
				|  |  | +            pastureid: Cookies.get('pastureid'),
 | 
	
		
			
				|  |  | +            inforname: 'wgSap'
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        isDataSynchronization: false
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        textMap: {
 | 
	
		
			
				|  |  |          newGeneration: '新生成',
 | 
	
	
		
			
				|  | @@ -1031,7 +1113,8 @@ export default {
 | 
	
		
			
				|  |  |          list:[],
 | 
	
		
			
				|  |  |          mydate: parseTime(new Date(), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      selectList: [],
 | 
	
		
			
				|  |  | +      selectList: [],
 | 
	
		
			
				|  |  | +      driverList:[]
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -1040,30 +1123,42 @@ export default {
 | 
	
		
			
				|  |  |      console.log(this.parentDate, 'this.parentDate')
 | 
	
		
			
				|  |  |      this.getDataSynchronization()
 | 
	
		
			
				|  |  |      this.getDataSynchronization2()
 | 
	
		
			
				|  |  | +    this.getDataSynchronization3()
 | 
	
		
			
				|  |  |      this.getButtons()
 | 
	
		
			
				|  |  |      this.getList()
 | 
	
		
			
				|  |  |      this.getDownList()
 | 
	
		
			
				|  |  |      this.getIsDisplay()
 | 
	
		
			
				|  |  | -    this.getTMRList()
 | 
	
		
			
				|  |  | +    this.getTMRList()
 | 
	
		
			
				|  |  | +    this.getDriverList()
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    mounted() {
 | 
	
		
			
				|  |  |      this.getTmrListParam.parammaps.mydate = parseTime(new Date(), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  methods: {
 | 
	
		
			
				|  |  | +  methods: {
 | 
	
		
			
				|  |  | +    getDriverList(){
 | 
	
		
			
				|  |  | +      const url = 'authdata/GetDataByName'
 | 
	
		
			
				|  |  | +      const data = {
 | 
	
		
			
				|  |  | +        "name":"getDriverList",
 | 
	
		
			
				|  |  | +        "page":1,"offset":1,"pagecount":50,
 | 
	
		
			
				|  |  | +        "returntype":"Map",
 | 
	
		
			
				|  |  | +        "parammaps":{"pastureid":Cookies.get('pastureid')}
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      postJson(url, data).then(response => {
 | 
	
		
			
				|  |  | +        if(response.data !== null){
 | 
	
		
			
				|  |  | +          this.driverList = response.data.list
 | 
	
		
			
				|  |  | +        }else{
 | 
	
		
			
				|  |  | +          this.driverList = []
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      getTMRList(){
 | 
	
		
			
				|  |  | -  console.log('11111111')
 | 
	
		
			
				|  |  |        this.getTmrListParam.parammaps.mydate = this.table.getdataListParm.parammaps.mydate
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          GetDataByName(this.getTmrListParam).then(response => {
 | 
	
		
			
				|  |  |          if (response.data.list !== null) {
 | 
	
		
			
				|  |  | -          console.log('11111111',response)
 | 
	
		
			
				|  |  |            this.tmrDownList = response.data.list
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getButtons() {
 | 
	
		
			
				|  |  |        const Edit = 'DailyExecutionPlan'
 | 
	
	
		
			
				|  | @@ -1089,6 +1184,17 @@ export default {
 | 
	
		
			
				|  |  |            this.dataSynchronization2.isDataSynchronization = true
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    getDataSynchronization3() {
 | 
	
		
			
				|  |  | +      GetDataByName(this.dataSynchronization3.getdataListParm).then(response => {
 | 
	
		
			
				|  |  | +        // console.log(response.data.list[0])
 | 
	
		
			
				|  |  | +        if (response.data.list[0].inforvalue == 0) {
 | 
	
		
			
				|  |  | +          this.dataSynchronization3.isDataSynchronization = false
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  | +          this.dataSynchronization3.isDataSynchronization = true
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -1110,9 +1216,9 @@ export default {
 | 
	
		
			
				|  |  |                this.$notify({ title: '上传失败', message: response.data, type: 'warning', duration: 2000 })
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                this.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
 | 
	
		
			
				|  |  | -          
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -         
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getIsDisplay() {
 | 
	
	
		
			
				|  | @@ -1187,7 +1293,9 @@ export default {
 | 
	
		
			
				|  |  |            this.table.pageNum = response.data.pageNum
 | 
	
		
			
				|  |  |            this.table.pageSize = response.data.pageSize
 | 
	
		
			
				|  |  |            this.table.total = response.data.total
 | 
	
		
			
				|  |  | -          console.log('计划类型', response.data.list[0].lpplantype)
 | 
	
		
			
				|  |  | +          console.log('计划类型', response.data.list[0].lpplantype)
 | 
	
		
			
				|  |  | +          this.table2.getdataListParm.parammaps.havebutton = response.data.list[0].havebutton
 | 
	
		
			
				|  |  | +          this.table3.getdataListParm.parammaps.havebutton = response.data.list[0].havebutton
 | 
	
		
			
				|  |  |            if (response.data.list[0].lpplantype == 0) {
 | 
	
		
			
				|  |  |              // 撒料
 | 
	
		
			
				|  |  |              this.table2.getdataListParm.name = 'getDownloadplandtl1ListV2'
 | 
	
	
		
			
				|  | @@ -1276,6 +1384,11 @@ export default {
 | 
	
		
			
				|  |  |            this.table.listLoading = false
 | 
	
		
			
				|  |  |          }, 100)
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    form_search() {
 | 
	
		
			
				|  |  | +      this.getTMRList()
 | 
	
		
			
				|  |  | +      this.table.getdataListParm.offset = 1
 | 
	
		
			
				|  |  | +      this.getList()
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      handleEnableChange(row) {
 | 
	
		
			
				|  |  |        this.requestParam.name = 'updatedownloadenable'
 | 
	
	
		
			
				|  | @@ -1379,7 +1492,9 @@ export default {
 | 
	
		
			
				|  |  |      // 日执行计划行点击
 | 
	
		
			
				|  |  |      tableRowClick(row, column, event) {
 | 
	
		
			
				|  |  |        console.log(row, column, event)
 | 
	
		
			
				|  |  | -      console.log('点击计划类型', row.lpplantype)
 | 
	
		
			
				|  |  | +      console.log('点击计划类型', row.lpplantype)
 | 
	
		
			
				|  |  | +      this.table2.getdataListParm.parammaps.havebutton = row.havebutton
 | 
	
		
			
				|  |  | +      this.table3.getdataListParm.parammaps.havebutton = row.havebutton
 | 
	
		
			
				|  |  |        // 撒料计划0/撒料计划-混料1/撒料计划-撒料2/剩料计划3/预混计划4/预称重计划5
 | 
	
		
			
				|  |  |        if (row.lpplantype == 0) {
 | 
	
		
			
				|  |  |          // 撒料
 | 
	
	
		
			
				|  | @@ -1467,7 +1582,14 @@ export default {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        GetDataByName(this.table2.getdataListParm).then(response => {
 | 
	
		
			
				|  |  |          console.log('table数据', response.data.list)
 | 
	
		
			
				|  |  | -        if (response.data.list !== null) {
 | 
	
		
			
				|  |  | +        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) {
 | 
	
	
		
			
				|  | @@ -1530,7 +1652,14 @@ export default {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        GetDataByName(this.table3.getdataListParm).then(response => {
 | 
	
		
			
				|  |  |          console.log('table数据', response.data.list)
 | 
	
		
			
				|  |  | -        if (response.data.list !== null) {
 | 
	
		
			
				|  |  | +        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.table3.list = response.data.list
 | 
	
		
			
				|  |  |            if (this.table3.getdataListParm.parammaps.lpplantype == 0) {
 | 
	
		
			
				|  |  |              const arr = []
 | 
	
	
		
			
				|  | @@ -1804,31 +1933,31 @@ export default {
 | 
	
		
			
				|  |  |              return false
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            // 相同班次之间可以拖动
 | 
	
		
			
				|  |  | -          if (targetRow2 !== undefined && targetRow3 !== undefined) {
 | 
	
		
			
				|  |  | -            if (targetRow.times !== targetRow2.times && targetRow.times !== targetRow3.times) {
 | 
	
		
			
				|  |  | -              that.$nextTick(() => {
 | 
	
		
			
				|  |  | -                that.$set(that.table, 'list', tableList)
 | 
	
		
			
				|  |  | -              })
 | 
	
		
			
				|  |  | -              that.$message({ type: 'error', message: '因班次不同不可调整顺序', duration: 2000 })
 | 
	
		
			
				|  |  | -              return false
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          } else if (targetRow2 !== undefined && targetRow3 == undefined) {
 | 
	
		
			
				|  |  | -            if (targetRow.times !== targetRow2.times) {
 | 
	
		
			
				|  |  | -              that.$nextTick(() => {
 | 
	
		
			
				|  |  | -                that.$set(that.table, 'list', tableList)
 | 
	
		
			
				|  |  | -              })
 | 
	
		
			
				|  |  | -              that.$message({ type: 'error', message: '因班次不同不可调整顺序', duration: 2000 })
 | 
	
		
			
				|  |  | -              return false
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          } else if (targetRow2 == undefined && targetRow3 !== undefined) {
 | 
	
		
			
				|  |  | -            if (targetRow.times !== targetRow3.times) {
 | 
	
		
			
				|  |  | -              that.$nextTick(() => {
 | 
	
		
			
				|  |  | -                that.$set(that.table, 'list', tableList)
 | 
	
		
			
				|  |  | -              })
 | 
	
		
			
				|  |  | -              that.$message({ type: 'error', message: '因班次不同不可调整顺序', duration: 2000 })
 | 
	
		
			
				|  |  | -              return false
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | +          // if (targetRow2 !== undefined && targetRow3 !== undefined) {
 | 
	
		
			
				|  |  | +          //   if (targetRow.times !== targetRow2.times && targetRow.times !== targetRow3.times) {
 | 
	
		
			
				|  |  | +          //     that.$nextTick(() => {
 | 
	
		
			
				|  |  | +          //       that.$set(that.table, 'list', tableList)
 | 
	
		
			
				|  |  | +          //     })
 | 
	
		
			
				|  |  | +          //     that.$message({ type: 'error', message: '因班次不同不可调整顺序', duration: 2000 })
 | 
	
		
			
				|  |  | +          //     return false
 | 
	
		
			
				|  |  | +          //   }
 | 
	
		
			
				|  |  | +          // } else if (targetRow2 !== undefined && targetRow3 == undefined) {
 | 
	
		
			
				|  |  | +          //   if (targetRow.times !== targetRow2.times) {
 | 
	
		
			
				|  |  | +          //     that.$nextTick(() => {
 | 
	
		
			
				|  |  | +          //       that.$set(that.table, 'list', tableList)
 | 
	
		
			
				|  |  | +          //     })
 | 
	
		
			
				|  |  | +          //     that.$message({ type: 'error', message: '因班次不同不可调整顺序', duration: 2000 })
 | 
	
		
			
				|  |  | +          //     return false
 | 
	
		
			
				|  |  | +          //   }
 | 
	
		
			
				|  |  | +          // } else if (targetRow2 == undefined && targetRow3 !== undefined) {
 | 
	
		
			
				|  |  | +          //   if (targetRow.times !== targetRow3.times) {
 | 
	
		
			
				|  |  | +          //     that.$nextTick(() => {
 | 
	
		
			
				|  |  | +          //       that.$set(that.table, 'list', tableList)
 | 
	
		
			
				|  |  | +          //     })
 | 
	
		
			
				|  |  | +          //     that.$message({ type: 'error', message: '因班次不同不可调整顺序', duration: 2000 })
 | 
	
		
			
				|  |  | +          //     return false
 | 
	
		
			
				|  |  | +          //   }
 | 
	
		
			
				|  |  | +          // }
 | 
	
		
			
				|  |  |            // 撒料计划0,
 | 
	
		
			
				|  |  |            // 撒料计划-混料1
 | 
	
		
			
				|  |  |            // 撒料计划-撒料2
 | 
	
	
		
			
				|  | @@ -2533,7 +2662,179 @@ export default {
 | 
	
		
			
				|  |  |            gridHeaderStyle:'border:1px solid #ccc;text-align:center'
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    handleDelete(){
 | 
	
		
			
				|  |  | +      if (this.selectList.length == 0) {
 | 
	
		
			
				|  |  | +        this.$message({ type: 'error', message: '请选择计划', duration: 2000 })
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +        MessageBox.confirm('当前选中' + this.selectList.length + '条信息,是否删除?', {
 | 
	
		
			
				|  |  | +          confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
 | 
	
		
			
				|  |  | +        }).then(() => {
 | 
	
		
			
				|  |  | +          console.log(this.selectList)
 | 
	
		
			
				|  |  | +          this.requestParam.common = { 'returnmap': '0' }
 | 
	
		
			
				|  |  | +          this.requestParam.data = []
 | 
	
		
			
				|  |  | +          this.requestParam.data[0] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.selectList }}
 | 
	
		
			
				|  |  | +          this.requestParam.data[0].children = []
 | 
	
		
			
				|  |  | +          this.requestParam.data[0].children[0] = { 'name': 'delDownloadedplan', 'type': 'e', 'parammaps': {
 | 
	
		
			
				|  |  | +            id: '@insertSpotList.id',
 | 
	
		
			
				|  |  | +            pastureid: '@insertSpotList.pastureid'
 | 
	
		
			
				|  |  | +          }}
 | 
	
		
			
				|  |  | +          ExecDataByConfig(this.requestParam).then(response => {
 | 
	
		
			
				|  |  | +            console.log('删除保存发送参数', this.requestParam)
 | 
	
		
			
				|  |  | +            if (response.msg === 'fail') {
 | 
	
		
			
				|  |  | +              this.$notify({ title: '删除失败', message: response.data, type: 'warning', duration: 2000 })
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +              this.$notify({ title: '', message: '删除成功', type: 'success', duration: 2000 })
 | 
	
		
			
				|  |  | +              this.getList()
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    handleDataUpload(){
 | 
	
		
			
				|  |  | +      let a = process.env.VUE_APP_BASE_API
 | 
	
		
			
				|  |  | +      let b = a.search(8081)
 | 
	
		
			
				|  |  | +      let c = a.substring(0,a.search(8081)) + '8082'
 | 
	
		
			
				|  |  | +      let d = a.substring(0,a.lastIndexOf('/'))
 | 
	
		
			
				|  |  | +      console.log(d)
 | 
	
		
			
				|  |  | +      let url = ''
 | 
	
		
			
				|  |  | +      if(b == -1){
 | 
	
		
			
				|  |  | +        url = d + ':8082'
 | 
	
		
			
				|  |  | +      }else{
 | 
	
		
			
				|  |  | +        url = c
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      let _url = url + '/authdata/feeding/push'
 | 
	
		
			
				|  |  | +      let data = {
 | 
	
		
			
				|  |  | +        date:parseTime(new Date(), '{y}-{m}-{d}'),
 | 
	
		
			
				|  |  | +        pastureId:Cookies.get('pastureid')
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      console.log(_url,'_url')
 | 
	
		
			
				|  |  | +      postJson2(_url, data).then(response => {
 | 
	
		
			
				|  |  | +        if(response.msg == 'ok'){
 | 
	
		
			
				|  |  | +          this.$notify({ title: '', message: response.data, type: 'success', duration: 2000 })
 | 
	
		
			
				|  |  | +        }else{
 | 
	
		
			
				|  |  | +          this.$notify({ title: '上传失败', message: response.data, type: 'warning', duration: 2000 })
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    handleUpdate2(row){
 | 
	
		
			
				|  |  | +      for (let i = 0; i < this.table2.list.length; i++) {
 | 
	
		
			
				|  |  | +        if (this.table2.list[i].Edit == true) {
 | 
	
		
			
				|  |  | +          this.$message({ type: 'error', message: '当前内容未保存,请点击取消或保存继续进行操作', duration: 2000 })
 | 
	
		
			
				|  |  | +          return false
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      // 编辑true,不可编辑false
 | 
	
		
			
				|  |  | +      row.Edit = true
 | 
	
		
			
				|  |  | +      row.NoEdit = false
 | 
	
		
			
				|  |  | +      // 新增false,编辑false,编辑保存true
 | 
	
		
			
				|  |  | +      row.isUpdate = false
 | 
	
		
			
				|  |  | +      row.isUpdateSave = true
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    updateData2(row,type){
 | 
	
		
			
				|  |  | +      const url = 'authdata/dailydata/edit'
 | 
	
		
			
				|  |  | +      const data = {}
 | 
	
		
			
				|  |  | +      data.pid = row.pid
 | 
	
		
			
				|  |  | +      data.weight = row.weight
 | 
	
		
			
				|  |  | +      data.sort = row.sort
 | 
	
		
			
				|  |  | +      // 饲料
 | 
	
		
			
				|  |  | +      if(type == '0'){
 | 
	
		
			
				|  |  | +        data.location = 0
 | 
	
		
			
				|  |  | +        data.fid = row.fid
 | 
	
		
			
				|  |  | +      }else{
 | 
	
		
			
				|  |  | +        // 车辆||栏舍
 | 
	
		
			
				|  |  | +        data.location = 1
 | 
	
		
			
				|  |  | +        data.fbarid = row.fbarid
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      data.date = this.table.getdataListParm.parammaps.mydate
 | 
	
		
			
				|  |  | +      data.sort = row.sort
 | 
	
		
			
				|  |  | +      postJson(url, data).then(response => {
 | 
	
		
			
				|  |  | +        if(response.msg == 'ok'){
 | 
	
		
			
				|  |  | +          this.$notify({ title: '', message: '修改成功', type: 'success', duration: 2000 })
 | 
	
		
			
				|  |  | +          this.getList2()
 | 
	
		
			
				|  |  | +          this.getList3()
 | 
	
		
			
				|  |  | +        }else{
 | 
	
		
			
				|  |  | +          this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    updateCancel2(row){
 | 
	
		
			
				|  |  | +      row.Edit = false
 | 
	
		
			
				|  |  | +      row.NoEdit = true
 | 
	
		
			
				|  |  | +      // 新增false,编辑true,编辑保存false
 | 
	
		
			
				|  |  | +      row.isCreate = false
 | 
	
		
			
				|  |  | +      row.isUpdate = true
 | 
	
		
			
				|  |  | +      row.isUpdateSave = false
 | 
	
		
			
				|  |  | +      this.getList2()
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    handleUpdate3(row){
 | 
	
		
			
				|  |  | +      for (let i = 0; i < this.table3.list.length; i++) {
 | 
	
		
			
				|  |  | +        if (this.table3.list[i].Edit == true) {
 | 
	
		
			
				|  |  | +          this.$message({ type: 'error', message: '当前内容未保存,请点击取消或保存继续进行操作', duration: 2000 })
 | 
	
		
			
				|  |  | +          return false
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      // 编辑true,不可编辑false
 | 
	
		
			
				|  |  | +      row.Edit = true
 | 
	
		
			
				|  |  | +      row.NoEdit = false
 | 
	
		
			
				|  |  | +      // 新增false,编辑false,编辑保存true
 | 
	
		
			
				|  |  | +      row.isUpdate = false
 | 
	
		
			
				|  |  | +      row.isUpdateSave = true
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    updateData3(row,type){
 | 
	
		
			
				|  |  | +      const url = 'authdata/dailydata/edit'
 | 
	
		
			
				|  |  | +      const data = {}
 | 
	
		
			
				|  |  | +      data.pid = row.pid
 | 
	
		
			
				|  |  | +      data.weight = row.weight
 | 
	
		
			
				|  |  | +      data.sort = row.sort
 | 
	
		
			
				|  |  | +      // 饲料
 | 
	
		
			
				|  |  | +      if(type == '0'){
 | 
	
		
			
				|  |  | +        data.location = 0
 | 
	
		
			
				|  |  | +        data.fid = row.fid
 | 
	
		
			
				|  |  | +      }else{
 | 
	
		
			
				|  |  | +        // 车辆||栏舍
 | 
	
		
			
				|  |  | +        data.location = 1
 | 
	
		
			
				|  |  | +        data.fbarid = row.fbarid
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      data.date = this.table.getdataListParm.parammaps.mydate
 | 
	
		
			
				|  |  | +      data.sort = row.sort
 | 
	
		
			
				|  |  | +      postJson(url, data).then(response => {
 | 
	
		
			
				|  |  | +        if(response.msg == 'ok'){
 | 
	
		
			
				|  |  | +          this.$notify({ title: '', message: '修改成功', type: 'success', duration: 2000 })
 | 
	
		
			
				|  |  | +          this.getList2()
 | 
	
		
			
				|  |  | +          this.getList3()
 | 
	
		
			
				|  |  | +        }else{
 | 
	
		
			
				|  |  | +          this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    updateCancel3(row){
 | 
	
		
			
				|  |  | +      row.Edit = false
 | 
	
		
			
				|  |  | +      row.NoEdit = true
 | 
	
		
			
				|  |  | +      // 新增false,编辑true,编辑保存false
 | 
	
		
			
				|  |  | +      row.isCreate = false
 | 
	
		
			
				|  |  | +      row.isUpdate = true
 | 
	
		
			
				|  |  | +      row.isUpdateSave = false
 | 
	
		
			
				|  |  | +      this.getList3()
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    changeDriver(value,row){
 | 
	
		
			
				|  |  | +      const url = 'authdata/PostDataByName'
 | 
	
		
			
				|  |  | +      const data = {
 | 
	
		
			
				|  |  | +        name:'updateDownloadedplanDriver',
 | 
	
		
			
				|  |  | +        parammaps:{
 | 
	
		
			
				|  |  | +          driverId:value,
 | 
	
		
			
				|  |  | +          id:row.id
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      postJson(url, data).then(response => {
 | 
	
		
			
				|  |  | +        if(response.msg == 'ok'){
 | 
	
		
			
				|  |  | +          this.$notify({ title: '', message: '修改成功', type: 'success', duration: 2000 })
 | 
	
		
			
				|  |  | +          this.getList()
 | 
	
		
			
				|  |  | +        }else{
 | 
	
		
			
				|  |  | +          this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  </script>
 |