|
|
|
@ -253,12 +253,26 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable8">
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle8+':'">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
<el-select
|
|
|
|
|
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-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -327,7 +341,8 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
|
|
<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="false"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
@ -579,7 +594,9 @@ import ProductSingleEdit from "@/views/basic/product/productSingleEdit";
|
|
|
|
|
import selectErp from "./udiInfoselectErpUdi";
|
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
|
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 {
|
|
|
|
@ -621,11 +638,13 @@ export default {
|
|
|
|
|
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
loading: false,
|
|
|
|
|
isUseDyCheck: true,
|
|
|
|
|
useNumEnable: true,
|
|
|
|
|
sysList: [],
|
|
|
|
|
detailList: [],
|
|
|
|
|
fromDeptOptions: [],
|
|
|
|
|
hsflOptions: [],
|
|
|
|
|
defaultSys: null,
|
|
|
|
|
isImport: false,
|
|
|
|
|
selectErpDialogVisible: false, //选入ERP产品
|
|
|
|
@ -656,6 +675,11 @@ export default {
|
|
|
|
|
id: this.relevanceEdit.id
|
|
|
|
|
}
|
|
|
|
|
this.getDetailList(ttquery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.editQuery.basicPrductRemak8 != null) {
|
|
|
|
|
this.findHsflMethod(this.editQuery.basicPrductRemak8);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
diableChange() {
|
|
|
|
@ -860,21 +884,41 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getTreeselect() {
|
|
|
|
|
getOneName().then(res =>{
|
|
|
|
|
const menu = {id: res.data.id,code:res.data.code, name: res.data.name, children: []};
|
|
|
|
|
getOneName().then(res => {
|
|
|
|
|
const menu = {id: res.data.id, code: res.data.code, name: res.data.name, children: []};
|
|
|
|
|
getListMenu({}).then(response => {
|
|
|
|
|
this.fromDeptOptions = [];
|
|
|
|
|
menu.children = this.handleTree(response.data,"code", "parentCode");
|
|
|
|
|
menu.children = this.handleTree(response.data, "code", "parentCode");
|
|
|
|
|
console.log(menu)
|
|
|
|
|
this.fromDeptOptions.push(menu);
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
setZdcfsycs(){
|
|
|
|
|
if(this.editQuery.useMuti==false){
|
|
|
|
|
this.editQuery.useNum=0;
|
|
|
|
|
setZdcfsycs() {
|
|
|
|
|
if (this.editQuery.useMuti == false) {
|
|
|
|
|
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) {
|
|
|
|
|
if (node.children && !node.children.length) {
|
|
|
|
|