|
|
@@ -279,6 +279,18 @@
|
|
|
@click="handleGetUd5"
|
|
|
>云养牛撒料上传</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ v-if="dataSynchronization4.isDataSynchronization && isRoleEdit"
|
|
|
+ class="success"
|
|
|
+ @click="handleGetYmy6"
|
|
|
+ >搅拌上传</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-if="dataSynchronization4.isDataSynchronization && isRoleEdit"
|
|
|
+ class="success"
|
|
|
+ @click="handleGetYmy7"
|
|
|
+ >撒料上传</el-button
|
|
|
+ >
|
|
|
<!-- v-if="isRoleEdit && ispalyUdYyn" -->
|
|
|
</div>
|
|
|
<!-- 日执行计划 -->
|
|
|
@@ -312,7 +324,7 @@
|
|
|
/>
|
|
|
<el-table-column label="计划id" min-width="90px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.id }}</span>
|
|
|
+ <span>{{ scope.row.downloadedplanId }}/{{scope.row.id }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
@@ -2065,6 +2077,20 @@
|
|
|
@click="udData5()"
|
|
|
>确认</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ class="save"
|
|
|
+ v-else-if="sapUpload.dialogStatus == 'udload6'"
|
|
|
+ :disabled="isokDisable"
|
|
|
+ @click="udData6()"
|
|
|
+ >确认</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ class="save"
|
|
|
+ v-else-if="sapUpload.dialogStatus == 'udload7'"
|
|
|
+ :disabled="isokDisable"
|
|
|
+ @click="udData7()"
|
|
|
+ >确认</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
@@ -2354,6 +2380,22 @@ export default {
|
|
|
},
|
|
|
isDataSynchronization: false,
|
|
|
},
|
|
|
+ dataSynchronization4: {
|
|
|
+ dialogFormVisible: false,
|
|
|
+ dialogStatus: "",
|
|
|
+ getdataListParm: {
|
|
|
+ name: "getSysoptEnable",
|
|
|
+ page: 1,
|
|
|
+ offset: 1,
|
|
|
+ pagecount: 1,
|
|
|
+ returntype: "Map",
|
|
|
+ parammaps: {
|
|
|
+ pastureid: Cookies.get("pastureid"),
|
|
|
+ inforname: "ymySync",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ isDataSynchronization: false,
|
|
|
+ },
|
|
|
textMap: {
|
|
|
newGeneration: "新生成",
|
|
|
historyRecord: "历史记录",
|
|
|
@@ -2366,6 +2408,8 @@ export default {
|
|
|
udload3: "撒料上传",
|
|
|
udload4: "云养牛搅拌数据上传",
|
|
|
udload5: "云养牛撒料上传",
|
|
|
+ udload6: "搅拌数据上传",
|
|
|
+ udload7: "撒料上传"
|
|
|
},
|
|
|
isokDisable: false,
|
|
|
requestParam: {},
|
|
|
@@ -2454,6 +2498,7 @@ export default {
|
|
|
this.getDataSynchronization();
|
|
|
this.getDataSynchronization2();
|
|
|
this.getDataSynchronization3();
|
|
|
+ this.getDataSynchronization4();
|
|
|
this.getButtons();
|
|
|
this.getList();
|
|
|
this.getDownList();
|
|
|
@@ -2497,6 +2542,28 @@ export default {
|
|
|
this.checkDateDifference(value[0], value[1]);
|
|
|
}
|
|
|
},
|
|
|
+ udData7() {
|
|
|
+ if (this.dateRange.length >= 2) {
|
|
|
+ this.sendRequests(
|
|
|
+ this.dateRange[0],
|
|
|
+ this.dateRange[1],
|
|
|
+ "/authdata/ymy/materialissuepush"
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ this.$message.warning("请选择日期时间");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ udData6() {
|
|
|
+ if (this.dateRange.length >= 2) {
|
|
|
+ this.sendRequests(
|
|
|
+ this.dateRange[0],
|
|
|
+ this.dateRange[1],
|
|
|
+ "/authdata/ymy/utirpush"
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ this.$message.warning("请选择日期时间");
|
|
|
+ }
|
|
|
+ },
|
|
|
udData5() {
|
|
|
if (this.dateRange.length >= 2) {
|
|
|
this.sendRequests(
|
|
|
@@ -2629,6 +2696,19 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
|
|
|
+ getDataSynchronization4() {
|
|
|
+ GetDataByName(this.dataSynchronization4.getdataListParm).then(
|
|
|
+ (response) => {
|
|
|
+ // console.log(response.data.list[0])
|
|
|
+ if (response.data.list[0].inforvalue == 0) {
|
|
|
+ this.dataSynchronization4.isDataSynchronization = false;
|
|
|
+ } else {
|
|
|
+ this.dataSynchronization4.isDataSynchronization = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
+
|
|
|
form_updata() {
|
|
|
var send_data = {
|
|
|
name: "syncSCJH",
|
|
|
@@ -4939,6 +5019,16 @@ export default {
|
|
|
this.sapUpload.dialogFormVisible = true;
|
|
|
},
|
|
|
|
|
|
+ handleGetYmy6() {
|
|
|
+ this.sapUpload.dialogStatus = "udload6";
|
|
|
+ this.sapUpload.dialogFormVisible = true;
|
|
|
+ },
|
|
|
+
|
|
|
+ handleGetYmy7() {
|
|
|
+ this.sapUpload.dialogStatus = "udload7";
|
|
|
+ this.sapUpload.dialogFormVisible = true;
|
|
|
+ },
|
|
|
+
|
|
|
udData1() {
|
|
|
this.$refs["sapUpload"].validate((valid) => {
|
|
|
if (valid) {
|