|
@@ -38,7 +38,22 @@
|
|
|
<el-table-column label="物品名称" prop="goodsName" />
|
|
|
<el-table-column label="物品单位" prop="goodsUnit" width="80" />
|
|
|
<el-table-column label="单价" prop="unitPrice" width="100" />
|
|
|
- <el-table-column label="采购数量" prop="quantity" width="120" />
|
|
|
+ <el-table-column
|
|
|
+ label="采购数量"
|
|
|
+ prop="purchaseQuantity"
|
|
|
+ width="120"
|
|
|
+ />
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ <div style="margin: 20px 0">
|
|
|
+ <labelTitle content="审批记录"></labelTitle>
|
|
|
+ </div>
|
|
|
+ <div style="padding: 0px 20px">
|
|
|
+ <el-table :data="recordsList">
|
|
|
+ <el-table-column label="节点名称" prop="nodeName" />
|
|
|
+ <el-table-column label="节点状态" prop="typeName" />
|
|
|
+ <el-table-column label="发起/审批人" prop="userName" />
|
|
|
+ <el-table-column label="审批说明" prop="remarks" />
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</el-form>
|
|
@@ -50,6 +65,8 @@ import labelTitle from "@/components/label-title/index.vue";
|
|
|
import { purchaseDetails } from "@/api/purchase-management/purchase/index.js";
|
|
|
import { supplySelect } from "@/api/product-material/supply/index.js";
|
|
|
|
|
|
+import { exampleInfo, exampleInfoShowFlow } from "@/api/process";
|
|
|
+
|
|
|
export default {
|
|
|
props: {
|
|
|
rowData: {
|
|
@@ -65,6 +82,7 @@ export default {
|
|
|
form: {},
|
|
|
supplySelectList: [],
|
|
|
productTypeList: [],
|
|
|
+ recordsList: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -78,9 +96,21 @@ export default {
|
|
|
mounted() {
|
|
|
if (this.rowData.id) {
|
|
|
this.getDetails();
|
|
|
+ this.getRecordsList();
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getRecordsList() {
|
|
|
+ if (this.rowData.flowId) {
|
|
|
+ exampleInfo({ flowLinkNo: this.rowData.id }).then((res) => {
|
|
|
+ this.recordsList = res.data.data;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ exampleInfoShowFlow({ code: "PURCHASE" }).then((res) => {
|
|
|
+ this.recordsList = res.data.data;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
async getDetails() {
|
|
|
this.loading = true;
|
|
|
const { data } = await supplySelect({ name: "", code: "", type: "" });
|