| | |
| | | <el-row> |
| | | <el-col :span="12" style="line-height: 32px;">自检项目维护</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;">新增</el-button> |
| | | <el-button icon="el-icon-edit-outline">修改</el-button> |
| | | <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;" @click="addend">新增</el-button> |
| | | <el-button icon="el-icon-edit-outline" @click="modify">修改</el-button> |
| | | <el-button icon="el-icon-delete" @click="dels">删除</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="choose"> |
| | | <span>类型:</span> |
| | | <el-select v-model="search.type" size="small" placeholder="请选择" style="width: 224px;margin-right: 30px;"> |
| | | <el-select v-model="search.type" size="small" @change="TYpe" placeholder="请选择" style="width: 224px;margin-right: 30px;"> |
| | | <el-option label="橡胶连接器" :value="0"></el-option> |
| | | <el-option label="金属连接器" :value="1"></el-option> |
| | | <el-option label="湿插拔电连接器" :value="2"></el-option> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="unit" label="单位"> |
| | | </el-table-column> |
| | | <el-table-column prop="stand" label="标准值"> |
| | | <el-table-column prop="required" label="标准值"> |
| | | </el-table-column> |
| | | <el-table-column prop="ask" label="内控值"> |
| | | <el-table-column prop="internal" label="内控值"> |
| | | </el-table-column> |
| | | <el-table-column label="操作" width="130"> |
| | | <template slot-scope="scope"> |
| | |
| | | <el-button @click="upDia = false">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <!-- 新增弹窗 --> |
| | | <el-dialog title="自建新增" :visible.sync="dialogVisible" width="35%"> |
| | | <div> |
| | | <el-form ref="form" :model="form" label-width="80px"> |
| | | <el-form-item label="类型"> |
| | | <template> |
| | | <el-select v-model="value" placeholder="请选择类型" style="width: 480px;"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-form-item> |
| | | <el-form-item label="工序"> |
| | | <template> |
| | | <el-select v-model="value" placeholder="请选择类型" style="width: 480px;"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-col :span="10"> |
| | | <el-form-item label="工艺名称"> |
| | | <template> |
| | | <el-select v-model="value" placeholder="请选择类型" style="width: 180px;"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10" :offset="3"> |
| | | <el-form-item label="自建项目"> |
| | | <el-input v-model="form.name" style="width: 180px;"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="10"> |
| | | <el-form-item label="单位"> |
| | | <el-input v-model="form.vvvv" style="width: 180px;"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10" :offset="3"> |
| | | <el-form-item label="标准值"> |
| | | <el-input v-model="form.aaaa" style="width: 180px;"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="内控值" > |
| | | <el-input v-model="form.aaaa" style="width: 180px;"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="dialogVisible = false">确 定</el-button> |
| | | <el-button @click="dialogVisible = false">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | <!-- 修改弹窗 --> |
| | | <el-dialog title="工艺路线修改" :visible.sync="modifyVisible" width="35%"> |
| | | <div> |
| | | <el-form ref="form" :model="form" label-width="80px"> |
| | | <el-form-item label="类型"> |
| | | <template> |
| | | <el-select v-model="value" placeholder="请选择类型" style="width: 480px;"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-form-item> |
| | | <el-form-item label="工序"> |
| | | <template> |
| | | <el-select v-model="value" placeholder="请选择类型" style="width: 480px;"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-col :span="10"> |
| | | <el-form-item label="工艺名称"> |
| | | <template> |
| | | <el-select v-model="value" placeholder="请选择类型" style="width: 180px;"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10" :offset="3"> |
| | | <el-form-item label="自建项目"> |
| | | <el-input v-model="form.name" style="width: 180px;"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="10"> |
| | | <el-form-item label="单位"> |
| | | <el-input v-model="form.vvvv" style="width: 180px;"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10" :offset="3"> |
| | | <el-form-item label="标准值"> |
| | | <el-input v-model="form.aaaa" style="width: 180px;"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="内控值" > |
| | | <el-input v-model="form.aaaa" style="width: 180px;"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="modifyVisible = false">确 定</el-button> |
| | | <el-button @click="modifyVisible = false">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | name: null, |
| | | technology: null |
| | | }, |
| | | options:[], |
| | | value:{}, |
| | | form:{}, |
| | | modifyVisible:false, |
| | | dialogVisible:false, |
| | | process: [], |
| | | product: [], |
| | | list: [{ |
| | | id: 0, |
| | | name: "原材料", |
| | | children: [{ |
| | | id: 3, |
| | | name: "工艺" |
| | | }] |
| | | }, { |
| | | id: 1, |
| | | name: "成品", |
| | | children: [{ |
| | | id: 4, |
| | | name: "工艺" |
| | | }] |
| | | }, { |
| | | id: 2, |
| | | name: "半成品", |
| | | children: [{ |
| | | id: 5, |
| | | name: "工艺" |
| | | }] |
| | | }], |
| | | list: [], |
| | | checkTreeNode: {}, |
| | | tableData: [{ |
| | | id: 1, |
| | | name: "电缆规格", |
| | | unit: "dajskda", |
| | | stand: "12348", |
| | | ask: "564165" |
| | | }, { |
| | | id: 2, |
| | | name: "作业人员", |
| | | unit: "dajskda", |
| | | stand: "12348", |
| | | ask: "564165" |
| | | }, { |
| | | id: 3, |
| | | name: "规格", |
| | | unit: "dajskda", |
| | | stand: "12348", |
| | | ask: "564165" |
| | | }, { |
| | | id: 4, |
| | | name: "规格", |
| | | unit: "dajskda", |
| | | stand: "12348", |
| | | ask: "564165" |
| | | }, { |
| | | id: 5, |
| | | name: "规格", |
| | | unit: "dajskda", |
| | | stand: "12348", |
| | | ask: "564165" |
| | | }], |
| | | tableData: [], |
| | | upIndex: 0, |
| | | selects: [], |
| | | upDia: false, |
| | | typeselect:0, |
| | | checkTreeNode:[], |
| | | upData: { |
| | | id: 0, |
| | | name: null, |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.selectDataList() |
| | | this.selectAllleft() |
| | | }, |
| | | methods: { |
| | | TYpe(val) { |
| | | this.typeselect = val |
| | | console.log(this.typeselect); |
| | | this.selectAllleft() |
| | | }, |
| | | //主体左 |
| | | selectAllleft() { |
| | | this.$axios.get(this.$api.url.selectAllleft,{ |
| | | params:{type:this.typeselect} |
| | | }).then(res => { |
| | | this.list = res.data; |
| | | console.log(this.list); |
| | | }) |
| | | }, |
| | | //selectAllSelf checkTreeNode |
| | | selectAllSelf() { |
| | | this.$axios.get(this.$api.url.selectAllSelf,{ |
| | | params:{id:this.checkTreeNode.id} |
| | | }).then(res => { |
| | | this.tableData = res.data; |
| | | console.log(this.tableData); |
| | | }) |
| | | }, |
| | | modify(){ |
| | | this.modifyVisible = true |
| | | }, |
| | | addend(){ |
| | | this.dialogVisible = true |
| | | }, |
| | | filterNode(value, data) { |
| | | if (!value) return true; |
| | | return data.name.indexOf(value) !== -1; |
| | |
| | | }, |
| | | handleNodeClick(data) { |
| | | this.checkTreeNode = data |
| | | this.selectAllSelf() |
| | | if(data.code=='[2]'){ |
| | | console.log(data); |
| | | } |