分切上料修改

This commit is contained in:
2025-12-09 18:05:35 +08:00
parent 798e63731b
commit 05f5eb6020
3 changed files with 50 additions and 6 deletions

View File

@@ -2,8 +2,8 @@
"name" : "海亮铜箔",
"appid" : "__UNI__3A002CD",
"description" : "海亮铜箔二期手持系统",
"versionName" : "1.4.6",
"versionCode" : 146,
"versionName" : "1.4.1",
"versionCode" : 141,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@@ -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

View File

@@ -418,7 +418,14 @@ export const feedingVehicleReturn = (code, type) => request({
type: type
}
})
// 1.6母卷转移
export const moveContainer = (code, cn) => request({
url:'api/pda/feeding/moveContainer',
data: {
point_code: code,
container_name: cn,
}
})
/**
* 任务管理
*/