Commit e851949e authored by dragondean@qq.com's avatar dragondean@qq.com

修复订单bug

parent c1b6ae76
...@@ -77,9 +77,9 @@ export default { ...@@ -77,9 +77,9 @@ export default {
</label> </label>
</radio-group> </radio-group>
</view> </view>
<view class="flex action" v-if="!readonly"> <view class="flex action">
<button @click="close">{{$lang.lang.create.cancel}}</button> <button @click="close">{{readonly ? $lang.lang.order.confirm : $lang.lang.create.cancel}}</button>
<button @click="submit" type="primary">{{$lang.lang.create.submit}}</button> <button @click="submit" type="primary" v-if="!readonly">{{$lang.lang.create.submit}}</button>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
......
...@@ -2033,6 +2033,8 @@ ...@@ -2033,6 +2033,8 @@
if(harvestIndex > -1){ if(harvestIndex > -1){
this.currentHarvestIndex = harvestIndex this.currentHarvestIndex = harvestIndex
} }
this.hasConsignee = res.data.hasConsignee
} }
}) })
}, },
...@@ -2093,7 +2095,8 @@ ...@@ -2093,7 +2095,8 @@
}, },
async updateOrder(){ async updateOrder(){
await this.validateCountryAndAreaCode() await this.validateCountryAndAreaCode()
this.$request.put('/app-api/my/order/update',this.params).then(res => { this.params.hasConsignee = this.hasConsignee
this.$request.put('/app-api/my/order/update', this.params).then(res => {
this.isClick = false this.isClick = false
if(res.code == 0){ if(res.code == 0){
this.params = { this.params = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment