产品管理修改 集合针管理,加工次数管理
This commit is contained in:
parent
bd98db02ac
commit
dc412800c6
@ -16,7 +16,7 @@
|
|||||||
<el-button type="primary" icon="Plus" circle @click="handleAddNeedle" />
|
<el-button type="primary" icon="Plus" circle @click="handleAddNeedle" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-table :data="props.form.needle" style="margin-bottom: 15px;">
|
<el-table :data="props.form.zhen" style="margin-bottom: 15px;">
|
||||||
<el-table-column type="index" :label="tLang('product', '针号')" width="60" align="center" />
|
<el-table-column type="index" :label="tLang('product', '针号')" width="60" align="center" />
|
||||||
<el-table-column :label="tLang('product', '面线信息')" align="center" prop="name">
|
<el-table-column :label="tLang('product', '面线信息')" align="center" prop="name">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
@ -114,29 +114,29 @@ const baseUrl = import.meta.env.VITE_APP_BASE_API;
|
|||||||
|
|
||||||
//添加针号
|
//添加针号
|
||||||
function handleAddNeedle() {
|
function handleAddNeedle() {
|
||||||
let needle = props.form.needle || [];
|
let zhen = props.form.zhen || [];
|
||||||
needle.push({
|
zhen.push({
|
||||||
needleNum: needle.length + 1,
|
needleNum: zhen.length + 1,
|
||||||
surfacelineCode: "",
|
surfacelineCode: "",
|
||||||
bottomlineCode: "",
|
bottomlineCode: "",
|
||||||
min: "",
|
min: "",
|
||||||
max: "",
|
max: "",
|
||||||
});
|
});
|
||||||
emit("update:form", { ...props.form, needle });
|
emit("update:form", { ...props.form, zhen });
|
||||||
}
|
}
|
||||||
|
|
||||||
//删除针号
|
//删除针号
|
||||||
function handleDeleteNeedle(i) {
|
function handleDeleteNeedle(i) {
|
||||||
let needle = props.form.needle || [];
|
let zhen = props.form.zhen || [];
|
||||||
let length = needle.length;
|
let length = zhen.length;
|
||||||
needle.splice(i, 1);
|
zhen.splice(i, 1);
|
||||||
if (needle.length>0 && i != length - 1) {
|
if (zhen.length>0 && i != length - 1) {
|
||||||
needle = needle.map((item, index) => {
|
zhen = zhen.map((item, index) => {
|
||||||
item.needleNum = index + 1;
|
item.needleNum = index + 1;
|
||||||
return item;
|
return item;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
emit("update:form", { ...props.form, needle });
|
emit("update:form", { ...props.form, zhen });
|
||||||
}
|
}
|
||||||
|
|
||||||
//添加加工次数
|
//添加加工次数
|
||||||
|
@ -273,7 +273,7 @@ function reset() {
|
|||||||
function handleUpdate(row) {
|
function handleUpdate(row) {
|
||||||
reset();
|
reset();
|
||||||
const id = row.code || ids.value
|
const id = row.code || ids.value
|
||||||
getProduction(id).then(response => {
|
selectProduction(id).then(response => {
|
||||||
form.value = response.data;
|
form.value = response.data;
|
||||||
form.value.disabled = true;
|
form.value.disabled = true;
|
||||||
open.value = true;
|
open.value = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user