1.修复物资分类问题

ywj_dev
x_z 2 years ago
parent 83e1749d08
commit 0273eea91e

@ -74,7 +74,8 @@
</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%;" @selection-change="handleSelectionChange" border key="1"> <el-table v-loading="loading" :data="list" style="width: 100%;" @selection-change="handleSelectionChange" border
key="1">
<el-table-column type="selection" width="55" :selectable="selectable"></el-table-column> <el-table-column type="selection" width="55" :selectable="selectable"></el-table-column>
<el-table-column label="最小销售产品标识" prop="nameCode" width="140" show-overflow-tooltip></el-table-column> <el-table-column label="最小销售产品标识" prop="nameCode" width="140" show-overflow-tooltip></el-table-column>
<el-table-column label="主系统编码" prop="mainId" show-overflow-tooltip></el-table-column> <el-table-column label="主系统编码" prop="mainId" show-overflow-tooltip></el-table-column>
@ -99,10 +100,8 @@
<script> <script>
import {getUdiInfos, thirdSysDetail,} from "@/api/basic/product/udiRelevance"; import {getUdiInfos, thirdSysDetail,} from "@/api/basic/product/udiRelevance";
import {filterByUuid} from "@/api/basic/product/udiInfo"; import {filterByUuid} from "@/api/basic/product/udiInfo";
import {bindBasicHospProduct, saveBasicHospType,getBindList} from "@/api/basic/basicHospType"; import {bindBasicHospProduct, saveBasicHospType, getBindList} from "@/api/basic/basicHospType";
import { sysFilter } from '@/api/basic/udiRelevance' import {sysFilter} from '@/api/basic/udiRelevance'
export default { export default {
@ -124,7 +123,8 @@ export default {
addType: 1, addType: 1,
thrPiId: null, thrPiId: null,
filterType: null, filterType: null,
diType: 1 diType: 1,
bindType: 1
}, },
productList: [], productList: [],
loading: false, loading: false,
@ -193,10 +193,10 @@ export default {
this.total = 0; this.total = 0;
}); });
}, },
selectable(row,index){ selectable(row, index) {
if(row.bindCheck==true){ if (row.bindCheck == true) {
return false; return false;
}else{ } else {
return true; return true;
} }
}, },
@ -210,17 +210,17 @@ export default {
this.filterQuery.page = val.page; this.filterQuery.page = val.page;
this.getList(); this.getList();
}, },
instentProduct(){ instentProduct() {
if(this.productList.length<=0){ if (this.productList.length <= 0) {
this.$message.error("请先选择要绑定的产品!"); this.$message.error("请先选择要绑定的产品!");
return; return;
} }
var ids=this.productList.map((item)=> item.id) var ids = this.productList.map((item) => item.id)
var data={code:this.rId,ids:ids} var data = {code: this.rId, ids: ids}
bindBasicHospProduct(data).then((response) => { bindBasicHospProduct(data).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("绑定成功"); this.$message.success("绑定成功");
this.closeDialog(); this.closeDialog();
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -231,11 +231,8 @@ export default {
}, },
mounted() { mounted() {
}, },
components: { components: {},
},
created() { created() {
this.filterQuery.bindType=1
this.getList(); this.getList();
this.getSysFilter(); this.getSysFilter();

Loading…
Cancel
Save