diff --git a/api/purchase_product_offer.js b/api/purchase_product_offer.js index 2add0e6..cdbb500 100644 --- a/api/purchase_product_offer.js +++ b/api/purchase_product_offer.js @@ -6,4 +6,7 @@ export const purchaseProductOfferLists = (data) => { //报价单提交 export const purchaseProductOfferUpdate = (data) => { return request.post('/purchase_product_offer/purchaseproductoffer/offer_update', data); +} +export const purchaseProductOfferOutboundFloatingLv = (data) => { + return request.get('/purchase_product_offer/purchaseproductoffer/outbound_floating_lv', data); } \ No newline at end of file diff --git a/config/app.js b/config/app.js index dea5d28..313fd1e 100644 --- a/config/app.js +++ b/config/app.js @@ -3,9 +3,9 @@ let WSS_URL import store from "@/store/user.js" // 环境 // let env = "dev" -// let env = "prod" +let env = "prod" // let env = "release"; -let env = "local"; +// let env = "local"; switch (env) { case 'dev': @@ -17,7 +17,7 @@ switch (env) { WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull' break; case 'local': - BASE_URL = 'http://192.168.1.22:8545'; + BASE_URL = 'http://192.168.1.7:8545'; WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull' break; default: diff --git a/pageQuota/purchase_product_offer/index.vue b/pageQuota/purchase_product_offer/index.vue index 7dc85fe..d669db7 100644 --- a/pageQuota/purchase_product_offer/index.vue +++ b/pageQuota/purchase_product_offer/index.vue @@ -60,11 +60,11 @@ - + - + @@ -78,7 +78,8 @@ } from "vue" import { purchaseProductOfferLists, - purchaseProductOfferUpdate + purchaseProductOfferUpdate, + purchaseProductOfferOutboundFloatingLv } from "@/api/purchase_product_offer.js" const menu_list = ref(['未采购', '已采购']); @@ -96,7 +97,8 @@ 'product_id': '', 'nums': '', 'price': '', - 'total_price': '' + 'total_price': '', + 'outbound_price':'' }) // tabsindex const tabIndex = ref(1) @@ -146,24 +148,19 @@ where.value.buyer_confirm = index getGoodsList() } - const columns = reactive([ - [{ - label: '雪月夜', - // 其他属性值 - id: 2021 - // ... - }, - { - label: '冷夜雨', - id: 804 - } - ] - ]); + const columns = ref([]); const pickerConfirm=(e)=>{ pickerShow.value=false - console.log(e.value[0]) + let outbound_price=(formData.value.price*e.value[0].value) + formData.value.outbound_price=(parseInt(formData.value.price)+outbound_price).toFixed(2) + } + const OutboundFloatingLv=()=>{ + purchaseProductOfferOutboundFloatingLv().then(res=>{ + columns.value=res.data + }) } getGoodsList() + OutboundFloatingLv()