|
|
@@ -15,10 +15,6 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- <el-button @click="cancel">返回</el-button>
|
|
|
- <el-button type="primary" @click="submit" :loading="loading">保存</el-button>
|
|
|
- </div>
|
|
|
</div>
|
|
|
<div class="divider">
|
|
|
<div class="title">
|
|
|
@@ -126,29 +122,34 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+
|
|
|
+ <!-- 物料组弹窗 -->
|
|
|
+ <GroupDialog ref="groupRefs" @changeMaterial='determineChoose'/>
|
|
|
+ <!-- 分类选择弹窗 -->
|
|
|
+ <CategoryDialog ref="categoryRefs" @chooseCategory='confirmCategory'/>
|
|
|
+ <!-- 仓储配置 -->
|
|
|
+ <WarehouseInfo ref="warehouseRefs" :form="categoryWms"/>
|
|
|
+ <!-- 生产信息 -->
|
|
|
+ <ProductionInfo ref="productionRefs" :form="categoryMes"/>
|
|
|
+ <!-- 计划 -->
|
|
|
+ <PlanInfo ref="planRefs" :form="categoryAps"/>
|
|
|
+ <!-- 质量配置 -->
|
|
|
+ <QualityInfo ref="qualityRefs" :form="categoryQms"/>
|
|
|
+ <!-- 舟皿信息 -->
|
|
|
+ <BoatInfo ref="qualityRefs" :form="categoryPallet"/>
|
|
|
+ <!-- 周转车信息 -->
|
|
|
+ <TurnoverInfo ref="turnoverRefs" :form="categoryVehicle"/>
|
|
|
+ <!-- 模具信息 -->
|
|
|
+ <MoldInfo ref="moldRefs" :form="categoryMold"/>
|
|
|
+ <!-- 备注信息 -->
|
|
|
+ <RemarkInfo ref="remarkRefs" :form="remarkform"/>
|
|
|
+ <div class="footer-btn">
|
|
|
+ <el-button @click="cancel">返回</el-button>
|
|
|
+ <el-button type="primary" @click="submit" :loading="loading">保存</el-button>
|
|
|
+ </div>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
|
|
|
|
- <!-- 物料组弹窗 -->
|
|
|
- <GroupDialog ref="groupRefs" @changeMaterial='determineChoose'/>
|
|
|
- <!-- 分类选择弹窗 -->
|
|
|
- <CategoryDialog ref="categoryRefs" @chooseCategory='confirmCategory'/>
|
|
|
- <!-- 仓储配置 -->
|
|
|
- <WarehouseInfo ref="warehouseRefs" :form="categoryWms"/>
|
|
|
- <!-- 生产信息 -->
|
|
|
- <ProductionInfo ref="productionRefs" :form="categoryMes"/>
|
|
|
- <!-- 计划 -->
|
|
|
- <PlanInfo ref="planRefs" :form="categoryAps"/>
|
|
|
- <!-- 质量配置 -->
|
|
|
- <QualityInfo ref="qualityRefs" :form="categoryQms"/>
|
|
|
- <!-- 舟皿信息 -->
|
|
|
- <BoatInfo ref="qualityRefs" :form="categoryPallet"/>
|
|
|
- <!-- 周转车信息 -->
|
|
|
- <TurnoverInfo ref="turnoverRefs" :form="categoryVehicle"/>
|
|
|
- <!-- 模具信息 -->
|
|
|
- <MoldInfo ref="moldRefs" :form="categoryMold"/>
|
|
|
- <!-- 备注信息 -->
|
|
|
- <RemarkInfo ref="remarkRefs" :form="remarkform"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -179,12 +180,15 @@
|
|
|
data() {
|
|
|
const defaultForm = {
|
|
|
categoryLevelGroupName:'',
|
|
|
- categoryLevelName:'',
|
|
|
+ categoryLevelName:''
|
|
|
};
|
|
|
return {
|
|
|
loading:false,
|
|
|
form:{...defaultForm},
|
|
|
- categoryAps:{},
|
|
|
+ categoryAps:{
|
|
|
+ unit:1,
|
|
|
+ orderIntervalUnit:1
|
|
|
+ },
|
|
|
categoryMes:{},
|
|
|
categoryMold:{},
|
|
|
categoryPallet:{},
|
|
|
@@ -238,8 +242,8 @@
|
|
|
this.judgeSet(info)
|
|
|
delete this.form.remarkAttach
|
|
|
delete this.form.remark
|
|
|
- // this.$set(this.remarkform,'remarkAttach',info.remarkAttach)
|
|
|
- this.$set(this.remarkform,'remark',info.remark)
|
|
|
+ this.$set(this.remarkform,'remarkAttach',info.category.remarkAttach)
|
|
|
+ this.$set(this.remarkform,'remark',info.category.remark)
|
|
|
this.$set(this.form,'categoryLevelGroupName',this.chooseItem.name)
|
|
|
if(this.titileStatus == 1){
|
|
|
delete this.form.code
|
|
|
@@ -344,6 +348,8 @@
|
|
|
changeProduct(){
|
|
|
if(!this.form.isProduct){
|
|
|
this.$refs.manageForm.clearValidate(["productCategoryLevelName"]);
|
|
|
+ this.$set(this.form,'productCategoryLevelName','')
|
|
|
+ this.$set(this.form,'productCategoryLevelId','')
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -436,4 +442,11 @@
|
|
|
margin-left:15px;
|
|
|
}
|
|
|
}
|
|
|
+ .footer-btn{
|
|
|
+ width:100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ margin:20px auto;
|
|
|
+ }
|
|
|
</style>
|