注册备案证号选择

dev
黄泽腾 2 years ago
parent a015b6f4c6
commit c911228b78

@ -53,7 +53,7 @@
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" @current-change="handleSelectionChange" border
<el-table v-loading="loading" v-model="multipleSelection" :data="list" style="width: 100%" @current-change="handleSelectionChange" border
highlight-current-row>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="物资名称" prop="cpmctymc" show-overflow-tooltip></el-table-column>
@ -75,7 +75,22 @@
</el-table-column>
</el-table>
<el-dialog title="请选择对应的注册/备案证" :visible.sync="dialogFormVisible" append-to-body width="40%">
<el-form :model="form">
<el-form-item label="" prop="isGive">
<el-radio-group v-model="currentCert">
<el-radio style="width: 100%; margin-top: 10px;" :label="item" :key="item" v-for="item in certList">{{
item
}}
</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="selectCert"> </el-button>
<el-button @click="dialogFormVisible = false"> </el-button>
</div>
</el-dialog>
<el-dialog
title="产品信息详情"
:visible.sync="editDialogVisible"
@ -167,7 +182,17 @@
></pagination>
</el-card>
</el-dialog>
<el-dialog
title="耗材字典详情"
:visible.sync="udiRlDetailVisible"
width="85%"
:close-on-click-modal="false"
:close-on-press-escape="false"
append-to-body
v-if="udiRlDetailVisible"
>
<udiRlDetailDialog :editQuery="currentRow"></udiRlDetailDialog>
</el-dialog>
<pagination
v-show="total>0"
:total="total"
@ -194,6 +219,8 @@ import {
updateCompanyProductRelevance, insertFilter
} from "@/api/basic/udiRlSuptRelevance";
import store from "@/store";
import {isBlank} from "@/utils/strUtil";
import udiRlDetailDialog from "@/views/purchase/purApply/purUdiRlDetailDialog.vue";
export default {
name: "UdIInfoSelect",
@ -227,6 +254,11 @@ export default {
addType: 1,
isDisable: false,
},
//
dialogFormVisible: false,
currentCert: null,
currentRow: {}, //
udiRlDetailVisible: false,
detailTotal: 0,
detailQuery: {
cpmctymc: null,
@ -333,6 +365,7 @@ export default {
combine() {
this.combineQuery.productUuid = this.currentRow.uuid;
this.combineQuery.customerId = store.getters.customerId;
this.combineQuery.zczbhhzbapzbh=this.currentRow.zczbhhzbapzbh;
insertCompanyProductRelevance(this.combineQuery).then(response => {
this.loading = false;
if (response.code === 20000) {
@ -343,15 +376,42 @@ export default {
}
});
},
selectCert() {
if (this.currentCert == null) {
this.$message.error("请先选择对应的注册证!");
} else {
console.log("currentRow:", this.currentRow);
if (this.currentRow && this.currentRow.hasOwnProperty("zczbhhzbapzbh")) {
this.currentRow.zczbhhzbapzbh = this.currentCert;
this.multipleSelection;
console.log("执行选择对应注册证号")
this.closeSelDialog(this.multipleSelection);
// this.combine();
} else {
console.error("currentRow 或 zczbhhzbapzbh 未定义");
}
}
},
selectExport() {
var selectData = this.multipleSelection;
console.log("日志:"+selectData.id);
if (selectData == null) {
this.$message.warning("请先选入物资字典信息!");
return;
}
this.closeSelDialog(selectData.id);
let str = this.multipleSelection.zczbhhzbapzbh;
console.log("日志zczbhhzbapzbh"+str);
if (!isBlank(str) && str.search(",") != -1) {
this.currentCert = null;
this.certList = str.split(',');
this.dialogFormVisible = true;
} else {
this.closeSelDialog(selectData);
}
},
allExport() {
@ -414,6 +474,8 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val;
console.log(this.multipleSelection.zczbhhzbapzbh);
this.currentRow = val;
},
@ -526,7 +588,7 @@ export default {
},
mounted() {
},
components: {},
components: {udiRlDetailDialog},
created() {
this.getList();

@ -162,6 +162,7 @@
<el-input
size="small"
placeholder="请输入内容"
disabled
v-model="inputQuery.recordCode"
@input="change()"
></el-input>
@ -696,7 +697,7 @@ export default {
if (val != null) {
let query = {
productId: this.inputQuery.productId,
relIdFk: val,
relIdFk: val.id,
manufacturerId: this.inputQuery.manufacturerId,
customerId: this.inputQuery.customerId,
companyName: this.inputQuery.companyName,
@ -709,6 +710,7 @@ export default {
this.inputQuery = response.data;
this.inputQuery.manufacturerId=this.inputQuery.manufacturerIdFk
this.selectSingleProductVisible = false;
this.inputQuery.recordCode = val.zczbhhzbapzbh
} else {
this.$message.error(response.message);
}

Loading…
Cancel
Save