集采相关问题修改

busUser
anthonywj 2 years ago
parent e9624bea58
commit 67af6d142d

@ -164,9 +164,21 @@
<template slot-scope="scope">
<span>{{ enableMap[scope.row.groupBuy] }}</span>
</template>
</el-table-column>
<el-table-column
label="是否集采"
prop="groupBuy"
show-overflow-tooltip
>
<template slot-scope="scope">
<el-tag :type="(scope.row.groupBuy) | statusFilterType">
<span>{{ enableMap[scope.row.groupBuy] }}</span>
</el-tag>
</template>
</el-table-column>
<el-table-column width="200" label="操作" fixed="right">
<template slot-scope="scope">
<el-button
@ -1121,8 +1133,8 @@ export default {
lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"},
activeNames: ['1'],
enableMap: {
true: "",
false: "",
true: "集采",
false: "非集采",
},
};
},
@ -1632,6 +1644,15 @@ export default {
},
mounted() {
},
filters: {
statusFilterType(status) {
const statusMap = {
false: "warning",
true: "success",
};
return statusMap[status];
},
},
components: {
selectUdi,
selectErp,

@ -100,6 +100,17 @@
prop="qxlb"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="是否集采"
prop="groupBuy"
show-overflow-tooltip
>
<template slot-scope="scope">
<el-tag :type="(scope.row.groupBuy) | statusFilterType">
<span>{{ enableMap[scope.row.groupBuy] }}</span>
</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="160">
<template slot-scope="scope">
<el-button
@ -187,7 +198,7 @@ export default {
page: 1,
limit: 10
},
ids:[],
ids: [],
radioCheck: null,
dataList: [],
pageTotal: 1,
@ -199,6 +210,10 @@ export default {
thirdSysFk: null,
busTypes: [],
actDateRange: [],
enableMap: {
true: "集采",
false: "非集采",
},
pickerOptions: {
shortcuts: [
{
@ -295,7 +310,7 @@ export default {
getList() {
this.loading = true;
this.listQuery.customerId = store.getters.customerId;
if( this.data.companyName!=undefined && this.data.companyName!=null ){
if (this.data.companyName != undefined && this.data.companyName != null) {
this.listQuery.companyName = this.data.companyName;
}
@ -351,12 +366,12 @@ export default {
return;
}
if(this.ids.length>0){
for(var i=0;i<this.ids.length;i++){
if(this.ids[i]==this.multipleSelection.rlId){
this.$message.error("该产品已录入!");
return
}
if (this.ids.length > 0) {
for (var i = 0; i < this.ids.length; i++) {
if (this.ids[i] == this.multipleSelection.rlId) {
this.$message.error("该产品已录入!");
return
}
}
}
let str = this.multipleSelection.zczbhhzbapzbh;
@ -403,15 +418,23 @@ export default {
selectCert() {
if (this.currentCert == null) {
this.$message.error("请先选择对应的注册证!");
}else{
this.multipleSelection.zczbhhzbapzbh = this.currentCert;
this.combine();
} else {
this.multipleSelection.zczbhhzbapzbh = this.currentCert;
this.combine();
}
},
},
components: {udiRlDetailDialog},
filters: {
statusFilterType(status) {
const statusMap = {
false: "warning",
true: "success",
};
return statusMap[status];
},
},
created() {
if (this.$isNotBlank(this.data)) {
// this.listQuery.nameCode = this.data.udi;
@ -425,9 +448,9 @@ export default {
// }
// this.orderEditor = this.data.orderEditor;
// this.orderId = this.data.orderId;
this.ids=[];
if(this.data.stockOrderLists.length>0){
for(var i=0;i<this.data.stockOrderLists.length;i++){
this.ids = [];
if (this.data.stockOrderLists.length > 0) {
for (var i = 0; i < this.data.stockOrderLists.length; i++) {
this.ids.push(this.data.stockOrderLists[i].productId);
}
}

Loading…
Cancel
Save