feat:禅道367
This commit is contained in:
parent
724d313185
commit
4a9555f034
|
|
@ -19,6 +19,7 @@
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
<el-text style="margin-left: 1vw;cursor: pointer;" @click="handleWatch">仓库总数:{{ totalCount }}</el-text>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<el-input
|
<el-input
|
||||||
|
|
@ -75,9 +76,6 @@
|
||||||
<el-table-column width="80">
|
<el-table-column width="80">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button @click="printMaterial(scope.row)" type="text">打签</el-button>
|
<el-button @click="printMaterial(scope.row)" type="text">打签</el-button>
|
||||||
<!-- <el-link :underline="false" type="primary"
|
|
||||||
@click="handleWatch(scope.row)"
|
|
||||||
>流程图</el-link> -->
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
|
|
@ -89,11 +87,6 @@
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<span style="font-size: 14px">车间库存</span>
|
<span style="font-size: 14px">车间库存</span>
|
||||||
<!-- <el-select v-model="queryWm.material__process" clearable placeholder="已到工序" @change="handleQueryWm"
|
|
||||||
style="margin-left: 4px">
|
|
||||||
<el-option v-for="item in processOptions" :key="item.id" :label="item.name"
|
|
||||||
:value="item.id"></el-option>
|
|
||||||
</el-select> -->
|
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main>
|
<el-main>
|
||||||
|
|
@ -146,15 +139,18 @@
|
||||||
:mtype="wmtype"
|
:mtype="wmtype"
|
||||||
:apiObj="apiObjPrint"
|
:apiObj="apiObjPrint"
|
||||||
></print-dialog>
|
></print-dialog>
|
||||||
<el-drawer v-model="limitedWatch" title="工艺路线流程图" size="80%" @closeDialog="limitedWatch = false">
|
<el-drawer v-model="limitedWatch" title="物料仓库合格库存统计" size="80%" @closeDialog="limitedWatch = false">
|
||||||
<scDegra
|
<el-container>
|
||||||
v-if="limitedWatch"
|
<el-header style="height: 40%;">
|
||||||
ref="degraDialogs"
|
<scTable :data="tableData" hideDo hidePagination row-key="id" style="width: 100%;">
|
||||||
:nodes="nodes"
|
<el-table-column label="物料名" prop="material_name"></el-table-column>
|
||||||
:edges="edges"
|
<el-table-column label="数量" prop="count"></el-table-column>
|
||||||
:rankdir="'LR'"
|
</scTable>
|
||||||
>
|
</el-header>
|
||||||
</scDegra>
|
<el-main>
|
||||||
|
<scEcharts :option="echartsOptions" height="100%"></scEcharts>
|
||||||
|
</el-main>
|
||||||
|
</el-container>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</el-container>
|
</el-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -176,8 +172,10 @@ export default {
|
||||||
paramsWm: { count__gte: 1, material__type: 10 },
|
paramsWm: { count__gte: 1, material__type: 10 },
|
||||||
nodes:[],
|
nodes:[],
|
||||||
edges:[],
|
edges:[],
|
||||||
|
tableData:[],
|
||||||
queryWm: {},
|
queryWm: {},
|
||||||
wmtype:0,
|
wmtype:0,
|
||||||
|
totalCount:0,
|
||||||
print_m:false,
|
print_m:false,
|
||||||
limitedWatch:false,
|
limitedWatch:false,
|
||||||
materialsVisible:false,
|
materialsVisible:false,
|
||||||
|
|
@ -240,9 +238,32 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getWarehouse();
|
this.getWarehouse();
|
||||||
// this.getProcessOptions()
|
this.getProductCount();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getProductCount(){
|
||||||
|
let that = this;
|
||||||
|
let query ={
|
||||||
|
select_dept: "",
|
||||||
|
groupby_dept: "",
|
||||||
|
material_types: "10",
|
||||||
|
select_material: "material.name as material_name",
|
||||||
|
groupby_material: "material.name",
|
||||||
|
select_material_name: "",
|
||||||
|
groupby_material_name: ""
|
||||||
|
};
|
||||||
|
that.$API.bi.dataset.exec.req("materialCount", {query:query }).then((res) => {
|
||||||
|
let data = that.tableData = res.data2.ds0;
|
||||||
|
let totalCount = 0;
|
||||||
|
data.forEach(item => {
|
||||||
|
totalCount += item.count;
|
||||||
|
});
|
||||||
|
that.totalCount = totalCount;
|
||||||
|
if (res.echart_options) {
|
||||||
|
that.echartsOptions = JSON.parse(res.echart_options);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getWarehouse() {
|
getWarehouse() {
|
||||||
this.$API.inm.warehouse.list.req({ page: 0 }).then((res) => {
|
this.$API.inm.warehouse.list.req({ page: 0 }).then((res) => {
|
||||||
this.warehouseOptions = res;
|
this.warehouseOptions = res;
|
||||||
|
|
@ -262,16 +283,8 @@ export default {
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.query = {};
|
this.query = {};
|
||||||
},
|
},
|
||||||
handleWatch(row) {
|
handleWatch() {
|
||||||
let that = this;
|
this.limitedWatch = true;
|
||||||
that.$API.wpm.batchlog.dag.req({batch:row.batch}).then((res) => {
|
|
||||||
that.nodes = res.nodes;
|
|
||||||
that.edges = res.edges;
|
|
||||||
that.limitedWatch = true;
|
|
||||||
that.$nextTick(() => {
|
|
||||||
that.$refs.degraDialogs.open();
|
|
||||||
});
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
//打签
|
//打签
|
||||||
printMaterial(row,type){
|
printMaterial(row,type){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue