|
@@ -280,12 +280,28 @@ const getDetailData = async () => {
|
|
} catch { /* empty */ }
|
|
} catch { /* empty */ }
|
|
isAdjustDate.value = true
|
|
isAdjustDate.value = true
|
|
getMaterialName()
|
|
getMaterialName()
|
|
|
|
+ getMaterialRangePrice(obj.currentPriceId)
|
|
} else {
|
|
} else {
|
|
window.$message.error(msg ?? '数据异常')
|
|
window.$message.error(msg ?? '数据异常')
|
|
modalClose()
|
|
modalClose()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+//获取计算公式
|
|
|
|
+const getMaterialRangePrice = async (id) => {
|
|
|
|
+ const { code, msg, data } = await mainApi.getMaterialRangePrice({
|
|
|
|
+ priceId: id,
|
|
|
|
+ })
|
|
|
|
+ const { isAdjust, rangePriceRatio, adjustCalculation } = getObjValue(data)
|
|
|
|
+ if (code !== 200) {
|
|
|
|
+ window.$message.error(msg ?? '操作失败')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ isAdjusts.value = isAdjust ?? 0
|
|
|
|
+ formModel.value.rangePriceRatio = rangePriceRatio
|
|
|
|
+ formModel.value.adjustCalculation = adjustCalculation
|
|
|
|
+}
|
|
|
|
+
|
|
//获取计量期
|
|
//获取计量期
|
|
const measurement = ref([])
|
|
const measurement = ref([])
|
|
const getPeriodMeasurement = async () => {
|
|
const getPeriodMeasurement = async () => {
|