feat: 更新应用版本至1.3.17并添加钢卷导出功能

- 在config.js、manifest.json和version.json中更新版本号至1.3.17
- 新增钢卷导出API接口
- 在接收和编辑页面添加长度输入字段
- 修改钢卷发货逻辑,增加质量状态校验并使用新的导出接口
This commit is contained in:
砂糖
2025-12-29 17:32:36 +08:00
parent fa37b697e6
commit 3da3488189
7 changed files with 32 additions and 8 deletions

View File

@@ -68,3 +68,10 @@ export function getMaterialCoilTrace(enterCoilNo, currentCoilNo) {
}
})
}
export function exportCoil(coilId) {
return request({
url: '/wms/materialCoil/exportCoil/' + coilId,
method: 'get'
})
}

View File

@@ -8,7 +8,7 @@ module.exports = {
// 应用名称
name: "ruoyi-app",
// 应用版本
version: "1.3.16",
version: "1.3.17",
// 应用logo
logo: "/static/logo.jpg",
// 官方网站

View File

@@ -2,7 +2,7 @@
"name" : "科伦普",
"appid" : "__UNI__E781B49",
"description" : "",
"versionName" : "1.3.16",
"versionName" : "1.3.17",
"versionCode" : 1,
"transformPx" : false,
"app-plus" : {

View File

@@ -122,7 +122,8 @@
getMaterialCoil,
updateMaterialCoilSimple,
listMaterialCoil,
updateMaterialCoil
updateMaterialCoil,
exportCoil
} from '@/api/wms/coil.js'
import {
addPendingAction
@@ -400,11 +401,13 @@
showCancel: true,
success: async () => {
try {
// 判断钢卷的质量状态必须是A+, AA-, B+其中之一
if (!['A+', 'A', 'A-', 'B+'].includes(coilRes.data.qualityStatus)) {
this.$message.warning('钢卷质量状态需在B+及以上');
return;
}
// 1. 更新钢卷状态为已发货
await updateMaterialCoilSimple({
...coilRes.data,
status: 1,
});
await exportCoil(coilRes.data.coilId);
// 2. 插入一条已完成的待操作记录
await addPendingAction({

View File

@@ -61,6 +61,13 @@
<input v-model="form.netWeight" type="digit" placeholder="请输入净重(选填)" class="form-input"
:disabled="coilDetail.dataType === 0" :class="{ 'form-input-disabled': coilDetail.dataType === 0 }" />
</view>
<!-- 长度 -->
<view class="form-item form-item-optional">
<text class="form-label-optional">长度 ()</text>
<input v-model="form.length" type="digit" placeholder="请输入长度(选填)" class="form-input"
:disabled="coilDetail.dataType === 0" :class="{ 'form-input-disabled': coilDetail.dataType === 0 }" />
</view>
<!-- 操作者信息 -->
<view class="operator-info">

View File

@@ -97,6 +97,13 @@
<input v-model="form.netWeight" type="digit" placeholder="请输入净重(选填)" class="form-input"
:disabled="form.dataType === 0" :class="{ 'form-input-disabled': form.dataType === 0 }" />
</view>
<!-- 长度 -->
<view class="form-item form-item-optional">
<text class="form-label-optional">长度 ()</text>
<input v-model="form.length" type="digit" placeholder="请输入长度(选填)" class="form-input"
:disabled="form.dataType === 0" :class="{ 'form-input-disabled': form.dataType === 0 }" />
</view>
<!-- 操作者信息 -->
<view class="operator-info">

View File

@@ -1,5 +1,5 @@
{
"version": "klp 1.3.16",
"version": "klp 1.3.17",
"wgtUrl": "http://49.232.154.205:10900/fadapp-update/klp/klp.wgt",
"apkUrl": "http://49.232.154.205:10900/fadapp-update/klp/klp.apk"
}