|
|
|
@ -161,12 +161,12 @@ |
|
|
|
</el-tab-pane> |
|
|
|
|
|
|
|
<el-tab-pane label="手工装箱" name="box"> |
|
|
|
<el-button @click="oneClickPacking()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'一键装箱'}}</el-button> |
|
|
|
<el-button @click="upLoadPallet()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'导入装箱单'}}</el-button> |
|
|
|
<el-button @click="newPalletModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'装箱'}}</el-button> |
|
|
|
<el-button @click="openMergeBoxDialog()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'批量装箱'}}</el-button> |
|
|
|
<!-- <el-button @click="oneClickPacking()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'一键装箱'}}</el-button> |
|
|
|
<el-button @click="newPalletModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'装箱'}}</el-button>--> |
|
|
|
<el-button @click="openMergeBoxDialog()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'装箱'}}</el-button> |
|
|
|
<el-button @click="palletMaintenance()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'栈板维护'}}</el-button> |
|
|
|
<el-button @click="exportExcel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'导出装箱数据'}}</el-button> |
|
|
|
<el-button @click="upLoadPallet()" type="success" style="margin-left: 2px;margin-top: 0px">{{'导入装箱单'}}</el-button> |
|
|
|
<el-table ref="detailTable" |
|
|
|
:data="dataList4" |
|
|
|
:height="height" |
|
|
|
@ -601,13 +601,13 @@ |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<!-- 明细信息列(不合并) --> |
|
|
|
<el-table-column label="PO" prop="poNo" min-width="120" align="left"> |
|
|
|
<el-table-column label="PO" prop="poNo" min-width="120" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.poNo || '-' }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="PN" prop="pn" min-width="120" align="left"> |
|
|
|
<el-table-column label="PN" prop="pn" min-width="120" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.pn || '-' }}</span> |
|
|
|
</template> |
|
|
|
@ -703,7 +703,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-footer style="height:40px;margin-top: 10px;text-align:center"> |
|
|
|
<el-button type="primary" @click="savePalletMaintenance()">确定</el-button> |
|
|
|
<el-button type="primary" :loading="saveLoading" :disabled="saveLoading" @click="savePalletMaintenance()">确定</el-button> |
|
|
|
<el-button type="primary" @click="palletMaintenanceModelFlag=false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
@ -909,6 +909,7 @@ |
|
|
|
|
|
|
|
// 栈板维护相关 |
|
|
|
palletMaintenanceModelFlag: false, |
|
|
|
saveLoading: false, |
|
|
|
palletMaintenanceRecords: [], |
|
|
|
palletModelFlag:false, |
|
|
|
palletEditFlag:false, |
|
|
|
@ -4217,7 +4218,7 @@ |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.saveLoading = true |
|
|
|
// 这里只新增栈板记录,不做其他事情 |
|
|
|
let saveData = { |
|
|
|
site: this.currentRow.site, |
|
|
|
@ -4238,11 +4239,18 @@ |
|
|
|
duration: 1500, |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
this.saveLoading = false |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
this.saveLoading = false |
|
|
|
} |
|
|
|
}).catch((error) => { |
|
|
|
console.error('保存失败:', error) |
|
|
|
this.$message.error('保存失败,请重试') |
|
|
|
}).finally(() => { |
|
|
|
this.saveLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
getSummaries(param) { |
|
|
|
|