| | |
| | | @close="onClose"> |
| | | <slot></slot> |
| | | <template slot="footer"> |
| | | <template v-if="isView"> |
| | | <el-button type="info" @click="close()">{{ $t('close') }}</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <template v-if="stepMarker && stepMarker.indexOf('first')>0"> |
| | | <el-button type="warning" @click="formSubmit('zc')">暂存</el-button> |
| | | <el-button type="warning" @click="formSubmit('tj')" v-if="">提交 |
| | |
| | | </el-button> |
| | | <el-button type="warning" @click="formSubmit('bc')" v-else-if="editAble">保存 |
| | | </el-button> |
| | | |
| | | <el-button @click="visible = false" v-if="editAble||stepMarker">{{ $t('cancel') }}</el-button> |
| | | <el-button type="info" @click="close()" v-else>{{ $t('close') }}</el-button> |
| | | |
| | | </template> |
| | | <slot name="footer"></slot> |
| | | </template> |
| | | </el-dialog> |
| | |
| | | data() { |
| | | return { |
| | | dataFormBack: null, |
| | | visible: false |
| | | visible: false, |
| | | isView:true, |
| | | //editAble: true // 是否可编辑 |
| | | } |
| | | }, |
| | |
| | | return typeof this.hasView === 'boolean' ? this.hasView : this.hasView(row) |
| | | }, |
| | | isCanEidt(row) { |
| | | if(row.stepMarker && row.stepMarker.includes('wc')){ |
| | | return false |
| | | }else { |
| | | return typeof this.hasEdit === 'boolean' ? this.hasEdit : this.hasEdit(row) |
| | | } |
| | | }, |
| | | isCanDelete(row) { |
| | | return typeof this.hasDelete === 'boolean' ? this.hasDelete : this.hasDelete(row) |
| | |
| | | if (!this.dataForm.disabled) { |
| | | if (!row.stepMarker) { |
| | | this.stepMarker = 'pzxbg_first' |
| | | this.title = '入库申请' |
| | | this.title = '变更申请' |
| | | } else { |
| | | this.title = row.stepName |
| | | this.stepMarker = row.stepMarker |
| | |
| | | <zt-table-column-handle :table="table" :hasEdit='false' edit-perm="testCheckOrder:update" |
| | | delete-perm="testCheckOrder::delete"> |
| | | <template v-slot="{row}"> |
| | | <zt-table-button type="primary" v-if="(row.stepMarker && row.stepMarker.includes('wc'))" @click="openEditWin(row)">修改</zt-table-button> |
| | | <zt-table-button type="primary" @click="openEditWin(row)">修改</zt-table-button> |
| | | </template> |
| | | |
| | | </zt-table-column-handle> |