纸管绑定加功能
This commit is contained in:
@@ -43,9 +43,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submitbar">
|
<view class="zd-row submitbar">
|
||||||
<button class="zd-col-5 btn-submit btn-default" @tap="clearUp">清空</button>
|
<button class="zd-col-4 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1 || !index2 || !index || !index1 || !val3}" :disabled="disabled" @tap="_operateIvt('1')">绑定</button>
|
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !val1 || !index2 || !index || !index1 || !val3}" :disabled="disabled" @tap="_operateIvt('1')">绑定</button>
|
||||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1 || !index2 || !index || !index1 || !val3}" :disabled="disabled" @tap="_operateIvt('2')">清除</button>
|
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !val1 || !index2 || !index || !index1 || !val3}" :disabled="disabled" @tap="_operateIvt('2')">清除</button>
|
||||||
|
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !val1}" :disabled="disabled1" @tap="_callCheckTube">检测</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -54,7 +55,7 @@
|
|||||||
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 {queryPaperMaterial} from '@/utils/getData2.js'
|
import {queryPaperMaterial} from '@/utils/getData2.js'
|
||||||
import {operateIvt} from '@/utils/getData3.js'
|
import {operateIvt, callCheckTube} from '@/utils/getData3.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -72,7 +73,8 @@
|
|||||||
options: [],
|
options: [],
|
||||||
index: '',
|
index: '',
|
||||||
newoptions: [],
|
newoptions: [],
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
disabled1: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
@@ -142,6 +144,24 @@
|
|||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async _callCheckTube () {
|
||||||
|
this.disabled1 = true
|
||||||
|
if (!this.val1) {
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await callCheckTube(this.val1)
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.clearUp()
|
||||||
|
this.disabled1 = false
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled1 = false
|
||||||
|
}
|
||||||
|
},
|
||||||
clearUp () {
|
clearUp () {
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val3 = ''
|
this.val3 = ''
|
||||||
|
|||||||
@@ -175,6 +175,10 @@ export const operateIvt = (type, vcode, num, qty, code, point) => request({
|
|||||||
url:'api/bstIvtStockingivt/operateIvt',
|
url:'api/bstIvtStockingivt/operateIvt',
|
||||||
data: {type: type, vehicle_code: vcode, row_num: num, qty: qty, material_code: code, point_code: point}
|
data: {type: type, vehicle_code: vcode, row_num: num, qty: qty, material_code: code, point_code: point}
|
||||||
})
|
})
|
||||||
|
export const callCheckTube = (vcode) => request({
|
||||||
|
url:'api/bstIvtStockingivt/callCheckTube',
|
||||||
|
data: {vehicle_code: vcode}
|
||||||
|
})
|
||||||
/**
|
/**
|
||||||
* 分切暂存下料
|
* 分切暂存下料
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user