|
@@ -53,7 +53,7 @@
|
|
|
label="规格"
|
|
|
prop="productSpecifications"
|
|
|
></el-table-column>
|
|
|
- <el-table-column label="批号" prop="lotNum"></el-table-column>
|
|
|
+ <el-table-column label="批号" prop="lotNumber"></el-table-column>
|
|
|
<el-table-column label="单位" prop="unit">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
@@ -64,15 +64,18 @@
|
|
|
></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="数量" prop="weight"></el-table-column>
|
|
|
- <el-table-column label="单价" prop="unitPrice"></el-table-column>
|
|
|
- <el-table-column label="金额" prop="price"></el-table-column>
|
|
|
+ <el-table-column label="数量" prop="productNumber"></el-table-column>
|
|
|
+ <el-table-column label="单价" prop="productUnitPrice"></el-table-column>
|
|
|
+ <el-table-column label="金额" prop="productAmounts"></el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { productInvoiceInfo } from "@/api/tablelist/commonTable";
|
|
|
+import {
|
|
|
+ productInvoiceInfo,
|
|
|
+ outboundOrderInfo,
|
|
|
+} from "@/api/tablelist/commonTable";
|
|
|
export default {
|
|
|
name: "OutBound",
|
|
|
props: [],
|
|
@@ -85,9 +88,9 @@ export default {
|
|
|
outStockDate: new Date(),
|
|
|
},
|
|
|
rules: {
|
|
|
- unitName: [
|
|
|
- { required: true, message: "请输入单位名称", trigger: "blur" },
|
|
|
- ],
|
|
|
+ // unitName: [
|
|
|
+ // { required: true, message: "请输入单位名称", trigger: "blur" },
|
|
|
+ // ],
|
|
|
},
|
|
|
tableData: [],
|
|
|
columns: [],
|
|
@@ -112,19 +115,19 @@ export default {
|
|
|
let payload = {
|
|
|
saleOrderNo: row.saleOrderSaleNo,
|
|
|
};
|
|
|
- let res = await productInvoiceInfo(payload);
|
|
|
+ let res = await outboundOrderInfo(payload);
|
|
|
if (res.code == 200) {
|
|
|
- res.data.saleProductInfoList.forEach((item) => {
|
|
|
- if (Number(item.weight) && Number(item.unitPrice)) {
|
|
|
- item.price = (
|
|
|
- Number(item.weight) * Number(item.unitPrice)
|
|
|
- ).toFixed(2);
|
|
|
- } else {
|
|
|
- item.price = 0;
|
|
|
- }
|
|
|
+ res.data.forEach((item) => {
|
|
|
+ // if (Number(item.productNumber) && Number(item.productUnitPrice)) {
|
|
|
+ // item.price = (
|
|
|
+ // Number(item.productNumber) * Number(item.productUnitPrice)
|
|
|
+ // ).toFixed(2);
|
|
|
+ // } else {
|
|
|
+ // item.price = 0;
|
|
|
+ // }
|
|
|
item.unit = "";
|
|
|
});
|
|
|
- this.tableData = res.data.saleProductInfoList;
|
|
|
+ this.tableData = res.data;
|
|
|
}
|
|
|
} catch (error) {}
|
|
|
},
|