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