|
@@ -509,7 +509,8 @@ export default {
|
|
|
timeDimensionPlanType: 3,
|
|
timeDimensionPlanType: 3,
|
|
|
categoryId: '',
|
|
categoryId: '',
|
|
|
productName: '',
|
|
productName: '',
|
|
|
- planType: 1,
|
|
|
|
|
|
|
+ planType: '',
|
|
|
|
|
+
|
|
|
moCount: '', // 模具数量
|
|
moCount: '', // 模具数量
|
|
|
blockCount: 0, // 块数
|
|
blockCount: 0, // 块数
|
|
|
noWordCount: '',// 无字数量
|
|
noWordCount: '',// 无字数量
|
|
@@ -571,12 +572,12 @@ export default {
|
|
|
async getFactoryList() {
|
|
async getFactoryList() {
|
|
|
this.factoryList = await getFactoryList();
|
|
this.factoryList = await getFactoryList();
|
|
|
},
|
|
},
|
|
|
- open(val) {
|
|
|
|
|
- this.getFactoryList();
|
|
|
|
|
|
|
+ async open(val) {
|
|
|
|
|
+ await this.getFactoryList();
|
|
|
|
|
+
|
|
|
if (val) {
|
|
if (val) {
|
|
|
this.title = !val.id ? '新增临时生产计划' : '编辑临时生产计划';
|
|
this.title = !val.id ? '新增临时生产计划' : '编辑临时生产计划';
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ val.planType = String(val.planType);
|
|
|
this.form = val;
|
|
this.form = val;
|
|
|
// 修改
|
|
// 修改
|
|
|
if (val.id) {
|
|
if (val.id) {
|