diff --git a/src/api/other/index.js b/src/api/other/index.js index 782952a..c67a211 100644 --- a/src/api/other/index.js +++ b/src/api/other/index.js @@ -32,6 +32,13 @@ export function weather (params) { }) } +export function infoStatics() { + return request({ + url: "/api/admin/other/statistic", + method: "get", + isLoading: false + }) +} export function info (data) { return request({ url: "/api/admin/other/get-daily-details-by-date", diff --git a/src/views/bigScreen1/component/detailTransfer.vue b/src/views/bigScreen1/component/detailTransfer.vue index 201800c..5350d85 100644 --- a/src/views/bigScreen1/component/detailTransfer.vue +++ b/src/views/bigScreen1/component/detailTransfer.vue @@ -372,15 +372,15 @@ export default { }, methods: { //同步被调整调令状态一致 - async setPTransferStatus () { + async setPTransferStatus (resetStatus) { if (this.data.is_adjust && this.data.to_transfer_id && this.data.to_transfer_id_transfers_id_relation && - ++this.data.status > this.data.to_transfer_id_transfers_id_relation.status) { + resetStatus > this.data.to_transfer_id_transfers_id_relation.status) { await save({ id: this.data.to_transfer_id, table_name: "transfers", - status: ++this.data.status + status: resetStatus },false) } @@ -433,7 +433,7 @@ export default { } ).then((res) => { let copyData = deepCopy(this.data); - copyData.status = this.data.status === 3 ? 4 : 6; + copyData.status = (this.data.status === 3 || this.data.tiaozhengleixing === 0) ? 4 : 6; this.data.status === 3 ? (copyData.notice_open_time = this.$moment().format('YYYY-MM-DD HH:mm')) : (copyData.notice_close_time = this.$moment().format('YYYY-MM-DD HH:mm:ss')) for (let key in copyData) { if (/_relation/g.test(key)) { @@ -447,7 +447,7 @@ export default { }, false ).then((_) => { - this.setPTransferStatus().then(_ => { + this.setPTransferStatus(copyData.status).then(_ => { this.$emit("refresh"); this.$emit('start'); }) @@ -539,7 +539,7 @@ export default { table_name: "transfers", ...copyData, },false).then((_) => { - this.setPTransferStatus().then(_ => { + this.setPTransferStatus(copyData.status).then(_ => { this.$emit("refresh"); this.$emit('start'); }) @@ -578,7 +578,7 @@ export default { table_name: "transfers", ...copyData, },false).then((_) => { - this.setPTransferStatus().then(_ => { + this.setPTransferStatus(copyData.status).then(_ => { this.$emit("refresh"); this.$emit('start'); }) diff --git a/src/views/bigScreen1/component/doing.vue b/src/views/bigScreen1/component/doing.vue index 5dc384a..6487ab2 100644 --- a/src/views/bigScreen1/component/doing.vue +++ b/src/views/bigScreen1/component/doing.vue @@ -46,7 +46,7 @@

【存在调整中指令】

- -