This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
<text>实付: </text>
|
||||
<text class="submit-amount">¥{{ actualAmount.toFixed(2) }}</text>
|
||||
</view>
|
||||
<button class="submit-btn" @click="createOrder">创建订单</button>
|
||||
<button class="submit-btn" @click="createOrder">{{ editingOrderId ? '保存订单' : '创建订单' }}</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -196,7 +196,9 @@ export default {
|
||||
this.loadProducts()
|
||||
if (options.orderId) {
|
||||
this.editingOrderId = options.orderId
|
||||
// 编辑模式:等客户列表加载完成后再加载订单
|
||||
// 编辑模式
|
||||
uni.setNavigationBarTitle({ title: '编辑订单' })
|
||||
// 等客户列表加载完成后再加载订单
|
||||
setTimeout(() => {
|
||||
this.loadOrder(options.orderId)
|
||||
}, 500)
|
||||
|
||||
Reference in New Issue
Block a user