|
|
|
@ -54,6 +54,29 @@
|
|
|
|
|
<!-- <el-option label="已锁定" value="3"></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="filterQuery.supId"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
clearable="true"
|
|
|
|
|
reserve-keyword
|
|
|
|
|
placeholder="供应商"
|
|
|
|
|
:remote-method="findMethod"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in fromOptions"
|
|
|
|
|
:key="item.name"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.erpId"
|
|
|
|
|
>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button-group>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
@ -133,6 +156,27 @@
|
|
|
|
|
prop="qxlb"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="是否集采"
|
|
|
|
|
prop="groupBuy"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
>
|
|
|
|
|
<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">
|
|
|
|
@ -512,7 +556,17 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-checkbox v-model="editQuery.dispatch"
|
|
|
|
|
>是否可配送
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
|
|
|
|
|
<el-checkbox v-model="editQuery.groupBuy"
|
|
|
|
|
@change="groupBuyChange"
|
|
|
|
|
>是否集采产品
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
|
|
|
|
|
|
<el-collapse v-model="activeNames">
|
|
|
|
@ -1007,6 +1061,7 @@ import selectUdi from "./UdiInfoRelevance.vue";
|
|
|
|
|
import selectErp from "./UdiInfoselectErpUdi";
|
|
|
|
|
import selectLocalUdi from "./UdiInfoSelectLocalUdi";
|
|
|
|
|
import selectUdiVersion from "./UdiinfoSelectVersion";
|
|
|
|
|
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -1025,8 +1080,10 @@ export default {
|
|
|
|
|
addType: 1,
|
|
|
|
|
thrPiId: null,
|
|
|
|
|
filterType: null,
|
|
|
|
|
diType: 1
|
|
|
|
|
diType: 1,
|
|
|
|
|
supId: null,
|
|
|
|
|
},
|
|
|
|
|
fromOptions: [],
|
|
|
|
|
productType: null,
|
|
|
|
|
editQuery: null,
|
|
|
|
|
productRemarkSet: {},
|
|
|
|
@ -1074,7 +1131,11 @@ export default {
|
|
|
|
|
selectLocalVisible: false, //关联UDI
|
|
|
|
|
isUseDyCheck: false,
|
|
|
|
|
lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"},
|
|
|
|
|
activeNames: ['1']
|
|
|
|
|
activeNames: ['1'],
|
|
|
|
|
enableMap: {
|
|
|
|
|
true: "集采",
|
|
|
|
|
false: "非集采",
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -1094,7 +1155,8 @@ export default {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20,
|
|
|
|
|
addType: 1,
|
|
|
|
|
diType: 1
|
|
|
|
|
diType: 1,
|
|
|
|
|
supId: null,
|
|
|
|
|
};
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
@ -1134,6 +1196,15 @@ export default {
|
|
|
|
|
this.detailList = [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
groupBuyChange() {
|
|
|
|
|
if (this.editQuery.groupBuy == true) {
|
|
|
|
|
this.editQuery.dispatch = true;
|
|
|
|
|
} else {
|
|
|
|
|
this.editQuery.dispatch = false;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
keyup_submit(event) {
|
|
|
|
|
this.filterQuery.page = 1;
|
|
|
|
|
this.getList();
|
|
|
|
@ -1147,8 +1218,8 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.detailList = response.data || [];
|
|
|
|
|
this.detailList.forEach((item, index, array) => {
|
|
|
|
|
this.detailList[index].isAdavence=item.adavence
|
|
|
|
|
this.detailList[index].isDisable=item.disable
|
|
|
|
|
this.detailList[index].isAdavence = item.adavence
|
|
|
|
|
this.detailList[index].isDisable = item.disable
|
|
|
|
|
if (item.zxxsbzbhsydysl > 1) {
|
|
|
|
|
this.isUseDyCheck = true;
|
|
|
|
|
}
|
|
|
|
@ -1365,7 +1436,7 @@ export default {
|
|
|
|
|
this.thisData = row;
|
|
|
|
|
this.editDialogVisible = true;
|
|
|
|
|
this.editQuery = row;
|
|
|
|
|
this.pId=row.id;
|
|
|
|
|
this.pId = row.id;
|
|
|
|
|
this.relevanceEdit = {
|
|
|
|
|
id: row.id,
|
|
|
|
|
// thirdId: row.thirdId,
|
|
|
|
@ -1552,10 +1623,36 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
findMethod(query) {
|
|
|
|
|
this.fromOptions = [];
|
|
|
|
|
let cQuery = {
|
|
|
|
|
key: query,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
};
|
|
|
|
|
getBasicUnitMaintains(cQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.fromOptions = response.data.page.list || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.fromOptions = [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
},
|
|
|
|
|
filters: {
|
|
|
|
|
statusFilterType(status) {
|
|
|
|
|
const statusMap = {
|
|
|
|
|
false: "warning",
|
|
|
|
|
true: "success",
|
|
|
|
|
};
|
|
|
|
|
return statusMap[status];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
selectUdi,
|
|
|
|
|
selectErp,
|
|
|
|
|