| | |
| | | <template slot-scope="{row}"> |
| | | <div v-if="!row[item.prop]">/</div> |
| | | <div v-else-if="item.prop==='checktype'"> |
| | | {{ checktypeArr.find(i=>i.code===row[item.prop]).name }} |
| | | {{ checktypeArr.find(i => i.code === row[item.prop]).name }} |
| | | </div> |
| | | <div v-else-if="item.prop==='sampmethod'"> |
| | | {{ sampltypeArr.find(i=>i.code===row[item.prop]).name }} |
| | | {{ sampltypeArr.find(i => i.code === row[item.prop]).name }} |
| | | </div> |
| | | <!-- 适用对象--> |
| | | <div v-else-if="item.prop==='suitobject'"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <br> |
| | | <el-form-item |
| | | v-if="dialogForm.checktype==='FirstCheck'||dialogForm.checktype==='PatroCheck'||dialogForm.checktype==='EndCheck'" |
| | | label="工序名称" |
| | | prop="stepcode" |
| | | > |
| | | <el-select |
| | | v-model="dialogForm.stepcode" |
| | | style="width: 200px" |
| | | filterable |
| | | placeholder="请选择" |
| | | :popper-append-to-body="false" |
| | | > |
| | | <el-option |
| | | v-for="item in StepSelectArr" |
| | | :key="item.stepcode" |
| | | :label="item.stepname" |
| | | :value="item.stepcode" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="检验方案描述"> |
| | | <el-input v-model="dialogForm.descr" type="textarea" :autosize="{ minRows: 2 }" /> |
| | | </el-form-item> |
| | |
| | | import { validateCode } from '@/utils/global' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | import { PartSelect, StockTypeSelect, UomSelect } from '@/api/makeModel' |
| | | import { PartSelect, StepSelect, StockTypeSelect, UomSelect } from '@/api/makeModel' |
| | | import { |
| | | QualityInspectionAddEditSave, |
| | | QualityInspectionDelete, |
| | |
| | | sortable: true |
| | | }, |
| | | { |
| | | minWidth: false, |
| | | width: 110, |
| | | prop: 'stepcode', |
| | | label: '工序编码', |
| | | id: 9, |
| | | show: false, |
| | | fixed: false, |
| | | sortable: true |
| | | }, { |
| | | minWidth: 110, |
| | | width: false, |
| | | prop: 'lm_user', |
| | | label: '创建人员', |
| | | id: 9, |
| | | prop: 'stepname', |
| | | label: '工序名称', |
| | | id: 10, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | | }, |
| | | { |
| | | minWidth: 160, |
| | | width: false, |
| | | minWidth: false, |
| | | width: 110, |
| | | prop: 'username', |
| | | label: '创建人员', |
| | | id: 11, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | | }, |
| | | { |
| | | minWidth: false, |
| | | width: 160, |
| | | prop: 'lm_date', |
| | | label: '创建时间', |
| | | id: 10, |
| | | id: 12, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | |
| | | sampscale: '', // 抽检比例 |
| | | suitobject: 'P', // 适用对象 |
| | | suitpart: [], // 适用物料 |
| | | stepcode: '', // 工序 |
| | | descr: '' // /描述 |
| | | }, |
| | | operation: '', |
| | |
| | | ], |
| | | suitpart: [ |
| | | { required: true, message: '请选择物料或物料类别', trigger: ['blur', 'change'] } |
| | | ], |
| | | stepcode: [ |
| | | { required: true, message: '请选择工序名称', trigger: ['blur', 'change'] } |
| | | ] |
| | | }, |
| | | checkitem: [], |
| | |
| | | UomSelectArr: [], // 单位下拉数组 |
| | | CheckItemSelectAllArr: [], // 检验项目(所有) |
| | | CheckItemSelectArr: [], // 检验项目 |
| | | StepSelectArr: [], // 工序名称下拉所有 |
| | | |
| | | isCancel: true// 是否可取消 |
| | | |
| | |
| | | this.getStepCheckItemSelect() |
| | | this.getPartSelect() |
| | | this.getStockTypeSelect() |
| | | this.getStepSelect() |
| | | } |
| | | }) |
| | | }, |
| | | async getStepSelect() { |
| | | const { data: res } = await StepSelect() |
| | | this.StepSelectArr = res |
| | | }, |
| | | async getQualityInspectionSearch() { |
| | | const res = await QualityInspectionSearch(this.form) |
| | |
| | | this.dialogForm.qualityinsptcode = row.code |
| | | this.dialogForm.qualityinsptname = row.name |
| | | this.dialogForm.status = row.status |
| | | this.dialogForm.stepcode = row.stepcode |
| | | this.dialogForm.checktype = row.checktype |
| | | this.dialogForm.sampmethod = row.sampmethod |
| | | // this.dialogForm.sampscare = row.sampscare |
| | |
| | | this.dialogForm.qualityinsptcode = row.code |
| | | this.dialogForm.qualityinsptname = row.name |
| | | this.dialogForm.status = row.status |
| | | this.dialogForm.stepcode = row.stepcode |
| | | this.dialogForm.checktype = row.checktype |
| | | this.dialogForm.sampmethod = row.sampmethod |
| | | if (this.dialogForm.sampmethod === 'FIXED') { |
| | |
| | | checktype: '', |
| | | sampmethod: 'FIXED', |
| | | sampnum: '', |
| | | stepcode: '', |
| | | sampscale: '', |
| | | suitobject: 'P', |
| | | suitpart: [], |
| | |
| | | this.CheckItemSelectArr = JSON.parse(JSON.stringify(this.CheckItemSelectAllArr)) |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | | |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | | this.dialogVisible = false |
| | |
| | | qualityinsptcode: this.dialogForm.qualityinsptcode, |
| | | qualityinsptname: this.dialogForm.qualityinsptname, |
| | | status: this.dialogForm.status, |
| | | stepcode: this.dialogForm.checktype === 'InCheck' || this.dialogForm.checktype === 'OutCheck' ? '' : this.dialogForm.stepcode, |
| | | checktype: this.dialogForm.checktype, |
| | | sampmethod: this.dialogForm.sampmethod, |
| | | sampscare: this.dialogForm.sampnum ? this.dialogForm.sampnum : this.dialogForm.sampscale, |