[update] 绑定零部件
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
<!-- 批量删除 -->
|
||||
<a-button icon="delete" type="primary" ghost @click="batchDel">{{ $t('batchDelete') }}</a-button>
|
||||
<!-- 使用绑定关系 -->
|
||||
<a-button icon="setting" type="primary" ghost @click="useBindingRelationship">{{ $t('system.bindingParts.useBindingRelationship') }}</a-button>
|
||||
<!--<a-button icon="setting" type="primary" ghost @click="useBindingRelationship">{{ $t('system.bindingParts.useBindingRelationship') }}</a-button>-->
|
||||
</div>
|
||||
|
||||
<!-- table区域-begin -->
|
||||
@@ -122,7 +122,7 @@ import { JeroListMixin } from '../../../mixins/JeroListMixin'
|
||||
import JTable from '../../../components/jero/JTable'
|
||||
import BingingPartsModal from './modules/BingingPartsModal'
|
||||
import ClauseModal from './modules/ClauseModal'
|
||||
import { postAction } from '../../../api/manage'
|
||||
// import { postAction } from '../../../api/manage'
|
||||
|
||||
export default {
|
||||
name: 'BindingParts',
|
||||
|
||||
@@ -150,15 +150,27 @@ export default {
|
||||
},
|
||||
// 标准编号改变
|
||||
handleStandardChange (value) {
|
||||
this.sarFileSplitInfoId = value[0].infoId
|
||||
this.model.docSplitId = value[0].infoId
|
||||
this.model.standardId = value[0].id
|
||||
this.model.standardType = value[0].standardType
|
||||
this.form.resetFields(['clauseIds'])
|
||||
this.model.clauseNos = ''
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(pick(value[0], 'standardName'))
|
||||
})
|
||||
if (value[0]) {
|
||||
this.sarFileSplitInfoId = value[0].infoId
|
||||
this.model.docSplitId = value[0].infoId
|
||||
this.model.standardId = value[0].id
|
||||
this.model.standardType = value[0].standardType
|
||||
this.form.resetFields(['clauseIds'])
|
||||
this.model.clauseNos = ''
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(pick(value[0], 'standardName'))
|
||||
})
|
||||
} else {
|
||||
this.sarFileSplitInfoId = ''
|
||||
this.model.docSplitId = ''
|
||||
this.model.standardId = ''
|
||||
this.model.standardType = ''
|
||||
this.form.resetFields(['clauseIds'])
|
||||
this.model.clauseNos = ''
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(pick({standardName: ''}, 'standardName'))
|
||||
})
|
||||
}
|
||||
},
|
||||
// 条款号变化
|
||||
handleClauseNameChange (value) {
|
||||
|
||||
Reference in New Issue
Block a user