将coilId的存储模式改成string

This commit is contained in:
2025-10-29 13:37:07 +08:00
parent fb1630aaba
commit 76c98b8ede
3 changed files with 80 additions and 80 deletions

View File

@@ -208,21 +208,21 @@
</template>
<script>
import { getGenerateRecord } from '@/api/wms/code.js'
import { getGenerateRecord } from '@/api/wms/code.js'
import { updateMaterialCoil, getMaterialCoil, getMaterialCoilTrace } from '@/api/wms/coil.js'
import { listWarehouse } from '@/api/wms/warehouse.js'
import { getRawMaterial } from '@/api/wms/rawMaterial.js'
export default {
data() {
return {
form: {
coilId: undefined,
export default {
data() {
return {
form: {
coilId: undefined,
itemType: '',
itemId: undefined,
itemId: undefined,
team: '',
currentCoilNo: '',
warehouseId: undefined,
warehouseId: undefined,
warehouseName: '',
grossWeight: '',
netWeight: ''
@@ -337,8 +337,8 @@ export default {
},
// 扫码
handleScan() {
uni.scanCode({
handleScan() {
uni.scanCode({
success: async (res) => {
console.log('扫码结果:', res.result);
try {
@@ -421,7 +421,7 @@ export default {
}
console.log('钢卷详情:', coilData);
uni.showToast({
uni.showToast({
title: '扫码成功',
icon: 'success'
});
@@ -436,9 +436,9 @@ export default {
},
fail: (err) => {
console.error('扫码失败:', err);
uni.showToast({
title: '扫码失败,请重试',
icon: 'none'
uni.showToast({
title: '扫码失败,请重试',
icon: 'none'
});
}
});
@@ -489,7 +489,7 @@ export default {
},
// 提交
handleConfirm() {
handleConfirm() {
// 历史数据不允许修改
if (this.coilDetail.dataType === 0) {
uni.showToast({ title: '历史数据不允许修改', icon: 'none' });
@@ -522,9 +522,9 @@ export default {
updateMaterialCoil(submitData).then(res => {
if (res.code === 200) {
uni.showToast({
uni.showToast({
title: '保存成功',
icon: 'success'
icon: 'success'
});
setTimeout(() => {
this.handleReset();
@@ -535,18 +535,18 @@ export default {
icon: 'none'
});
}
}).catch(err => {
}).catch(err => {
console.error('提交失败:', err);
uni.showToast({
uni.showToast({
title: '保存失败,请重试',
icon: 'none'
icon: 'none'
});
}).finally(() => {
this.loading = false;
});
}
}
}
}
</script>
<style scoped lang="scss">
@@ -868,7 +868,7 @@ export default {
border-bottom: 1rpx solid #f0f0f0;
.popup-title {
font-size: 32rpx;
font-size: 32rpx;
color: #333;
font-weight: 600;
}
@@ -889,7 +889,7 @@ export default {
border-bottom: 1rpx solid #f0f0f0;
.search-input {
width: 100%;
width: 100%;
height: 80rpx;
padding: 0 20rpx;
background: #f8f9fa;
@@ -931,7 +931,7 @@ export default {
}
.warehouse-check {
font-size: 32rpx;
font-size: 32rpx;
color: #007aff;
font-weight: bold;
}
@@ -970,7 +970,7 @@ export default {
.action-buttons {
display: flex;
gap: 20rpx;
margin-top: 30rpx;
margin-top: 30rpx;
.btn {
flex: 1;
@@ -1095,5 +1095,5 @@ export default {
font-size: 28rpx;
}
}
}
}
</style>