| | |
| | | <el-form-item label="工序名称" prop="stepname"> |
| | | <el-input v-model="dialogForm.stepname" style="width: 200px" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item prop="steptypecode" label="工序类型"> |
| | | <el-select |
| | | <el-radio-group |
| | | v-model="dialogForm.steptypecode" |
| | | filterable |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | :popper-append-to-body="false" |
| | | > |
| | | <el-option |
| | | <el-radio |
| | | v-for="item in steptypeArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | :label="item.name" |
| | | /> |
| | | </el-select> |
| | | </el-radio-group> |
| | | <!-- <el-select--> |
| | | <!-- v-model="dialogForm.steptypecode"--> |
| | | <!-- filterable--> |
| | | <!-- style="width: 200px"--> |
| | | <!-- placeholder="请选择"--> |
| | | <!-- :popper-append-to-body="false"--> |
| | | <!-- >--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="item in steptypeArr"--> |
| | | <!-- :key="item.code"--> |
| | | <!-- :label="item.name"--> |
| | | <!-- :value="item.code"--> |
| | | <!-- />--> |
| | | <!-- </el-select>--> |
| | | </el-form-item> |
| | | <el-form-item prop="enable" label="启用状态"> |
| | | <el-select |
| | |
| | | 'id': '', |
| | | 'stepcode': '', |
| | | 'stepname': '', |
| | | 'steptypecode': '', |
| | | 'steptypecode': '自制', |
| | | 'enable': 'Y', |
| | | 'description': '', |
| | | 'OperType': '' |
| | |
| | | this.dialogForm.id = row.id |
| | | this.dialogForm.stepcode = row.stepcode |
| | | this.dialogForm.stepname = row.stepname |
| | | this.dialogForm.steptypecode = row.flwtype |
| | | this.dialogForm.steptypecode = this.steptypeArr.find(item => item.code === row.flwtype).name |
| | | this.dialogForm.description = row.descr |
| | | this.dialogForm.enable = row.enable |
| | | }) |
| | |
| | | handleClose() { |
| | | this.dialogForm.stepcode = '' |
| | | this.dialogForm.stepname = '' |
| | | this.dialogForm.steptypecode = '' |
| | | this.dialogForm.steptypecode = '自制' |
| | | this.dialogForm.enable = 'Y' |
| | | this.dialogForm.description = '' |
| | | this.$refs.dialogForm.clearValidate() |
| | |
| | | id: this.dialogForm.id, |
| | | stepcode: this.dialogForm.stepcode, |
| | | stepname: this.dialogForm.stepname, |
| | | steptypecode: this.dialogForm.steptypecode, |
| | | steptypecode: this.steptypeArr.find(item => item.name === this.dialogForm.steptypecode).code, |
| | | enable: this.dialogForm.enable, |
| | | description: this.dialogForm.description, |
| | | OperType: this.operation === 'add' ? 'Add' : 'Update' |