3.4.3
1、在采购订单和销售订单中增加已绑定信息的查看 2、在物料信息、项目信息、供应商信息、销售订单信息和采购订单信息增加同步功能,点击可从ERP立即同步 3、原材料条码和生产任务选择信息时增加radiobox 4、删除导出按钮和right-toolbarmaster
parent
be79405985
commit
3dac744226
@ -0,0 +1,105 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-table v-loading="loading" :data="orderBindList">
|
||||
|
||||
<el-table-column label="采购订单号" align="center" prop="poNo" v-if="purchaseVisible"/>
|
||||
<el-table-column label="物料ID" align="center" prop="materialId" v-if="false"/>
|
||||
<el-table-column label="物料编码" align="center" prop="materialCode" v-if="purchaseVisible"/>
|
||||
<el-table-column label="物料名称" align="center" prop="materialName" v-if="purchaseVisible"/>
|
||||
<el-table-column label="物料规格" align="center" prop="materialSpec" v-if="purchaseVisible"/>
|
||||
|
||||
<el-table-column label="安全库存" align="center" prop="safeFlag" v-if="saleVisible">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.mes_safe_flag" :value="scope.row.safeFlag"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="销售订单号" align="center" prop="saleOrderCode" v-if="saleVisible"/>
|
||||
<el-table-column label="成品ID" align="center" prop="productId" v-if="false"/>
|
||||
<el-table-column label="成品编码" align="center" prop="productCode" v-if="saleVisible"/>
|
||||
<el-table-column label="成品名称" align="center" prop="productName" v-if="saleVisible"/>
|
||||
<el-table-column label="成品规格" align="center" prop="productSpec" v-if="saleVisible"/>
|
||||
|
||||
<el-table-column label="绑定数量" align="center" prop="bindAmount"/>
|
||||
|
||||
|
||||
|
||||
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listOrderBinds } from "@/api/mes/saleOrder";
|
||||
|
||||
export default {
|
||||
name: "OrderBinds",
|
||||
props: {
|
||||
defineData: {
|
||||
type: Object,
|
||||
default: {}
|
||||
}
|
||||
},
|
||||
inject: ['closeDialog'],
|
||||
dicts: [ 'mes_safe_flag'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
orderBindList:[],
|
||||
purchaseVisible:false,
|
||||
saleVisible:false,
|
||||
// 选中数组
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getData();
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
if (this.defineData.saleOrderId) {
|
||||
this.queryParams.saleOrderId = this.defineData.saleOrderId;
|
||||
this.purchaseVisible = true;
|
||||
this.saleVisible = false;
|
||||
this.getList();
|
||||
}else if (this.defineData.purchaseOrderId) {
|
||||
this.queryParams.purchaseOrderId = this.defineData.purchaseOrderId;
|
||||
this.purchaseVisible = false;
|
||||
this.saleVisible = true;
|
||||
this.getList();
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
/** 查询销售订单信息列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listOrderBinds(this.queryParams).then(response => {
|
||||
this.orderBindList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in New Issue