Commit 92f14b29 authored by 张海景's avatar 张海景

update:修改刀模版改成刀模板

parent 956819fd
import request from '@/utils/request' import request from '@/utils/request'
// 查询刀模入库列表 // 查询刀模入库列表
export function lisWoreHouse(query) { export function lisWoreHouse(query) {
return request({ return request({
url: "/md/warehouse/list", url: "/md/warehouse/list",
...@@ -9,7 +9,7 @@ export function lisWoreHouse(query) { ...@@ -9,7 +9,7 @@ export function lisWoreHouse(query) {
}); });
} }
// 查询刀模入库详情列表 // 查询刀模入库详情列表
export function lisWoreHouseDetail(query) { export function lisWoreHouseDetail(query) {
return request({ return request({
url: `/md/warehouse/item/list`, url: `/md/warehouse/item/list`,
...@@ -18,7 +18,7 @@ export function lisWoreHouseDetail(query) { ...@@ -18,7 +18,7 @@ export function lisWoreHouseDetail(query) {
}); });
} }
// 新增刀模入库 // 新增刀模入库
export function addWoreHouse(data) { export function addWoreHouse(data) {
return request({ return request({
url: "/md/warehouse", url: "/md/warehouse",
......
<template> <template>
<el-dialog <el-dialog
title="刀模具选择" title="刀模具选择"
v-if="showFlag" v-if="showFlag"
:visible.sync="showFlag" :visible.sync="showFlag"
:modal="true" :modal="true"
......
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
showSearch: true, showSearch: true,
// 总条数 // 总条数
total: 0, total: 0,
// 刀模上下机记录表格数据 // 刀模上下机记录表格数据
recordList: [], recordList: [],
// 弹出层标题 // 弹出层标题
title: "", title: "",
...@@ -257,7 +257,7 @@ export default { ...@@ -257,7 +257,7 @@ export default {
handleInWareHouse(e) { handleInWareHouse(e) {
console.log(e, 'House') console.log(e, 'House')
}, },
/** 查询刀模上下机记录列表 */ /** 查询刀模上下机记录列表 */
getList() { getList() {
this.loading = true; this.loading = true;
const params = Object.assign({}, this.queryParams) const params = Object.assign({}, this.queryParams)
...@@ -308,7 +308,7 @@ export default { ...@@ -308,7 +308,7 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加刀模上下机记录"; this.title = "添加刀模上下机记录";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
...@@ -346,7 +346,7 @@ export default { ...@@ -346,7 +346,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const toolMachinesRecordIds = row.toolMachinesRecordId || this.ids; const toolMachinesRecordIds = row.toolMachinesRecordId || this.ids;
this.$modal.confirm('是否确认删除刀模上下机记录编号为"' + toolMachinesRecordIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除刀模上下机记录编号为"' + toolMachinesRecordIds + '"的数据项?').then(function() {
return delRecord(toolMachinesRecordIds); return delRecord(toolMachinesRecordIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();
......
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
@pagination="getList" @pagination="getList"
/> />
<!-- 添加或修改刀模申请单对话框 --> <!-- 添加或修改刀模申请单对话框 -->
<el-dialog v-if="open" :destroy-on-close="true" :title="title" :visible.sync="open" width="960px" append-to-body :close-on-click-modal="false"> <el-dialog v-if="open" :destroy-on-close="true" :title="title" :visible.sync="open" width="960px" append-to-body :close-on-click-modal="false">
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-row> <el-row>
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
<el-input v-model="form.arrangeCode" placeholder="请输入编排单号" /> <el-input v-model="form.arrangeCode" placeholder="请输入编排单号" />
</el-form-item> --> </el-form-item> -->
</el-form> </el-form>
<el-divider content-position="center">刀模申请详细</el-divider> <el-divider content-position="center">刀模申请详细</el-divider>
<el-card shadow="always" class="box-card"> <el-card shadow="always" class="box-card">
<itemline ref="line" :quantity="form.quantity" :toolRequestId="form.toolRequestId" :taskId="form.taskWorkunitId" :optType="optType" @sum="handleSumNum"></itemline> <itemline ref="line" :quantity="form.quantity" :toolRequestId="form.toolRequestId" :taskId="form.taskWorkunitId" :optType="optType" @sum="handleSumNum"></itemline>
</el-card> </el-card>
...@@ -328,7 +328,7 @@ export default { ...@@ -328,7 +328,7 @@ export default {
showSearch: true, showSearch: true,
// 总条数 // 总条数
total: 0, total: 0,
// 刀模申请单表格数据 // 刀模申请单表格数据
tmToolRequestList: [], tmToolRequestList: [],
// 弹出层标题 // 弹出层标题
title: "", title: "",
...@@ -386,7 +386,7 @@ export default { ...@@ -386,7 +386,7 @@ export default {
pdf_path: 'http://192.168.23.19:8081/static/123.pdf', pdf_path: 'http://192.168.23.19:8081/static/123.pdf',
}); });
}, },
/** 查询刀模申请单列表 */ /** 查询刀模申请单列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listTmToolRequest(this.queryParams).then(response => { listTmToolRequest(this.queryParams).then(response => {
...@@ -465,7 +465,7 @@ export default { ...@@ -465,7 +465,7 @@ export default {
handleAdd() { handleAdd() {
this.reset() this.reset()
this.gCode() this.gCode()
this.title = '添加刀模申请单' this.title = '添加刀模申请单'
this.open = true; this.open = true;
this.optType = "add" this.optType = "add"
}, },
...@@ -500,7 +500,7 @@ export default { ...@@ -500,7 +500,7 @@ export default {
getTmToolRequest(toolRequestId).then(response => { getTmToolRequest(toolRequestId).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改刀模申请单"; this.title = "修改刀模申请单";
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
...@@ -534,7 +534,7 @@ export default { ...@@ -534,7 +534,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const toolRequestIds = row.toolRequestId || this.ids; const toolRequestIds = row.toolRequestId || this.ids;
this.$modal.confirm('是否确认删除刀模申请单编号为"' + toolRequestIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除刀模申请单编号为"' + toolRequestIds + '"的数据项?').then(function() {
return delTmToolRequest(toolRequestIds); return delTmToolRequest(toolRequestIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();
......
...@@ -108,14 +108,14 @@ ...@@ -108,14 +108,14 @@
@pagination="getList" @pagination="getList"
/> />
<!-- 添加或修改刀模上下机记录对话框 --> <!-- 添加或修改刀模上下机记录对话框 -->
<!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="刀模上下机主表ID" prop="toolMachinesId"> <el-form-item label="刀模上下机主表ID" prop="toolMachinesId">
<el-input v-model="form.toolMachinesId" placeholder="请输入刀模上下机主表ID" /> <el-input v-model="form.toolMachinesId" placeholder="请输入刀模上下机主表ID" />
</el-form-item> </el-form-item>
<el-form-item label="刀模领用单附表id" prop="toolRequestUseItemId"> <el-form-item label="刀模领用单附表id" prop="toolRequestUseItemId">
<el-input v-model="form.toolRequestUseItemId" placeholder="请输入刀模领用单附表id" /> <el-input v-model="form.toolRequestUseItemId" placeholder="请输入刀模领用单附表id" />
</el-form-item> </el-form-item>
<el-form-item label="上下机类型(1上机2下机)" prop="type"> <el-form-item label="上下机类型(1上机2下机)" prop="type">
<el-select v-model="form.type" placeholder="请选择上下机类型(1上机2下机)"> <el-select v-model="form.type" placeholder="请选择上下机类型(1上机2下机)">
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
showSearch: true, showSearch: true,
// 总条数 // 总条数
total: 0, total: 0,
// 刀模上下机记录表格数据 // 刀模上下机记录表格数据
recordList: [], recordList: [],
// 弹出层标题 // 弹出层标题
title: "", title: "",
...@@ -234,7 +234,7 @@ export default { ...@@ -234,7 +234,7 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加刀模上下机记录"; this.title = "添加刀模上下机记录";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
...@@ -243,7 +243,7 @@ export default { ...@@ -243,7 +243,7 @@ export default {
getRecord(toolMachinesRecordId).then(response => { getRecord(toolMachinesRecordId).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改刀模上下机记录"; this.title = "修改刀模上下机记录";
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
...@@ -269,7 +269,7 @@ export default { ...@@ -269,7 +269,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const toolMachinesRecordIds = row.toolMachinesRecordId || this.ids; const toolMachinesRecordIds = row.toolMachinesRecordId || this.ids;
this.$modal.confirm('是否确认删除刀模上下机记录编号为"' + toolMachinesRecordIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除刀模上下机记录编号为"' + toolMachinesRecordIds + '"的数据项?').then(function() {
return delRecord(toolMachinesRecordIds); return delRecord(toolMachinesRecordIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();
......
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
</el-row> </el-row>
</el-form> </el-form>
<el-divider content-position="left">申请单刀模具数据</el-divider> <el-divider content-position="left">申请单刀模具数据</el-divider>
<el-table :data="tmToolRequestList"> <el-table :data="tmToolRequestList">
<el-table-column label="物料" prop="itemName" /> <el-table-column label="物料" prop="itemName" />
<el-table-column label="数量" prop="allQuantity" /> <el-table-column label="数量" prop="allQuantity" />
......
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
showSearch: true, showSearch: true,
// 总条数 // 总条数
total: 0, total: 0,
// 刀模上下机记录表格数据 // 刀模上下机记录表格数据
recordList: [], recordList: [],
// 弹出层标题 // 弹出层标题
title: "", title: "",
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
handleInWareHouse(e) { handleInWareHouse(e) {
console.log(e, 'House') console.log(e, 'House')
}, },
/** 查询刀模上下机记录列表 */ /** 查询刀模上下机记录列表 */
getList() { getList() {
this.loading = true; this.loading = true;
const params = Object.assign({}, this.queryParams) const params = Object.assign({}, this.queryParams)
...@@ -299,7 +299,7 @@ export default { ...@@ -299,7 +299,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const toolMachinesRecordIds = row.toolMachinesRecordId || this.ids; const toolMachinesRecordIds = row.toolMachinesRecordId || this.ids;
this.$modal.confirm('是否确认删除刀模上下机记录编号为"' + toolMachinesRecordIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除刀模上下机记录编号为"' + toolMachinesRecordIds + '"的数据项?').then(function() {
return delRecord(toolMachinesRecordIds); return delRecord(toolMachinesRecordIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();
......
<template> <template>
<el-dialog <el-dialog
title="请选择刀模入库申请单" title="请选择刀模入库申请单"
v-if="showFlag" v-if="showFlag"
:visible.sync="showFlag" :visible.sync="showFlag"
:modal="true" :modal="true"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment