新增物价类别

20231126-yw
anthonywj 2 years ago
parent 47affeb3ef
commit 3dd3db0524

@ -0,0 +1,9 @@
import axios from "@/utils/request";
export function getHslbs(query) {
return axios({
url: "/udiwms/thrsys/getHslbs",
method: "get",
params: query
});
}

@ -357,11 +357,16 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
:label="productRemarkSet.remarkTitle8" :label="productRemarkSet.remarkTitle8"
prop="basicPrductRemak8" prop="hslbName"
width="180" width="180"
show-overflow-tooltip show-overflow-tooltip
v-if="$auth.hasPermi('basic:basicPrductRemak8')" v-if="$auth.hasPermi('basic:basicPrductRemak8')"
></el-table-column> >
<!-- <template slot-scope="scope">-->
<!-- {{ getHsflMethod(scope.row.basicPrductRemak8) }}-->
<!-- </template>-->
</el-table-column>
<el-table-column <el-table-column
label="是否在用" label="是否在用"
@ -1593,6 +1598,7 @@ import productUdiType from "@/views/basic/product/productUdiType";
import selectHospProduct from "@/views/basic/product/bindHospProduct"; import selectHospProduct from "@/views/basic/product/bindHospProduct";
import selectUnBindHospProduct from "@/views/basic/product/unbindHospProduct"; import selectUnBindHospProduct from "@/views/basic/product/unbindHospProduct";
import {getBasicHospType, getListTree} from "@/api/basic/basicHospType"; import {getBasicHospType, getListTree} from "@/api/basic/basicHospType";
import {getHslbs} from "@/api/thrsys/thrHsfl";
export default { export default {
data() { data() {
@ -2204,6 +2210,25 @@ export default {
} }
this.getList(); this.getList();
}, },
getHsflMethod(query) {
if (query == null)
return null;
this.hsflOptions = [];
let cQuery = {
code: query,
page: 1,
limit: 20
};
getHslbs(cQuery)
.then((response) => {
this.loading = false;
let result = response.data.list[0] || [];
return result.hsmc;
})
.catch(() => {
this.loading = false;
});
}
}, },
mounted() { mounted() {
}, },
@ -2258,7 +2283,6 @@ export default {
} }
.edit-row { .edit-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;

@ -253,12 +253,26 @@
</el-col> </el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable8"> <el-col :span="12" v-if="productRemarkSet.remarkEnable8">
<el-form-item :label="productRemarkSet.remarkTitle8+':'"> <el-form-item :label="productRemarkSet.remarkTitle8+':'">
<el-input <el-select
style="width: 80%"
size="small"
splaceholder="请输入内容"
v-model="editQuery.basicPrductRemak8" v-model="editQuery.basicPrductRemak8"
></el-input> filterable
remote
clearable="true"
reserve-keyword
placeholder="请选择物价类别"
:remote-method="findHsflMethod"
:loading="loading"
style="width: 80%"
>
<el-option
v-for="item in hsflOptions"
:key="item.hsbm"
:label="item.hsmc"
:value="item.hsbm"
>
<span style="float: left">{{ item.hsmc }}</span>
</el-option>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -327,7 +341,8 @@
</el-col> </el-col>
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="editQuery.useMuti" style="width: 65%" @change="setZdcfsycs" placeholder="状态" clearable> <el-select v-model="editQuery.useMuti" style="width: 65%" @change="setZdcfsycs" placeholder="状态"
clearable>
<el-option label="是" :value="true"></el-option> <el-option label="是" :value="true"></el-option>
<el-option label="否" :value="false"></el-option> <el-option label="否" :value="false"></el-option>
</el-select> </el-select>
@ -580,6 +595,8 @@ import selectErp from "./udiInfoselectErpUdi";
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import {getListMenu, getOneName} from '@/api/basic/basicHospType' import {getListMenu, getOneName} from '@/api/basic/basicHospType'
import {getSupComapnys} from "@/api/purchase/supCompany";
import {getHslbs} from "@/api/thrsys/thrHsfl";
export default { export default {
@ -621,11 +638,13 @@ export default {
data() { data() {
return { return {
loading: false,
isUseDyCheck: true, isUseDyCheck: true,
useNumEnable: true, useNumEnable: true,
sysList: [], sysList: [],
detailList: [], detailList: [],
fromDeptOptions: [], fromDeptOptions: [],
hsflOptions: [],
defaultSys: null, defaultSys: null,
isImport: false, isImport: false,
selectErpDialogVisible: false, //ERP selectErpDialogVisible: false, //ERP
@ -656,6 +675,11 @@ export default {
id: this.relevanceEdit.id id: this.relevanceEdit.id
} }
this.getDetailList(ttquery); this.getDetailList(ttquery);
if (this.editQuery.basicPrductRemak8 != null) {
this.findHsflMethod(this.editQuery.basicPrductRemak8);
}
}, },
methods: { methods: {
diableChange() { diableChange() {
@ -875,6 +899,26 @@ export default {
this.editQuery.useNum = 0; this.editQuery.useNum = 0;
} }
}, },
findHsflMethod(query) {
this.hsflOptions = [];
let cQuery = {
key: query,
page: 1,
limit: 20
};
getHslbs(cQuery)
.then((response) => {
this.loading = false;
this.hsflOptions = response.data.list || [];
})
.catch(() => {
this.loading = false;
});
}
,
/** 转换菜单数据结构 */ /** 转换菜单数据结构 */
normalizer(node) { normalizer(node) {
if (node.children && !node.children.length) { if (node.children && !node.children.length) {

Loading…
Cancel
Save