|
@@ -195,6 +195,7 @@
|
|
fileFlow.priceListsPrice;
|
|
fileFlow.priceListsPrice;
|
|
allListOption.map((ele) => {
|
|
allListOption.map((ele) => {
|
|
fileFlow.manMadeList.push({
|
|
fileFlow.manMadeList.push({
|
|
|
|
+ ...ele,
|
|
label: `${ele.name} ${ele.price}元`,
|
|
label: `${ele.name} ${ele.price}元`,
|
|
value: ele.laborCostId,
|
|
value: ele.laborCostId,
|
|
priceListId: ele.priceListId,
|
|
priceListId: ele.priceListId,
|
|
@@ -522,7 +523,7 @@
|
|
const handleSubmit = async () => {
|
|
const handleSubmit = async () => {
|
|
const params = await validate();
|
|
const params = await validate();
|
|
let newPrice = parseFloat(fileFlow.priceCount);
|
|
let newPrice = parseFloat(fileFlow.priceCount);
|
|
- console.log('newPrice', newPrice, fileFlow.priceCount, newPrice > 0);
|
|
|
|
|
|
+ console.log('newPrice', fileFlow.manMadeList, fileFlow.priceLists, params);
|
|
if (!(newPrice > 0)) {
|
|
if (!(newPrice > 0)) {
|
|
return createMessage.error('合计金额不能小于0');
|
|
return createMessage.error('合计金额不能小于0');
|
|
}
|
|
}
|