|
|
|
@ -62,6 +62,7 @@ import LxHeader from "@/components/LxHeader/index.vue";
|
|
|
|
// import step3 from "@/views/order/component/step3.vue";
|
|
|
|
// import step3 from "@/views/order/component/step3.vue";
|
|
|
|
import createDispatch from "@/views/order/component/createDispatch.vue";
|
|
|
|
import createDispatch from "@/views/order/component/createDispatch.vue";
|
|
|
|
import dispatchList from "@/views/order/component/dispatchList.vue";
|
|
|
|
import dispatchList from "@/views/order/component/dispatchList.vue";
|
|
|
|
|
|
|
|
import axios from "axios";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
LxHeader,
|
|
|
|
LxHeader,
|
|
|
|
@ -137,68 +138,10 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
// handleNext ({ data, step }) {
|
|
|
|
async getWeatherInfo () {
|
|
|
|
// console.log(data,step)
|
|
|
|
const res = await axios.get('https://restapi.amap.com/v3/weather/weatherInfo?city=320500&key=15ecd1e7de61e684959f43d8965a89f0')
|
|
|
|
// switch (step) {
|
|
|
|
console.log(res)
|
|
|
|
// case 1:
|
|
|
|
},
|
|
|
|
// let uid = uuid();
|
|
|
|
|
|
|
|
// this.data = data.map(equipmentId => {
|
|
|
|
|
|
|
|
// return {
|
|
|
|
|
|
|
|
// no: uid,
|
|
|
|
|
|
|
|
// equipment_id: equipmentId,
|
|
|
|
|
|
|
|
// start_time: '',
|
|
|
|
|
|
|
|
// end_time: '',
|
|
|
|
|
|
|
|
// content: '',
|
|
|
|
|
|
|
|
// level: 1,
|
|
|
|
|
|
|
|
// status: 1
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// this.currentStep = 1;
|
|
|
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
// case 2:
|
|
|
|
|
|
|
|
// this.data = data;
|
|
|
|
|
|
|
|
// this.currentStep = 2;
|
|
|
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
// case 3:
|
|
|
|
|
|
|
|
// let promiseAll = this.data.map(i => {
|
|
|
|
|
|
|
|
// delete i['equipment_id-span']
|
|
|
|
|
|
|
|
// delete i['_index']
|
|
|
|
|
|
|
|
// delete i['_rowKey']
|
|
|
|
|
|
|
|
// i.start_time = `${this.$moment().format('YYYY-MM-DD')} ${i.start_time}`;
|
|
|
|
|
|
|
|
// i.end_time = `${this.$moment().format('YYYY-MM-DD')} ${i.end_time}`;
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// return save({
|
|
|
|
|
|
|
|
// table_name: 'transfers',
|
|
|
|
|
|
|
|
// ...i
|
|
|
|
|
|
|
|
// },false)
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// let loadingInstance = this.$loading({
|
|
|
|
|
|
|
|
// lock:true,
|
|
|
|
|
|
|
|
// background:"rgba(0,0,0,0.4)",
|
|
|
|
|
|
|
|
// text:"正在加载中..."
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// Promise.all(promiseAll).then(res => {
|
|
|
|
|
|
|
|
// this.data = [];
|
|
|
|
|
|
|
|
// loadingInstance.close();
|
|
|
|
|
|
|
|
// this.currentStep = 3;
|
|
|
|
|
|
|
|
// }).catch(_ => {
|
|
|
|
|
|
|
|
// loadingInstance.close();
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// handleForward ({ data, step }) {
|
|
|
|
|
|
|
|
// switch (step) {
|
|
|
|
|
|
|
|
// case 2:
|
|
|
|
|
|
|
|
// this.data = data;
|
|
|
|
|
|
|
|
// this.currentStep = 0;
|
|
|
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
// case 3:
|
|
|
|
|
|
|
|
// this.currentStep = 1;
|
|
|
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async getWeather () {
|
|
|
|
async getWeather () {
|
|
|
|
this.weather = (await index({
|
|
|
|
this.weather = (await index({
|
|
|
|
@ -228,6 +171,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
|
|
|
|
this.getWeatherInfo()
|
|
|
|
this.getWeather()
|
|
|
|
this.getWeather()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|