外包材
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<!-- 产线转运 -->
|
||||
<!-- 点对点转运 -->
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
@@ -40,8 +40,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
// import {queryVehicleType} from '@/utils/mork2.js'
|
||||
import {queryVehicleType, createTask} from '@/utils/getData2.js'
|
||||
import {createTask} from '@/utils/getData3.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -50,34 +49,18 @@
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
vehicleCode: null,
|
||||
code1: '',
|
||||
code2: '',
|
||||
options: [],
|
||||
options: [{text:'普通任务', value: '1'}],
|
||||
index: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
this._queryVehicleType()
|
||||
},
|
||||
methods: {
|
||||
/** 下拉框*/
|
||||
async _queryVehicleType () {
|
||||
try {
|
||||
let res = await queryVehicleType()
|
||||
if (res && res.data.length > 0) {
|
||||
this.options = [...res.data]
|
||||
} else {
|
||||
this.options = []
|
||||
}
|
||||
} catch (e) {
|
||||
this.options = []
|
||||
}
|
||||
},
|
||||
toEmpty () {
|
||||
this.vehicleCode = null
|
||||
this.code1 = ''
|
||||
this.code2 = ''
|
||||
this.index = ''
|
||||
@@ -90,7 +73,7 @@
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await createTask(this.vehicleCode, this.code1, this.code2, this.index)
|
||||
let res = await createTask(this.code1, this.code2, this.index)
|
||||
if (res) {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
Reference in New Issue
Block a user