parent
55b1f87ce7
commit
a232c48df4
@ -0,0 +1,83 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-table v-loading="loading" :data="relateSaleOrderList">
|
||||
<el-table-column label="销售订单号" align="center" prop="saleorderCode"/>
|
||||
<el-table-column label="物料ID" align="center" prop="materialId" v-if="false"/>
|
||||
<el-table-column label="物料编码" align="center" prop="materialCode"/>
|
||||
<el-table-column label="物料名称" align="center" prop="materialName"/>
|
||||
<el-table-column label="物料规格" align="center" prop="materialSpec"/>
|
||||
<el-table-column label="订单数量" align="center" prop="orderAmount"/>
|
||||
<el-table-column label="计划交货日期" align="center" prop="planDeliveryDate">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.planDeliveryDate, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="relateQueryParams.pageNum"
|
||||
:limit.sync="relateQueryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listSaleOrder } from "@/api/mes/saleOrder";
|
||||
|
||||
export default {
|
||||
name: "SaleOrderRelates",
|
||||
props: {
|
||||
defineData: {
|
||||
type: Object,
|
||||
default: {}
|
||||
}
|
||||
},
|
||||
inject: ['closeDialog'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
relateSaleOrderList:[],
|
||||
// 选中数组
|
||||
relateQueryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getData();
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
if (this.defineData.saleOrderId) {
|
||||
this.getList();
|
||||
}
|
||||
},
|
||||
|
||||
/** 查询销售订单信息列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.relateQueryParams.selectFlag = null;
|
||||
this.relateQueryParams.relateFlag = "1";
|
||||
this.relateQueryParams.virtualSaleOrderId = this.defineData.saleOrderId;
|
||||
listSaleOrder(this.relateQueryParams).then(response => {
|
||||
this.relateSaleOrderList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in New Issue