[update] 绑定零部件联调

This commit is contained in:
lideqin
2024-04-18 18:17:02 +08:00
parent 018b79334a
commit ca224855be
@@ -28,9 +28,8 @@
<!--标准编号--> <!--标准编号-->
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('standardNumber')"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('standardNumber')">
<split-standard-selection :placeholder="$t('pleaseSelect') + $t('standardNumber')" <split-standard-selection :placeholder="$t('pleaseSelect') + $t('standardNumber')"
v-decorator="['sarFileSplitInfoId', validatorRules.sarFileSplitInfoId]" v-decorator="['standardNo', validatorRules.standardNo]"
type="radio" type="radio"
:nameStr="model.standardNo"
@listChange="handleStandardChange" /> @listChange="handleStandardChange" />
</a-form-item> </a-form-item>
<!--标准名称--> <!--标准名称-->
@@ -106,7 +105,7 @@ export default {
validateTrigger: 'change' validateTrigger: 'change'
}, },
// 标准编号 // 标准编号
sarFileSplitInfoId: { standardNo: {
rules: [ rules: [
{ required: true, message: this.$t('pleaseSelect') + this.$t('standardNumber') } { required: true, message: this.$t('pleaseSelect') + this.$t('standardNumber') }
], ],
@@ -144,14 +143,14 @@ export default {
this.visible = true this.visible = true
this.form.resetFields() this.form.resetFields()
this.model = Object.assign({}, record) this.model = Object.assign({}, record)
this.sarFileSplitInfoId = this.model.docSplitId
this.$nextTick(() => { this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model, 'partNo', 'partName', 'sarFileSplitInfoId', 'standardName', 'clauseIds', 'bindUser')) this.form.setFieldsValue(pick(this.model, 'partNo', 'partName', 'standardNo', 'standardName', 'clauseIds', 'bindUser'))
}) })
}, },
// 标准编号改变 // 标准编号改变
handleStandardChange (value) { handleStandardChange (value) {
this.sarFileSplitInfoId = value[0].infoId this.sarFileSplitInfoId = value[0].infoId
this.model.standardNo = value[0].standardNumber
this.model.docSplitId = value[0].infoId this.model.docSplitId = value[0].infoId
this.$nextTick(() => { this.$nextTick(() => {
this.form.setFieldsValue(pick(value[0], 'standardName')) this.form.setFieldsValue(pick(value[0], 'standardName'))