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

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

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