Commit 4d20d012 authored by yaya's avatar yaya

feat:官方估价修改优化

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