[update] 绑定零部件联调
This commit is contained in:
@@ -8,42 +8,42 @@
|
||||
<!--零部件号-->
|
||||
<a-col :md="6" :sm="12">
|
||||
<a-form-item :label="$t('system.bindingParts.partNumber')">
|
||||
<j-input
|
||||
<a-input
|
||||
:placeholder="$t('pleaseEnter') + $t('system.bindingParts.partNumber')"
|
||||
v-model="queryParam.partNo"></j-input>
|
||||
v-model="queryParam.partNo"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!--零部件名称-->
|
||||
<a-col :md="6" :sm="12">
|
||||
<a-form-item :label="$t('system.bindingParts.partName')">
|
||||
<j-input
|
||||
<a-input
|
||||
:placeholder="$t('pleaseEnter') + $t('system.bindingParts.partName')"
|
||||
v-model="queryParam.partName"></j-input>
|
||||
v-model="queryParam.partName"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!--标准编号-->
|
||||
<a-col :md="6" :sm="12">
|
||||
<a-form-item :label="$t('standardNumber')">
|
||||
<j-input
|
||||
<a-input
|
||||
:placeholder="$t('pleaseEnter') + $t('standardNumber')"
|
||||
v-model="queryParam.standardNo"></j-input>
|
||||
v-model="queryParam.standardNo"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<template v-if="toggleSearchStatus">
|
||||
<!--标准名称-->
|
||||
<a-col :md="6" :sm="12">
|
||||
<a-form-item :label="$t('standardName')">
|
||||
<j-input
|
||||
<a-input
|
||||
:placeholder="$t('pleaseEnter') + $t('standardName')"
|
||||
v-model="queryParam.standardName"></j-input>
|
||||
v-model="queryParam.standardName"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!--绑定人员-->
|
||||
<a-col :md="6" :sm="12">
|
||||
<a-form-item :label="$t('system.bindingParts.bindingPersonnel')">
|
||||
<j-input
|
||||
<a-input
|
||||
:placeholder="$t('pleaseEnter') + $t('system.bindingParts.bindingPersonnel')"
|
||||
v-model="queryParam.bindUser"></j-input>
|
||||
v-model="queryParam.bindUser"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</template>
|
||||
|
||||
@@ -17,11 +17,6 @@
|
||||
:maxLength="50"
|
||||
disabled
|
||||
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 :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('system.bindingParts.partName')">
|
||||
@@ -29,11 +24,6 @@
|
||||
:maxLength="50"
|
||||
disabled
|
||||
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 :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('standardNumber')">
|
||||
@@ -76,7 +66,6 @@
|
||||
<script>
|
||||
import pick from 'lodash.pick'
|
||||
import ClauseSelection from '../../../../components/selection/ClauseSelection'
|
||||
// import { getPartInfo } from '../../../../api/api'
|
||||
import { postAction } from '../../../../api/manage'
|
||||
import UserSelection from '../../../../components/selection/UserSelection'
|
||||
import SplitStandardSelection from '../../../../components/selection/SplitStandardSelection'
|
||||
@@ -135,7 +124,6 @@ export default {
|
||||
add: '/laws/bindPart/add',
|
||||
edit: '/laws/bindPart/edit'
|
||||
},
|
||||
// partNoOption: [], // 零部件下拉框
|
||||
sarFileSplitInfoId: '' // 已选中的标准的拆分id
|
||||
}
|
||||
},
|
||||
@@ -151,13 +139,6 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
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) {
|
||||
this.visible = true
|
||||
@@ -170,7 +151,8 @@ export default {
|
||||
// 标准编号改变
|
||||
handleStandardChange (value) {
|
||||
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.form.setFieldsValue(pick(value[0], 'standardName'))
|
||||
})
|
||||
@@ -179,25 +161,9 @@ export default {
|
||||
handleClauseChange (value) {
|
||||
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 () {
|
||||
this.visible = false
|
||||
// this.partNoOption = []
|
||||
this.model = {}
|
||||
},
|
||||
handleCancel () {
|
||||
this.close()
|
||||
@@ -207,7 +173,7 @@ export default {
|
||||
this.form.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
this.confirmLoading = true
|
||||
const param = Object.assign({}, values)
|
||||
const param = Object.assign(this.model, values)
|
||||
console.log(param)
|
||||
let url = ''
|
||||
if (this.model.id) {
|
||||
|
||||
Reference in New Issue
Block a user