styleAdjust
This commit is contained in:
parent
e2493b0eee
commit
ffb7b6ece2
|
@ -13,3 +13,10 @@ export function clockRecord(data) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getEmployee(data) {
|
||||||
|
return request({
|
||||||
|
url: '/hrm/employee/',
|
||||||
|
method: 'get',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -98,6 +98,7 @@
|
||||||
import center from './center'
|
import center from './center'
|
||||||
import bottomLeft from './bottomLeft'
|
import bottomLeft from './bottomLeft'
|
||||||
import bottomRight from './bottomRight'
|
import bottomRight from './bottomRight'
|
||||||
|
import { getPlanGantt } from "@/api/srm";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [ drawMixin ],
|
mixins: [ drawMixin ],
|
||||||
|
@ -108,6 +109,7 @@
|
||||||
dateDay: null,
|
dateDay: null,
|
||||||
dateYear: null,
|
dateYear: null,
|
||||||
dateWeek: null,
|
dateWeek: null,
|
||||||
|
planGanttList:[],
|
||||||
weekday: ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
|
weekday: ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -122,6 +124,7 @@
|
||||||
mounted() {
|
mounted() {
|
||||||
this.timeFn();
|
this.timeFn();
|
||||||
this.cancelLoading();
|
this.cancelLoading();
|
||||||
|
this.getPageData();
|
||||||
let bigHeight = document.getElementsByClassName('host-body')[0].clientHeight;
|
let bigHeight = document.getElementsByClassName('host-body')[0].clientHeight;
|
||||||
let firstHeight = document.getElementById('firstLine').clientHeight;
|
let firstHeight = document.getElementById('firstLine').clientHeight;
|
||||||
let secondHeight = document.getElementsByClassName('jc-between')[0].clientHeight;
|
let secondHeight = document.getElementsByClassName('jc-between')[0].clientHeight;
|
||||||
|
@ -139,6 +142,16 @@
|
||||||
this.dateWeek = this.weekday[new Date().getDay()]
|
this.dateWeek = this.weekday[new Date().getDay()]
|
||||||
}, 1000)
|
}, 1000)
|
||||||
},
|
},
|
||||||
|
getPageData(){
|
||||||
|
let that = this;
|
||||||
|
getPlanGantt({Authorization:'big_screen'}).then(res => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
this.planGanttList = res.data.results;
|
||||||
|
} else {
|
||||||
|
that.$message.error(res.msg);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
cancelLoading() {
|
cancelLoading() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
|
@ -240,7 +240,8 @@
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="部门" prop="dept_name">
|
<el-table-column label="部门" prop="dept_">
|
||||||
|
<template slot-scope="scope">{{scope.row.dept_.name}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -338,7 +339,8 @@
|
||||||
<script>
|
<script>
|
||||||
import echarts from 'echarts'
|
import echarts from 'echarts'
|
||||||
import {mapGetters} from 'vuex';
|
import {mapGetters} from 'vuex';
|
||||||
import {getUserList} from "@/api/user";
|
// import {getUserList} from "@/api/user";
|
||||||
|
import {getEmployee} from "@/api/hrm";
|
||||||
import {getMaterialList} from "@/api/mtm";
|
import {getMaterialList} from "@/api/mtm";
|
||||||
import {getProductionplanList} from "@/api/pm";
|
import {getProductionplanList} from "@/api/pm";
|
||||||
import {getmaterialbatchList} from "@/api/inm";
|
import {getmaterialbatchList} from "@/api/inm";
|
||||||
|
@ -586,7 +588,7 @@
|
||||||
let that = this;
|
let that = this;
|
||||||
that.listLoadingUser = true;
|
that.listLoadingUser = true;
|
||||||
that.userPage =1;
|
that.userPage =1;
|
||||||
getUserList({page: that.userPage, page_size: that.userPageSize, fields: 'id,name,dept_name,is_atwork'}).then((response) => {
|
getEmployee({page: that.userPage, page_size: that.userPageSize}).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
that.userList = response.data.results;
|
that.userList = response.data.results;
|
||||||
that.userTotal = response.data.count;
|
that.userTotal = response.data.count;
|
||||||
|
@ -600,7 +602,7 @@
|
||||||
let that = this;
|
let that = this;
|
||||||
that.listLoadingUser = true;
|
that.listLoadingUser = true;
|
||||||
that.userPage = val;
|
that.userPage = val;
|
||||||
getUserList({page: val, page_size: that.userPageSize, fields: 'id,name,dept_name,is_atwork'}).then((response) => {
|
getEmployee({page: val, page_size: that.userPageSize, fields: 'id,name,dept_name,is_atwork'}).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
that.userList = response.data.results;
|
that.userList = response.data.results;
|
||||||
that.userTotal = response.data.count;
|
that.userTotal = response.data.count;
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
|
|
||||||
<div style="margin-top: 2px">
|
<div style="margin-top: 2px">
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate">
|
||||||
>新增工序</el-button
|
新增工序
|
||||||
>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
|
@ -19,7 +18,7 @@
|
||||||
height="100"
|
height="100"
|
||||||
v-el-height-adaptive-table="{bottomOffset: 10}"
|
v-el-height-adaptive-table="{bottomOffset: 10}"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50"/>
|
||||||
<el-table-column label="工序编号">
|
<el-table-column label="工序编号">
|
||||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
<template slot-scope="scope">{{ scope.row.number }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -29,12 +28,12 @@
|
||||||
<el-table-column label="工序类别">
|
<el-table-column label="工序类别">
|
||||||
<template slot-scope="scope">{{ type_[scope.row.type] }}</template>
|
<template slot-scope="scope">{{ type_[scope.row.type] }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="生产车间" >
|
<el-table-column label="生产车间">
|
||||||
<template slot-scope="scope" v-if="scope.row.workshop_">{{ scope.row.workshop_.name }}</template>
|
<template slot-scope="scope" v-if="scope.row.workshop_">{{ scope.row.workshop_.name }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="指导书">
|
<el-table-column align="center" label="指导书" show-overflow-tooltip min-width="110">
|
||||||
<template slot-scope="scope" v-if="scope.row.instruction_">
|
<template slot-scope="scope" v-if="scope.row.instruction_">
|
||||||
<el-link :href="scope.row.instruction_.path" >{{scope.row.instruction_.name}}</el-link>
|
<el-link :href="scope.row.instruction_.path">{{scope.row.instruction_.name}}</el-link>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="创建时间">
|
<el-table-column label="创建时间">
|
||||||
|
@ -46,25 +45,26 @@
|
||||||
width="220px"
|
width="220px"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
||||||
|
|
||||||
<el-link
|
<el-link
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleAdd(scope)"
|
@click="handleAdd(scope)"
|
||||||
>添加子工序</el-link
|
|
||||||
>
|
>
|
||||||
|
添加子工序
|
||||||
|
</el-link>
|
||||||
<el-link
|
<el-link
|
||||||
v-if="checkPermission(['process_update'])"
|
v-if="checkPermission(['process_update'])"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleEdit(scope)"
|
@click="handleEdit(scope)"
|
||||||
>编辑</el-link
|
|
||||||
>
|
>
|
||||||
|
编辑
|
||||||
|
</el-link>
|
||||||
<el-link
|
<el-link
|
||||||
v-if="checkPermission(['process_delete'])"
|
v-if="checkPermission(['process_delete'])"
|
||||||
type="danger"
|
type="danger"
|
||||||
@click="handleDelete(scope)"
|
@click="handleDelete(scope)"
|
||||||
>删除</el-link
|
|
||||||
>
|
>
|
||||||
|
删除
|
||||||
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -89,13 +89,13 @@
|
||||||
:rules="rule1"
|
:rules="rule1"
|
||||||
>
|
>
|
||||||
<el-form-item label="工序名称" prop="name">
|
<el-form-item label="工序名称" prop="name">
|
||||||
<el-input v-model="process.name" placeholder="工序名称" />
|
<el-input v-model="process.name" placeholder="工序名称"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="工序编号" prop="number">
|
<el-form-item label="工序编号" prop="number">
|
||||||
<el-input v-model="process.number" placeholder="工序编号" />
|
<el-input v-model="process.number" placeholder="工序编号"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="工序编号" prop="type">
|
<el-form-item label="工序编号" prop="type">
|
||||||
<el-select style="width: 100%" v-model="process.type" placeholder="请选择" >
|
<el-select style="width: 100%" v-model="process.type" placeholder="请选择">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in option"
|
v-for="item in option"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
<treeselect v-model="process.workshop" :options="workoptions" placeholder="所属部门"/>
|
<treeselect v-model="process.workshop" :options="workoptions" placeholder="所属部门"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="指导书内容" prop="instruction_content">
|
<el-form-item label="指导书内容" prop="instruction_content">
|
||||||
<el-input type="textarea" :rows="3" v-model="process.instruction_content" placeholder="指导书内容" />
|
<el-input type="textarea" :rows="3" v-model="process.instruction_content" placeholder="指导书内容"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="指导书" prop="template" v-if="dialogVisible">
|
<el-form-item label="指导书" prop="template" v-if="dialogVisible">
|
||||||
<el-upload
|
<el-upload
|
||||||
|
@ -125,7 +125,6 @@
|
||||||
<el-button size="small" type="primary">上传文件</el-button>
|
<el-button size="small" type="primary">上传文件</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
<el-button type="danger" @click="dialogVisible = false">取消</el-button>
|
<el-button type="danger" @click="dialogVisible = false">取消</el-button>
|
||||||
|
@ -135,21 +134,21 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getProcessList, createProcess,updateProcess,deleteProcess } from "@/api/mtm";
|
import {getProcessList, createProcess, updateProcess, deleteProcess} from "@/api/mtm";
|
||||||
import checkPermission from "@/utils/permission";
|
import checkPermission from "@/utils/permission";
|
||||||
import { getOrgAll } from "@/api/org"
|
import {getOrgAll} from "@/api/org"
|
||||||
import { upUrl, upHeaders } from "@/api/file";
|
import {upUrl, upHeaders} from "@/api/file";
|
||||||
import Treeselect from '@riophae/vue-treeselect'
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
|
||||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
import { genTree } from "@/utils";
|
import {genTree} from "@/utils";
|
||||||
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
||||||
const defaultprocess = {
|
const defaultprocess = {
|
||||||
name: "",
|
name: "",
|
||||||
number: "",
|
number: "",
|
||||||
};
|
};
|
||||||
export default {
|
export default {
|
||||||
components: { Pagination,Treeselect },
|
components: {Pagination, Treeselect},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
process: defaultprocess,
|
process: defaultprocess,
|
||||||
|
@ -158,16 +157,16 @@ export default {
|
||||||
},
|
},
|
||||||
upHeaders: upHeaders(),
|
upHeaders: upHeaders(),
|
||||||
upUrl: upUrl(),
|
upUrl: upUrl(),
|
||||||
fileList:[],
|
fileList: [],
|
||||||
workoptions:[],
|
workoptions: [],
|
||||||
listQuery: {
|
listQuery: {
|
||||||
page: 1,
|
page: 1,
|
||||||
page_size: 20,
|
page_size: 20,
|
||||||
},
|
},
|
||||||
type_:{
|
type_: {
|
||||||
10:'特殊',
|
10: '特殊',
|
||||||
20:'关键',
|
20: '关键',
|
||||||
30:'普通',
|
30: '普通',
|
||||||
|
|
||||||
},
|
},
|
||||||
option: [{
|
option: [{
|
||||||
|
@ -184,8 +183,8 @@ export default {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
dialogType: "new",
|
dialogType: "new",
|
||||||
rule1: {
|
rule1: {
|
||||||
name: [{ required: true, message: "请输入", trigger: "blur" }],
|
name: [{required: true, message: "请输入", trigger: "blur"}],
|
||||||
number: [{ required: true, message: "请输入", trigger: "blur" }],
|
number: [{required: true, message: "请输入", trigger: "blur"}],
|
||||||
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -195,7 +194,6 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getOrgAll();
|
this.getOrgAll();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkPermission,
|
checkPermission,
|
||||||
|
@ -227,17 +225,14 @@ export default {
|
||||||
handleUpSuccess(res, file, filelist) {
|
handleUpSuccess(res, file, filelist) {
|
||||||
this.process.instruction = res.data.id;
|
this.process.instruction = res.data.id;
|
||||||
},
|
},
|
||||||
handleRemove(file, filelist){
|
handleRemove(file, filelist) {
|
||||||
this.process.instruction = null;
|
this.process.instruction = null;
|
||||||
},
|
},
|
||||||
//添加子工序
|
//添加子工序
|
||||||
handleAdd(scope)
|
handleAdd(scope) {
|
||||||
{
|
this.$router.push({name: "Step", params: {id: scope.row.id},})
|
||||||
this.$router.push({name: "Step", params: { id: scope.row.id }, })
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
handleFilter() {
|
handleFilter() {
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
@ -253,7 +248,7 @@ export default {
|
||||||
this.process = Object.assign({}, defaultprocess);
|
this.process = Object.assign({}, defaultprocess);
|
||||||
this.dialogType = "new";
|
this.dialogType = "new";
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
this.fileList=[];
|
this.fileList = [];
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs["Form"].clearValidate();
|
this.$refs["Form"].clearValidate();
|
||||||
});
|
});
|
||||||
|
@ -266,7 +261,7 @@ export default {
|
||||||
if (this.process.instruction) {
|
if (this.process.instruction) {
|
||||||
this.fileList = [
|
this.fileList = [
|
||||||
{
|
{
|
||||||
name:this.process.instruction_.name,
|
name: this.process.instruction_.name,
|
||||||
url: this.process.instruction_.path,
|
url: this.process.instruction_.path,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -319,5 +314,5 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -114,60 +114,50 @@
|
||||||
stripe
|
stripe
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
height="250"
|
height="250"
|
||||||
|
|
||||||
|
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50"/>
|
<el-table-column type="index" width="50"/>
|
||||||
|
|
||||||
<el-table-column label="订单编号" width="110">
|
<el-table-column label="订单编号" width="110">
|
||||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
<template slot-scope="scope">{{ scope.row.number }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="客户名称" width="110">
|
<el-table-column label="客户名称" show-overflow-tooltip min-width="110">
|
||||||
<template slot-scope="scope" show-overflow-tooltip>{{ scope.row.customer_.name }}</template>
|
<template slot-scope="scope" show-overflow-tooltip>{{ scope.row.customer_.name }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="合同编号" show-overflow-tooltip min-width="110">
|
||||||
<el-table-column label="合同编号" width="110">
|
|
||||||
<template slot-scope="scope" v-if="scope.row.contract">{{ scope.row.contract_.number }}</template>
|
<template slot-scope="scope" v-if="scope.row.contract">{{ scope.row.contract_.number }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="合同名称" show-overflow-tooltip width="110">
|
<el-table-column label="合同名称" show-overflow-tooltip min-width="110">
|
||||||
<template slot-scope="scope" v-if="scope.row.contract">{{ scope.row.contract_.name }}</template>
|
<template slot-scope="scope" v-if="scope.row.contract">{{ scope.row.contract_.name }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="所需产品" show-overflow-tooltip width="150">
|
<el-table-column label="所需产品" show-overflow-tooltip min-width="150">
|
||||||
<template slot-scope="scope">{{ scope.row.product_.name }}</template>
|
<template slot-scope="scope">{{ scope.row.product_.name }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="产品型号" width="110">
|
<el-table-column label="产品型号" width="110">
|
||||||
<template slot-scope="scope">{{ scope.row.product_.specification }}</template>
|
<template slot-scope="scope">{{ scope.row.product_.specification }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="产品数量" width="110">
|
<el-table-column label="产品数量">
|
||||||
<template slot-scope="scope">{{ scope.row.count }}</template>
|
<template slot-scope="scope">{{ scope.row.count }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="已派数量" width="110">
|
<el-table-column label="已派数量">
|
||||||
<template slot-scope="scope">{{ scope.row.planed_count }}</template>
|
<template slot-scope="scope">{{ scope.row.planed_count }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="交货日期" width="100">
|
||||||
<el-table-column label="交货日期" width="110">
|
|
||||||
<template slot-scope="scope">{{ scope.row.delivery_date }}</template>
|
<template slot-scope="scope">{{ scope.row.delivery_date }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="创建时间" show-overflow-tooltip min-width="110">
|
||||||
|
|
||||||
<el-table-column label="创建时间">
|
|
||||||
<template slot-scope="scope">{{ scope.row.create_time }}</template>
|
<template slot-scope="scope">{{ scope.row.create_time }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
label="操作"
|
label="操作"
|
||||||
fixed="right"
|
fixed="right"
|
||||||
width="100px"
|
width="80px"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
||||||
<el-link type="primary"
|
<el-link type="primary"
|
||||||
v-if="checkPermission(['warehouse_update'])"
|
v-if="checkPermission(['warehouse_update'])"
|
||||||
@click="handleclick(scope)"
|
@click="handleclick(scope)"
|
||||||
>排产
|
>排产
|
||||||
</el-link
|
</el-link>
|
||||||
>
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
@ -9,14 +9,14 @@
|
||||||
<Echart
|
<Echart
|
||||||
:options="pieOptions"
|
:options="pieOptions"
|
||||||
id="pieChart"
|
id="pieChart"
|
||||||
height="400px"
|
height="45vh"
|
||||||
></Echart>
|
></Echart>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="chartsTitle">废料原因统计</div>
|
<div class="chartsTitle">废料原因统计</div>
|
||||||
<div id="barChart" style="width:100%;height: 400px;"></div>
|
<div id="barChart" style="width:100%;height: 45vh"></div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
:id="chartId1"
|
:id="chartId1"
|
||||||
:options="barOptions"
|
:options="barOptions"
|
||||||
:className="chartsName"
|
:className="chartsName"
|
||||||
height="400px"
|
height="45vh"
|
||||||
width="600px"
|
width="600px"
|
||||||
>
|
>
|
||||||
</charts>
|
</charts>
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
:id="chartId2"
|
:id="chartId2"
|
||||||
:options="barOptions"
|
:options="barOptions"
|
||||||
:className="chartsName"
|
:className="chartsName"
|
||||||
height="400px"
|
height="45vh"
|
||||||
width="600px"
|
width="600px"
|
||||||
>
|
>
|
||||||
</charts>
|
</charts>
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
:id="chartId3"
|
:id="chartId3"
|
||||||
:options="barOptions"
|
:options="barOptions"
|
||||||
:className="chartsName"
|
:className="chartsName"
|
||||||
height="400px"
|
height="45vh"
|
||||||
>
|
>
|
||||||
</charts>
|
</charts>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<Echart
|
<Echart
|
||||||
:options="pieOptions"
|
:options="pieOptions"
|
||||||
id="pieChart"
|
id="pieChart"
|
||||||
height="400px"
|
height="45vh"
|
||||||
></Echart>
|
></Echart>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
:id="chartId1"
|
:id="chartId1"
|
||||||
:options="barOptions"
|
:options="barOptions"
|
||||||
:className="chartsName"
|
:className="chartsName"
|
||||||
height="400px"
|
height="45vh"
|
||||||
width="100%"
|
width="100%"
|
||||||
>
|
>
|
||||||
</charts>
|
</charts>
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
:id="chartId2"
|
:id="chartId2"
|
||||||
:options="barOptions1"
|
:options="barOptions1"
|
||||||
:className="chartsName"
|
:className="chartsName"
|
||||||
height="400px"
|
height="45vh"
|
||||||
width="100%"
|
width="100%"
|
||||||
>
|
>
|
||||||
</charts>
|
</charts>
|
||||||
|
@ -55,10 +55,10 @@
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
|
|
||||||
<el-table-column label="订单编号" width="160" show-overflow-tooltip>
|
<el-table-column label="订单编号" width="120" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
<template slot-scope="scope">{{ scope.row.number }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="产品名称" width="200" show-overflow-tooltip>
|
<el-table-column label="产品名称" width="160" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">{{ scope.row.product_.name }}</template>
|
<template slot-scope="scope">{{ scope.row.product_.name }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="产品数量">
|
<el-table-column label="产品数量">
|
||||||
|
|
|
@ -17,92 +17,96 @@
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
@current-change="handleCurrentChange"
|
@current-change="handleCurrentChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50"/>
|
||||||
|
<el-table-column label="子计划编号" min-width="100" show-overflow-tooltip>
|
||||||
<el-table-column label="子计划编号" width="100">
|
|
||||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
<template slot-scope="scope">{{ scope.row.number }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="产品名称">
|
<el-table-column label="产品名称" min-width="120" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">
|
||||||
scope.row.plan_product_.name
|
{{scope.row.plan_product_.name}}
|
||||||
}}</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="产品型号">
|
<el-table-column label="产品型号">
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">
|
||||||
scope.row.product_.specification
|
{{scope.row.product_.specification}}
|
||||||
}}</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="生产主产品" width="140">
|
<el-table-column label="生产主产品" min-width="130" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">
|
||||||
scope.row.product_.name
|
{{scope.row.product_.name}}
|
||||||
}}</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="名称">
|
<el-table-column label="名称" min-width="100" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">
|
||||||
scope.row.subproduction_.name
|
{{scope.row.subproduction_.name}}
|
||||||
}}</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="生产车间" min-width="100" show-overflow-tooltip>
|
||||||
<el-table-column label="生产车间">
|
<template slot-scope="scope">
|
||||||
<template slot-scope="scope">{{
|
{{scope.row.workshop_.name}}
|
||||||
scope.row.workshop_.name
|
</template>
|
||||||
}}</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="子工序" min-width="160">
|
||||||
<el-table-column label="子工序" width="160">
|
|
||||||
<template slot-scope="scope" v-if="scope.row.steps">
|
<template slot-scope="scope" v-if="scope.row.steps">
|
||||||
<el-tag
|
<el-tag
|
||||||
v-for="item in scope.row.steps"
|
v-for="item in scope.row.steps"
|
||||||
:key="item.number"
|
:key="item.number"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.number"
|
:value="item.number"
|
||||||
>{{ item.name }}</el-tag
|
|
||||||
>
|
>
|
||||||
|
{{ item.name }}
|
||||||
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="开工时间">
|
<el-table-column label="开工时间" width="100">
|
||||||
<template slot-scope="scope">{{ scope.row.start_date }}</template>
|
<template slot-scope="scope">{{ scope.row.start_date }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="完工时间">
|
<el-table-column label="完工时间" width="100">
|
||||||
<template slot-scope="scope">{{ scope.row.end_date }}</template>
|
<template slot-scope="scope">{{ scope.row.end_date }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态">
|
<el-table-column label="状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ state_[scope.row.state] }}</template
|
{{ state_[scope.row.state] }}
|
||||||
>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="领料状态" width="100">
|
<el-table-column label="领料状态" width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.is_picked == false">未领料</el-tag>
|
<el-tag v-if="scope.row.is_picked == false">未领料</el-tag>
|
||||||
<el-tag v-else>已领料</el-tag>
|
<el-tag v-else>已领料</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="计划/生产/合格">
|
<el-table-column label="计划/生产/合格">
|
||||||
<template slot-scope="scope"
|
<template slot-scope="scope">
|
||||||
>{{ scope.row.count }}/{{ scope.row.count_real }}/{{
|
{{ scope.row.count }}/{{ scope.row.count_real }}/{{scope.row.count_ok}}
|
||||||
scope.row.count_ok
|
</template>
|
||||||
}}</template
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
<el-table-column align="center" label="操作" width="130px">
|
align="center"
|
||||||
|
label="操作"
|
||||||
|
width="80px"
|
||||||
|
fixed="right"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-link
|
<el-link
|
||||||
type="success"
|
type="success"
|
||||||
v-if="scope.row.is_picked == false"
|
v-if="scope.row.is_picked == false"
|
||||||
@click="handleNeed(scope)"
|
@click="handleNeed(scope)"
|
||||||
>领料</el-link
|
|
||||||
>
|
>
|
||||||
|
领料
|
||||||
|
</el-link>
|
||||||
<el-link
|
<el-link
|
||||||
type="success"
|
type="success"
|
||||||
v-if="scope.row.is_picked"
|
v-if="scope.row.is_picked"
|
||||||
@click="handleNeed(scope)"
|
@click="handleNeed(scope)"
|
||||||
>继续领料</el-link
|
|
||||||
>
|
>
|
||||||
<el-link type="primary" @click="handlepick(scope)"
|
继续领料
|
||||||
>领半成品</el-link
|
</el-link>
|
||||||
|
<el-link
|
||||||
|
type="primary"
|
||||||
|
@click="handlepick(scope)"
|
||||||
>
|
>
|
||||||
|
领半成品
|
||||||
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -127,79 +131,74 @@
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.number"
|
:value="item.number"
|
||||||
@click="handlework(item)"
|
@click="handlework(item)"
|
||||||
>{{ item.name }}</el-button
|
|
||||||
>
|
>
|
||||||
|
{{ item.name }}
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleScrapbcp()"
|
@click="handleScrapbcp()"
|
||||||
id="scrap"
|
id="scrap"
|
||||||
style="float: right; display: none"
|
style="float: right; display: none"
|
||||||
>报废</el-button
|
|
||||||
>
|
>
|
||||||
|
报废
|
||||||
|
</el-button>
|
||||||
<el-badge :value="count" class="item" style="float:right">
|
<el-badge :value="count" class="item" style="float:right">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleAll()"
|
@click="handleAll()"
|
||||||
|
|
||||||
>显示全部</el-button
|
|
||||||
>
|
>
|
||||||
</el-badge>
|
显示全部
|
||||||
|
</el-button>
|
||||||
|
</el-badge>
|
||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
:data="wproductData"
|
|
||||||
@selection-change="handleSelectionChange"
|
|
||||||
border
|
border
|
||||||
fit
|
fit
|
||||||
stripe
|
stripe
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
max-height="300"
|
max-height="300"
|
||||||
|
:data="wproductData"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55"> </el-table-column>
|
<el-table-column type="selection" width="40"></el-table-column>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50"/>
|
||||||
<el-table-column label="子计划编号" width="100">
|
<el-table-column label="子计划编号" width="100" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">{{ scope.row.number }}</template>>
|
||||||
scope.row.subproduction_plan_.number
|
<template slot-scope="scope">
|
||||||
}}</template>
|
{{scope.row.subproduction_plan_.number}}
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="玻璃编号" width="100" show-overflow-tooltip>
|
||||||
<el-table-column label="玻璃编号">
|
<template slot-scope="scope">
|
||||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
{{ scope.row.number }}
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="玻璃状态" width="100" show-overflow-tooltip>
|
||||||
<el-table-column label="玻璃状态">
|
<template slot-scope="scope">
|
||||||
<template slot-scope="scope">{{
|
{{scope.row.material_.name}}
|
||||||
scope.row.material_.name
|
</template>
|
||||||
}}</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="所在子工序" width="100" show-overflow-tooltip>
|
||||||
<el-table-column label="所在子工序">
|
<template slot-scope="scope">
|
||||||
<template slot-scope="scope">{{
|
{{scope.row.step_.name}}
|
||||||
scope.row.step_.name
|
</template>
|
||||||
}}</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="进行状态">
|
<el-table-column label="进行状态" width="100" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">
|
||||||
actstate_[scope.row.act_state]
|
{{actstate_[scope.row.act_state]}}
|
||||||
}}</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="不合格标记">
|
<el-table-column label="不合格标记" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ ng_sign_[scope.row.ng_sign] }}
|
{{ ng_sign_[scope.row.ng_sign] }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="更新时间">
|
<el-table-column label="更新时间" width="160">
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">
|
||||||
scope.row.update_time
|
{{scope.row.update_time}}
|
||||||
}}</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
|
@ -214,21 +213,21 @@
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
max-height="300"
|
max-height="300"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50"/>
|
||||||
<el-table-column label="子计划编号" width="100">
|
<el-table-column label="子计划编号" min-width="100" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">
|
||||||
scope.row.subproduction_plan_.number
|
{{scope.row.subproduction_plan_.number }}
|
||||||
}}</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="物料名称">
|
<el-table-column label="物料名称" min-width="130" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">
|
||||||
scope.row.material_.name
|
{{scope.row.material_.name}}
|
||||||
}}</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="物料单位">
|
<el-table-column label="物料单位">
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">
|
||||||
scope.row.material_.unit
|
{{scope.row.material_.unit}}
|
||||||
}}</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="物料批次">
|
<el-table-column label="物料批次">
|
||||||
<template slot-scope="scope">{{ scope.row.batch }}</template>
|
<template slot-scope="scope">{{ scope.row.batch }}</template>
|
||||||
|
@ -248,7 +247,7 @@
|
||||||
:visible.sync="dialogFormVisiblebcp"
|
:visible.sync="dialogFormVisiblebcp"
|
||||||
>
|
>
|
||||||
<el-form :model="formbcp">
|
<el-form :model="formbcp">
|
||||||
<el-form-item label="甩片原因" >
|
<el-form-item label="甩片原因">
|
||||||
<el-select
|
<el-select
|
||||||
style="width: 80%"
|
style="width: 80%"
|
||||||
v-model="formbcp.scrap_reason"
|
v-model="formbcp.scrap_reason"
|
||||||
|
@ -283,7 +282,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="material_.unit" label="物料单位">
|
<el-table-column prop="material_.unit" label="物料单位">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="count" label="所需物料数量"> </el-table-column>
|
<el-table-column prop="count" label="所需物料数量"></el-table-column>
|
||||||
<el-table-column prop="count_pick" label="已领物料数量">
|
<el-table-column prop="count_pick" label="已领物料数量">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="count_real" label="实际产出/消耗">
|
<el-table-column prop="count_real" label="实际产出/消耗">
|
||||||
|
@ -293,8 +292,9 @@
|
||||||
<el-link
|
<el-link
|
||||||
v-if="checkPermission(['material_update'])"
|
v-if="checkPermission(['material_update'])"
|
||||||
@click="handleReceive(scope)"
|
@click="handleReceive(scope)"
|
||||||
>领半成品</el-link
|
|
||||||
>
|
>
|
||||||
|
领半成品
|
||||||
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -303,7 +303,6 @@
|
||||||
<el-button type="primary" @click="bcpllSubmit">确 定</el-button>
|
<el-button type="primary" @click="bcpllSubmit">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="半成品列表"
|
title="半成品列表"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
|
@ -318,17 +317,14 @@
|
||||||
max-height="300"
|
max-height="300"
|
||||||
@selection-change="handleSelectionChangess"
|
@selection-change="handleSelectionChangess"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55"> </el-table-column>
|
<el-table-column type="selection" width="55"></el-table-column>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50"/>
|
||||||
|
|
||||||
<el-table-column label="玻璃编号">
|
<el-table-column label="玻璃编号">
|
||||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
<template slot-scope="scope">{{ scope.row.number }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="玻璃状态">
|
<el-table-column label="玻璃状态">
|
||||||
<template slot-scope="scope">{{ scope.row.material_.name }}</template>
|
<template slot-scope="scope">{{ scope.row.material_.name }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="子计划编号">
|
<el-table-column label="子计划编号">
|
||||||
<template slot-scope="scope">{{ scope.row.subproduction_plan_.number }}</template>
|
<template slot-scope="scope">{{ scope.row.subproduction_plan_.number }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -341,7 +337,6 @@
|
||||||
<el-button type="primary" @click="wproductSubmit">确 定</el-button>
|
<el-button type="primary" @click="wproductSubmit">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:visible.sync="dialogVisiblenw"
|
:visible.sync="dialogVisiblenw"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
|
@ -381,8 +376,9 @@
|
||||||
style="float: right; padding: 3px 0"
|
style="float: right; padding: 3px 0"
|
||||||
@click="handlePick"
|
@click="handlePick"
|
||||||
type="text"
|
type="text"
|
||||||
>确认领料</el-button
|
|
||||||
>
|
>
|
||||||
|
确认领料
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<template>
|
<template>
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -391,17 +387,17 @@
|
||||||
height="300"
|
height="300"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<el-table-column prop="batch" label="物料批次"> </el-table-column>
|
<el-table-column prop="batch" label="物料批次"></el-table-column>
|
||||||
<el-table-column prop="material_.name" label="物料名称">
|
<el-table-column prop="material_.name" label="物料名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="warehouse_.name" label="物料所在仓库">
|
<el-table-column prop="warehouse_.name" label="物料所在仓库">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="count" label="物料总数量"> </el-table-column>
|
<el-table-column prop="count" label="物料总数量"></el-table-column>
|
||||||
<el-table-column label="输入领料数量" width="140px">
|
<el-table-column label="输入领料数量" width="140px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-form
|
<el-form
|
||||||
:model="scope.row"
|
|
||||||
v-if="scope.row.material_.type != 2"
|
v-if="scope.row.material_.type != 2"
|
||||||
|
:model="scope.row"
|
||||||
widht="100px"
|
widht="100px"
|
||||||
>
|
>
|
||||||
<el-form-item size="mini">
|
<el-form-item size="mini">
|
||||||
|
@ -415,7 +411,6 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column prop="count_pick" label="已领物料数量">
|
<el-table-column prop="count_pick" label="已领物料数量">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="material_.specification" label="物料规格">
|
<el-table-column prop="material_.specification" label="物料规格">
|
||||||
|
@ -427,8 +422,9 @@
|
||||||
<el-link
|
<el-link
|
||||||
v-if="scope.row.material_.type == 2"
|
v-if="scope.row.material_.type == 2"
|
||||||
@click="handlewproduct(scope)"
|
@click="handlewproduct(scope)"
|
||||||
>选择半成品</el-link
|
|
||||||
>
|
>
|
||||||
|
选择半成品
|
||||||
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -449,23 +445,20 @@
|
||||||
max-height="600"
|
max-height="600"
|
||||||
@selection-change="handleSelectionChanges"
|
@selection-change="handleSelectionChanges"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55"> </el-table-column>
|
<el-table-column type="selection" width="55"></el-table-column>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50"/>
|
||||||
<el-table-column label="玻璃编号">
|
<el-table-column label="玻璃编号">
|
||||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
<template slot-scope="scope">{{ scope.row.number}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="半成品批次">
|
<el-table-column label="半成品批次">
|
||||||
<template slot-scope="scope">{{ scope.row.batch }}</template>
|
<template slot-scope="scope">{{ scope.row.batch}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="玻璃状态">
|
<el-table-column label="玻璃状态">
|
||||||
<template slot-scope="scope">{{ scope.row.material_.name }}</template>
|
<template slot-scope="scope">{{ scope.row.material_.name}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="所在仓库">
|
<el-table-column label="所在仓库">
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">{{scope.row.warehouse_.name}}
|
||||||
scope.row.warehouse_.name
|
</template>
|
||||||
}}</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
|
@ -499,7 +492,6 @@
|
||||||
<el-card class="box-card" v-if="showPrise1 && values === 0">
|
<el-card class="box-card" v-if="showPrise1 && values === 0">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span>消耗物料表</span>
|
<span>消耗物料表</span>
|
||||||
|
|
||||||
<el-table :data="input" border style="width: 100%">
|
<el-table :data="input" border style="width: 100%">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="subproduction_plan"
|
prop="subproduction_plan"
|
||||||
|
@ -556,7 +548,6 @@
|
||||||
width="180"
|
width="180"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="count_output"
|
prop="count_output"
|
||||||
label="产出数量"
|
label="产出数量"
|
||||||
|
@ -589,34 +580,35 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-button style="margin-top: 12px" @click="next" v-if="values == 0"
|
<el-button style="margin-top: 12px" @click="next" v-if="values == 0"
|
||||||
>下一步</el-button
|
|
||||||
>
|
>
|
||||||
|
下一步
|
||||||
|
</el-button>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card
|
<el-card
|
||||||
class="box-card"
|
|
||||||
v-for="(itemf, $index) in otherforms"
|
v-for="(itemf, $index) in otherforms"
|
||||||
:key="$index"
|
:key="$index"
|
||||||
|
class="box-card"
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
|
v-if="values === $index + 1"
|
||||||
label-width="80px"
|
label-width="80px"
|
||||||
label-position="right"
|
label-position="right"
|
||||||
v-if="values === $index + 1"
|
|
||||||
>
|
>
|
||||||
<el-row v-for="(item, $index) in itemf.form_fields" :key="$index">
|
<el-row v-for="(item, $index) in itemf.form_fields" :key="$index">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-if="item.field_type === 'string'"
|
v-if="item.field_type === 'string'"
|
||||||
:label="item.field_name"
|
:label="item.field_name"
|
||||||
>
|
>
|
||||||
<el-input placeholder="请输入" v-model="item.sort" />
|
<el-input placeholder="请输入" v-model="item.sort"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-else-if="item.field_type === 'int'"
|
v-else-if="item.field_type === 'int'"
|
||||||
:label="item.field_name"
|
:label="item.field_name"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
|
v-model="item.sort"
|
||||||
type="number"
|
type="number"
|
||||||
placeholder="请输入"
|
placeholder="请输入"
|
||||||
v-model="item.sort"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
@ -624,9 +616,9 @@
|
||||||
:label="item.field_name"
|
:label="item.field_name"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
|
v-model="item.sort"
|
||||||
type="number"
|
type="number"
|
||||||
placeholder="请输入"
|
placeholder="请输入"
|
||||||
v-model="item.sort"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
@ -660,8 +652,8 @@
|
||||||
:label="item.field_name"
|
:label="item.field_name"
|
||||||
>
|
>
|
||||||
<el-select
|
<el-select
|
||||||
style="width: 100%"
|
|
||||||
v-model="item.sort"
|
v-model="item.sort"
|
||||||
|
style="width: 100%"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -695,40 +687,40 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-button
|
<el-button
|
||||||
|
v-if="values == $index + 2"
|
||||||
style="margin-top: 12px"
|
style="margin-top: 12px"
|
||||||
@click="next"
|
@click="next"
|
||||||
v-if="values == $index + 2"
|
>下一步
|
||||||
>下一步</el-button
|
</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
style="margin-top: 12px"
|
style="margin-top: 12px"
|
||||||
@click="prev"
|
@click="prev"
|
||||||
v-if="values == $index + 1"
|
v-if="values == $index + 1"
|
||||||
>上一步</el-button
|
>上一步
|
||||||
>
|
</el-button>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<div style="text-align: right; position: sticky">
|
<div style="text-align: right; position: sticky">
|
||||||
<el-button type="danger" @click="dialogVisiblework = false"
|
<el-button
|
||||||
>取消</el-button
|
type="danger"
|
||||||
|
@click="dialogVisiblework = false"
|
||||||
>
|
>
|
||||||
|
取消
|
||||||
|
</el-button>
|
||||||
<el-button type="primary" @click="submint()">确认</el-button>
|
<el-button type="primary" @click="submint()">确认</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style>
|
<style>
|
||||||
.item {
|
.item {
|
||||||
|
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import { getsubproductionplanList, createPick_need } from "@/api/pm";
|
import {getsubproductionplanList, createPick_need} from "@/api/pm";
|
||||||
import checkPermission from "@/utils/permission";
|
import checkPermission from "@/utils/permission";
|
||||||
import { getProcessList, getStepLists } from "@/api/mtm";
|
import {getProcessList, getStepLists} from "@/api/mtm";
|
||||||
import {
|
import {
|
||||||
createPick,
|
createPick,
|
||||||
getwmaterialList,
|
getwmaterialList,
|
||||||
submitWork,
|
submitWork,
|
||||||
|
@ -738,12 +730,12 @@ import {
|
||||||
createpickhalf,
|
createpickhalf,
|
||||||
createOperation,
|
createOperation,
|
||||||
scrap
|
scrap
|
||||||
} from "@/api/wpm";
|
} from "@/api/wpm";
|
||||||
import { getiproductList } from "@/api/inm";
|
import {getiproductList} from "@/api/inm";
|
||||||
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
||||||
const defaulteneed = {};
|
const defaulteneed = {};
|
||||||
export default {
|
export default {
|
||||||
components: { Pagination },
|
components: {Pagination},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -837,12 +829,12 @@ export default {
|
||||||
formbcp: {},
|
formbcp: {},
|
||||||
dialogFormVisiblebcp: false,
|
dialogFormVisiblebcp: false,
|
||||||
scrapreason: [
|
scrapreason: [
|
||||||
{ lable: "气泡", value: 10 },
|
{lable: "气泡", value: 10},
|
||||||
{ lable: "破点", value: 20 },
|
{lable: "破点", value: 20},
|
||||||
{ lable: "划伤", value: 30 },
|
{lable: "划伤", value: 30},
|
||||||
{ lable: "其他", value: 40 },
|
{lable: "其他", value: 40},
|
||||||
],
|
],
|
||||||
count:null,
|
count: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
process: "",
|
process: "",
|
||||||
|
@ -903,7 +895,7 @@ export default {
|
||||||
scrapesubmit() {
|
scrapesubmit() {
|
||||||
console.log(this.formbcp);
|
console.log(this.formbcp);
|
||||||
scrap(this.wpID, this.formbcp).then((response) => {
|
scrap(this.wpID, this.formbcp).then((response) => {
|
||||||
if (response.code==200) {
|
if (response.code == 200) {
|
||||||
this.$message.success("该半成品已报废!");
|
this.$message.success("该半成品已报废!");
|
||||||
this.dialogFormVisiblebcp = false;
|
this.dialogFormVisiblebcp = false;
|
||||||
// 半成品表
|
// 半成品表
|
||||||
|
@ -930,7 +922,7 @@ export default {
|
||||||
},
|
},
|
||||||
//大工序工序渲染
|
//大工序工序渲染
|
||||||
getProcessList() {
|
getProcessList() {
|
||||||
getProcessList({ page: 0 }).then((response) => {
|
getProcessList({page: 0}).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.processOption = response.data;
|
this.processOption = response.data;
|
||||||
}
|
}
|
||||||
|
@ -1031,7 +1023,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//半成品
|
//半成品
|
||||||
getwproductList({ page: 0, step__process: this.process }).then(
|
getwproductList({page: 0, step__process: this.process}).then(
|
||||||
(response) => {
|
(response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.wproductData = response.data;
|
this.wproductData = response.data;
|
||||||
|
@ -1111,7 +1103,7 @@ export default {
|
||||||
if (this.values++ > this.forms.length) this.values = 0;
|
if (this.values++ > this.forms.length) this.values = 0;
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.count=val.length;
|
this.count = val.length;
|
||||||
console.log(this.count);
|
console.log(this.count);
|
||||||
let _this = this;
|
let _this = this;
|
||||||
|
|
||||||
|
@ -1131,7 +1123,7 @@ export default {
|
||||||
createOperation(this.Operation).then((res) => {
|
createOperation(this.Operation).then((res) => {
|
||||||
if (res.code >= 200) {
|
if (res.code >= 200) {
|
||||||
this.$message.success("操作记录创建成功!");
|
this.$message.success("操作记录创建成功!");
|
||||||
this.$router.push({ name: "operation", params: { id: item.id } });
|
this.$router.push({name: "operation", params: {id: item.id}});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -1175,5 +1167,5 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue