| | |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="产品类型"> |
| | | <el-select v-model="relationIds" multiple placeholder="产品类型" style="width: 100%"> |
| | | <el-select v-model="addPlanForm.relationIds" multiple placeholder="产品类型" style="width: 100%"> |
| | | <el-option v-for="item in productList" :key="item.id" :label="item.name" :value="item.id">{{ |
| | | item.name }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-col :span="24" v-if="mode != 'edit'"> |
| | | <el-form-item label="通过已有计划类型新建" prop="copySourceId"> |
| | | <el-select v-model="copySourceId" placeholder="通过已有计划类型新建" style="width: 100%"> |
| | | <el-select v-model="addPlanForm.copySourceId" placeholder="通过已有计划类型新建" style="width: 100%"> |
| | | <el-option v-for="item in planData" :key="item.id" :label="item.templateName" :value="item.id">{{ |
| | | item.templateName }}</el-option> |
| | | </el-select> |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <template #footer> |
| | | <el-button @click="visible=false" >取消</el-button> |
| | | <el-button @click="visible=false">取消</el-button> |
| | | <el-button v-if="mode!='show'" type="primary" :loading="isSaveing" @click="planSubmit">保 存</el-button> |
| | | </template> |
| | | </el-dialog> |
| | |
| | | }, |
| | | //表单注入数据 |
| | | setData(data){ |
| | | console.log(data) |
| | | Object.assign(this.addPlanForm, data); |
| | | } |
| | | } |