|
|
|
@ -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();
|
|
|
|
|