Browse Source

标签默认高度

master
han\hanst 3 months ago
parent
commit
15fe030ad7
  1. 3
      src/api/warehouse/ifsInventoryInit.js
  2. 5
      src/views/modules/factory/partAttribute-add-or-update.vue
  3. 17
      src/views/modules/warehouse/ifsInventoryInit.vue

3
src/api/warehouse/ifsInventoryInit.js

@ -17,3 +17,6 @@ export const updatePrintQty = data => createAPI(`ifsInventoryInit/updatePrintQty
// 导入IFS库存Excel // 导入IFS库存Excel
export const uploadIfsInventoryExcel = data => createAPI(`ifsInventoryInit/uploadIfsInventoryExcel`, 'POST', data) export const uploadIfsInventoryExcel = data => createAPI(`ifsInventoryInit/uploadIfsInventoryExcel`, 'POST', data)
// 根据站点和料号查询料件属性详情
export const getPartAttributeInfo = data => createAPI('/factory/partAttribute/info', 'get', data)

5
src/views/modules/factory/partAttribute-add-or-update.vue

@ -7,7 +7,6 @@
<el-form <el-form
:model="dataForm" :model="dataForm"
:rules="dataRule"
ref="dataForm" ref="dataForm"
@keyup.enter.native="dataFormSubmit()" @keyup.enter.native="dataFormSubmit()"
label-width="120px"> label-width="120px">
@ -230,8 +229,6 @@ export default {
// //
dataFormSubmit() { dataFormSubmit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.submitLoading = true this.submitLoading = true
const submitData = { ...this.dataForm } const submitData = { ...this.dataForm }
@ -269,8 +266,6 @@ export default {
this.submitLoading = false this.submitLoading = false
}) })
} }
})
}
} }
} }
</script> </script>

17
src/views/modules/warehouse/ifsInventoryInit.vue

@ -342,7 +342,7 @@
</template> </template>
<script> <script>
import { getInventoryStockList, createHandlingUnits, batchCreateHandlingUnits, printLabel, updatePrintQty } from '@/api/warehouse/ifsInventoryInit'
import { getInventoryStockList, createHandlingUnits, batchCreateHandlingUnits, printLabel, updatePrintQty,getPartAttributeInfo } from '@/api/warehouse/ifsInventoryInit'
import IfsInventoryUploadExcel from './ifsInventory_upload_excel.vue' import IfsInventoryUploadExcel from './ifsInventory_upload_excel.vue'
export default { export default {
@ -520,8 +520,19 @@ export default {
}, },
// HU // HU
createHuHandle (row) {
async createHuHandle (row) {
this.createHuVisible = true this.createHuVisible = true
let site = row.site;
let partNo = row.partNo;
let height = '';
try {
const { data } = await getPartAttributeInfo({ site, partNo });
if (data.code === 0) {
height = data.data.height;
}
} catch (error) {
console.error('获取物料高度失败:', error);
}
this.createHuForm = { this.createHuForm = {
site: row.site, site: row.site,
warehouseId: row.warehouseId, warehouseId: row.warehouseId,
@ -536,7 +547,7 @@ export default {
perPackageQty: '', perPackageQty: '',
packageCount: '', packageCount: '',
lastPackageQty: 0, lastPackageQty: 0,
height: '',
height: height,
autoCalculate: false // autoCalculate: false //
} }
this.$nextTick(() => { this.$nextTick(() => {

Loading…
Cancel
Save