Merge branch 'master' of http://gitea.xxhhcty.xyz:8080/zcdsj/factory_web
This commit is contained in:
commit
75fbd857e7
|
|
@ -1177,7 +1177,7 @@ const routes = [
|
|||
path: "/enm_energy/carbon",
|
||||
meta: {
|
||||
title: "碳排放",
|
||||
// icon: "el-icon-grid",
|
||||
icon: "el-icon-grid",
|
||||
perms: ["carbon_base"],
|
||||
},
|
||||
component: "enm_energy/carbon",
|
||||
|
|
|
|||
|
|
@ -379,6 +379,7 @@ export default {
|
|||
KHData: [],
|
||||
SMData: [],
|
||||
IMData: [],
|
||||
echartLine1: null,
|
||||
factoryName: "",
|
||||
initialAlpha: -Math.PI / 4.5,
|
||||
initialBeta: Math.PI / 2,
|
||||
|
|
@ -743,7 +744,6 @@ export default {
|
|||
this.$API.mtm.mgroup.list
|
||||
.req({ page: 0, search: "回转窑" })
|
||||
.then((res) => {
|
||||
// console.log("回转窑", res);
|
||||
that.huihzuanyaoId = res[0].id;
|
||||
let query = {};
|
||||
query.page = 0;
|
||||
|
|
@ -865,7 +865,6 @@ export default {
|
|||
this.$API.mtm.mgroup.list
|
||||
.req({ page: 0, search: "余热发电" })
|
||||
.then((res) => {
|
||||
// console.log("余热发电", res);
|
||||
that.yurefadianId = res[0].id;
|
||||
let params = {};
|
||||
params.page = 0;
|
||||
|
|
@ -929,7 +928,6 @@ export default {
|
|||
};
|
||||
that.$API.enm.enstat.req(params).then((res) => {
|
||||
let data = res.results;
|
||||
console.log("工序电耗", data);
|
||||
let seriesData = [0, 0, 0, 0, 0];
|
||||
data.forEach((item, index) => {
|
||||
if (item.mgroup_name == "石灰石破碎") {
|
||||
|
|
@ -939,7 +937,6 @@ export default {
|
|||
} else if (item.mgroup_name == "回转窑") {
|
||||
seriesData[2] = item.elec_consume;
|
||||
} else if (item.mgroup_name == "余热发电") {
|
||||
console.log("余热发电工序电耗", item.elec_consume);
|
||||
seriesData[3] = item.elec_consume;
|
||||
} else if (item.mgroup_name == "煤磨") {
|
||||
seriesData[4] = item.elec_consume;
|
||||
|
|
@ -969,7 +966,6 @@ export default {
|
|||
return typeof variable;
|
||||
}
|
||||
that.$API.enm.mpoint.list.req(params).then((res) => {
|
||||
console.log("数据采集", res);
|
||||
let success_num = 0;
|
||||
let error_num = 0;
|
||||
res.forEach((item, index) => {
|
||||
|
|
@ -985,8 +981,6 @@ export default {
|
|||
}
|
||||
that.tableData.push(item);
|
||||
});
|
||||
console.log("数据采集tableData", that.tableData);
|
||||
|
||||
let chartDom6 = document.getElementById("pieChart");
|
||||
let myChart6 = echarts.init(chartDom6);
|
||||
let colors = [];
|
||||
|
|
@ -1079,16 +1073,14 @@ export default {
|
|||
// right_block.style.display = "none";
|
||||
var itemHeight = Math.round((windowHeight - 150) / 3);
|
||||
var itemBodyHeight = itemHeight - 40;
|
||||
var flexItems = document.getElementsByClassName("flexItem");
|
||||
var itemBodys = document.getElementsByClassName("itemBody");
|
||||
for (var i = 0; i < flexItems.length; i++) {
|
||||
var flexItem = flexItems[i];
|
||||
flexItem.style.height = itemHeight + "px";
|
||||
}
|
||||
for (var i = 0; i < itemBodys.length; i++) {
|
||||
var itemBody = itemBodys[i];
|
||||
itemBody.style.height = itemBodyHeight + "px";
|
||||
}
|
||||
const flexItems = document.querySelectorAll('.flexItem')
|
||||
const itemBodys = document.querySelectorAll('.itemBody')
|
||||
flexItems.forEach(el => {
|
||||
el.style.height = `${itemHeight}px`
|
||||
})
|
||||
itemBodys.forEach(el => {
|
||||
el.style.height = `${itemBodyHeight}px`
|
||||
})
|
||||
elTable.style.height = itemBodyHeight - 20 + "px";
|
||||
let pieWidth = Math.round(windowWidth / 100) * 22 - 180;
|
||||
let radarWidth = Math.round(windowWidth / 100) * 22 - 130;
|
||||
|
|
@ -1114,7 +1106,6 @@ export default {
|
|||
document.getElementById(name)
|
||||
);
|
||||
if (myChart != undefined) {
|
||||
// console.log(name + ' :resize')
|
||||
myChart.resize();
|
||||
}
|
||||
},
|
||||
|
|
@ -1417,7 +1408,6 @@ export default {
|
|||
);
|
||||
}
|
||||
} else if (camera.target != mesh.position) {
|
||||
console.log("fly to");
|
||||
// 计算新的相机位置
|
||||
let position = mesh._parentNode._position;
|
||||
if (mesh._parentNode.id == "__root__") {
|
||||
|
|
@ -1745,25 +1735,55 @@ export default {
|
|||
},
|
||||
},
|
||||
beforeUnmount() {
|
||||
let that = this;
|
||||
// 1. 清理定时器
|
||||
clearInterval(this.timerTime);
|
||||
clearInterval(this.qualityTimer);
|
||||
clearInterval(this.heightTimer);
|
||||
|
||||
// 3. 移除事件监听
|
||||
window.removeEventListener("resize", this.handleResize);
|
||||
if (this.scene && this.pointerListener) {
|
||||
this.scene.onPointerObservable.remove(this.pointerListener);
|
||||
}
|
||||
|
||||
// 4. 销毁 Babylon
|
||||
if (this.engine) this.engine.dispose();
|
||||
if (this.scene) this.scene.dispose();
|
||||
|
||||
// 5. 清空引用避免内存持续占用
|
||||
this.engine = null;
|
||||
this.scene = null;
|
||||
clearInterval(that.timerTime);
|
||||
clearInterval(that.timerData);
|
||||
clearInterval(that.qualityTimer);
|
||||
that.timerTime = null;
|
||||
that.timerData = null;
|
||||
that.qualityTimer = null;
|
||||
},
|
||||
beforeDestoryed() {
|
||||
let that = this;
|
||||
this.scene = null;
|
||||
clearInterval(that.timerTime);
|
||||
clearInterval(that.timerData);
|
||||
clearInterval(that.qualityTimer);
|
||||
that.timerTime = null;
|
||||
that.timerData = null;
|
||||
that.qualityTimer = null;
|
||||
this.echartLine1 = null;
|
||||
},
|
||||
|
||||
// beforeUnmount() {
|
||||
// let that = this;
|
||||
// this.scene = null;
|
||||
// clearInterval(that.timerTime);
|
||||
// clearInterval(that.timerData);
|
||||
// clearInterval(that.qualityTimer);
|
||||
// that.timerTime = null;
|
||||
// that.timerData = null;
|
||||
// that.qualityTimer = null;
|
||||
// },
|
||||
// beforeDestoryed() {
|
||||
// let that = this;
|
||||
// this.scene = null;
|
||||
// clearInterval(that.timerTime);
|
||||
// clearInterval(that.timerData);
|
||||
// clearInterval(that.qualityTimer);
|
||||
// that.timerTime = null;
|
||||
// that.timerData = null;
|
||||
// that.qualityTimer = null;
|
||||
// if (this.engine) {
|
||||
// this.engine.dispose(); // 释放 GPU 内容
|
||||
// this.engine = null;
|
||||
// }
|
||||
// if (this.scene) {
|
||||
// this.scene.dispose();
|
||||
// this.scene = null;
|
||||
// }
|
||||
// },
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
|
|
|
|||
|
|
@ -295,8 +295,10 @@ export default {
|
|||
},
|
||||
getUsers(){
|
||||
let that = this;
|
||||
that.$API.system.user.list.req({ posts__name: "库管", page: 0 }).then((res) => {
|
||||
that.userOption = res;
|
||||
let userOption = [];
|
||||
that.$API.system.user.list.req({ posts__code__contains: "inm", page: 0 }).then((res) => {
|
||||
userOption = Array.from(new Map(res.map(item => [item.id, item])).values());
|
||||
that.userOption = userOption;
|
||||
});
|
||||
},
|
||||
deptChange(){
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
<el-container>
|
||||
<el-header>
|
||||
<div class="left-panel">
|
||||
<el-button type="primary" v-auth="'handover.create'" @click="table_add(20)">
|
||||
返工交接</el-button>
|
||||
<el-button type="primary" v-auth="'handover.create'" @click="table_add(20)">返工交接</el-button>
|
||||
<el-button type="primary" v-auth="'handover.create'" v-if="route_code=='scrap'" @click="table_bsofei(40,30)">合批报废</el-button>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<el-input
|
||||
|
|
@ -108,7 +108,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
wmState,
|
||||
apiObj: this.$API.wpm.wmaterial.list,
|
||||
apiObj: null,
|
||||
params: {
|
||||
state : 50,
|
||||
state_all: 1
|
||||
|
|
@ -126,6 +126,11 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
let that = this;
|
||||
that.route_code = that.$route.path.split("/")[2];
|
||||
if(that.route_code=='scrap'){
|
||||
that.params.material__type__in = 30;
|
||||
}
|
||||
that.apiObj = that.$API.wpm.wmaterial.list;
|
||||
that.$API.mtm.mgroup.list.req({ page: 0}).then((res) => {
|
||||
that.mgroupOptions = res;
|
||||
res.forEach(item=>{
|
||||
|
|
@ -145,6 +150,13 @@ export default {
|
|||
this.$refs.saveDialog.open("add");
|
||||
});
|
||||
},
|
||||
table_bsofei(type,mtype) {
|
||||
this.dialog.save = true;
|
||||
this.type = type;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.saveDialog.open("add",null,mtype);
|
||||
});
|
||||
},
|
||||
//搜索
|
||||
handleQuery() {
|
||||
this.$refs.table.queryData(this.query);
|
||||
|
|
|
|||
|
|
@ -12,8 +12,13 @@
|
|||
type="primary"
|
||||
@click="add('pur_in')"
|
||||
v-auth="'mio.pur'"
|
||||
>采购入库</el-button
|
||||
>
|
||||
>采购入库</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="add('do_out','baofei')"
|
||||
v-auth="'mio.do'"
|
||||
v-if="project_code=='gx'"
|
||||
>报废</el-button>
|
||||
<el-select
|
||||
v-model="query.type"
|
||||
clearable
|
||||
|
|
@ -73,7 +78,8 @@
|
|||
></el-table-column>
|
||||
<el-table-column label="出/入库类型">
|
||||
<template #default="scope">
|
||||
{{ typeDict[scope.row.type] }}
|
||||
<span v-if="scope.row.mgroup_name=='废品库'&&scope.row.type=='do_out'">原料报废</span>
|
||||
<span v-else>{{ typeDict[scope.row.type] }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="记录状态">
|
||||
|
|
@ -119,15 +125,19 @@
|
|||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<!-- 光芯的出入库记录中生产领料不显示提交,在生产执行里接收 -->
|
||||
<span v-if="scope.row.state==10">
|
||||
<span v-if="scope.row.type=='do_out'&&project_code=='gx'&&(scope.row.mgroup_name!=='外协白片抛'||scope.row.mgroupName!=='外协一次抛'||scope.row.mgroupName!=='外扫')"></span>
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
@click="table_submit(scope.row)"
|
||||
v-auth="'mio.submit'"
|
||||
v-if="scope.row.state == 10"
|
||||
v-else
|
||||
>
|
||||
提交
|
||||
</el-button>
|
||||
</span>
|
||||
<el-button
|
||||
link
|
||||
type="danger"
|
||||
|
|
@ -208,17 +218,25 @@ export default {
|
|||
apiObj: this.$API.inm.mio.list,
|
||||
selection: [],
|
||||
type: "",
|
||||
htype: "",
|
||||
cate: "mainso",
|
||||
mioId: "",
|
||||
project_code: "",
|
||||
visibleDrawer: false,
|
||||
};
|
||||
},
|
||||
mounted() {this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;},
|
||||
methods: {
|
||||
//添加
|
||||
add(type) {
|
||||
add(type,htype) {
|
||||
this.dialog.save = true;
|
||||
this.htype = htype;
|
||||
this.$nextTick(() => {
|
||||
if(htype!==undefined){
|
||||
this.$refs.saveDialog.open("add", type,htype);
|
||||
}else{
|
||||
this.$refs.saveDialog.open("add", type);
|
||||
}
|
||||
});
|
||||
},
|
||||
//编辑
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
<el-select
|
||||
v-model="form.pu_order"
|
||||
clearable
|
||||
filterable
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-option
|
||||
|
|
@ -46,6 +47,7 @@
|
|||
<el-select
|
||||
v-model="form.supplier"
|
||||
clearable
|
||||
filterable
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-option
|
||||
|
|
@ -57,7 +59,7 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="销售订单" v-if="form.type == 'sale_out'">
|
||||
<el-select v-model="form.order" clearable style="width: 100%">
|
||||
<el-select v-model="form.order" clearable filterable style="width: 100%">
|
||||
<el-option
|
||||
v-for="item in orderOptions"
|
||||
:key="item.id"
|
||||
|
|
@ -84,6 +86,7 @@
|
|||
<el-select
|
||||
v-model="form.customer"
|
||||
clearable
|
||||
filterable
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-option
|
||||
|
|
@ -101,6 +104,7 @@
|
|||
<el-select
|
||||
v-model="form.mgroup"
|
||||
clearable
|
||||
filterable
|
||||
style="width: 100%"
|
||||
placeholder="为空时代表领料/入库到车间"
|
||||
@change="mgroupChange"
|
||||
|
|
@ -115,11 +119,12 @@
|
|||
</el-form-item>
|
||||
<el-form-item
|
||||
label="操作部门"
|
||||
v-if="form.type == 'do_in' || form.type == 'do_out' || form.type == 'borrow_out' || form.type == 'return_in'"
|
||||
v-if="(form.type == 'do_in' || form.type == 'do_out' || form.type == 'borrow_out' || form.type == 'return_in')&& htype!='baofei'"
|
||||
>
|
||||
<el-select
|
||||
v-model="form.belong_dept"
|
||||
clearable
|
||||
filterable
|
||||
style="width: 100%"
|
||||
@change="getgetDeptUsers"
|
||||
>
|
||||
|
|
@ -132,10 +137,10 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="部门执行人"
|
||||
v-if="form.type == 'do_in' || form.type == 'do_out'|| form.type == 'borrow_out' || form.type == 'return_in'"
|
||||
label="部门执行人" prop="do_user"
|
||||
v-if="(form.type == 'do_in' || form.type == 'do_out'|| form.type == 'borrow_out' || form.type == 'return_in')&& htype!='baofei'"
|
||||
>
|
||||
<el-select v-model="form.do_user" clearable style="width: 100%">
|
||||
<el-select v-model="form.do_user" filterable clearable style="width: 100%">
|
||||
<el-option
|
||||
v-for="item in userOptions"
|
||||
:key="item.id"
|
||||
|
|
@ -144,12 +149,11 @@
|
|||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="仓库执行人"
|
||||
>
|
||||
<el-form-item label="仓库执行人" prop="mio_user">
|
||||
<el-select
|
||||
v-model="form.mio_user"
|
||||
clearable
|
||||
filterable
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-option
|
||||
|
|
@ -199,13 +203,16 @@ export default {
|
|||
form: {},
|
||||
rules: {
|
||||
number: [
|
||||
{
|
||||
required: true,
|
||||
message: "请填写编号",
|
||||
trigger: "blur",
|
||||
},
|
||||
{required: true,message: "请填写编号",trigger: "blur"},
|
||||
],
|
||||
do_user: [
|
||||
{required: true,message: "请选择部门执行人",trigger: "blur"},
|
||||
],
|
||||
mio_user: [
|
||||
{required: true,message: "请选择仓库执行人",trigger: "blur"},
|
||||
],
|
||||
},
|
||||
htype:"",
|
||||
visible: false,
|
||||
isSaveing: false,
|
||||
options: [],
|
||||
|
|
@ -221,10 +228,21 @@ export default {
|
|||
};
|
||||
},
|
||||
mounted() {
|
||||
let that = this;
|
||||
this.form.inout_date = this.$TOOL.dateFormat2(new Date());
|
||||
//原料库
|
||||
if(that.htype=='baofei'){
|
||||
//操作工段:废品库
|
||||
//部门操作人员:原料库
|
||||
that.$API.mtm.mgroup.list.req({ name:'废品库',page: 0}).then((res) => {
|
||||
that.form.recive_mgroup = item.id;
|
||||
that.getCkUserList();//废品库接收人
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
let that = this;
|
||||
this.getDeptUser();
|
||||
var type = this.form.type;
|
||||
if (type == "pur_in") {
|
||||
|
|
@ -234,9 +252,16 @@ export default {
|
|||
this.getOrderOptions();
|
||||
this.getCustomerOptions();
|
||||
} else if (type == "do_in" || type == "do_out" || type == "borrow_out" || type == "return_in") {
|
||||
if(that.htype=='baofei'){
|
||||
that.$API.mtm.mgroup.list.req({ name:'废品库',page: 0}).then((res) => {
|
||||
that.mgroupOptions = res;
|
||||
that.form.mgroup = res[0].id;
|
||||
});
|
||||
}else{
|
||||
this.getDeptOptions();
|
||||
this.getmgroupOptions();
|
||||
this.getgetDeptUsers();
|
||||
}
|
||||
} else if (type == "other_in") {
|
||||
this.getSupplierOptions();
|
||||
} else if (type == "other_out") {
|
||||
|
|
@ -293,15 +318,18 @@ export default {
|
|||
});
|
||||
},
|
||||
getDeptUser() {
|
||||
this.$API.system.user.list
|
||||
.req({ posts__name: "库管", page: 0 })
|
||||
.then((res) => {
|
||||
this.userOption = res;
|
||||
let that = this;
|
||||
let userOption = [];
|
||||
that.$API.system.user.list.req({ posts__code__contains: "inm", page: 0 }).then((res) => {
|
||||
userOption = Array.from(new Map(res.map(item => [item.id, item])).values());
|
||||
that.userOption = userOption;
|
||||
// console.log('userOption',userOption);
|
||||
});
|
||||
},
|
||||
//显示
|
||||
open(mode = "add", type = "") {
|
||||
open(mode = "add", type = "",htype="") {
|
||||
this.mode = mode;
|
||||
this.htype = htype;
|
||||
this.form.type = type;
|
||||
this.init();
|
||||
this.visible = true;
|
||||
|
|
@ -314,6 +342,9 @@ export default {
|
|||
this.isSaveing = true;
|
||||
try {
|
||||
var res;
|
||||
if(this.htype=='baofei'){
|
||||
this.form.do_user = this.form.mio_user
|
||||
}
|
||||
if (this.mode == "add") {
|
||||
res = await this.$API.inm.mio.create.req(this.form);
|
||||
} else if (this.mode == "edit") {
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="数量">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.material_&&scope.row.material_.tracking==10">{{scope.row.count}}</span>
|
||||
<span v-if="scope.row.material_&&scope.row.material_.tracking==10">{{ project_code=='gx'?Math.round(scope.row.count):scope.row.count }}</span>
|
||||
<el-link v-else :underline="false" type="primary" @click="showWpr(scope.row)">{{scope.row.count}}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
@ -113,7 +113,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="检验" prop="count_tested" v-if="cate=='mainso'">
|
||||
</el-table-column>
|
||||
<el-table-column label="不合格数量" prop="count_notok">
|
||||
<el-table-column label="不合格数量" prop="count_notok" v-if="cate!=='helpso'">
|
||||
</el-table-column>
|
||||
<el-table-column label="创建时间" prop="create_time" show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
|
|
@ -354,7 +354,6 @@ export default {
|
|||
mounted() {
|
||||
let url1 = window.location.hash;
|
||||
this.url_code = url1.split('/')[2];
|
||||
console.log(this.url_code);
|
||||
this.checkTemplate = this.checkTemplate+"?t=" + new Date().getTime();
|
||||
this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
|
||||
this.params.mio = this.mioId;
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="12" :sm="24" v-if="mTracking==20&&form.type == 'sale_out'&&project_code=='bxerp'">
|
||||
<el-col :md="12" :sm="24" v-else-if="mTracking==20&&form.type == 'sale_out'&&project_code=='bxerp'">
|
||||
<el-form-item label="数量">
|
||||
<el-input-number
|
||||
v-model="form.count"
|
||||
|
|
@ -270,12 +270,13 @@ const defaultForm = {
|
|||
export default {
|
||||
emits: ["success", "closed"],
|
||||
props: {
|
||||
mioObj: { type: Object },
|
||||
cate: { type: String, default: null },
|
||||
htype: { type: String, default: null },
|
||||
mioId: { type: String, default: null },
|
||||
mgroup: { type: String, default: null },
|
||||
belongDeptName: { type: String, default: null },
|
||||
belongDeptId: { type: String, default: null },
|
||||
mgroup: { type: String, default: null },
|
||||
mioObj: { type: Object },
|
||||
tableDatas: { type: Array ,default:function(){return []}},
|
||||
},
|
||||
data() {
|
||||
|
|
@ -304,6 +305,7 @@ export default {
|
|||
isSaveing: false,
|
||||
materialOptions: [],
|
||||
batchOptions: [],
|
||||
batchOptions_o: [],
|
||||
setFiltersVisible: false,
|
||||
warehouseOptions: [],
|
||||
// warehouseDisable: false,
|
||||
|
|
@ -330,13 +332,35 @@ export default {
|
|||
let that = this;
|
||||
let config_base = that.$TOOL.data.get("BASE_INFO").base;
|
||||
that.project_code = config_base.base_code;
|
||||
//原料库
|
||||
if(that.htype=='baofei'){
|
||||
//操作工段:废品库
|
||||
//部门操作人员:原料库
|
||||
that.$API.mtm.mgroup.list.req({ name:'废品库',page: 0}).then((res) => {
|
||||
that.form.recive_mgroup = item.id;
|
||||
that.getCkUserList();//废品库接收人
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
this.getMaterialOptions();
|
||||
this.getWarehouseOptions();
|
||||
},
|
||||
|
||||
//获取仓库人员
|
||||
getCkUserList() {
|
||||
let that = this;
|
||||
this.$API.system.user.list.req({ page: 0, posts__code__contains: "inm" })
|
||||
.then((res) => {
|
||||
if(that.type==40){
|
||||
that.userList2 = [];
|
||||
that.userList2 = res;
|
||||
}else if(that.type==20&&that.mgroupName=='废品库'){
|
||||
that.userList = [];
|
||||
that.userList = res;
|
||||
}
|
||||
});
|
||||
},
|
||||
getWarehouseOptions() {
|
||||
let that = this;
|
||||
this.$API.inm.warehouse.list.req({ page: 0 }).then((res) => {
|
||||
|
|
@ -367,34 +391,28 @@ export default {
|
|||
});
|
||||
},
|
||||
inputChange(e){
|
||||
console.log('e',e);
|
||||
let that = this;
|
||||
if(e!==''&&e!==null&&e!==undefined){
|
||||
if(e.indexOf('#')>-1){
|
||||
let codeId = e.split('#')[1];
|
||||
this.$API.cm.labelmat.item.req(codeId).then((res) => {
|
||||
if(res){
|
||||
let arr = that.batchOptions.filter((item) => {
|
||||
return item.batch == res.batch&&item.state==res.state;
|
||||
})
|
||||
if (arr.length > 0) {
|
||||
that.selectBatch = arr[0].batch;
|
||||
that.form.batch = arr[0].batch;
|
||||
that.form.mb = arr[0].id;
|
||||
that.batchcount = Number(arr[0].count_canmio);
|
||||
that.form.count = Number(arr[0].count_canmio);
|
||||
that.form.warehouse = arr[0].warehouse;
|
||||
that.inputBatchDisable = true;
|
||||
setTimeout(() => {
|
||||
options.value = res.batch;
|
||||
}, 200)
|
||||
}else{
|
||||
that.selectBatch = '';
|
||||
that.$message.error("批次号不存在");
|
||||
}
|
||||
that.batchOptions = arr;
|
||||
}else{
|
||||
that.selectBatch = '';
|
||||
}
|
||||
})
|
||||
}else{
|
||||
let arr = that.batchOptions.filter((item) => {
|
||||
return item.batch.indexOf(e)>-1;
|
||||
})
|
||||
that.batchOptions = arr;
|
||||
}
|
||||
}else{
|
||||
that.batchOptions = that.batchOptions_o;
|
||||
}
|
||||
},
|
||||
getMaterialOptions() {
|
||||
|
|
@ -500,7 +518,7 @@ export default {
|
|||
this.$API.inm.warehouse.batch
|
||||
.req({ page: 0, material: this.form.material })
|
||||
.then((res) => {
|
||||
this.batchOptions = res;
|
||||
this.batchOptions_o = this.batchOptions = res;
|
||||
if (res.length == 0) {
|
||||
this.selectBatchDisable = true;
|
||||
} else {
|
||||
|
|
@ -541,9 +559,11 @@ export default {
|
|||
} else {
|
||||
this.getBatchOptions();
|
||||
}
|
||||
if(that.project_code=='gx'&&that.type == 'pur_in'){
|
||||
that.form.batch = '无'
|
||||
if(that.type == 'pur_in'){
|
||||
that.batchcount = 99999999999;
|
||||
if(that.project_code=='gx'){
|
||||
that.form.batch = '无'
|
||||
}
|
||||
}
|
||||
},
|
||||
getItem(options, id) {
|
||||
|
|
@ -628,10 +648,8 @@ export default {
|
|||
this.init();
|
||||
}
|
||||
this.visible = true;
|
||||
// console.log('that.type',that.type);
|
||||
if(that.type=='other_in'||that.type=='do_out'){
|
||||
let mioitemSelecObj =JSON.parse(sessionStorage.getItem("mioitemSelecObj"));
|
||||
// console.log('mioitemSelecObj',mioitemSelecObj);
|
||||
if(mioitemSelecObj!==null){
|
||||
that.selectObj = mioitemSelecObj;
|
||||
that.form.material = that.selectObj.id;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
@click="handleAdd"
|
||||
v-auth="'paperrecord.create'"
|
||||
></el-button>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
|
|
@ -125,7 +124,6 @@
|
|||
link
|
||||
size="small"
|
||||
type="danger"
|
||||
v-auth="'paperrecord.delete'"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
@ -239,7 +237,6 @@
|
|||
</el-form>
|
||||
<template #footer>
|
||||
<el-button
|
||||
v-auth="'paperrecord.create'"
|
||||
v-if="type !== 'show'"
|
||||
type="primary"
|
||||
:loading="isSaving"
|
||||
|
|
@ -377,7 +374,6 @@ export default {
|
|||
this.type = "edit";
|
||||
this.editId = row.id;
|
||||
this.limitedVisible = true;
|
||||
console.log('row--',row);
|
||||
this.addForm = Object.assign({}, row);
|
||||
},
|
||||
async filerecordDel(row) {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
@click="handleAdd"
|
||||
v-auth="'PaperSe.create'"
|
||||
>新增</el-button>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
|
|
@ -121,7 +120,6 @@
|
|||
link
|
||||
size="small"
|
||||
type="danger"
|
||||
v-auth="'PaperSe.delete'"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@
|
|||
</el-form-item>
|
||||
<el-form-item label="拟发表文章类型" prop="paper_type">
|
||||
<el-select v-model="localForm.paper_type" placeholder="请选择拟发表文章类型" :disabled="localMode ==='show'">
|
||||
<el-option label="研究论文" value="研究论文"></el-option>
|
||||
<el-option label="综述" value="综述"></el-option>
|
||||
<el-option label="研究论文" value="research"></el-option>
|
||||
<el-option label="综述" value="overview"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否为中文核心" prop="is_chinese_core">
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
@click="handleAdd"
|
||||
v-auth="'patentinfo.create'"
|
||||
>新增</el-button>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
|
|
@ -125,7 +124,6 @@
|
|||
link
|
||||
size="small"
|
||||
type="danger"
|
||||
v-auth="'patentinfo.delete'"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
@click="handleAdd"
|
||||
v-auth="'patentrecord.create'"
|
||||
></el-button>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
|
|
@ -118,7 +117,6 @@
|
|||
size="small"
|
||||
type="primary"
|
||||
@click="filerecordEidt(scope.row)"
|
||||
v-auth="'patentrecord.update'"
|
||||
>编辑
|
||||
</el-button>
|
||||
<el-popconfirm
|
||||
|
|
@ -130,7 +128,6 @@
|
|||
link
|
||||
size="small"
|
||||
type="danger"
|
||||
v-auth="'patentrecord.delete'"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
@ -251,7 +248,6 @@
|
|||
</el-form>
|
||||
<template #footer>
|
||||
<el-button
|
||||
v-auth="'patentrecord.create'"
|
||||
v-if="type !== 'show'"
|
||||
type="primary"
|
||||
:loading="isSaving"
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@
|
|||
link
|
||||
size="small"
|
||||
type="danger"
|
||||
v-auth="'PaperSe.delete'"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -15,21 +15,6 @@
|
|||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
></el-input>
|
||||
<!-- <el-select
|
||||
v-model="query.name"
|
||||
placeholder="选择名称"
|
||||
clearable
|
||||
filterable
|
||||
:loading="loading"
|
||||
@visible-change="handlePatentChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in platlist"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id">
|
||||
</el-option>
|
||||
</el-select> -->
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
|
|
@ -42,53 +27,18 @@
|
|||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column
|
||||
label="红头发文号/公示页"
|
||||
prop="number"
|
||||
min-width="100"
|
||||
prop="red_head_doc_no"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="名称"
|
||||
prop="plat_name"
|
||||
min-width="100"
|
||||
prop="name"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="平台类型"
|
||||
prop="p_type"
|
||||
min-width="100"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="单位"
|
||||
prop="org"
|
||||
min-width="100">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="建设期(年)"
|
||||
prop="period"
|
||||
min-width="100">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="平台资金(元)"
|
||||
prop="plat_amount"
|
||||
min-width="100"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="子项目"
|
||||
prop="son_pro"
|
||||
min-width="100"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="成果"
|
||||
prop="achieve"
|
||||
min-width="100"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="完成情况"
|
||||
prop="finished"
|
||||
min-width="100"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="建成绩效完成情况"
|
||||
prop="completion"
|
||||
min-width="100"
|
||||
label="项目类型"
|
||||
prop="project_type"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
<el-table-column label="市级平台" prop="city_p" mim-width="60">
|
||||
<template #default="scope">
|
||||
|
|
@ -104,6 +54,62 @@
|
|||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="项目来源"
|
||||
prop="project_source"
|
||||
min-width="60">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="建设期(年)"
|
||||
prop="const"
|
||||
min-width="60">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="项目资金(财政与自筹)(元)"
|
||||
prop="project_funding"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="项目支持期"
|
||||
prop="support_period"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="承担单位"
|
||||
prop="undertaking_unit"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="负责人"
|
||||
prop="responsible_person"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="项目人员"
|
||||
prop="project_members"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="里程碑节点"
|
||||
prop="milestone"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="项目中期情况"
|
||||
prop="mid_term_status"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="项目验收情况"
|
||||
prop="acceptance_status"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="科技成果"
|
||||
prop="sci_tech_achievements"
|
||||
min-width="60"
|
||||
></el-table-column>
|
||||
|
||||
<el-table-column label="操作" fixed="right" align="center" width="250">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
|
|
@ -122,7 +128,6 @@
|
|||
link
|
||||
size="small"
|
||||
type="danger"
|
||||
v-auth="'ps.delete'"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
|
@ -154,98 +159,57 @@
|
|||
<el-table-column label="平台名称" prop="name"></el-table-column>
|
||||
</xtSelect>
|
||||
</el-form-item>
|
||||
<el-form-item label="平台类型" prop="p_type">
|
||||
<el-form-item label="项目类型" prop="p_type">
|
||||
<el-input v-model="addForm.p_type" clearable></el-input>
|
||||
<!-- <el-select
|
||||
v-model="addForm.patent"
|
||||
placeholder="请选择"
|
||||
clearable
|
||||
:loading="loading"
|
||||
@visible-change="handlePatentChange">
|
||||
<el-option
|
||||
v-for="item in platlist"
|
||||
:key="item.name"
|
||||
:value="item.id"
|
||||
:label="item.name"></el-option>
|
||||
</el-select> -->
|
||||
</el-form-item>
|
||||
<el-form-item label="单位" prop="org">
|
||||
<el-input v-model="addForm.org" clearable></el-input>
|
||||
<el-form-item label="市级平台" prop="city_p">
|
||||
<el-radio-group v-model="addForm.city_p" :disabled="localMode ==='show'">
|
||||
<el-radio :label="true">是</el-radio>
|
||||
<el-radio :label="false">否</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="建设期" prop="period">
|
||||
<el-input v-model="addForm.period" clearable></el-input>
|
||||
<el-form-item label="省级平台" prop="province_p">
|
||||
<el-radio-group v-model="addForm.province_p" :disabled="localMode ==='show'">
|
||||
<el-radio :label="true">是</el-radio>
|
||||
<el-radio :label="false">否</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="代理人" prop="agent" label-width="120px">
|
||||
<el-input v-model="addForm.agent" clearable></el-input>
|
||||
<el-form-item label="项目来源" prop="project_source">
|
||||
<el-input v-model="addForm.project_source" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="归属平台" prop="affiliated_platforms">
|
||||
<el-input v-model="addForm.affiliated_platforms" clearable></el-input>
|
||||
<el-form-item label="建设期" prop="const" label-width="120px">
|
||||
<el-input v-model="addForm.const" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="归属项目" prop="affiliated_projects" >
|
||||
<el-input v-model="addForm.affiliated_projects" clearable></el-input>
|
||||
<el-form-item label="项目资金(财政与自筹)" prop="project_funding">
|
||||
<el-input v-model="addForm.project_funding" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="申请日" prop="application_date" >
|
||||
<el-date-picker
|
||||
v-model="addForm.application_date"
|
||||
type="date"
|
||||
align="right"
|
||||
value-format="YYYY-MM-DD"
|
||||
unlink-panels
|
||||
palceholder="选择日期"
|
||||
></el-date-picker>
|
||||
<el-form-item label="项目支持期" prop="support_period" >
|
||||
<el-input v-model="addForm.support_period" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="授权日" prop="authorization_date" >
|
||||
<el-date-picker
|
||||
v-model="addForm.authorization_date"
|
||||
type="date"
|
||||
align="right"
|
||||
value-format="YYYY-MM-DD"
|
||||
unlink-panels
|
||||
palceholder="选择日期"
|
||||
></el-date-picker>
|
||||
<el-form-item label="承担单位" prop="undertaking_unit" >
|
||||
<el-input v-model="addForm.undertaking_unit" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="有效年限" prop="validity_years" >
|
||||
<el-input v-model="addForm.validity_years" type="number" min="0" clearable></el-input>
|
||||
<el-form-item label="负责人" prop="responsible_person" >
|
||||
<el-input v-model="addForm.responsible_person" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="年费缴纳" prop="annuity_paid" >
|
||||
<el-input-number
|
||||
v-model="addForm.annuity_paid"
|
||||
:precision="2"
|
||||
:step="0.01"
|
||||
:min="0"
|
||||
style="width: 200px"
|
||||
controls-position="right"></el-input-number>
|
||||
<el-form-item label="项目人员" prop="project_members" >
|
||||
<el-input v-model="addForm.project_members" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-select v-model="addForm.status" placeholder="请选择" clearable>
|
||||
<el-option
|
||||
v-for="(label, value) in statusOptions"
|
||||
:key="value"
|
||||
:label="label"
|
||||
:value="value"/>
|
||||
</el-select>
|
||||
<el-form-item label="里程碑节点" prop="milestone">
|
||||
<el-input v-model="addForm.milestone" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="报奖情况" prop="award_info" >
|
||||
<el-input
|
||||
v-model="addForm.award_info"
|
||||
clearable type="textarea"
|
||||
palaceholder="请输入内容"
|
||||
rows="3">
|
||||
></el-input>
|
||||
<el-form-item label="项目中期情况" prop="mid_term_status">
|
||||
<el-input v-model="addForm.mid_term_status" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="奖金发放" prop="bonus_amount" >
|
||||
<el-input-number
|
||||
v-model="addForm.bonus_amount"
|
||||
:precision="2"
|
||||
:step="0.01"
|
||||
:min="0"
|
||||
style="width: 200px"
|
||||
controls-position="right"></el-input-number>
|
||||
<el-form-item label="项目验收情况" prop="acceptance_status">
|
||||
<el-input v-model="addForm.acceptance_status" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="科技成果" prop="sci_tech_achievements">
|
||||
<el-input v-model="addForm.sci_tech_achievements" clearable></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button
|
||||
v-auth="'ps.create'"
|
||||
v-if="type !== 'show'"
|
||||
type="primary"
|
||||
:loading="isSaving"
|
||||
|
|
@ -260,21 +224,9 @@ export default {
|
|||
name: "index",
|
||||
data() {
|
||||
return {
|
||||
workflowName:"",
|
||||
workFlowId:'',
|
||||
loading: false,
|
||||
apiObj: this.$API.srm.platstand.list,
|
||||
apiObjM2: this.$API.ofm.platform.list,
|
||||
platlist: [],
|
||||
statusOptions: {
|
||||
"not_disclosed":"未公开" ,
|
||||
"under_examination":"实审中",
|
||||
"first_office_action":"一通",
|
||||
"second_office_action":"二通",
|
||||
"rejected":"驳回",
|
||||
"reexamination":"复审",
|
||||
"authorized":"授权"
|
||||
},
|
||||
query: {},
|
||||
editId: null,
|
||||
isSaving: false,
|
||||
|
|
@ -287,86 +239,23 @@ export default {
|
|||
show: "查看",
|
||||
},
|
||||
//表单数据
|
||||
addForm: {
|
||||
volume_number: null,
|
||||
application_number: null,
|
||||
patent: null,
|
||||
pc_type: null,
|
||||
organization: null,
|
||||
inventors: "",
|
||||
agent: "",
|
||||
affiliated_platforms: "",
|
||||
affiliated_projects: "",
|
||||
application_date: "",
|
||||
authorization_date: "",
|
||||
validity_years: "",
|
||||
annuity_paid: "",
|
||||
status: "",
|
||||
award_info: "",
|
||||
bonus_amount: "",
|
||||
},
|
||||
addForm: {},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
formatPcType(row, column, cellValue) {
|
||||
const map = {
|
||||
'invention': '发明专利',
|
||||
'utility': '实用新型',
|
||||
'design': '外观设计'
|
||||
};
|
||||
return map[cellValue] || cellValue;
|
||||
},
|
||||
handleAdd() {
|
||||
this.type = "add";
|
||||
this.addForm = this.getDefaultForm();
|
||||
this.limitedVisible = true;
|
||||
},
|
||||
handlePatentChange(visible){
|
||||
if(visible){
|
||||
this.get_patentList();
|
||||
}
|
||||
},
|
||||
async get_patentList() {
|
||||
const res = await this.$API.srm.platstand.get_name.req();
|
||||
this.platlist = res;
|
||||
},
|
||||
handleAdd_outer() {
|
||||
this.addForm = this.getDefaultForm();
|
||||
this.type = "add";
|
||||
this.limitedVisible = true;
|
||||
this.lending_type = "outer";
|
||||
this.addForm.is_lending = true;
|
||||
},
|
||||
handleCancel() {
|
||||
this.limitedVisible = false; // 关闭弹窗
|
||||
this.lending_type = ""; // 重置 lending_type
|
||||
this.getDefaultForm()// 清空表单
|
||||
},
|
||||
submitHandle() {
|
||||
let that = this;
|
||||
that.isSaving = true;
|
||||
that.submit();
|
||||
},
|
||||
getDefaultForm(){
|
||||
return {
|
||||
volume_number: null,
|
||||
application_number: null,
|
||||
patent: null,
|
||||
pc_type: null,
|
||||
organization: null,
|
||||
inventors: "",
|
||||
agent: "",
|
||||
affiliated_platforms: "",
|
||||
affiliated_projects: "",
|
||||
application_date: "",
|
||||
authorization_date: "",
|
||||
validity_years: "",
|
||||
annuity_paid: "",
|
||||
status: "",
|
||||
award_info: "",
|
||||
bonus_amount: "",
|
||||
}
|
||||
},
|
||||
async submit() {
|
||||
let that = this;
|
||||
let res = null;
|
||||
|
|
@ -386,7 +275,6 @@ export default {
|
|||
that.isSaving = false;
|
||||
}
|
||||
},
|
||||
// 审批流结束之后才可以编辑
|
||||
filerecordEidt(row) {
|
||||
this.type = "edit";
|
||||
this.editId = row.id;
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
deptMgroup() {
|
||||
this.$API.mtm.mgroup.list.req({ page: 0 }).then(res => {
|
||||
this.$API.mtm.mgroup.list.req({ page: 0,belong_dept__name:'拉丝排板班组' }).then(res => {
|
||||
this.mgroups = res;
|
||||
});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
<el-table-column type="index" width="50" fixed="left"/>
|
||||
<el-table-column label="产品" prop="物料名" fixed="left" width="120">
|
||||
</el-table-column>
|
||||
<el-table-column label="总数" prop="总数" fixed="left" width="80">
|
||||
</el-table-column>
|
||||
<el-table-column v-for="item in lists" :key="item" :label="item">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row[item]">{{ scope.row[item] }}</span>
|
||||
|
|
@ -67,6 +69,15 @@ export default {
|
|||
}
|
||||
}
|
||||
})
|
||||
data2.forEach(item=>{
|
||||
let total = 0;
|
||||
that.lists.forEach(list=>{
|
||||
if(item[list]){
|
||||
total+= item[list];
|
||||
}
|
||||
})
|
||||
item['总数']= total;
|
||||
})
|
||||
that.tableData = data2;
|
||||
});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@
|
|||
<el-table-column label="比率" class-name="colorheader3">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm不合格_比例']">
|
||||
<span v-if="scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm可加工_比例']">{{ 100-scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm不合格_比例']-scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm可加工_比例'] }}</span>
|
||||
<span v-if="scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm可加工_比例']">{{ 100-scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm不合格_比例']-scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm可加工_比例'] }}%</span>
|
||||
<span v-else>{{ 100-scope.row.data['毛坯检测_含缺陷_剪切¢18.3mm不合格_比例'] }}%</span>
|
||||
</span>
|
||||
<span v-else>
|
||||
|
|
@ -136,7 +136,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="比率" class-name="colorheader4">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.data.毛坯检测_含缺陷_暗点合格_比例">{{ scope.row.data.毛坯检测_含缺陷_暗点不合格_比例?100-scope.row.data.毛坯检测_含缺陷_暗点不合格_比例-scope.row.data.毛坯检测_含缺陷_暗点合格_比例:100-scope.row.data.毛坯检测_含缺陷_暗点合格_比例 }}</span>
|
||||
<span v-if="scope.row.data.毛坯检测_含缺陷_暗点合格_比例">{{ scope.row.data.毛坯检测_含缺陷_暗点不合格_比例?100-scope.row.data.毛坯检测_含缺陷_暗点不合格_比例-scope.row.data.毛坯检测_含缺陷_暗点合格_比例:100-scope.row.data.毛坯检测_含缺陷_暗点合格_比例 }}%</span>
|
||||
<span v-else>{{ scope.row.data.毛坯检测_含缺陷_暗点不合格_比例?100-scope.row.data.毛坯检测_含缺陷_暗点不合格_比例:100 }}%</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
@ -267,7 +267,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="合格率" class-name="colorheader7">
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.data.毛坯检测_合格率 }}</span>
|
||||
<span>{{ scope.row.data.毛坯检测_合格率 }}%</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
|
|
|
|||
|
|
@ -42,13 +42,13 @@
|
|||
<scTable v-else ref="tables11" :data="tableData11" id="exportDiv1" stripe hideDo hidePagination
|
||||
:summary-method="getSummaries2" show-summary row-key="id">
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column label="物料名" prop="name" :filters="nameFilters11"
|
||||
<el-table-column label="物料名" prop="material_name" :filters="nameFilters11"
|
||||
:filter-method="filterName11" filter-placement="bottom-end" />
|
||||
<el-table-column label="型号" prop="model" :filters="modelFilters11"
|
||||
<el-table-column label="型号" prop="material_model" :filters="modelFilters11"
|
||||
:filter-method="filterModel11" filter-placement="bottom-end" />
|
||||
<el-table-column label="规格" prop="specification" :filters="specsFilters11"
|
||||
<el-table-column label="规格" prop="material_specification" :filters="specsFilters11"
|
||||
:filter-method="filterSpecs11" filter-placement="bottom-end" />
|
||||
<el-table-column label="仓库合格品数" prop="count_mb" />
|
||||
<el-table-column label="仓库合格品数" prop="count" />
|
||||
<el-table-column label="周预估值" v-if="params.type == 30">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.week_esitimate_consume"
|
||||
|
|
@ -274,39 +274,35 @@ export default {
|
|||
that.nameFilters11 = [];
|
||||
that.modelFilters11 = [];
|
||||
that.specsFilters11 = [];
|
||||
let nameList = [], specsList = [], modelList = [];
|
||||
if (that.material_name !== '' && that.material_name !== null) {
|
||||
that.params.name = that.material_name;
|
||||
}
|
||||
that.params.query = '{id,name,model,specification,count_mb,week_esitimate_consume}';
|
||||
this.$API.mtm.material.list.req(that.params).then((res) => {
|
||||
that.tableData11 = res;
|
||||
if (res.length > 0) {
|
||||
res.forEach((ite) => {
|
||||
if (nameList.indexOf(ite.name) > -1) { } else {
|
||||
nameList.push(ite.name);
|
||||
let obj = {};
|
||||
obj.text = ite.name;
|
||||
obj.value = ite.name;
|
||||
let obj = {query: {"material_types": this.params.type,}};
|
||||
that.$API.bi.dataset.exec.req("materialCount2", obj).then((res) => {
|
||||
if (res.data2.ds0) {
|
||||
let data = res.data2.ds0;
|
||||
that.tableData11 = data;
|
||||
if(data.length>0){
|
||||
data.forEach((ite)=>{
|
||||
if (that.nameFilters11.findIndex(i=>i.value==ite.material_name)<0) {
|
||||
let obj={};
|
||||
obj.text=ite.material_name;
|
||||
obj.value=ite.material_name;
|
||||
that.nameFilters11.push(obj);
|
||||
}
|
||||
if (modelList.indexOf(ite.model) > -1) { } else {
|
||||
modelList.push(ite.model);
|
||||
let obj2 = {};
|
||||
obj2.text = ite.model;
|
||||
obj2.value = ite.model;
|
||||
if (that.modelFilters11.findIndex(i=>i.value==ite.material_model)<0) {
|
||||
let obj2={};
|
||||
obj2.text=ite.material_model;
|
||||
obj2.value=ite.material_model;
|
||||
that.modelFilters11.push(obj2);
|
||||
}
|
||||
if (specsList.indexOf(ite.specification) > -1) { } else {
|
||||
specsList.push(ite.specification);
|
||||
let obj3 = {};
|
||||
obj3.text = ite.specification;
|
||||
obj3.value = ite.specification;
|
||||
if (that.specsFilters11.findIndex(i=>i.value==ite.material_specification)<0) {
|
||||
let obj3={};
|
||||
obj3.text=ite.material_specification;
|
||||
obj3.value=ite.material_specification;
|
||||
that.specsFilters11.push(obj3);
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
materialTypeChange() {
|
||||
let that = this;
|
||||
|
|
@ -329,17 +325,31 @@ export default {
|
|||
"select_material": "",
|
||||
"groupby_material": ""
|
||||
};
|
||||
if(that.params.type==40){
|
||||
query.select_material="material.cate as cate";
|
||||
query.groupby_material="material.cate";
|
||||
query.select_material_name = "";
|
||||
query.groupby_material_name = "";
|
||||
let query2 = {
|
||||
"material_types": this.params.type,
|
||||
"select_material": "material.name as material_name",
|
||||
"groupby_material": "material.name"
|
||||
}
|
||||
if(that.params.type==10||that.params.type==20){
|
||||
this.$API.bi.dataset.exec.req("materialCount", {query:query }).then((res) => {
|
||||
if (res.echart_options) {
|
||||
this.echartsOptions = JSON.parse(res.echart_options);
|
||||
}
|
||||
})
|
||||
}else{
|
||||
if(that.params.type==40){
|
||||
query2.select_material="material.cate as cate";
|
||||
query2.groupby_material="material.cate";
|
||||
query2.select_material_name = "";
|
||||
query2.groupby_material_name = "";
|
||||
}
|
||||
this.$API.bi.dataset.exec.req("materialCount2", {query:query2 }).then((res) => {
|
||||
if (res.echart_options) {
|
||||
this.echartsOptions = JSON.parse(res.echart_options);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//更改周预估用量
|
||||
weekcountChange(row) {
|
||||
|
|
@ -521,13 +531,13 @@ export default {
|
|||
return row.dept_name == value;
|
||||
},
|
||||
filterName11(value, row) {
|
||||
return row.name == value;
|
||||
return row.material_name == value;
|
||||
},
|
||||
filterSpecs11(value, row) {
|
||||
return row.specification == value;
|
||||
return row.material_specification == value;
|
||||
},
|
||||
filterModel11(value, row) {
|
||||
return row.model == value;
|
||||
return row.material_model == value;
|
||||
},
|
||||
filterName2(value, row) {
|
||||
return row.物料名 == value;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<el-main id="elMain" class="nopadding">
|
||||
<!-- 日志 -->
|
||||
<mlogs
|
||||
v-if="values == '日志'&&componentsShow"
|
||||
v-if="values == '日志'&&componentsShow&&!isFeiPinku"
|
||||
:mgroupName="mgroupName"
|
||||
:mgroupId="mgroupId"
|
||||
:deptId="mgroupDept"
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
style="height: 100%"
|
||||
></mlogs>
|
||||
<!-- 隐藏任务 -->
|
||||
<div v-if="values == '日志'&&componentsShow&&mtaskVisible" class="iconWrap" @click="hiddenMtask">
|
||||
<div v-if="values == '日志'&&componentsShow&&mtaskVisible&&!isFeiPinku" class="iconWrap" @click="hiddenMtask">
|
||||
<span class="iconSpan">
|
||||
<el-icon>
|
||||
<el-icon-arrow-down />
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
</span>
|
||||
</div>
|
||||
<!-- 显示任务 -->
|
||||
<div v-if="values == '日志'&&componentsShow&&!mtaskVisible" class="iconWrap iconWrapBottom" @click="showMtask">
|
||||
<div v-if="values == '日志'&&componentsShow&&!mtaskVisible&&!isFeiPinku" class="iconWrap iconWrapBottom" @click="showMtask">
|
||||
<span class="iconSpan iconSpanBottom">
|
||||
<el-icon>
|
||||
<el-icon-arrow-up />
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
</span>
|
||||
</div>
|
||||
<mtask
|
||||
v-if="values == '日志'&&componentsShow"
|
||||
v-if="values == '日志'&&componentsShow&&!isFeiPinku"
|
||||
:mgroupName="mgroupName"
|
||||
:mgroupId="mgroupId"
|
||||
:deptId="mgroupDept"
|
||||
|
|
@ -50,6 +50,15 @@
|
|||
id="mtask"
|
||||
style="height: 40%;display: none;"
|
||||
></mtask>
|
||||
<inm v-else-if="values == '库存'&&componentsShow&&isFeiPinku"
|
||||
:mgroupName="mgroupName"
|
||||
:mgroupId="mgroupId"
|
||||
:deptId="mgroupDept"
|
||||
:process = "mgroupProcess"
|
||||
:processType = "mgroupProcessType"
|
||||
:mgroup_code="mgroup_code"
|
||||
:mgroupMtype = "mgroupMtype"
|
||||
></inm>
|
||||
<!-- 交接记录 -->
|
||||
<handover
|
||||
v-else-if="values == '交接记录'&&componentsShow"
|
||||
|
|
@ -62,7 +71,7 @@
|
|||
:mgroupMtype = "mgroupMtype"
|
||||
></handover>
|
||||
<!-- 未完成 -->
|
||||
<inmIn v-else-if="values == '未完成'&&componentsShow"
|
||||
<inmIn v-else-if="values == '未完成'&&componentsShow&&!isFeiPinku"
|
||||
:mgroupName="mgroupName"
|
||||
:mgroupId="mgroupId"
|
||||
:deptId="mgroupDept"
|
||||
|
|
@ -72,7 +81,7 @@
|
|||
:mgroupMtype = "mgroupMtype"
|
||||
></inmIn>
|
||||
<!-- 已完成 -->
|
||||
<inmOut v-else-if="values == '已完成'&&componentsShow"
|
||||
<inmOut v-else-if="values == '已完成'&&componentsShow&&!isFeiPinku"
|
||||
:mgroupName="mgroupName"
|
||||
:mgroupId="mgroupId"
|
||||
:deptId="mgroupDept"
|
||||
|
|
@ -81,7 +90,7 @@
|
|||
:mgroup_code="mgroup_code"
|
||||
:mgroupMtype = "mgroupMtype"
|
||||
></inmOut>
|
||||
<record v-else-if="values == '出入库记录'"
|
||||
<record v-else-if="values == '出入库记录'&&componentsShow&&!isFeiPinku"
|
||||
:mgroupId="mgroupId"
|
||||
:deptId = "mgroupDept"
|
||||
:mgroupName="mgroupName"
|
||||
|
|
@ -92,6 +101,7 @@
|
|||
</el-container>
|
||||
</template>
|
||||
<script>
|
||||
import inm from "../inm/inmScrap.vue";
|
||||
import inmIn from "./inmIn.vue";
|
||||
import inmOut from "./inmOut.vue";
|
||||
import mlogs from "./mlogs.vue";
|
||||
|
|
@ -100,13 +110,13 @@ import record from "./../wpm_gx/inmrecord.vue";
|
|||
import handover from "./handover.vue";
|
||||
export default {
|
||||
name: "bx",
|
||||
components: { inmIn, mlogs, mtask, handover,inmOut,record },
|
||||
components: { inm,inmIn, mlogs, mtask, handover,inmOut,record },
|
||||
data() {
|
||||
return {
|
||||
mgroups:[],
|
||||
tableHieght: 200,
|
||||
selectedIndex:0,
|
||||
options: ["日志", "交接记录","未完成", "已完成"],
|
||||
options: [ "交接记录"],
|
||||
values: "日志",
|
||||
mgroupName: "",
|
||||
mgroupId: "",
|
||||
|
|
@ -116,7 +126,8 @@ export default {
|
|||
mgroupProcess: '',
|
||||
mgroupProcessType: '',
|
||||
componentsShow:false,
|
||||
mtaskVisible:false
|
||||
mtaskVisible:false,
|
||||
isFeiPinku:false,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -126,6 +137,15 @@ export default {
|
|||
let paths = this.$route.path;
|
||||
let arr = paths.split("/");
|
||||
this.mgroup_code = arr[2];
|
||||
if(this.mgroup_code=='fpk'){
|
||||
this.isFeiPinku = true;
|
||||
this.options.unshift('库存');
|
||||
this.values = '库存';
|
||||
}else{
|
||||
this.options.unshift('日志');
|
||||
this.options.push('未完成');
|
||||
this.options.push('已完成');
|
||||
}
|
||||
if(this.mgroup_code=='chengpingneiwaichujian'||this.mgroup_code=='guangzhuichengpjianc'||
|
||||
this.mgroup_code=='chengpneizhifujian'||this.mgroup_code=='chengpingxinengjiance'||
|
||||
this.mgroup_code=='chenpjianchicunjiance'||this.mgroup_code=='chengpwaiguanfujianyi'||
|
||||
|
|
@ -151,6 +171,7 @@ export default {
|
|||
that.mgroupDept = res[0].belong_dept;
|
||||
that.mgroupMtype = res[0].mtype;
|
||||
that.componentsShow = true;
|
||||
console.log('that.mgroupName',that.mgroupName);
|
||||
});
|
||||
},
|
||||
showMtask(){
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@
|
|||
v-model="processLists"
|
||||
:addTemplate="addTemplate"
|
||||
placeholder="暂无数据"
|
||||
@add="rowAdd"
|
||||
>
|
||||
<el-table-column label="工序">
|
||||
<template #default="scope">
|
||||
|
|
@ -101,6 +100,27 @@
|
|||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="使用设备">
|
||||
<template #default="scope">
|
||||
<el-select
|
||||
v-if="scope.row.isEdit"
|
||||
v-model="scope.row.equipment"
|
||||
placeholder="设备"
|
||||
class="width-100"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in equipmentOtions"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<div v-else>
|
||||
<span v-if="scope.row.equipment!==null">{{ scope.row.equipment_name}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作时间">
|
||||
<template #default="scope">
|
||||
<el-date-picker
|
||||
|
|
@ -116,23 +136,6 @@
|
|||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-form-item v-if="route_code=='pengma'" label="使用设备" prop="equipment">
|
||||
<template #default="scope">
|
||||
<el-select
|
||||
v-model="scope.row.equipment"
|
||||
placeholder="设备"
|
||||
class="width-100"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in equipmentOtions"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-form-item>
|
||||
<el-table-column label="班次"></el-table-column>
|
||||
<el-table-column label="创建时间"></el-table-column>
|
||||
<el-table-column label="操作" fixed="right" align="center" width="150px">
|
||||
|
|
@ -514,9 +517,10 @@ export default {
|
|||
addTemplate:{
|
||||
mlog: "",
|
||||
process: "",
|
||||
equipment: "",
|
||||
handle_user: "",
|
||||
handle_user_name: "",
|
||||
work_start_time: "",
|
||||
handle_user_name: "",
|
||||
isEdit: true,
|
||||
},
|
||||
qct:null,
|
||||
|
|
@ -540,6 +544,7 @@ export default {
|
|||
this.apiObj = this.$API.wpm.mlogb.list;
|
||||
let userInfo = that.$TOOL.data.get("USER_INFO");
|
||||
that.addTemplate.mlog = that.mlogItem.id;
|
||||
that.addTemplate.equipment = "";
|
||||
that.addTemplate.handle_user = userInfo.id;
|
||||
that.addTemplate.handle_user_name = userInfo.name;
|
||||
that.addTemplate.work_start_time = this.$TOOL.dateFormat(new Date());
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
</th>
|
||||
<th class="w_30 inlineBlock">序号</th>
|
||||
<th class="w_140 inlineBlock">物料批次</th>
|
||||
<th class="w_140 inlineBlock">物料编号</th>
|
||||
<th class="w_150 inlineBlock">物料编号</th>
|
||||
<th class="w_80 inlineBlock" v-for="item in qct_testitems" :key="item.id">{{ item.testitem_name }}</th>
|
||||
<th class="w_80 inlineBlock" v-for="item in qct_defects" :key="item.id">{{ item.defect_name }}</th>
|
||||
<th class="w_80 inlineBlock">备注</th>
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
<input v-if="row.isEdit" v-model="row.mlogb__batch" placeholder="物料批次">
|
||||
<span v-else>{{ row.mlogb__batch }}</span>
|
||||
</td>
|
||||
<td class="w_140 inlineBlock">
|
||||
<td class="w_150 inlineBlock">
|
||||
<input v-if="row.isEdit" v-model="row.number" placeholder="物料编号">
|
||||
<span v-else>{{ row.number }}</span>
|
||||
<span v-if="row.wpr_number_out !== null && row.wpr_number_out !== undefined">——{{ row.wpr_number_out }}</span>
|
||||
|
|
|
|||
|
|
@ -453,8 +453,10 @@ export default {
|
|||
//仓库人员
|
||||
getDeptUser() {
|
||||
let that = this;
|
||||
let userOption = [];
|
||||
this.$API.system.user.list.req({ page: 0, posts__code__contains: "inm" }).then((res) => {
|
||||
that.userOption = res;
|
||||
userOption = Array.from(new Map(res.map(item => [item.id, item])).values());
|
||||
that.userOption = userOption;
|
||||
});
|
||||
},
|
||||
//仓库物料
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
<el-container>
|
||||
<el-header>
|
||||
<div class="left-panel">
|
||||
<!-- <el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'"
|
||||
v-if="mgroupName!=='size'&&mgroupName!=='facade'&&project_code=='gx'"
|
||||
>领料</el-button> -->
|
||||
<el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'"
|
||||
v-if="mgroupName=='外协白片抛'||mgroupName=='外协一次抛'||mgroupName=='外扫'"
|
||||
>领料</el-button>
|
||||
<el-button type="primary" @click="tomio('do_in')" v-auth="'mio.do'">入库</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
|
|
|
|||
Loading…
Reference in New Issue