|
|
|
@ -56,6 +56,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- ///////////////////////////////////////// 产地信息 ///////////////////////////////////////// -->
|
|
|
|
|
<!--
|
|
|
|
|
<div class="app-container-search main-bgcolor main-radius setting-container" v-loading="envDataLoading">
|
|
|
|
|
<div class="setting-title flex-jcenter">
|
|
|
|
|
<div class="">产地信息</div>
|
|
|
|
@ -92,8 +93,7 @@
|
|
|
|
|
v-for="item in deviceInfo.monitorObj[currentLandInfoId]"
|
|
|
|
|
:key="item.monitorCode"
|
|
|
|
|
>
|
|
|
|
|
<!--
|
|
|
|
|
<video :src="item.url" ></video>-->
|
|
|
|
|
// <video :src="item.url" ></video>
|
|
|
|
|
<Monitor v-if="currentMonitorCode == item.monitorCode" :monitorUrl="item.url" :playerId="item.monitorCode" @refresh="refreshMonitorList"/>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
@ -101,8 +101,10 @@
|
|
|
|
|
<EmptyTable />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!-- ///////////////////////////////////////// 农事活动 ///////////////////////////////////////// -->
|
|
|
|
|
<!--
|
|
|
|
|
<div class="app-container-search main-bgcolor main-radius setting-container">
|
|
|
|
|
<div class="setting-title flex-jcenter">
|
|
|
|
|
<div class="">
|
|
|
|
@ -180,7 +182,6 @@
|
|
|
|
|
<el-table-column prop="jobDate" label="作业日期">
|
|
|
|
|
<template slot-scope="{ row }">
|
|
|
|
|
<div class="flex-acenter">
|
|
|
|
|
<!-- <span>{{ row.jobDate }}</span> -->
|
|
|
|
|
<el-input v-model="row.jobDate" placeholder="请输入作业日期"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -188,7 +189,6 @@
|
|
|
|
|
<el-table-column prop="jobWorker" label="作业员工">
|
|
|
|
|
<template slot-scope="{ row }">
|
|
|
|
|
<div class="flex-acenter">
|
|
|
|
|
<!-- <span>{{ row.jobWorker }}</span> -->
|
|
|
|
|
<el-input v-model="row.jobWorker" placeholder="请输入作业员工"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -237,6 +237,7 @@
|
|
|
|
|
<EmptyTable />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!-- ///////////////////////////////////////// 商品认证 ///////////////////////////////////////// -->
|
|
|
|
|
<div class="app-container-search main-bgcolor main-radius setting-container">
|
|
|
|
@ -876,29 +877,29 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// 农事计划
|
|
|
|
|
this.farmingPlans = farmingPlans.map((item, index)=>{
|
|
|
|
|
item.isExpand = false;
|
|
|
|
|
if(index == 0) item.isExpand = true;
|
|
|
|
|
// item.scanShow = true;
|
|
|
|
|
item.tableData = [];
|
|
|
|
|
item.farmingJobs?.map((job, index) => {
|
|
|
|
|
job.indexKey = index;
|
|
|
|
|
// job.scanShow = true;
|
|
|
|
|
item.tableData.push({
|
|
|
|
|
jobType: job.operateDetails[0].content,
|
|
|
|
|
inputsName: job.operateDetails[1].content,
|
|
|
|
|
inputsBatchId: job.operateDetails[2].content,
|
|
|
|
|
jobDate: job.operateDetails[3].content,
|
|
|
|
|
jobWorker: job.operateDetails[4].content,
|
|
|
|
|
jobImage: job.operateDetails[5].content,
|
|
|
|
|
jobVideo: job.operateDetails[6].content,
|
|
|
|
|
remarks: job.operateDetails[7].content,
|
|
|
|
|
scanShow: job.scanShow,
|
|
|
|
|
indexKey: index,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
return item;
|
|
|
|
|
});
|
|
|
|
|
// this.farmingPlans = farmingPlans.map((item, index)=>{
|
|
|
|
|
// item.isExpand = false;
|
|
|
|
|
// if(index == 0) item.isExpand = true;
|
|
|
|
|
// // item.scanShow = true;
|
|
|
|
|
// item.tableData = [];
|
|
|
|
|
// item.farmingJobs?.map((job, index) => {
|
|
|
|
|
// job.indexKey = index;
|
|
|
|
|
// // job.scanShow = true;
|
|
|
|
|
// item.tableData.push({
|
|
|
|
|
// jobType: job.operateDetails[0].content,
|
|
|
|
|
// inputsName: job.operateDetails[1].content,
|
|
|
|
|
// inputsBatchId: job.operateDetails[2].content,
|
|
|
|
|
// jobDate: job.operateDetails[3].content,
|
|
|
|
|
// jobWorker: job.operateDetails[4].content,
|
|
|
|
|
// jobImage: job.operateDetails[5].content,
|
|
|
|
|
// jobVideo: job.operateDetails[6].content,
|
|
|
|
|
// remarks: job.operateDetails[7].content,
|
|
|
|
|
// scanShow: job.scanShow,
|
|
|
|
|
// indexKey: index,
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
// return item;
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// 检验检疫
|
|
|
|
|
this.inspections = inspections.map((item, index)=>{
|
|
|
|
@ -929,7 +930,7 @@
|
|
|
|
|
// 查询模板
|
|
|
|
|
this.getTraceTemplate(goodsId);
|
|
|
|
|
// 查询地块列表
|
|
|
|
|
this.getLandInfoList(belongBusinessId);
|
|
|
|
|
// this.getLandInfoList(belongBusinessId);
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
loading.close();
|
|
|
|
|
});
|
|
|
|
@ -1936,51 +1937,51 @@
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const farmingPlans = this.farmingPlans.map((plan, index) => {
|
|
|
|
|
const { tableData, } = plan;
|
|
|
|
|
const farmingJobs = plan.farmingJobs?.map((item, iIndex) => {
|
|
|
|
|
item.operateDetails.map((detail, i) => {
|
|
|
|
|
if (detail.title === '说明') {
|
|
|
|
|
detail.content = tableData[iIndex].remarks;
|
|
|
|
|
}
|
|
|
|
|
if (detail.title === "任务类型") {
|
|
|
|
|
detail.content = tableData[iIndex].jobType;
|
|
|
|
|
}
|
|
|
|
|
if (detail.title === "投入品名称") {
|
|
|
|
|
detail.content = tableData[iIndex].inputsName;
|
|
|
|
|
}
|
|
|
|
|
if (detail.title === "作业日期") {
|
|
|
|
|
detail.content = tableData[iIndex].jobDate;
|
|
|
|
|
}
|
|
|
|
|
if (detail.title === "作业员工") {
|
|
|
|
|
detail.content = tableData[iIndex].jobWorker;
|
|
|
|
|
}
|
|
|
|
|
detail.sort = i;
|
|
|
|
|
});
|
|
|
|
|
return {
|
|
|
|
|
...item,
|
|
|
|
|
scanShow: tableData[iIndex].scanShow,
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
return {
|
|
|
|
|
...plan,
|
|
|
|
|
sort: index,
|
|
|
|
|
farmingJobs,
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const envTypeConfigs = [];
|
|
|
|
|
this.landInfos?.map((land, index) => {
|
|
|
|
|
this.deviceInfo.envTypes[land.value]?.map(item => {
|
|
|
|
|
const { configId, id, } = item;
|
|
|
|
|
const srcEnvTypes = this.deviceInfo.srcEnvTypes[land.value]?.filter(src => src.id == id);
|
|
|
|
|
envTypeConfigs.push({
|
|
|
|
|
id: configId || srcEnvTypes ? srcEnvTypes[0]?.configId : null,
|
|
|
|
|
landId: land.value,
|
|
|
|
|
envTypeId: id,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
// const farmingPlans = this.farmingPlans.map((plan, index) => {
|
|
|
|
|
// const { tableData, } = plan;
|
|
|
|
|
// const farmingJobs = plan.farmingJobs?.map((item, iIndex) => {
|
|
|
|
|
// item.operateDetails.map((detail, i) => {
|
|
|
|
|
// if (detail.title === '说明') {
|
|
|
|
|
// detail.content = tableData[iIndex].remarks;
|
|
|
|
|
// }
|
|
|
|
|
// if (detail.title === "任务类型") {
|
|
|
|
|
// detail.content = tableData[iIndex].jobType;
|
|
|
|
|
// }
|
|
|
|
|
// if (detail.title === "投入品名称") {
|
|
|
|
|
// detail.content = tableData[iIndex].inputsName;
|
|
|
|
|
// }
|
|
|
|
|
// if (detail.title === "作业日期") {
|
|
|
|
|
// detail.content = tableData[iIndex].jobDate;
|
|
|
|
|
// }
|
|
|
|
|
// if (detail.title === "作业员工") {
|
|
|
|
|
// detail.content = tableData[iIndex].jobWorker;
|
|
|
|
|
// }
|
|
|
|
|
// detail.sort = i;
|
|
|
|
|
// });
|
|
|
|
|
// return {
|
|
|
|
|
// ...item,
|
|
|
|
|
// scanShow: tableData[iIndex].scanShow,
|
|
|
|
|
// };
|
|
|
|
|
// });
|
|
|
|
|
// return {
|
|
|
|
|
// ...plan,
|
|
|
|
|
// sort: index,
|
|
|
|
|
// farmingJobs,
|
|
|
|
|
// };
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// const envTypeConfigs = [];
|
|
|
|
|
// this.landInfos?.map((land, index) => {
|
|
|
|
|
// this.deviceInfo.envTypes[land.value]?.map(item => {
|
|
|
|
|
// const { configId, id, } = item;
|
|
|
|
|
// const srcEnvTypes = this.deviceInfo.srcEnvTypes[land.value]?.filter(src => src.id == id);
|
|
|
|
|
// envTypeConfigs.push({
|
|
|
|
|
// id: configId || srcEnvTypes ? srcEnvTypes[0]?.configId : null,
|
|
|
|
|
// landId: land.value,
|
|
|
|
|
// envTypeId: id,
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
const params = {
|
|
|
|
|
id,
|
|
|
|
@ -1990,9 +1991,9 @@
|
|
|
|
|
goodsInfo,
|
|
|
|
|
goodsVerifys,
|
|
|
|
|
linkInfos,
|
|
|
|
|
farmingPlans,
|
|
|
|
|
// farmingPlans,
|
|
|
|
|
inspections,
|
|
|
|
|
envTypeConfigs,
|
|
|
|
|
// envTypeConfigs,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const loading = Loading.service({ text: '加载中...', target: '.setting-main' });
|
|
|
|
|