Commit 4d20d012 authored by yaya's avatar yaya

feat:官方估价修改优化

parent cdecd627
......@@ -65,7 +65,7 @@ export default {
if (valid) {
updateOfficialEstimatedPrice(params)
.then(response => {
this.$emit('refreshList')
this.$emit('refreshList', this.itemId, this.logisticForm.officialEstimatedPrice)
this.$emit('cancelDialog')
})
.catch(response => {
......
......@@ -152,10 +152,11 @@
v-if="isShowPreview"
:imglist="imagesPreviewList" />
<EvaluatePriceDialog
v-if="isShowEvaluatePriceDialog"
:official-price-dialog-show="isShowEvaluatePriceDialog"
:item-id="currentItemId"
@cancelDialog="handleCancelEvaluateDialog"
@refreshList="getList"
@refreshList="handleRefreshPrice"
/>
</div>
......@@ -216,6 +217,17 @@ export default {
this.isShowEvaluatePriceDialog = false
this.currentItemId = ''
},
handleRefreshPrice(itemId, price) {
if (this.list) {
this.list = this.list.filter((item) => {
if (item.id === itemId) {
item.officialEstimatedPrice = price
return item
}
return item
})
}
},
/**
* 设置不可选中
*/
......
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