guize
This commit is contained in:
parent
f63bb65a9e
commit
4e0d5f4f2e
|
@ -189,7 +189,7 @@ export const asyncRoutes = [
|
||||||
path: 'need/:id',
|
path: 'need/:id',
|
||||||
name: 'need',
|
name: 'need',
|
||||||
component: () => import('@/views/wpm/need'),
|
component: () => import('@/views/wpm/need'),
|
||||||
meta: { title: '检测项目', icon: 'example', perms: ['index_manage'] }
|
meta: { title: '半成品检验', icon: 'example', perms: ['index_manage'] }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
|
>新增设备</el-button
|
||||||
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.search"
|
||||||
placeholder="设备名称/设备编号/备注"
|
placeholder="设备名称/设备编号/备注"
|
||||||
|
@ -24,11 +27,7 @@
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 2px">
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
|
||||||
>新增设备</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<el-table
|
<el-table
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
|
>新增设备</el-button
|
||||||
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.search"
|
||||||
placeholder="设备名称/设备编号/备注"
|
placeholder="设备名称/设备编号/备注"
|
||||||
|
@ -24,11 +27,7 @@
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 2px">
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
|
||||||
>新增设备</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<el-table
|
<el-table
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
|
>新增校准或检定</el-button
|
||||||
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.search"
|
||||||
placeholder="设备名称/设备编号/备注"
|
placeholder="设备名称/设备编号/备注"
|
||||||
|
@ -24,11 +27,7 @@
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 2px">
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
|
||||||
>新增校准或检定</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<el-table
|
<el-table
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
|
>新增出入库记录</el-button
|
||||||
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.search"
|
||||||
placeholder="仓库名称/仓库编号"
|
placeholder="仓库名称/仓库编号"
|
||||||
|
@ -26,11 +29,7 @@
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<div style="margin-top: 2px">
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
|
||||||
>新增出入库记录</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
:data="fifoList.results"
|
:data="fifoList.results"
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
|
>新增仓库</el-button
|
||||||
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.search"
|
||||||
placeholder="仓库名称/仓库编号"
|
placeholder="仓库名称/仓库编号"
|
||||||
|
@ -24,11 +27,7 @@
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 2px">
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
|
||||||
>新增仓库</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<el-table
|
<el-table
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
|
>新增物料</el-button
|
||||||
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.search"
|
||||||
placeholder="物料名称/物料编号/物料类型"
|
placeholder="物料名称/物料编号/物料类型"
|
||||||
|
@ -24,11 +27,7 @@
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 2px">
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
|
||||||
>新增物料</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<el-table
|
<el-table
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -274,7 +274,9 @@ export default {
|
||||||
},
|
},
|
||||||
handleclick(scope){
|
handleclick(scope){
|
||||||
this.orderID = scope.row.id;
|
this.orderID = scope.row.id;
|
||||||
|
this.countsx = scope.row.count;
|
||||||
|
this.planed_count = scope.row.planed_count;
|
||||||
|
this.delivery_date = scope.row.delivery_date;
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs["Form"].clearValidate();
|
this.$refs["Form"].clearValidate();
|
||||||
|
@ -284,9 +286,18 @@ export default {
|
||||||
async confirm(form) {
|
async confirm(form) {
|
||||||
|
|
||||||
this.orderplan.start_date = this.value1[0];
|
this.orderplan.start_date = this.value1[0];
|
||||||
this.orderplan.end_date = this.value1[1];
|
|
||||||
|
if( this.delivery_date>=this.value1[1])
|
||||||
|
{
|
||||||
|
this.orderplan.end_date = this.value1[1];
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.$message.error("计划完成时间超过订单交付日期,请从新选择日期!");
|
||||||
|
}
|
||||||
|
|
||||||
this.orderplan.order = this.orderID
|
this.orderplan.order = this.orderID
|
||||||
createProductionplan(this.orderplan).then((res) => {
|
if( this.orderplan.count<=(this.countsx-this.planed_count)){
|
||||||
|
createProductionplan(this.orderplan).then((res) => {
|
||||||
if (res.code >= 200) {
|
if (res.code >= 200) {
|
||||||
this.getorderList();
|
this.getorderList();
|
||||||
this.getplanList();
|
this.getplanList();
|
||||||
|
@ -294,6 +305,12 @@ export default {
|
||||||
this.$message.success("成功");
|
this.$message.success("成功");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.$message.error("排产数超过所需数,请合理排产!");
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
handleWork(scope)
|
handleWork(scope)
|
||||||
{
|
{
|
||||||
|
|
|
@ -90,6 +90,7 @@
|
||||||
fit
|
fit
|
||||||
stripe
|
stripe
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
height="320"
|
||||||
|
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
|
@ -130,7 +131,7 @@
|
||||||
fit
|
fit
|
||||||
stripe
|
stripe
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
height="300"
|
||||||
>
|
>
|
||||||
|
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
|
@ -151,8 +152,8 @@
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<pagination
|
||||||
v-show="orderList.count > 0"
|
v-show="equipmentTable.count > 0"
|
||||||
:total="orderList.count"
|
:total="equipmentTable.count"
|
||||||
:page.sync="listQuery.page"
|
:page.sync="listQuery.page"
|
||||||
:limit.sync="listQuery.page_size"
|
:limit.sync="listQuery.page_size"
|
||||||
@pagination="getorderList"
|
@pagination="getorderList"
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
|
>新增合同</el-button
|
||||||
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.search"
|
||||||
placeholder="客户名称"
|
placeholder="客户名称"
|
||||||
|
@ -24,11 +27,7 @@
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 2px">
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
|
||||||
>新增合同</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<el-table
|
<el-table
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
|
>新增客户</el-button
|
||||||
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.search"
|
||||||
placeholder="客户名称"
|
placeholder="客户名称"
|
||||||
|
@ -24,11 +27,7 @@
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 2px">
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
|
||||||
>新增客户</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<el-table
|
<el-table
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
|
>新增订单</el-button
|
||||||
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.search"
|
||||||
placeholder="订单名称"
|
placeholder="订单名称"
|
||||||
|
@ -24,11 +27,7 @@
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 2px">
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
|
||||||
>新增订单</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<el-table
|
<el-table
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
|
>新增客户</el-button
|
||||||
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.search"
|
||||||
placeholder="客户名称"
|
placeholder="客户名称"
|
||||||
|
@ -24,11 +27,7 @@
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 2px">
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
|
||||||
>新增客户</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<el-table
|
<el-table
|
||||||
|
|
|
@ -24,16 +24,12 @@
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 2px">
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
|
||||||
>新增项目</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
:data="testitemList.results"
|
:data="wproductList.results"
|
||||||
border
|
border
|
||||||
fit
|
fit
|
||||||
stripe
|
stripe
|
||||||
|
@ -41,44 +37,28 @@
|
||||||
max-height="600"
|
max-height="600"
|
||||||
>
|
>
|
||||||
<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.name }}</template>
|
<template slot-scope="scope">{{ scope.row.m_state_.name }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="条款号">
|
<el-table-column label="半成品编号">
|
||||||
<template slot-scope="scope">{{ scope.row.term_number }}</template>
|
<template slot-scope="scope">{{ scope.row.m_state_.number }}</template>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="标准名称">
|
|
||||||
<template slot-scope="scope">{{ scope.row.standard_.name }}</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="标准编号">
|
|
||||||
<template slot-scope="scope">{{
|
|
||||||
scope.row.standard_.number
|
|
||||||
}}</template>
|
|
||||||
</el-table-column>
|
|
||||||
|
|
||||||
<el-table-column label="创建时间">
|
|
||||||
<template slot-scope="scope">{{ scope.row.create_time }}</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column align="center" label="操作" width="220px">
|
<el-table-column align="center" label="操作" width="220px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-link
|
<el-link
|
||||||
v-if="checkPermission(['warehouse_update'])"
|
v-if="checkPermission(['warehouse_update'])"
|
||||||
@click="handleEdit(scope)"
|
@click="handleInspection(scope)"
|
||||||
>编辑</el-link
|
>检验</el-link
|
||||||
>
|
|
||||||
<el-link
|
|
||||||
v-if="checkPermission(['warehouse_delete'])"
|
|
||||||
type="danger"
|
|
||||||
@click="handleDelete(scope)"
|
|
||||||
>删除</el-link
|
|
||||||
>
|
>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<pagination
|
||||||
v-show="testitemList.count > 0"
|
v-show="wproductList.count > 0"
|
||||||
:total="testitemList.count"
|
:total="wproductList.count"
|
||||||
:page.sync="listQuery.page"
|
:page.sync="listQuery.page"
|
||||||
:limit.sync="listQuery.page_size"
|
:limit.sync="listQuery.page_size"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
|
@ -126,12 +106,8 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getTestitemList,
|
getwproductList,
|
||||||
createTestitem,
|
} from "@/api/wpm";
|
||||||
updateTestitem,
|
|
||||||
deleteTestitem,
|
|
||||||
getStandardList,
|
|
||||||
} from "@/api/qm";
|
|
||||||
import checkPermission from "@/utils/permission";
|
import checkPermission from "@/utils/permission";
|
||||||
|
|
||||||
import { genTree } from "@/utils";
|
import { genTree } from "@/utils";
|
||||||
|
@ -142,7 +118,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
testitem: defaultetestitem,
|
testitem: defaultetestitem,
|
||||||
testitemList: {
|
wproductList: {
|
||||||
count: 0,
|
count: 0,
|
||||||
},
|
},
|
||||||
listQuery: {
|
listQuery: {
|
||||||
|
@ -167,12 +143,13 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkPermission,
|
checkPermission,
|
||||||
//列表
|
//半成品列表
|
||||||
getList() {
|
getList() {
|
||||||
this.listLoading = true;
|
this.listLoading = true;
|
||||||
getTestitemList(this.listQuery).then((response) => {
|
this.listQuery.act_state=2
|
||||||
|
getwproductList(this.listQuery).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.testitemList = response.data;
|
this.wproductList = response.data;
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
this.listLoading = false;
|
||||||
});
|
});
|
||||||
|
|
|
@ -641,18 +641,9 @@ export default {
|
||||||
|
|
||||||
//确认领料
|
//确认领料
|
||||||
handlePick() {
|
handlePick() {
|
||||||
let _this = this;
|
|
||||||
_this.picks = []; //所需物料
|
|
||||||
this.$refs.multipleTable.selection.forEach((item) => {
|
|
||||||
_this.picks.push({
|
|
||||||
warehouse:item.warehouse,
|
|
||||||
material: item.material,
|
|
||||||
batch: item.batch,
|
|
||||||
pick_count: item.pick_count,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
this.pickData.subproduction_plan = this.id;
|
this.pickData.subproduction_plan = this.id;
|
||||||
this.pickData.picks = this.picks;
|
this.pickData.picks = this.havewl;
|
||||||
|
|
||||||
// console.log(this.pickData);
|
// console.log(this.pickData);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue