新增出库价格计算功能和环境配置调整

- 添加计算出库价格的功能,通过选择不同的价格级别来计算出库价
- 新增接口调用来获取出库价格浮动等级
- 更新环境配置,将本地URL从192.168.1.22更改为192.168.1.7
- 修复一些UI问题,如出库价格输入框的显示和交互
This commit is contained in:
mkm 2024-10-11 22:40:45 +08:00
parent 5d9c009be6
commit 659d89522c
3 changed files with 21 additions and 21 deletions

View File

@ -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);
}

View File

@ -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:

View File

@ -60,11 +60,11 @@
<up-input v-model="formData.total_price"></up-input>
</up-form-item>
<up-form-item label="出库价">
<up-input @click="pickerShow=true"></up-input>
<up-input @click="pickerShow=true" v-model="formData.outbound_price"></up-input>
</up-form-item>
</up-form>
</up-modal>
<up-picker :show="pickerShow" :columns="columns" keyName="label" @confirm="pickerConfirm"></up-picker>
<up-picker :show="pickerShow" :columns="columns" keyName="name" @confirm="pickerConfirm" @cancel="pickerShow=false"></up-picker>
</view>
</view>
@ -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()
</script>
<style lang="scss">