[update] 绑定零部件联调
This commit is contained in:
@@ -140,8 +140,6 @@ const getEnterpriseLevelMapList = (params) => getAction('/sys/lawsGrade/list', p
|
|||||||
|
|
||||||
// 绑定零部件-获取拆分标准
|
// 绑定零部件-获取拆分标准
|
||||||
const getSplitStandardList = (params) => getAction('/laws/bindPart/selectStandard', params)
|
const getSplitStandardList = (params) => getAction('/laws/bindPart/selectStandard', params)
|
||||||
// 绑定零部件-获取零部件
|
|
||||||
// const getPartInfo = (params) => getAction('', params)
|
|
||||||
// 根据标准拆分id获取条款列表
|
// 根据标准拆分id获取条款列表
|
||||||
const getClauseListByStandardInfoId = (params) => postAction('/laws/bindPart/selectClause', params)
|
const getClauseListByStandardInfoId = (params) => postAction('/laws/bindPart/selectClause', params)
|
||||||
|
|
||||||
@@ -233,7 +231,6 @@ export {
|
|||||||
getEnterpriseLevelMapList,
|
getEnterpriseLevelMapList,
|
||||||
|
|
||||||
getSplitStandardList,
|
getSplitStandardList,
|
||||||
// getPartInfo,
|
|
||||||
getClauseListByStandardInfoId,
|
getClauseListByStandardInfoId,
|
||||||
|
|
||||||
getSSOUserInfo,
|
getSSOUserInfo,
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ export default {
|
|||||||
this.visible = true
|
this.visible = true
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
if (this.infoId) {
|
if (this.infoId) {
|
||||||
this.filters.infoId = this.infoId
|
this.filters.info_id = this.infoId
|
||||||
}
|
}
|
||||||
this.replacePage()
|
this.replacePage()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,42 +8,42 @@
|
|||||||
<!--零部件号-->
|
<!--零部件号-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('system.bindingParts.partNumber')">
|
<a-form-item :label="$t('system.bindingParts.partNumber')">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + $t('system.bindingParts.partNumber')"
|
:placeholder="$t('pleaseEnter') + $t('system.bindingParts.partNumber')"
|
||||||
v-model="queryParam.partNo"></j-input>
|
v-model="queryParam.partNo"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!--零部件名称-->
|
<!--零部件名称-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('system.bindingParts.partName')">
|
<a-form-item :label="$t('system.bindingParts.partName')">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + $t('system.bindingParts.partName')"
|
:placeholder="$t('pleaseEnter') + $t('system.bindingParts.partName')"
|
||||||
v-model="queryParam.partName"></j-input>
|
v-model="queryParam.partName"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!--标准编号-->
|
<!--标准编号-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('standardNumber')">
|
<a-form-item :label="$t('standardNumber')">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + $t('standardNumber')"
|
:placeholder="$t('pleaseEnter') + $t('standardNumber')"
|
||||||
v-model="queryParam.standardNo"></j-input>
|
v-model="queryParam.standardNo"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<template v-if="toggleSearchStatus">
|
<template v-if="toggleSearchStatus">
|
||||||
<!--标准名称-->
|
<!--标准名称-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('standardName')">
|
<a-form-item :label="$t('standardName')">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + $t('standardName')"
|
:placeholder="$t('pleaseEnter') + $t('standardName')"
|
||||||
v-model="queryParam.standardName"></j-input>
|
v-model="queryParam.standardName"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!--绑定人员-->
|
<!--绑定人员-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('system.bindingParts.bindingPersonnel')">
|
<a-form-item :label="$t('system.bindingParts.bindingPersonnel')">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + $t('system.bindingParts.bindingPersonnel')"
|
:placeholder="$t('pleaseEnter') + $t('system.bindingParts.bindingPersonnel')"
|
||||||
v-model="queryParam.bindUser"></j-input>
|
v-model="queryParam.bindUser"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -17,11 +17,6 @@
|
|||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
disabled
|
disabled
|
||||||
v-decorator.trim="[ 'partNo', validatorRules.partNo ]" />
|
v-decorator.trim="[ 'partNo', validatorRules.partNo ]" />
|
||||||
<!--<a-select v-decorator.trim="[ 'partNo', validatorRules.partNo ]" disabled>-->
|
|
||||||
<!-- <a-select-option v-for="item in partNoOption" :key="item.id" :value="item.number">-->
|
|
||||||
<!-- {{ item.number }}-->
|
|
||||||
<!-- </a-select-option>-->
|
|
||||||
<!--</a-select>-->
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<!--零部件名称-->
|
<!--零部件名称-->
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('system.bindingParts.partName')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('system.bindingParts.partName')">
|
||||||
@@ -29,11 +24,6 @@
|
|||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
disabled
|
disabled
|
||||||
v-decorator.trim="[ 'partName', validatorRules.partName ]" />
|
v-decorator.trim="[ 'partName', validatorRules.partName ]" />
|
||||||
<!--<a-select v-decorator.trim="[ 'partName', validatorRules.partName ]" disabled>-->
|
|
||||||
<!-- <a-select-option v-for="item in partNoOption" :key="item.id" :value="item.number">-->
|
|
||||||
<!-- {{ item.number }}-->
|
|
||||||
<!-- </a-select-option>-->
|
|
||||||
<!--</a-select>-->
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<!--标准编号-->
|
<!--标准编号-->
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('standardNumber')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('standardNumber')">
|
||||||
@@ -76,7 +66,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import ClauseSelection from '../../../../components/selection/ClauseSelection'
|
import ClauseSelection from '../../../../components/selection/ClauseSelection'
|
||||||
// import { getPartInfo } from '../../../../api/api'
|
|
||||||
import { postAction } from '../../../../api/manage'
|
import { postAction } from '../../../../api/manage'
|
||||||
import UserSelection from '../../../../components/selection/UserSelection'
|
import UserSelection from '../../../../components/selection/UserSelection'
|
||||||
import SplitStandardSelection from '../../../../components/selection/SplitStandardSelection'
|
import SplitStandardSelection from '../../../../components/selection/SplitStandardSelection'
|
||||||
@@ -135,7 +124,6 @@ export default {
|
|||||||
add: '/laws/bindPart/add',
|
add: '/laws/bindPart/add',
|
||||||
edit: '/laws/bindPart/edit'
|
edit: '/laws/bindPart/edit'
|
||||||
},
|
},
|
||||||
// partNoOption: [], // 零部件下拉框
|
|
||||||
sarFileSplitInfoId: '' // 已选中的标准的拆分id
|
sarFileSplitInfoId: '' // 已选中的标准的拆分id
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -151,13 +139,6 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(pick(this.model, 'partNo', 'partName', 'bindUser'))
|
this.form.setFieldsValue(pick(this.model, 'partNo', 'partName', 'bindUser'))
|
||||||
})
|
})
|
||||||
// await this.getPartInfo((res) => {
|
|
||||||
// this.form.resetFields()
|
|
||||||
// this.model.bindUser_dictText = res.result.bindUser_dictText
|
|
||||||
// this.$nextTick(() => {
|
|
||||||
// this.form.setFieldsValue(pick(res.result, 'partNo', 'partName', 'bindUser'))
|
|
||||||
// })
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
edit (record) {
|
edit (record) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
@@ -170,7 +151,8 @@ export default {
|
|||||||
// 标准编号改变
|
// 标准编号改变
|
||||||
handleStandardChange (value) {
|
handleStandardChange (value) {
|
||||||
this.sarFileSplitInfoId = value[0].infoId
|
this.sarFileSplitInfoId = value[0].infoId
|
||||||
this.model.standardNo = value[0].standardNo
|
this.model.standardNo = value[0].standardNumber
|
||||||
|
this.model.docSplitId = value[0].infoId
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(pick(value[0], 'standardName'))
|
this.form.setFieldsValue(pick(value[0], 'standardName'))
|
||||||
})
|
})
|
||||||
@@ -179,25 +161,9 @@ export default {
|
|||||||
handleClauseChange (value) {
|
handleClauseChange (value) {
|
||||||
this.model.clauseNos = value.map(item => item.clauseNo).join(',')
|
this.model.clauseNos = value.map(item => item.clauseNo).join(',')
|
||||||
},
|
},
|
||||||
// 获取零部件
|
|
||||||
// getPartInfo (callback) {
|
|
||||||
// this.confirmLoading = true
|
|
||||||
// getPartInfo().then(res => {
|
|
||||||
// if (res.success) {
|
|
||||||
// this.partNoOption = res.result
|
|
||||||
// if (callback) {
|
|
||||||
// callback(res)
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// this.$message.warning(res.message)
|
|
||||||
// }
|
|
||||||
// }).finally(() => {
|
|
||||||
// this.confirmLoading = false
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
close () {
|
close () {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
// this.partNoOption = []
|
this.model = {}
|
||||||
},
|
},
|
||||||
handleCancel () {
|
handleCancel () {
|
||||||
this.close()
|
this.close()
|
||||||
@@ -207,7 +173,7 @@ export default {
|
|||||||
this.form.validateFields((err, values) => {
|
this.form.validateFields((err, values) => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
const param = Object.assign({}, values)
|
const param = Object.assign(this.model, values)
|
||||||
console.log(param)
|
console.log(param)
|
||||||
let url = ''
|
let url = ''
|
||||||
if (this.model.id) {
|
if (this.model.id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user