| | |
| | | placement="top" |
| | | width="30" |
| | | > |
| | | <div @click=" getRowID(scope.row)" style="text-align: center; margin: 0"> |
| | | <div style="text-align: center; margin: 0" @click=" getRowID(scope.row)"> |
| | | <div> |
| | | <el-button size="mini" @click="dialogFormVisible4=true" type="text">编辑</el-button> |
| | | <el-button size="mini" type="text" @click="dialogFormVisible4=true">编辑</el-button> |
| | | </div> |
| | | <div> |
| | | <el-button size="mini" @click="dialogFormVisible5 = true" type="text">停用</el-button> |
| | | <el-button size="mini" type="text" @click="dialogFormVisible5 = true">停用</el-button> |
| | | </div> |
| | | </div> |
| | | <el-button slot="reference" type="text"><i class="el-icon-more" /></el-button> |
| | |
| | | <!-- 弹出表单页 --> |
| | | <div> |
| | | <!-- 添加标准 --> |
| | | <el-dialog title="添加标准" :visible.sync="dialogFormVisible1"> |
| | | <el-form ref="standardForm" :model="standardForm" :rules="rulesStandard"> |
| | | <el-form-item label="标准号" :label-width="formLabelWidth" prop="standardnumber"> |
| | | <el-dialog title="添加标准" :visible.sync="dialogFormVisible1" width="33%"> |
| | | <el-form :model="standardForm" :rules="rulesStandard"> |
| | | <el-form-item label="标准号" label-width="100px" prop="standardnumber"> |
| | | <el-input v-model="standardForm.standardnumber" autocomplete="off" /> |
| | | </el-form-item> |
| | | <el-form-item label="标准名称" :label-width="formLabelWidth" prop="standardname"> |
| | | <el-form-item label="标准名称" label-width="100px" prop="standardname"> |
| | | <el-input v-model="standardForm.standardname" autocomplete="off" /> |
| | | </el-form-item> |
| | | <el-form-item label="英文名称" :label-width="formLabelWidth" prop="standardenname"> |
| | | <el-form-item label="英文名称" label-width="100px" prop="standardenname"> |
| | | <el-input v-model="standardForm.engname" autocomplete="off" /> |
| | | </el-form-item> |
| | | <el-form-item label="父级分类" :label-width="formLabelWidth"> |
| | | <el-form-item label="父级分类" label-width="100px"> |
| | | <el-select v-model="standardForm.type" placeholder="请选择"> |
| | | <el-option label="原材料" value="0" /> |
| | | <el-option label="电线电缆" value="1" /> |
| | |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 添加型号 --> |
| | | <el-dialog title="添加型号" :visible.sync="dialogFormVisible2"> |
| | | <el-dialog title="添加型号" :visible.sync="dialogFormVisible2" width="30%"> |
| | | <el-form ref="form" :model="modelForm" :rules="rulesModel"> |
| | | <el-form-item label="型号" :label-width="formLabelWidth" prop="model"> |
| | | <el-input v-model="modelForm.model" autocomplete="off" /> |
| | |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 添加规格 --> |
| | | <el-dialog title="添加规格" :visible.sync="dialogFormVisible3"> |
| | | <el-dialog title="添加规格" :visible.sync="dialogFormVisible3" width="30%"> |
| | | <el-form ref="form" :model="specificationForm" :rules="rulesspecification"> |
| | | <el-form-item label="规格名称" :label-width="formLabelWidth" prop="name"> |
| | | <el-input v-model="specificationForm.name" autocomplete="off" /> |
| | |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 编辑规格 --> |
| | | <el-dialog title="编辑规格" :visible.sync="dialogFormVisible4"> |
| | | <el-dialog title="编辑规格" :visible.sync="dialogFormVisible4" width="30%"> |
| | | <el-form ref="form" :model="editSpeForm" :rules="rulesspecification"> |
| | | <el-form-item label="规格名称" :label-width="formLabelWidth" prop="name"> |
| | | <el-input v-model="editSpeForm.name" autocomplete="off" /> |
| | |
| | | <el-dialog |
| | | title="提示" |
| | | :visible.sync="dialogFormVisible5" |
| | | width="30%"> |
| | | width="30%" |
| | | > |
| | | <span>确认停用吗?</span> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogFormVisible5 = false">取 消</el-button> |
| | |
| | | spe_state: '', |
| | | voltageLevel: '' |
| | | }], |
| | | formLabelWidth: '120', |
| | | formLabelWidth: '100px', |
| | | rulesStandard: { |
| | | standardnumber: [ |
| | | { |
| | |
| | | // 跳转产品规格详情页 |
| | | this.$router.push(`/standardLibrary/SpecificationDetails/${row.id}`) |
| | | }, |
| | | // 获取当前规格的行id |
| | | getRowID(row) { |
| | | // console.log(row.id) |
| | | this.id = row.id |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | // .dialogform { |
| | | // transform: translate(-50%, -50%); |
| | | // top: 50% !important; |
| | | // left: 50% !important; |
| | | // width: 1000px; |
| | | // height: 800px; |
| | | // } |
| | | .standard-library-main{ |
| | | width: 100%; |
| | | height: 100%; |