注册备案证号选择

dev
黄泽腾 2 years ago
parent a015b6f4c6
commit c911228b78

@ -53,7 +53,7 @@
</el-button-group> </el-button-group>
</div> </div>
<el-divider style="margin: 15px"></el-divider> <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> highlight-current-row>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="物资名称" prop="cpmctymc" show-overflow-tooltip></el-table-column> <el-table-column label="物资名称" prop="cpmctymc" show-overflow-tooltip></el-table-column>
@ -75,7 +75,22 @@
</el-table-column> </el-table-column>
</el-table> </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 <el-dialog
title="产品信息详情" title="产品信息详情"
:visible.sync="editDialogVisible" :visible.sync="editDialogVisible"
@ -167,7 +182,17 @@
></pagination> ></pagination>
</el-card> </el-card>
</el-dialog> </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 <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
@ -194,6 +219,8 @@ import {
updateCompanyProductRelevance, insertFilter updateCompanyProductRelevance, insertFilter
} from "@/api/basic/udiRlSuptRelevance"; } from "@/api/basic/udiRlSuptRelevance";
import store from "@/store"; import store from "@/store";
import {isBlank} from "@/utils/strUtil";
import udiRlDetailDialog from "@/views/purchase/purApply/purUdiRlDetailDialog.vue";
export default { export default {
name: "UdIInfoSelect", name: "UdIInfoSelect",
@ -227,6 +254,11 @@ export default {
addType: 1, addType: 1,
isDisable: false, isDisable: false,
}, },
//
dialogFormVisible: false,
currentCert: null,
currentRow: {}, //
udiRlDetailVisible: false,
detailTotal: 0, detailTotal: 0,
detailQuery: { detailQuery: {
cpmctymc: null, cpmctymc: null,
@ -333,6 +365,7 @@ export default {
combine() { combine() {
this.combineQuery.productUuid = this.currentRow.uuid; this.combineQuery.productUuid = this.currentRow.uuid;
this.combineQuery.customerId = store.getters.customerId; this.combineQuery.customerId = store.getters.customerId;
this.combineQuery.zczbhhzbapzbh=this.currentRow.zczbhhzbapzbh;
insertCompanyProductRelevance(this.combineQuery).then(response => { insertCompanyProductRelevance(this.combineQuery).then(response => {
this.loading = false; this.loading = false;
if (response.code === 20000) { 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() { selectExport() {
var selectData = this.multipleSelection; var selectData = this.multipleSelection;
console.log("日志:"+selectData.id);
if (selectData == null) { if (selectData == null) {
this.$message.warning("请先选入物资字典信息!"); this.$message.warning("请先选入物资字典信息!");
return; 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() { allExport() {
@ -414,6 +474,8 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
console.log(this.multipleSelection.zczbhhzbapzbh);
this.currentRow = val;
}, },
@ -526,7 +588,7 @@ export default {
}, },
mounted() { mounted() {
}, },
components: {}, components: {udiRlDetailDialog},
created() { created() {
this.getList(); this.getList();

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

Loading…
Cancel
Save