Commit 00032dbb authored by 全洪江's avatar 全洪江

调整

parent bccd89cc
import request from '@/utils/request'
// 查询【请填写功能名称】列表
export function listRequest(query) {
return request({
url: '/md/request/list',
method: 'get',
params: query
})
}
// 查询【请填写功能名称】详细
export function getRequest(productionRequestId) {
return request({
url: '/md/request/' + productionRequestId,
method: 'get'
})
}
// 新增【请填写功能名称】
export function addRequest(data) {
return request({
url: '/md/request',
method: 'post',
data: data
})
}
// 修改【请填写功能名称】
export function updateRequest(data) {
return request({
url: '/md/request',
method: 'put',
data: data
})
}
// 删除【请填写功能名称】
export function delRequest(productionRequestId) {
return request({
url: '/md/request/' + productionRequestId,
method: 'delete'
})
}
import request from '@/utils/request'
// 查询【请填写功能名称】列表
export function listBom(query) {
return request({
url: '/md/bom/list',
method: 'get',
params: query
})
}
// 查询【请填写功能名称】详细
export function getBom(bomItemId) {
return request({
url: '/md/bom/' + bomItemId,
method: 'get'
})
}
// 新增【请填写功能名称】
export function addBom(data) {
return request({
url: '/md/bom',
method: 'post',
data: data
})
}
// 修改【请填写功能名称】
export function updateBom(data) {
return request({
url: '/md/bom',
method: 'put',
data: data
})
}
// 删除【请填写功能名称】
export function delBom(bomItemId) {
return request({
url: '/md/bom/' + bomItemId,
method: 'delete'
})
}
import request from '@/utils/request'
// 查询【请填写功能名称】列表
export function listProcess(query) {
return request({
url: '/md/process/list',
method: 'get',
params: query
})
}
// 查询【请填写功能名称】详细
export function getProcess(productionRequestProcessId) {
return request({
url: '/md/process/' + productionRequestProcessId,
method: 'get'
})
}
// 新增【请填写功能名称】
export function addProcess(data) {
return request({
url: '/md/process',
method: 'post',
data: data
})
}
// 修改【请填写功能名称】
export function updateProcess(data) {
return request({
url: '/md/process',
method: 'put',
data: data
})
}
// 删除【请填写功能名称】
export function delProcess(productionRequestProcessId) {
return request({
url: '/md/process/' + productionRequestProcessId,
method: 'delete'
})
}
import request from '@/utils/request'
// 查询【请填写功能名称】列表
export function listItem(query) {
return request({
url: '/md/item/list',
method: 'get',
params: query
})
}
// 查询【请填写功能名称】详细
export function getItem(productionRequestProcessItemId) {
return request({
url: '/md/item/' + productionRequestProcessItemId,
method: 'get'
})
}
// 新增【请填写功能名称】
export function addItem(data) {
return request({
url: '/md/item',
method: 'post',
data: data
})
}
// 修改【请填写功能名称】
export function updateItem(data) {
return request({
url: '/md/item',
method: 'put',
data: data
})
}
// 删除【请填写功能名称】
export function delItem(productionRequestProcessItemId) {
return request({
url: '/md/item/' + productionRequestProcessItemId,
method: 'delete'
})
}
...@@ -8,17 +8,17 @@ ...@@ -8,17 +8,17 @@
v-show="showSearch" v-show="showSearch"
label-width="100px" label-width="100px"
> >
<el-form-item label="产品名称" prop="itemName"> <el-form-item label="量产申请编码" prop="productionRequestCode">
<el-input <el-input
v-model="queryParams.itemName" v-model="queryParams.productionRequestCode"
placeholder="请输入产品名称" placeholder="请输入产品名称"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="单据状态" prop="prototypeRequestStatus"> <el-form-item label="工艺路线ID" prop="routeId">
<el-select <el-select
v-model="queryParams.prototypeRequestStatus" v-model="queryParams.routeId"
clearable clearable
placeholder="请选择单据状态" placeholder="请选择单据状态"
> >
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['mes:pro:prototypeRequest:add']" v-hasPermi="['mes:pro:productiorequest:add']"
>新增</el-button >新增</el-button
> >
</el-col> </el-col>
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['mes:pro:prototypeRequest:edit']" v-hasPermi="['mes:pro:productiorequest:edit']"
>修改</el-button >修改</el-button
> >
</el-col> </el-col>
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['mes:pro:prototypeRequest:remove']" v-hasPermi="['mes:pro:productiorequest:remove']"
>删除</el-button >删除</el-button
> >
</el-col> </el-col>
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['mes:pro:prototypeRequest:export']" v-hasPermi="['mes:pro:productiorequest:export']"
>导出</el-button >导出</el-button
> >
</el-col> </el-col>
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="prototypeRequestList" :data="prototypeRequestList"
row-key="prototypeRequestId" row-key="productionRequestId"
default-expand-all default-expand-all
> >
<el-table-column label="量产申请单编码" width="180" prop="productionRequesCode"> <el-table-column label="量产申请单编码" width="180" prop="productionRequesCode">
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
size="mini" size="mini"
type="text" type="text"
@click="handleView(scope.row)" @click="handleView(scope.row)"
v-hasPermi="['mes:pro:prototypeRequest:query']" v-hasPermi="['mes:pro:productiorequest:query']"
>{{ scope.row.productionRequesCode }}</el-button >{{ scope.row.productionRequesCode }}</el-button
> >
</template> </template>
...@@ -162,37 +162,52 @@ ...@@ -162,37 +162,52 @@
label="是否要鞋图" label="是否要鞋图"
align="center" align="center"
prop="isNeedShoeImg" prop="isNeedShoeImg"
> <template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.isNeedShoeImg"
/> />
</template>
</el-table-column>
<el-table-column <el-table-column
label="是否附样品" label="是否附样品"
align="center" align="center"
prop="isNeedPrototype" prop="isNeedPrototype"
/> ><template slot-scope="scope">
<el-table-column label="唯一码产品" align="center" prop="isUniqueCode" />
<el-table-column label="不考虑型体配色" align="center" prop="isConsiderColor" />
<el-table-column label="是否禁用" align="center" prop="isDisabled" />
<!-- <template slot-scope="scope">
<dict-tag <dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.isNeedShoeImg"
/>
</template> -->
<!-- <dict-tag
:options="dict.type.sys_yes_no" :options="dict.type.sys_yes_no"
:value="scope.row.isNeedPrototype" :value="scope.row.isNeedPrototype"
/> />
</template>
</el-table-column>
<el-table-column label="唯一码产品" align="center" prop="isUniqueCode" >
<template slot-scope="scope">
<dict-tag <dict-tag
:options="dict.type.sys_yes_no" :options="dict.type.sys_yes_no"
:value="scope.row.isConsiderColor" :value="scope.row.isUniqueCode"
/> />
</template>
</el-table-column>
<el-table-column label="不考虑型体配色" align="center" prop="isConsiderColor" >
<template slot-scope="scope">
<dict-tag <dict-tag
:options="dict.type.sys_yes_no" :options="dict.type.sys_yes_no"
:value="scope.row.enableFlag" :value="scope.row.isConsiderColor"
/> />
</template>
</el-table-column>
<el-table-column label="是否禁用" align="center" prop="isDisabled" >
<template slot-scope="scope">
<dict-tag <dict-tag
:options="dict.type.sys_yes_no" :options="dict.type.sys_yes_no"
:value="scope.row.isDisabled" --> :value="scope.row.isDisabled"
/> />
</template>
</el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
...@@ -207,7 +222,7 @@ ...@@ -207,7 +222,7 @@
icon="el-icon-edit" icon="el-icon-edit"
v-if="scope.row.prototypeRequestStatus == '0'" v-if="scope.row.prototypeRequestStatus == '0'"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['mes:pro:prototypeRequest:edit']" v-hasPermi="['mes:pro:productiorequest:edit']"
>修改</el-button >修改</el-button
> >
<el-button <el-button
...@@ -216,7 +231,7 @@ ...@@ -216,7 +231,7 @@
icon="el-icon-circle-check" icon="el-icon-circle-check"
v-if="scope.row.prototypeRequestStatus == '0'" v-if="scope.row.prototypeRequestStatus == '0'"
@click="handleFinish(scope.row)" @click="handleFinish(scope.row)"
v-hasPermi="['mes:pro:prototypeRequest:update']" v-hasPermi="['mes:pro:productiorequest:update']"
>通过</el-button >通过</el-button
> >
<el-button <el-button
...@@ -224,7 +239,7 @@ ...@@ -224,7 +239,7 @@
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['mes:pro:prototypeRequest:remove']" v-hasPermi="['mes:pro:productiorequest:remove']"
>删除</el-button >删除</el-button
> >
<el-button <el-button
...@@ -233,7 +248,7 @@ ...@@ -233,7 +248,7 @@
icon="el-icon-edit" icon="el-icon-edit"
v-if="scope.row.prototypeRequestStatus == '1'" v-if="scope.row.prototypeRequestStatus == '1'"
@click="generate(scope.row)" @click="generate(scope.row)"
v-hasPermi="['mes:pro:prototypeRequest:edit']" v-hasPermi="['mes:pro:productiorequest:edit']"
>生成制作单</el-button >生成制作单</el-button
> >
</template> </template>
...@@ -258,6 +273,7 @@ import { ...@@ -258,6 +273,7 @@ import {
updatePrototypeRequest, updatePrototypeRequest,
dofinish, dofinish,
} from "@/api/mes/pro/prototypeRequest"; } from "@/api/mes/pro/prototypeRequest";
import ItemSelect from "@/components/itemSelect/single.vue"; import ItemSelect from "@/components/itemSelect/single.vue";
import ClientSelect from "@/components/clientSelect/single.vue"; import ClientSelect from "@/components/clientSelect/single.vue";
import VendorSelect from "@/components/vendorSelect/single.vue"; import VendorSelect from "@/components/vendorSelect/single.vue";
...@@ -307,8 +323,8 @@ export default { ...@@ -307,8 +323,8 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
itemName: null, // 可以查简称与英文名 productionRequestCode: null,
prototypeRequestStatus: null, routeId: null,
}, },
options: [ options: [
{ value: 0, label: "审批中" }, { value: 0, label: "审批中" },
...@@ -350,23 +366,20 @@ export default { ...@@ -350,23 +366,20 @@ export default {
// 表单重置 // 表单重置
reset() { reset() {
this.form = { this.form = {
prototypeRequestId: null, productionRequestId: null,
prototypeRequestCode: null, productionRequestCode: null,
itemId: null,
itemName: null,
routeId: null, routeId: null,
routeName: null, productId: null,
abbreviation: null, factoryId: null,
enName: null, warehouse: null,
num: null, sizeGroup: null,
type: null, isNeedShoeImg: null,
modality: null, isNeedPrototype: null,
surfaceTreatment: null, isUniqueCode: null,
ngReason: null, isConsiderColor: null,
plannedFinishDate: null, isDisabled: null,
plannedLayoutDate: null, shoeImg: null,
prototypeRequestStatus: "0", prototype: null,
testStandard: null,
remark: null, remark: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
...@@ -407,7 +420,7 @@ export default { ...@@ -407,7 +420,7 @@ export default {
// 查询明细按钮操作 // 查询明细按钮操作
handleView(row) { handleView(row) {
this.reset(); this.reset();
const prototypeRequestId = row.prototypeRequestId || this.ids; const productionRequestId = row.productionRequestId || this.ids;
this.$router.push( this.$router.push(
"/mes/proofing/info?prototypeRequestId=" + prototypeRequestId "/mes/proofing/info?prototypeRequestId=" + prototypeRequestId
); );
...@@ -421,9 +434,9 @@ export default { ...@@ -421,9 +434,9 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const prototypeRequestId = row.prototypeRequestId || this.ids; const productionRequestId = row.productionRequestId || this.ids;
this.$router.push( this.$router.push(
"/mes/proofing/edit?prototypeRequestId=" + prototypeRequestId "/mes/proofing/edit?productionRequestId=" + productionRequestId
); );
// getPrototypeRequest(prototypeRequestId).then((response) => { // getPrototypeRequest(prototypeRequestId).then((response) => {
// // this.form = response.data; // // this.form = response.data;
...@@ -436,9 +449,9 @@ export default { ...@@ -436,9 +449,9 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
this.$modal this.$modal
.confirm('是否确认删除编号为"' + row.prototypeRequestId + '"的打样单?') .confirm('是否确认删除编号为"' + row.productionRequestId + '"的打样单?')
.then(function () { .then(function () {
return delPrototypeRequest(row.prototypeRequestId); return delPrototypeRequest(row.productionRequestId);
}) })
.then(() => { .then(() => {
this.getList(); this.getList();
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
> >
<el-row> <el-row>
<el-col :md="8" :xs="12"> <el-col :md="8" :xs="12">
<el-form-item label="申请单编码" prop="prototypeRequestCode"> <el-form-item label="量产申请单编码" prop="productionRequestCode">
<el-input <el-input
disabled disabled
v-model="form.prototypeRequestCode" v-model="form.productionRequestCode"
placeholder="自动生成" placeholder="自动生成"
></el-input> ></el-input>
</el-form-item> </el-form-item>
...@@ -206,22 +206,17 @@ export default { ...@@ -206,22 +206,17 @@ export default {
bomList: [], bomList: [],
// 表单参数 // 表单参数
form: { form: {
prototypeRequestCode: "", productionRequestCode: "",
itemId: "",
itemName: "",
unit: "",
routeId: "", routeId: "",
routeName: "", itemId: "",
abbreviation: "", factoryId: "",
enName: "", isNeedShoeImg: "",
num: "", isNeedPrototype: "",
type: "", isUniqueCode: "",
modality: "", isConsiderColor: "",
surfaceTreatment: "", isDisabled: "",
ngReason: "", shoeImg: "",
plannedFinishDate: "", prototype: "",
plannedLayoutDate: "",
testStandard: "",
remark: "", remark: "",
}, },
rules: {}, rules: {},
...@@ -337,19 +332,16 @@ export default { ...@@ -337,19 +332,16 @@ export default {
resetForm() { resetForm() {
this.form = { this.form = {
prototypeRequestCode: "", prototypeRequestCode: "",
itemId: "",
itemName: "",
routeId: "", routeId: "",
abbreviation: "", itemId: "",
enName: "", factoryId: "",
num: "", isNeedShoeImg: "",
type: "", isNeedPrototype: "",
modality: "", isUniqueCode: "",
surfaceTreatment: "", isConsiderColor: "",
ngReason: "", isDisabled: "",
plannedFinishDate: "", shoeImg: "",
plannedLayoutDate: "", prototype: "",
testStandard: "",
remark: "", remark: "",
}; };
this.$refs["ProogingBomRef"].resetState(); this.$refs["ProogingBomRef"].resetState();
......
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