新增出库价格计算功能和环境配置调整
- 添加计算出库价格的功能,通过选择不同的价格级别来计算出库价 - 新增接口调用来获取出库价格浮动等级 - 更新环境配置,将本地URL从192.168.1.22更改为192.168.1.7 - 修复一些UI问题,如出库价格输入框的显示和交互
This commit is contained in:
parent
5d9c009be6
commit
659d89522c
|
@ -7,3 +7,6 @@ export const purchaseProductOfferLists = (data) => {
|
||||||
export const purchaseProductOfferUpdate = (data) => {
|
export const purchaseProductOfferUpdate = (data) => {
|
||||||
return request.post('/purchase_product_offer/purchaseproductoffer/offer_update', 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);
|
||||||
|
}
|
|
@ -3,9 +3,9 @@ let WSS_URL
|
||||||
import store from "@/store/user.js"
|
import store from "@/store/user.js"
|
||||||
// 环境
|
// 环境
|
||||||
// let env = "dev"
|
// let env = "dev"
|
||||||
// let env = "prod"
|
let env = "prod"
|
||||||
// let env = "release";
|
// let env = "release";
|
||||||
let env = "local";
|
// let env = "local";
|
||||||
|
|
||||||
switch (env) {
|
switch (env) {
|
||||||
case 'dev':
|
case 'dev':
|
||||||
|
@ -17,7 +17,7 @@ switch (env) {
|
||||||
WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull'
|
WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull'
|
||||||
break;
|
break;
|
||||||
case 'local':
|
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'
|
WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull'
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -60,11 +60,11 @@
|
||||||
<up-input v-model="formData.total_price"></up-input>
|
<up-input v-model="formData.total_price"></up-input>
|
||||||
</up-form-item>
|
</up-form-item>
|
||||||
<up-form-item label="出库价">
|
<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-item>
|
||||||
</up-form>
|
</up-form>
|
||||||
</up-modal>
|
</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>
|
||||||
</view>
|
</view>
|
||||||
|
@ -78,7 +78,8 @@
|
||||||
} from "vue"
|
} from "vue"
|
||||||
import {
|
import {
|
||||||
purchaseProductOfferLists,
|
purchaseProductOfferLists,
|
||||||
purchaseProductOfferUpdate
|
purchaseProductOfferUpdate,
|
||||||
|
purchaseProductOfferOutboundFloatingLv
|
||||||
} from "@/api/purchase_product_offer.js"
|
} from "@/api/purchase_product_offer.js"
|
||||||
const menu_list = ref(['未采购', '已采购']);
|
const menu_list = ref(['未采购', '已采购']);
|
||||||
|
|
||||||
|
@ -96,7 +97,8 @@
|
||||||
'product_id': '',
|
'product_id': '',
|
||||||
'nums': '',
|
'nums': '',
|
||||||
'price': '',
|
'price': '',
|
||||||
'total_price': ''
|
'total_price': '',
|
||||||
|
'outbound_price':''
|
||||||
})
|
})
|
||||||
// tabsindex
|
// tabsindex
|
||||||
const tabIndex = ref(1)
|
const tabIndex = ref(1)
|
||||||
|
@ -146,24 +148,19 @@
|
||||||
where.value.buyer_confirm = index
|
where.value.buyer_confirm = index
|
||||||
getGoodsList()
|
getGoodsList()
|
||||||
}
|
}
|
||||||
const columns = reactive([
|
const columns = ref([]);
|
||||||
[{
|
|
||||||
label: '雪月夜',
|
|
||||||
// 其他属性值
|
|
||||||
id: 2021
|
|
||||||
// ...
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '冷夜雨',
|
|
||||||
id: 804
|
|
||||||
}
|
|
||||||
]
|
|
||||||
]);
|
|
||||||
const pickerConfirm=(e)=>{
|
const pickerConfirm=(e)=>{
|
||||||
pickerShow.value=false
|
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()
|
getGoodsList()
|
||||||
|
OutboundFloatingLv()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
Loading…
Reference in New Issue