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