备品备件:调整/ 基础数据修改(取消 保存并继续添加 , 左树右表结构 布局调整,异常处理)
| | |
| | | :gutter="16" |
| | | > |
| | | <a-col |
| | | :md="6" |
| | | :md="4" |
| | | :sm="24" |
| | | > |
| | | <equipment-category-left /> |
| | | <equipment-category-left/> |
| | | </a-col> |
| | | <a-col |
| | | :md="24-6" |
| | | :md="24-4" |
| | | :sm="24" |
| | | > |
| | | <equipment-category-right /> |
| | | <equipment-category-right/> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | |
| | | :gutter="16" |
| | | > |
| | | <a-col |
| | | :md="6" |
| | | :md="4" |
| | | :sm="24" |
| | | > |
| | | <fault-type-left /> |
| | | </a-col> |
| | | <a-col |
| | | :md="24-6" |
| | | :md="24-4" |
| | | :sm="24" |
| | | > |
| | | <fault-type-right /> |
| | | <fault-type-right/> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | |
| | | :gutter="16" |
| | | > |
| | | <a-col |
| | | :md="6" |
| | | :md="4" |
| | | :sm="24" |
| | | > |
| | | <precision-parameters-category-left @clickTreeNode="getSelectNode" /> |
| | | </a-col> |
| | | <a-col |
| | | :md="24-6" |
| | | :md="24-4" |
| | | :sm="24" |
| | | > |
| | | <precision-parameters-right :recordSelect="currentNodeSelect" /> |
| | |
| | | |
| | | <a-tabs defaultActiveKey="1"> |
| | | <a-tab-pane tab="精度参数明细" key="1" > |
| | | <PrecisionParametersTemplateDetail :precisionParametersTemplateId="precisionParametersTemplateId" /> |
| | | <div |
| | | class='table-operator' |
| | | style='margin:-20px' |
| | | > |
| | | <PrecisionParametersTemplateDetail :precisionParametersTemplateId="precisionParametersTemplateId" /> |
| | | </div> |
| | | |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | |
| | | }, |
| | | width: 50, |
| | | }, |
| | | { |
| | | /* { |
| | | title: '上级设备分类编码', |
| | | align: "center", |
| | | dataIndex: 'parentNum', |
| | |
| | | title: '上级设备分类名称', |
| | | align: "center", |
| | | dataIndex: 'parentName', |
| | | }, |
| | | }, */ |
| | | { |
| | | title: '设备分类编码', |
| | | align: "center", |
| | |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form :form="form"> |
| | | |
| | | <a-row :gutter="24"> |
| | | <!-- <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="上级设备分类编号" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-row>--> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | |
| | | > |
| | | 关闭 |
| | | </a-button> |
| | | <a-button |
| | | <!-- <a-button |
| | | v-if="!this.model.id" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | :loading="confirmLoading" |
| | | @click="handleOkAndAdd" |
| | | type="primary" |
| | | >保存并继续新增</a-button> |
| | | >保存并继续新增</a-button>--> |
| | | <a-button |
| | | :disabled="disableSubmit || confirmLoading" |
| | | :loading="confirmLoading" |
| | |
| | | }, |
| | | width: 50 |
| | | }, |
| | | { |
| | | /* { |
| | | title: '上级故障类型编码', |
| | | align: 'center', |
| | | dataIndex: 'parentNum' |
| | |
| | | |
| | | align: 'center', |
| | | dataIndex: 'parentName' |
| | | }, |
| | | }, */ |
| | | { |
| | | title: '故障类型编码', |
| | | align: 'center', |
| | |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form :form="form"> |
| | | |
| | | <a-row :gutter="24"> |
| | | <!-- <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="上级故障类型编号:" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-row>--> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | |
| | | > |
| | | 关闭 |
| | | </a-button> |
| | | <a-button |
| | | <!-- <a-button |
| | | v-if="!this.model.id" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | :loading="confirmLoading" |
| | | @click="handleOk" |
| | | type="primary" |
| | | >保存并继续新增</a-button> |
| | | >保存并继续新增</a-button>--> |
| | | <a-button |
| | | :disabled="disableSubmit || confirmLoading" |
| | | :loading="confirmLoading" |
| | |
| | | > |
| | | 关闭 |
| | | </a-button> |
| | | <a-button |
| | | <!-- <a-button |
| | | v-if="!this.model.id" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | :loading="confirmLoading" |
| | | @click="handleOk" |
| | | type="primary" |
| | | >保存并继续新增</a-button> |
| | | >保存并继续新增</a-button>--> |
| | | <a-button |
| | | :disabled="disableSubmit || confirmLoading" |
| | | :loading="confirmLoading" |
| | |
| | | }, |
| | | // sorter: true, |
| | | }, |
| | | { |
| | | /* { |
| | | title: '精度参数分类', |
| | | align: 'center', |
| | | dataIndex: 'precisionParametersCategoryNumName', |
| | |
| | | customRender: 'precisionParametersCategoryNumName' |
| | | }, |
| | | // sorter: true, |
| | | }, |
| | | }, */ |
| | | { |
| | | title: '计量单位', |
| | | align: 'center', |
| | |
| | | > |
| | | 关闭 |
| | | </a-button> |
| | | <a-button |
| | | <!-- <a-button |
| | | v-if="!this.model.id" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | :loading="confirmLoading" |
| | | @click="handleOk" |
| | | type="primary" |
| | | >保存并继续新增</a-button> |
| | | >保存并继续新增</a-button>--> |
| | | <a-button |
| | | :disabled="disableSubmit || confirmLoading" |
| | | :loading="confirmLoading" |
| | |
| | | > |
| | | 关闭 |
| | | </a-button> |
| | | <a-button |
| | | <!-- <a-button |
| | | v-if="!this.model.id" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | :loading="confirmLoading" |
| | | @click="handleOk" |
| | | type="primary" |
| | | >保存并继续新增</a-button> |
| | | >保存并继续新增</a-button>--> |
| | | <a-button |
| | | :disabled="disableSubmit || confirmLoading" |
| | | :loading="confirmLoading" |
| | |
| | | }, |
| | | // sorter: true, |
| | | }, |
| | | { |
| | | /* { |
| | | title: '增减方式分类', |
| | | align: 'center', |
| | | dataIndex: 'transferMethodCategoryNumName', |
| | |
| | | customRender: 'transferMethodCategoryNumName' |
| | | }, |
| | | // sorter: true, |
| | | }, |
| | | }, */ |
| | | { |
| | | title: '创建人', |
| | | align: "center", |
| | |
| | | <a-button type="primary" @click="submitForm">保存</a-button> |
| | | </a-col> |
| | | |
| | | <a-col> |
| | | <!-- <a-col> |
| | | <a-button type="primary" @click="submitFormAndAdd">保存并新增</a-button> |
| | | </a-col> |
| | | </a-col>--> |
| | | |
| | | <a-col> |
| | | <a-button type="primary" @click="close">取消</a-button> |
| | |
| | | :columns='sparesScrapDetailTable.columns' |
| | | :dataSource='sparesScrapDetailTable.dataSource' |
| | | :maxHeight='300' |
| | | @valueChange="changeAuxiliaryQuantity" |
| | | :disabled='formDisabled' |
| | | :rowNumber='true' |
| | | :rowSelection='true' |
| | |
| | | this.visible = false |
| | | this.$emit('close') |
| | | this.$refs.form.clearValidate() |
| | | }, |
| | | changeAuxiliaryQuantity(target){ |
| | | console.log(target.columnIndex) |
| | | let num=target.columnIndex |
| | | if (target.columnIndex ===num){ |
| | | target.row.scrapAuxiliaryQuantity=Math.abs(target.row.conversionRatio*target.row.scrapMainQuantity) |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | :dataSource='sparesScrapRequirementDetailTable.dataSource' |
| | | :maxHeight='300' |
| | | :disabled='formDisabled' |
| | | @valueChange="changeAuxiliaryQuantity" |
| | | :alwaysEdit='true' |
| | | :rowNumber='true' |
| | | :bordered='bordered' |
| | |
| | | this.visible = false |
| | | this.$emit('close') |
| | | this.$refs.form.clearValidate() |
| | | }, |
| | | changeAuxiliaryQuantity(target){ |
| | | console.log(target.columnIndex) |
| | | let num=target.columnIndex |
| | | if (target.columnIndex ===num){ |
| | | target.row.auxiliaryQuantity=Math.abs(target.row.conversionRatio*target.row.mainQuantity) |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | let params = this.getQueryParams()//查询条件 |
| | | await getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | debugger |
| | | for (let i = 0; i < res.result.records.length; i++) { |
| | | if (this.oldSelectRows.indexOf(res.result.records[i].id) > -1) { |
| | | res.result.records[i].distable = true |