优化
This commit is contained in:
+2
-10
@@ -113,14 +113,6 @@
|
||||
|
||||
// ===== 保存 =====
|
||||
const handleSave = async () => {
|
||||
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({
|
||||
url: '/pipe/packaging/detail?id' + res.data.id
|
||||
})
|
||||
}, 1500)
|
||||
return
|
||||
|
||||
if (!form.value.StackingPosition) {
|
||||
uni.showToast({
|
||||
title: '请输入预制工作包',
|
||||
@@ -149,11 +141,11 @@
|
||||
if (res.code === 1 || res.data) {
|
||||
uni.showToast({
|
||||
title: '保存成功',
|
||||
icon: 'success'
|
||||
icon: 'none'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({
|
||||
url: '/pipe/packaging/detail?id' + res.data.id
|
||||
url: '/pipe/packaging/detail?id=' + res.data.id
|
||||
})
|
||||
}, 1500)
|
||||
}
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
</text>
|
||||
</view>
|
||||
<view class="card-body">
|
||||
<view class="card-row">
|
||||
<!-- <view class="card-row">
|
||||
<text class="row-label">包装单位</text>
|
||||
<text class="row-value">{{ item.UnitName || '--' }}</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="card-row">
|
||||
<text class="row-label">预制工作包</text>
|
||||
<text class="row-value">{{ item.StackingPosition || '--' }}</text>
|
||||
|
||||
Reference in New Issue
Block a user