Browse Source

提交栈板

master
常熟吴彦祖 4 months ago
parent
commit
9bd2b13c01
  1. 31
      src/views/modules/automatedWarehouse/callOut.vue
  2. 18
      src/views/modules/production-return/productionReturnPDA.vue
  3. 10
      src/views/modules/production-return/productionReturnPickingDetail.vue

31
src/views/modules/automatedWarehouse/callOut.vue

@ -244,19 +244,24 @@ export default {
// Cal
console.log('Cal操作,选中的栈板:', this.selectedPallets);
this.$message.success(`正在处理栈板: ${this.selectedPallets.map(p => p.palletId).join(', ')}`);
callPalletFromWcs(this.selectedPallets).then(({ data }) => {
if (data && data.code === 0) {
this.$message.success('成功发送运输请求!');
this.cleanData()
} else {
this.$message.error(data.msg || '处理失败');
}
}).catch(error => {
console.error('处理栈板失败:', error);
this.$message.error('处理失败');
});
this.$confirm('确定进行[Call车]操作?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
callPalletFromWcs(this.selectedPallets).then(({ data }) => {
if (data && data.code === 0) {
this.$message.success('成功发送运输请求!');
this.cleanData()
} else {
this.$message.error(data.msg || '处理失败');
}
}).catch(error => {
console.error('处理栈板失败:', error);
this.$message.error('处理失败');
});
})
},
cleanData(){

18
src/views/modules/production-return/productionReturnPDA.vue

@ -65,13 +65,13 @@
<div class="return-method">
<div class="method-tabs">
<button
<button
:class="['tab-btn', { active: returnMethod === 'scan' }]"
@click="returnMethod = 'scan'"
>
扫描标签
</button>
<button
<button
:class="['tab-btn', { active: returnMethod === 'manual' }]"
@click="returnMethod = 'manual'"
>
@ -320,7 +320,7 @@
</div>
</div>
<button @click="confirmRequestReturn" class="confirm-btn"
<button @click="confirmRequestReturn" class="confirm-btn"
:disabled="!returnQty || !requestReturnForm.returnReason || !requestReturnForm.targetLocation">
确认退料并入库 (同步IFS)
</button>
@ -360,7 +360,7 @@
<script>
import {
getWorkOrderMaterials,
// getWorkOrderMaterials,
parseMaterialLabel,
directReturn,
getReturnRequestMaterials,
@ -535,7 +535,7 @@ export default {
if (response.code === 0) {
this.showMessage('退料成功,已同步到IFS', 'success')
//
if (this.directReturnForm.createLabel) {
await this.printLabel(response.returnId)
@ -594,11 +594,11 @@ export default {
this.showMessage('该物料已退料完成', 'warning')
return
}
this.selectedRequestMaterial = material
this.selectedIssueRecord = null
this.returnQty = null
//
await this.loadIssueRecords(material)
},
@ -703,7 +703,7 @@ export default {
if (response.code === 0) {
this.showMessage('退料成功,已入库并同步到IFS', 'success')
//
if (this.requestReturnForm.createLabel) {
await this.printLabel(response.returnId)
@ -1315,4 +1315,4 @@ export default {
flex-direction: column;
}
}
</style>
</style>

10
src/views/modules/production-return/productionReturnPickingDetail.vue

@ -304,9 +304,9 @@
<script>
import {
getWorkOrderMaterials,
parseMaterialLabel,
directReturn,
// getWorkOrderMaterials,
// parseMaterialLabel,
// directReturn,
getInventoryPart
} from "@/api/production/production-return";
import moment from "moment";
@ -680,7 +680,7 @@ export default {
locationId:"",
}
console.log("添加标签:",newLabel);
//
this.printLabelList.push(newLabel);
this.$message.success("操作成功");
@ -1625,4 +1625,4 @@ export default {
width: 100%;
}
}
</style>
</style>
Loading…
Cancel
Save