Commit 8d5ed44a authored by 沈翠玲's avatar 沈翠玲

排版方式

parent c2ffc47c
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<dict-tag :options="dict.type.mes_item_product" :value="scope.row.itemOrProduct" /> <dict-tag :options="dict.type.mes_item_product" :value="scope.row.itemOrProduct" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否DTA排版" align="center" key="itemOrProduct" prop="itemOrProduct" <el-table-column label="排版方式" align="center" key="dta" prop="dta"
:show-overflow-tooltip="true"> :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.dta ? dtaOptions.find(v => v.value === scope.row.dta).name : ''}}</div> <div>{{ scope.row.dta ? dtaOptions.find(v => v.value === scope.row.dta).name : ''}}</div>
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="是否DTA排版"> <el-form-item label="排版方式">
<el-select v-model="form.dta" placeholder="请选择是否DTA排版" filterable :disabled="optType == 'view'"> <el-select v-model="form.dta" placeholder="请选择是否DTA排版" filterable :disabled="optType == 'view'">
<el-option v-for="item in dtaOptions" :key="item.value" :label="item.name" <el-option v-for="item in dtaOptions" :key="item.value" :label="item.name"
:value="item.value"></el-option> :value="item.value"></el-option>
...@@ -623,30 +623,33 @@ export default { ...@@ -623,30 +623,33 @@ export default {
this.$refs["form"].validate(async (valid) => { this.$refs["form"].validate(async (valid) => {
if (valid) { if (valid) {
if (this.form.itemId != undefined) { if (this.form.itemId != undefined) {
let baseInfoData
//基本信息保存 //基本信息保存
const baseInfoData = await this.$refs["BaseInfo"].getBaseInfoData(); if (this.$refs["BaseInfo"]) {
baseInfoData = await this.$refs["BaseInfo"].getBaseInfoData();
baseInfoData.itemId = this.form.itemId; baseInfoData.itemId = this.form.itemId;
}
// //产品外观保存 // //产品外观保存
// const lookData = await this.$refs["Look"].getLookFormData(); // const lookData = await this.$refs["Look"].getLookFormData();
// lookData.itemId = this.form.itemId; // lookData.itemId = this.form.itemId;
//产品参数配置保存 publishedConf //产品参数配置保存 publishedConf
const publishedConfData = await this.$refs[ // const publishedConfData = await this.$refs[
"PublishedConf" // "PublishedConf"
].getPublishedConfData(); // ].getPublishedConfData();
publishedConfData.itemId = this.form.itemId; // publishedConfData.itemId = this.form.itemId;
//销售单位转换保存 //销售单位转换保存
//const saleUnit = await this.$refs["SaleUnit"].getSaleUnitFormData(); //const saleUnit = await this.$refs["SaleUnit"].getSaleUnitFormData();
//saleUnit.itemId = this.form.itemId; //saleUnit.itemId = this.form.itemId;
const params = { const params = {
...this.form, ...this.form
baseInfo: baseInfoData,
look: lookData,
publishedConf: publishedConfData,
//saleUnit: saleUnit //saleUnit: saleUnit
}; };
if (baseInfoData) {
params['baseInfo'] = baseInfoData
}
updateMdItem(params).then((response) => { updateMdItem(params).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
......
...@@ -67,6 +67,12 @@ ...@@ -67,6 +67,12 @@
<el-table-column label="销售单号" align="center" prop="saleCode" /> <el-table-column label="销售单号" align="center" prop="saleCode" />
<el-table-column label="物料名称" align="center" prop="itemName" /> <el-table-column label="物料名称" align="center" prop="itemName" />
<el-table-column label="开始时间" align="center" prop="startTime" /> <el-table-column label="开始时间" align="center" prop="startTime" />
<el-table-column label="排版方式" align="center" prop="dtaType"
:show-overflow-tooltip="true">
<template slot-scope="scope">
<div>{{ scope.row.dtaType ? dtaOptions.find(v => v.value === scope.row.dtaType).name : ''}}</div>
</template>
</el-table-column>
<el-table-column label="完成时间" align="center" prop="endTime" /> <el-table-column label="完成时间" align="center" prop="endTime" />
<el-table-column label="操作" width="200" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" width="200" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -212,7 +218,9 @@ ...@@ -212,7 +218,9 @@
import { getDtaList, finishApi } from "@/api/mes/pro/dta"; import { getDtaList, finishApi } from "@/api/mes/pro/dta";
import BrandSelect from "@/components/itemType/single.vue"; import BrandSelect from "@/components/itemType/single.vue";
import ProcessSelect from "@/components/process/taskSelectSingle.vue"; import ProcessSelect from "@/components/process/taskSelectSingle.vue";
import {
getItmeDtaTypeEnum
} from "@/api/mes/md/mdItem";
export default { export default {
name: "ScheduleSetupRule", name: "ScheduleSetupRule",
...@@ -223,6 +231,8 @@ export default { ...@@ -223,6 +231,8 @@ export default {
loading: true, loading: true,
// 选中数组 // 选中数组
ids: [], ids: [],
//dta列表
dtaOptions: [],
// 非单个禁用 // 非单个禁用
single: true, single: true,
// 非多个禁用 // 非多个禁用
...@@ -260,9 +270,21 @@ export default { ...@@ -260,9 +270,21 @@ export default {
}; };
}, },
created() { created() {
this.getDtas()
this.getList(); this.getList();
}, },
methods: { methods: {
getDtas() {
this.dtaOptions = []
getItmeDtaTypeEnum().then((response) => {
Object.keys(response.data).forEach(v => {
this.dtaOptions.push({
name: response.data[v],
value: v
})
})
});
},
/** 查询排产换型对照信息列表 */ /** 查询排产换型对照信息列表 */
getList() { getList() {
this.loading = true; this.loading = 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