| | |
| | | <template> |
| | | <zt-dialog ref="dialog" column="3" @confirm="formSubmit"> |
| | | <zt-dialog ref="dialog" column="3" :title="title" :stepMarker="stepMarker" @confirm="formSubmit" > |
| | | <el-form ref="dataForm" style="padding-top: 0" :inline="true" :disabled="dataForm.disabled" :model="dataForm" label-width="120px" class="warehouseFormAuto"> |
| | | <div > |
| | | <el-form-item label-width="60px" label="编号:" style="width:100%;margin-bottom: -5px"> |
| | |
| | | return { |
| | | disabled:true, |
| | | dataForm: { |
| | | stepMarker: '', |
| | | title: '查看', |
| | | id: '', |
| | | configItemWarehouse:{ |
| | | id:"", |
| | |
| | | this.dataForm.projectId = row.projectId |
| | | // this.dataForm.disabled |
| | | this.getInfo() |
| | | if (!this.dataForm.disabled) { |
| | | if (!row.stepMarker) { |
| | | this.stepMarker = 'pzxrk_first' |
| | | this.title = '入库申请' |
| | | } else { |
| | | this.title = row.stepName |
| | | this.stepMarker = row.stepMarker |
| | | } |
| | | } |
| | | console.log(this.dataForm.id,this.dataForm.projectId,'params params') |
| | | }, |
| | | addConfigItemWarehouseRow(){ |
| | |
| | | console.log(this.dataForm,"getInfo this.dataForm") |
| | | }, |
| | | // 表单提交 |
| | | async formSubmit() { |
| | | async formSubmit(submitType) { |
| | | if (submitType == 'tj' || submitType == 'bl') { |
| | | let flowInfo = { |
| | | flowCode: 'pzxrk', |
| | | stepIdMark: this.stepMarker, |
| | | submitType: submitType |
| | | } |
| | | this.dataForm.flowInfoDto = flowInfo; |
| | | } |
| | | let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/configItemWarehouse/ConfigItemWarehouse/', this.dataForm) |
| | | if (res.success) { |
| | | await this.$tip.success() |