空载具管理
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="submit-bar">
|
<view class="submit-bar">
|
||||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled1" @tap="_inCoolIvt">入库</button>
|
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled1" @tap="_emptyVehiclepointOperate">入库</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import { inCoolIvt} from '@/utils/getData1.js'
|
import {emptyVehiclepointOperate} from '@/utils/getData1.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -42,7 +42,6 @@
|
|||||||
val2: '',
|
val2: '',
|
||||||
val3: '',
|
val3: '',
|
||||||
val4: '',
|
val4: '',
|
||||||
disabled: false,
|
|
||||||
disabled1: false
|
disabled1: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -50,14 +49,14 @@
|
|||||||
handleChange (e) {
|
handleChange (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
},
|
},
|
||||||
async _inCoolIvt () {
|
async _emptyVehiclepointOperate () {
|
||||||
this.disabled1 = true
|
this.disabled1 = true
|
||||||
if (!this.val1 || !this.val2) {
|
if (!this.val1 || !this.val2) {
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await inCoolIvt(this.val1, this.val2)
|
let res = await emptyVehiclepointOperate(this.val1, this.val2, '1')
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
@@ -8,7 +8,11 @@
|
|||||||
<span class="filter_label">站点码</span>
|
<span class="filter_label">站点码</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<search-box v-model="val1" />
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
:seaShow="true"
|
||||||
|
@toSearch="toSearch"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
@@ -22,7 +26,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="submit-bar">
|
<view class="submit-bar">
|
||||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled1" @tap="_inCoolIvt">出库</button>
|
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled1" @tap="_emptyVehiclepointOperate">出库</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -30,7 +34,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import { inCoolIvt} from '@/utils/getData1.js'
|
import {emptyVehiclepointOperate, emptyVehiclepointStatusQuery} from '@/utils/getData1.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -42,7 +46,6 @@
|
|||||||
val2: '',
|
val2: '',
|
||||||
val3: '',
|
val3: '',
|
||||||
val4: '',
|
val4: '',
|
||||||
disabled: false,
|
|
||||||
disabled1: false
|
disabled1: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -50,14 +53,25 @@
|
|||||||
handleChange (e) {
|
handleChange (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
},
|
},
|
||||||
async _inCoolIvt () {
|
toSearch (e) {
|
||||||
|
this._emptyVehiclepointStatusQuery()
|
||||||
|
},
|
||||||
|
/** 查询 */
|
||||||
|
async _emptyVehiclepointStatusQuery () {
|
||||||
|
if (!this.val1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
let res = await emptyVehiclepointStatusQuery(this.val1)
|
||||||
|
this.val2 = res.data.vehicle_code
|
||||||
|
},
|
||||||
|
async _emptyVehiclepointOperate () {
|
||||||
this.disabled1 = true
|
this.disabled1 = true
|
||||||
if (!this.val1 || !this.val2) {
|
if (!this.val1 || !this.val2) {
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await inCoolIvt(this.val1, this.val2)
|
let res = await emptyVehiclepointOperate(this.val1, this.val2, '0')
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
Reference in New Issue
Block a user