代码还原注册备案号选项

dev
黄泽腾 2 years ago
parent 061984dc29
commit eda20d51c1

@ -53,7 +53,7 @@
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" v-model="multipleSelection" :data="list" style="width: 100%" @current-change="handleSelectionChange" border
<el-table v-loading="loading" :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,22 +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="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"
@ -182,17 +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>
<!-- <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"
@ -255,10 +255,10 @@ export default {
isDisable: false,
},
//
dialogFormVisible: false,
currentCert: null,
currentRow: {}, //
udiRlDetailVisible: false,
// dialogFormVisible: false,
// currentCert: null,
// currentRow: {}, //
// udiRlDetailVisible: false,
detailTotal: 0,
detailQuery: {
cpmctymc: null,
@ -376,22 +376,22 @@ 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 未定义");
}
}
},
// 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 ");
// }
// }
// },
@ -402,16 +402,16 @@ export default {
this.$message.warning("请先选入物资字典信息!");
return;
}
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);
}
// 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);
// }
this.closeSelDialog(selectData.id);
},
allExport() {
@ -474,8 +474,8 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val;
console.log(this.multipleSelection.zczbhhzbapzbh);
this.currentRow = val;
// console.log(this.multipleSelection.zczbhhzbapzbh);
// this.currentRow = val;
},
@ -588,7 +588,7 @@ export default {
},
mounted() {
},
components: {udiRlDetailDialog},
components: {},
created() {
this.getList();

@ -105,7 +105,7 @@
<el-form-item label="产品通用名称:" prop="recordProductName">
<el-input
size="small"
disabled
placeholder="请输入内容"
v-model="inputQuery.recordProductName"
@input="change()"
@ -697,7 +697,7 @@ export default {
if (val != null) {
let query = {
productId: this.inputQuery.productId,
relIdFk: val.id,
relIdFk: val,
manufacturerId: this.inputQuery.manufacturerId,
customerId: this.inputQuery.customerId,
companyName: this.inputQuery.companyName,
@ -710,7 +710,7 @@ export default {
this.inputQuery = response.data;
this.inputQuery.manufacturerId=this.inputQuery.manufacturerIdFk
this.selectSingleProductVisible = false;
this.inputQuery.recordCode = val.zczbhhzbapzbh//
// this.inputQuery.recordCode = val.zczbhhzbapzbh//
} else {
this.$message.error(response.message);
}

Loading…
Cancel
Save