[update] 绑定零部件

This commit is contained in:
lideqin
2024-04-29 18:18:21 +08:00
parent 44565301ff
commit 31bc4e35b9
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ const getClauseListByStandardInfoId = (params) => postAction('/laws/bindPart/sel
// 绑定零部件-判断分类树下有没有绑定关系
const isTreeNodeHaveBind = (params) => getAction('/laws/bindPart/isShowUseBindRelation', params)
// 绑定零部件-使用绑定关系
const useBindingRelationship = (params) => postAction('/laws/bindPart/useBindRelation', params)
const useBindingRelationship = (params) => getAction('/laws/bindPart/useBindRelation', params)
// ASMS接口管理-新增
const addAsmsInterface = (params) => postAction('/docking/asms/api/lawsAsmsOpenApi/add', params)
@@ -228,7 +228,7 @@ export default {
// 在零部件分类下,弹框提示【当前零部件分类结构下已有XXXX绑定标准关联关系,是否引入对应关系?】(XXXX指第一次绑定的零部件名称+编号)
this.$confirm({
title: this.$t('system.bindingParts.isBringIn'),
content: this.$t('system.bindingParts.haveBind') + res.result.bindPartName + res.result.bindPartNumber + this.$t('system.bindingParts.isBringInRelation'),
content: this.$t('system.bindingParts.haveBind') + res.result.partName + res.result.partNo + this.$t('system.bindingParts.isBringInRelation'),
onOk: () => {
// 确定引入对应关系,调用使用绑定关系
useBindingRelationship().then(res => {
@@ -135,6 +135,7 @@ export default {
this.model.bindUser = userInfo.id
this.model.partNo = this.$route.query.partNo
this.model.partName = this.$route.query.partName
this.model.partCategoryNum = this.$route.query.partCategoryNum
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model, 'partNo', 'partName', 'bindUser'))
})