修改纸管绑定
This commit is contained in:
@@ -12,6 +12,14 @@
|
|||||||
<search-box v-model="val1" />
|
<search-box v-model="val1" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label_wraper">
|
||||||
|
<span class="filter_label">点位</span>
|
||||||
|
</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<search-box v-model="val3" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">排数</view>
|
<view class="filter_label">排数</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
@@ -36,8 +44,8 @@
|
|||||||
</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-5 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1 || !val2 || !index || !index1}" :disabled="disabled" @tap="_operateIvt('1')">绑定</button>
|
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1 || !val2 || !index || !index1 || !val3}" :disabled="disabled" @tap="_operateIvt('1')">绑定</button>
|
||||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1 || !val2 || !index || !index1}" :disabled="disabled" @tap="_operateIvt('2')">清除</button>
|
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1 || !val2 || !index || !index1 || !val3}" :disabled="disabled" @tap="_operateIvt('2')">清除</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -56,6 +64,7 @@
|
|||||||
return {
|
return {
|
||||||
title: '',
|
title: '',
|
||||||
val1: '',
|
val1: '',
|
||||||
|
val3: '',
|
||||||
options1: [{value: '1', text: '1'}, {value: '2', text: '2'}, {value: '3', text: '3'}, {value: '4', text: '4'}, {value: '5', text: '5'}],
|
options1: [{value: '1', text: '1'}, {value: '2', text: '2'}, {value: '3', text: '3'}, {value: '4', text: '4'}, {value: '5', text: '5'}],
|
||||||
index1: '',
|
index1: '',
|
||||||
val2: '',
|
val2: '',
|
||||||
@@ -108,12 +117,12 @@
|
|||||||
},
|
},
|
||||||
async _operateIvt (type) {
|
async _operateIvt (type) {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || !this.val2 || !this.index || !this.index1) {
|
if (!this.val1 || !this.val2 || !this.index || !this.index1 || !this.val3) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await operateIvt(type, this.val1, this.index1, this.val2, this.index)
|
let res = await operateIvt(type, this.val1, this.index1, this.val2, this.index, this.val3)
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
@@ -163,9 +163,9 @@ export const updatePackageInfo = (ivt, cn, code) => request({
|
|||||||
/**
|
/**
|
||||||
* 纸管绑定
|
* 纸管绑定
|
||||||
*/
|
*/
|
||||||
export const operateIvt = (type, vcode, num, qty, code) => request({
|
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}
|
data: {type: type, vehicle_code: vcode, row_num: num, qty: qty, material_code: code, point_code: point}
|
||||||
})
|
})
|
||||||
/**
|
/**
|
||||||
* 分切暂存下料
|
* 分切暂存下料
|
||||||
|
|||||||
Reference in New Issue
Block a user