|
|
|
@ -578,7 +578,7 @@
|
|
|
|
|
:min="0" |
|
|
|
|
:precision="2" |
|
|
|
|
:step="0.1" |
|
|
|
|
@change="handleComputed(item)" |
|
|
|
|
@change="handleComputed(item, true)" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
@ -1985,7 +1985,7 @@ const handleFindGoods = async (goodsName, item, isClearId = 0) => {
|
|
|
|
|
* row -- 行数据 |
|
|
|
|
* onlyComputedTrunline -- 是否只计算干线的价格 |
|
|
|
|
*/ |
|
|
|
|
const handleComputed = (row: any) => { |
|
|
|
|
const handleComputed = (row: any, onlyComputedTrunline = false) => { |
|
|
|
|
const { template, trunkLine } = details.priceTemplate; |
|
|
|
|
|
|
|
|
|
if (Boolean(isDisabled.value && template && trunkLine)) |
|
|
|
@ -2290,7 +2290,8 @@ const handleTrunkLinePrice = (trunkLine, template) => {
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < details.goodsList.length; i++) { |
|
|
|
|
const value = details.goodsList[i]; |
|
|
|
|
if (value.subtotalFreight) _total = computeNumber(_total, '+', value.subtotalFreight).result; |
|
|
|
|
if (value.subtotalFreight) |
|
|
|
|
_total = computeNumber(_total, '+', value.subtotalFreight || 0).result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log('trunkLine :>> ', trunkLine); |
|
|
|
@ -2346,7 +2347,8 @@ const handleDispatchPrice = (dispatch, template) => {
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < details.goodsList.length; i++) { |
|
|
|
|
const value = details.goodsList[i]; |
|
|
|
|
if (value.subtotalDispatch) _total += computeNumber(_total, '+', value.subtotalDispatch).result; |
|
|
|
|
if (value.subtotalDispatch) |
|
|
|
|
_total += computeNumber(_total, '+', value.subtotalDispatch || 0).result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 是否存在最低计费 |
|
|
|
@ -2398,7 +2400,7 @@ const handleWarehouseManagement = () => {
|
|
|
|
|
for (let i = 0; i < details.goodsList.length; i++) { |
|
|
|
|
const value = details.goodsList[i]; |
|
|
|
|
|
|
|
|
|
_total = computeNumber(_total, '+', value.subtotalWarehouseManagement).result; |
|
|
|
|
_total = computeNumber(_total, '+', value.subtotalWarehouseManagement || 0).result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
details.query.warehouseManagementFee = _total; |
|
|
|
|