分切上料修改
This commit is contained in:
@@ -116,8 +116,9 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-11 btn-submit btn-default letter-30" @tap="cancleModal">取消</button>
|
||||
<button class="zd-col-11 btn-submit btn-success letter-30" @tap="modalToSure">确认</button>
|
||||
<button class="zd-col-6 btn-submit btn-default letter-30" @tap="cancleModal">取消</button>
|
||||
<button class="zd-col-8 btn-submit btn-success letter-30" @tap="modalToSure">确认</button>
|
||||
<button class="zd-col-8 btn-submit btn-success letter-30" @tap="moveContainer">母卷转移</button>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="active" class="msg_mask"></view>
|
||||
@@ -129,7 +130,7 @@
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import UpTop from '@/components/upTop.vue'
|
||||
import {queryProductArea, feedingQueryMaterialInfo, feedingConfirm, feedingQueryPoint, feedingHandleConfirm, feedingVehicleReturn} from '@/utils/getData2.js'
|
||||
import {queryProductArea, feedingQueryMaterialInfo, feedingConfirm, feedingQueryPoint, feedingHandleConfirm, feedingVehicleReturn, moveContainer} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -302,6 +303,42 @@
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 母卷转移 */
|
||||
async moveContainer () {
|
||||
this.disabled1 = true
|
||||
if (!this.val3) {
|
||||
this.disabled1 = false
|
||||
uni.showToast({
|
||||
title: '起点不能为空',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!this.val4) {
|
||||
this.disabled1 = false
|
||||
uni.showToast({
|
||||
title: '母卷号不能为空',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await moveContainer(this.val3, this.val4)
|
||||
this.disabled1 = false
|
||||
this.active = false
|
||||
this.val3 = ''
|
||||
this.val4 = ''
|
||||
this.val5 = ''
|
||||
this.pkId = ''
|
||||
this.searchList()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 空轴送回 */
|
||||
async _feedingVehicleReturn (type) {
|
||||
this.disabled2 = true
|
||||
|
||||
Reference in New Issue
Block a user