|
|
|
@ -493,27 +493,52 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable6">
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle6+':'">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="editQuery.basicPrductRemak6"
|
|
|
|
|
></el-input>
|
|
|
|
|
<el-select v-model="editQuery.basicPrductRemak6" style="width: 80%" placeholder="是否扣费" clearable>
|
|
|
|
|
<el-option label="扣费" value="1"></el-option>
|
|
|
|
|
<el-option label="不扣费" value="0"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" class="edit-row">
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable7">
|
|
|
|
|
|
|
|
|
|
<!--<el-col :span="12" v-if="productRemarkSet.remarkEnable7">-->
|
|
|
|
|
<!-- <el-form-item :label="productRemarkSet.remarkTitle7+':'">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- style="width: 80%"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- splaceholder="请输入内容"-->
|
|
|
|
|
<!-- v-model="editQuery.basicPrductRemak7"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable7">
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle7+':'">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="editQuery.basicPrductRemak7"
|
|
|
|
|
></el-input>
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
clearable="true"
|
|
|
|
|
reserve-keyword
|
|
|
|
|
placeholder="请选择物资类别"
|
|
|
|
|
:remote-method="findThrTypeMethod"
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in thrTypeOptions"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.code"
|
|
|
|
|
>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable8">
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable8 && editQuery.basicPrductRemak6=='1'" >
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle8+':'">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="editQuery.basicPrductRemak8"
|
|
|
|
@ -566,12 +591,12 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="包装规格:">
|
|
|
|
|
<el-form-item label="规格型号:">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="editQuery.bzgg"
|
|
|
|
|
v-model="editQuery.ggxh"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -689,14 +714,17 @@ import {getYbHcflDetail, disableUdi, removeDiRl, removeRl, thirdSysDetail} from
|
|
|
|
|
import {updateById} from '@/api/basic/udiRelevance'
|
|
|
|
|
import {filterByUuid} from '@/api/basic/udiInfo'
|
|
|
|
|
import selectErp from "./udiInfoselectErpUdi";
|
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
|
import selectUdiVersion from '@/views/basic/product/UdiinfoSelectVersion'
|
|
|
|
|
import {getHslbs, getThrProductType} from "@/api/thrsys/thrHsfl";
|
|
|
|
|
import {filterClassify} from '@/api/purchase/classifyCode'
|
|
|
|
|
import { calculateDistCount } from '@/api/basic/product/drugUdiinfos'
|
|
|
|
|
import { calculateDistCount, updateLevelDrug } from '@/api/basic/product/drugUdiinfos'
|
|
|
|
|
import { levelByUuid } from '@/api/basic/product/udiInfo'
|
|
|
|
|
import { getListMenu, getOneName } from '@/api/basic/basicHospType'
|
|
|
|
|
import { isBlank } from '@/utils/strUtil'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'productEdit',
|
|
|
|
|
name: 'basicCompanyproductEdit',
|
|
|
|
|
props: {
|
|
|
|
|
editQuery: {
|
|
|
|
|
type: Object,
|
|
|
|
@ -757,6 +785,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
levelUnitList: [],
|
|
|
|
|
fromDeptOptions: [],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -1024,13 +1053,85 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 转换菜单数据结构 */
|
|
|
|
|
normalizer(node) {
|
|
|
|
|
if (node.children && !node.children.length) {
|
|
|
|
|
delete node.children;
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
id: node.code,
|
|
|
|
|
label: node.name,
|
|
|
|
|
children: node.children
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
getTreeselect() {
|
|
|
|
|
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");
|
|
|
|
|
console.log(menu)
|
|
|
|
|
this.fromDeptOptions.push(menu);
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//层级保存
|
|
|
|
|
levelSave(row) {
|
|
|
|
|
if (isBlank(row.nameCode)) {
|
|
|
|
|
this.$message.error('层级标识不能为空')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (isBlank(row.packLevel)) {
|
|
|
|
|
this.$message.error('包装级别不能为空')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (isBlank(row.packUnit)) {
|
|
|
|
|
this.$message.error('层级单位不能为空')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let editQuery = {
|
|
|
|
|
nameCode: row.nameCode,
|
|
|
|
|
packLevel: row.packLevel,
|
|
|
|
|
packUnit: row.packUnit,
|
|
|
|
|
sjcpbm: row.sjcpbm,
|
|
|
|
|
bhxjcpbm: row.bhxjcpbm,
|
|
|
|
|
bhxjsl: row.bhxjsl,
|
|
|
|
|
relId: this.editQuery.rlId,
|
|
|
|
|
uuid: this.editQuery.uuid,
|
|
|
|
|
productId: row.productId,
|
|
|
|
|
diType: row.diType,
|
|
|
|
|
xjdw: row.xjdw
|
|
|
|
|
}
|
|
|
|
|
updateLevelDrug(editQuery).then(res => {
|
|
|
|
|
this.saveLoading = false
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.isSave = true
|
|
|
|
|
this.$message.success('保存成功!')
|
|
|
|
|
this.selectedIndex = null
|
|
|
|
|
this.getDetailList()
|
|
|
|
|
this.getDiLevel();
|
|
|
|
|
} else {
|
|
|
|
|
this.isSave = true
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
rowChange(index, val) {
|
|
|
|
|
console.log("rowChange===",index)
|
|
|
|
|
this.selectedIndex = index
|
|
|
|
|
|
|
|
|
|
this.isSave = false
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
selectErp
|
|
|
|
|
selectErp,Treeselect
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getDiLevel()
|
|
|
|
|
this.getThirdSysDetail();
|
|
|
|
|
this.getTreeselect();
|
|
|
|
|
var ttquery = {
|
|
|
|
|
id: this.editQuery.rlId,
|
|
|
|
|
page: 1,
|
|
|
|
|