Commit beb4ef6c authored by chenzj's avatar chenzj

领刀模板寿命和商城版本工序新增几个字段

parent 4765f3af
...@@ -44,6 +44,94 @@ ...@@ -44,6 +44,94 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="封切机开边" prop="sacmForEdgeOpening" align="center">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.sacmForEdgeOpening"
/>
</template>
</el-table-column>
<el-table-column label="封切机粘贴复合" prop="sacmForPasteComposite" align="center">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.sacmForPasteComposite"
/>
</template>
</el-table-column>
<el-table-column label="封切机热复合" prop="sacmForThermalComposite" align="center">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.sacmForThermalComposite"
/>
</template>
</el-table-column>
<el-table-column label="封切机贴标" prop="sacmForLabeling" align="center">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.sacmForLabeling"
/>
</template>
</el-table-column>
<el-table-column label="封切机装扣" prop="sacmForBuckleUp" align="center">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.sacmForBuckleUp"
/>
</template>
</el-table-column>
<el-table-column label="封切机压痕" prop="sacmForCreasing" align="center">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.sacmForCreasing"
/>
</template>
</el-table-column>
<el-table-column label="封切机风琴" prop="sacmForOrgan" align="center">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.sacmForOrgan"
/>
</template>
</el-table-column>
<el-table-column label="封切机热切" prop="sacmForThermalCutting" align="center">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.sacmForThermalCutting"
/>
</template>
</el-table-column>
<el-table-column label="封切机热自合" prop="sacmForThermalSelfFusion" align="center">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.sacmForThermalSelfFusion"
/>
</template>
</el-table-column>
<el-table-column label="封切机压齿" prop="sacmForMolarTooth" align="center">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.sacmForMolarTooth"
/>
</template>
</el-table-column>
<el-table-column label="封切机分切" prop="sacmForSlitting" align="center">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no"
:value="scope.row.sacmForSlitting"
/>
</template>
</el-table-column>
<el-table-column label="工序备注" prop="processRemark" align="center" /> <el-table-column label="工序备注" prop="processRemark" align="center" />
<el-table-column <el-table-column
v-if="mode != 'info'" v-if="mode != 'info'"
......
...@@ -106,6 +106,8 @@ export default { ...@@ -106,6 +106,8 @@ export default {
total: 0, total: 0,
// 物料产品表格数据 // 物料产品表格数据
itemList: null, itemList: null,
lifetime: null,
// 部门树选项 // 部门树选项
itemTypeOptions: undefined, itemTypeOptions: undefined,
defaultProps: { defaultProps: {
...@@ -177,7 +179,8 @@ export default { ...@@ -177,7 +179,8 @@ export default {
handleRowChange(row) { handleRowChange(row) {
if (row) { if (row) {
this.selectedRows = row; this.selectedRows = row;
this.selectedItemId = row.taskId this.selectedItemId = row.taskId;
this.lifetime = row.lifeTime;
} }
}, },
// 单选选中数据 // 单选选中数据
...@@ -194,14 +197,26 @@ export default { ...@@ -194,14 +197,26 @@ export default {
}, },
//确定选中 //确定选中
confirmSelect(){ confirmSelect(){
if(this.lifetime<0){
const materialRequestIds = this.lifetime
this.$modal.confirm('当前刀模板具寿命为"' + materialRequestIds + '",确定选择吗?').then(function () {
return;
}).then(() => {
}).catch(() => {
this.showFlag=true;
});
}
if (!this.selectedItemId) { if (!this.selectedItemId) {
this.$notify({ this.$notify({
title: "提示", title: "提示",
type: "warning", type: "warning",
message: "请至少选择一条数据!", message: "请至少选择一条数据!",
}); });
return; return;
} }
console.log(this.selectedRows) console.log(this.selectedRows)
this.$emit('onSelected',this.selectedRows); this.$emit('onSelected',this.selectedRows);
this.showFlag = false; this.showFlag = false;
......
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