优化代码
This commit is contained in:
parent
0ff138613f
commit
f7abec5e77
|
@ -34,7 +34,7 @@
|
|||
>
|
||||
<get-action
|
||||
:order="v"
|
||||
@postPrice="postPrice(v.id)"
|
||||
@postPrice="showPostPriceModal(v.id)"
|
||||
@getOrder="getOrder({ id: v.id, listType: v.listType })"
|
||||
/>
|
||||
</view>
|
||||
|
@ -58,7 +58,7 @@
|
|||
<text class="text">刷新列表</text>
|
||||
</view>
|
||||
</view>
|
||||
<get-post-price v-show="showPriceModal" @close="showPriceModal = false" @post="rcvPostPrice" />
|
||||
<get-post-price v-show="showPriceModal" @close="showPriceModal = false" @post="postPrice" />
|
||||
</app-layout>
|
||||
</template>
|
||||
|
||||
|
@ -177,14 +177,14 @@ export default {
|
|||
/**
|
||||
* 报价
|
||||
*/
|
||||
postPrice(id) {
|
||||
showPostPriceModal(id) {
|
||||
this.$store.commit("order/setPostId", id);
|
||||
this.showPriceModal = true;
|
||||
},
|
||||
/**
|
||||
* 确认价格
|
||||
*/
|
||||
rcvPostPrice(e) {
|
||||
postPrice(e) {
|
||||
this.showPriceModal = false;
|
||||
this.getOrder({
|
||||
id: e.id,
|
||||
|
|
Loading…
Reference in New Issue