Commit 79b78d94 authored by 张海景's avatar 张海景

update:修改刀模板上下机接口

parent 3726f435
...@@ -3,7 +3,7 @@ import request from "@/utils/request"; ...@@ -3,7 +3,7 @@ import request from "@/utils/request";
// 查询刀模板上下机记录列表 // 查询刀模板上下机记录列表
export function listRecord(query) { export function listRecord(query) {
return request({ return request({
url: "/tm/tmToolMachinesRecord/list", url: "/tm/tmToolMachines/list",
method: "get", method: "get",
params: query, params: query,
}); });
......
...@@ -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>
...@@ -191,8 +191,8 @@ ...@@ -191,8 +191,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col v-if="optType === 'add'" :span="12"> <el-col v-if="optType === 'add'" :span="12">
<el-form-item label="任务单" prop="taskId"> <el-form-item label="任务排产单" prop="taskId">
<el-input v-model="form.taskId" placeholder="请选择任务单" <el-input v-model="form.taskId" placeholder="请选择任务排产单"
disabled> disabled>
<el-button <el-button
v-if="optType === 'add'" v-if="optType === 'add'"
...@@ -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.requestNum" :toolRequestId="form.toolRequestId" :taskId="form.taskId" :optType="optType" @sum="handleSumNum"></itemline> <itemline ref="line" :quantity="form.requestNum" :toolRequestId="form.toolRequestId" :taskId="form.taskId" :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"
}, },
...@@ -498,7 +498,7 @@ export default { ...@@ -498,7 +498,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 = "修改刀模申请单";
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
...@@ -532,7 +532,7 @@ export default { ...@@ -532,7 +532,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();
......
...@@ -74,33 +74,23 @@ ...@@ -74,33 +74,23 @@
> --> > -->
<!-- 可以手动的修改label的值,从而控制选择哪一项 --> <!-- 可以手动的修改label的值,从而控制选择哪一项 -->
<el-radio class="radio" v-model="selectedItemId" :label="scope.row.taskId" <el-radio class="radio" v-model="selectedItemId" :label="scope.row.taskId"
>&nbsp;</el-radio >{{ "" }}</el-radio
> >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="任务单编码" label="排产任务id"
width="120" width="100"
align="center"
key="taskCode"
prop="taskCode"
>
</el-table-column>
<el-table-column
label="工序名称"
min-width="120"
align="center" align="center"
key="processName" key="taskWorkunitId"
prop="processName" prop="taskWorkunitId"
:show-overflow-tooltip="true"
/> />
<el-table-column <el-table-column
label="产品名称" label="排产数量"
min-width="100"
align="center" align="center"
key="itemName" key="quantity"
min-width="150" prop="quantity"
prop="itemName"
:show-overflow-tooltip="true"
/> />
<el-table-column <el-table-column
label="单位" label="单位"
...@@ -118,7 +108,6 @@ ...@@ -118,7 +108,6 @@
prop="quantity" prop="quantity"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column label="工作单元编码" align="center" prop="workunitId" />
<el-table-column <el-table-column
label="开始生产时间" label="开始生产时间"
align="center" align="center"
...@@ -132,7 +121,30 @@ ...@@ -132,7 +121,30 @@
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
label="结束生产时间"
align="center"
prop="endTime"
width="180"
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
<span>{{
parseTime(scope.row.endTime, "{y}-{m}-{d}:{h}-{m}-{s}")
}}</span>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" width="100" label="状态" align="center" prop="statusName" />
<el-table-column :show-overflow-tooltip="true" min-width="180" label="工序任务编码" align="center" prop="taskCode" />
<el-table-column :show-overflow-tooltip="true" min-width="300" label="工序任务名称" align="center" prop="taskName" />
<el-table-column :show-overflow-tooltip="true" width="100" label="工作单元名称" align="center" prop="workunitName" />
<el-table-column :show-overflow-tooltip="true" width="100" label="工作单元编码" align="center" prop="workunitCode" />
<el-table-column :show-overflow-tooltip="true" width="100" label="工站编码" align="center" prop="workstationCode" />
<el-table-column :show-overflow-tooltip="true" width="100" label="工站名称" align="center" prop="workstationName" />
<el-table-column :show-overflow-tooltip="true" width="100" label="工艺名称" align="center" prop="routeName" />
<el-table-column :show-overflow-tooltip="true" width="100" label="工艺编码" align="center" prop="routeCode" />
<el-table-column :show-overflow-tooltip="true" min-width="150" label="工序编码" align="center" prop="processCode" />
<el-table-column :show-overflow-tooltip="true" width="100" label="工序名称" align="center" prop="processName" />
</el-table> </el-table>
<pagination <pagination
......
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