feat: 科室出库

dev_ksck2.0
chenhc 1 year ago
parent e19e52d3fd
commit 74761827a5

@ -12,6 +12,22 @@ export function getOrderListbyCode(data) {
return axios({
url: "/udiwms/inout/ioDepartmentOrder/getOrderListbyCode",
method: "get",
params: data
});
}
export function addInfoSkSicker(data) {
return axios({
url: "/udiwms/inout/ioDepartmentOrder/addInfoSkSicker",
method: "post",
data: data
});
}
export function clickToTriggerbyCode(data) {
return axios({
url: "/udiwms/inout/ioDepartmentOrder/clickToTriggerbyCode",
method: "get",
params: data
});
}

@ -28,7 +28,7 @@ export function delOrderDetail(query) {
return axios({
url: "/udiwms/thrsys/delOrderDetail",
method: "post",
data: query
data: query1
});
}

@ -4,22 +4,24 @@
>
<template #header>
<el-form class="query-form" size="mini">
<el-form-item class="query-form-item" label-width="27%" label="姓 名:">
<el-form-item class="query-form-item" label-width="27%" label="姓 名:" >
<el-input
v-model="info.name"
placeholder="请输入姓名"
clearable
disabled
class="custom-disabled-input"
>
</el-input>
</el-form-item>
<el-form-item class="query-form-item" label-width="27%" label="住院号:">
<el-form-item class="query-form-item" label-width="27%" label="住院号:" >
<el-input
v-model="info.adNum"
placeholder="请输入住院号"
clearable
disabled
class="custom-disabled-input"
>
</el-input>
</el-form-item>
@ -61,3 +63,9 @@ export default {
computed: {}
}
</script>
<style>
.custom-disabled-input input.el-input__inner:disabled {
color: #000000; /* 修改为需要的颜色 */
}
</style>

@ -89,7 +89,7 @@
v-model="orderFormData.invCode"
placeholder="当前仓库"
style="width: 90%"
:disabled="corpOrderIdDisabled"
:disabled="corpOrderIdDisabled || viewTypeKsck"
@change="changeInv"
filterable
>
@ -679,6 +679,10 @@ export default {
type: Object,
required: true,
},
viewTypeKsck: {
type: Boolean,
required: false,
},
viewType: {
//12.3,4.,5:,6:7.
type: Object,
@ -882,8 +886,16 @@ export default {
getBusTypeByInv() {
let query = {
code: this.orderFormData.invCode,
editType: 2 //
editType: 2, //
};
if (this.viewTypeKsck){
query = {
code: this.orderFormData.invCode,
editType: 2, //
useDyCount: 2 //
};
}
findByInvUser(query)
.then((response) => {
this.busTypeOptions = response.data || [];
@ -1837,6 +1849,11 @@ export default {
}
}
if (this.viewTypeKsck) {
this.curAction.corpType = 1,
this.curAction.genUnit = true
this.curAction.inputSick = true
}
},
};
</script>

@ -26,6 +26,10 @@
>查询
</el-button
>
<el-button type="primary" icon="el-icon-plus" @click="enterPatientInfo"
>录入患者信息
</el-button
>
</el-button-group>
</div>
</el-card>
@ -62,16 +66,114 @@
:sickerAdNum="this.sickerAdNum"
:viewType="2"
:errView="0"
:viewTypeKsck=true
></addOrder>
</el-dialog>
<el-dialog
title="录入患者信息"
:visible.sync="enterPatientInfoVisible"
width="30%"
append-to-body
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="enterPatientInfoVisible"
@close='closeDialog'
>
<el-form class="query-form" size="mini">
<!-- <el-form-item class="query-form-item" label-width="18%" label="患者编码:" :required="true">-->
<!-- <el-input-->
<!-- v-model="addInfo.code"-->
<!-- placeholder="请输入患者编码"-->
<!-- clearable-->
<!-- >-->
<!-- </el-input>-->
<!-- </el-form-item>-->
<el-form-item class="query-form-item" label-width="18%" label="姓 名:" :required="true">
<el-input
v-model="addInfo.name"
placeholder="请输入姓名"
clearable
>
</el-input>
</el-form-item>
<el-form-item class="query-form-item" label-width="18%" label="住院号:" :required="true">
<el-input
v-model="addInfo.adNum"
placeholder="请输入住院号"
clearable
>
</el-input>
</el-form-item>
<el-form-item class="query-form-item" label-width="18%" label="身份证号:" >
<el-input
v-model="addInfo.idNum"
placeholder="请输入身份证号"
clearable
>
</el-input>
</el-form-item>
<el-form-item class="query-form-item" label-width="18%" label="手机号:" >
<el-input
v-model="addInfo.phone"
placeholder="请输入手机号"
clearable
>
</el-input>
</el-form-item>
<el-form-item class="query-form-item" label-width="18%" label="性别:" >
<el-select v-model="addInfo.gender" placeholder="请输入性别">
<el-option label="男" value="男"></el-option>
<el-option label="女" value="女"></el-option>
</el-select>
</el-form-item>
<el-form-item class="query-form-item" label-width="18%" label="出生年月:" >
<el-date-picker
v-model="addInfo.bornDate"
type="date"
placeholder="请输入出生年月"
clearable
value-format="yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
<el-form-item class="query-form-item" label-width="18%" label="备注:">
<el-input
type="textarea"
v-model="addInfo.remark"
placeholder="备注"
clearable
>
</el-input>
</el-form-item>
<el-form-item style="text-align: center;">
<el-button-group>
<el-button type="primary" @click="onInfoSubmit"
>提交
</el-button>
</el-button-group>
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
<script>
import BaziPanel from '@/components/inout/baziPanel.vue'
import { getSkSickerList,getOrderListbyCode } from '@/api/inout/ioDepartmentOrder'
import { getSkSickerList,getOrderListbyCode,addInfoSkSicker,clickToTriggerbyCode } from '@/api/inout/ioDepartmentOrder'
import addOrder from "@/views/inout/DialogCreateOrder";
import {isBlank} from "@/utils/strUtil";
export default {
components: { BaziPanel,addOrder },
@ -96,6 +198,7 @@ export default {
},
sickerAdNum:null,
addOrderVisible: false,
enterPatientInfoVisible: false,
idQuery:{
billNo: null,
corpOrderId: null,
@ -116,21 +219,43 @@ export default {
preCurSpaceCode: null, //
sickerAdNum: null,
},
orderListDate:[]
orderListDate:[],
addInfo:{
code: null,
name: null,
adNum: null,
idNum: null,
phone: null,
gender: null,
bornDate: null,
remark: null,
deptName: this.$store.getters.locDeptName,
deptCode: this.$store.getters.locDeptCode
}
}
},
methods: {
getValue(info) {
getOrderListbyCode(info.adNum)
console.log(info)
let query = {
adNum: info.adNum
}
clickToTriggerbyCode(query).then( (response) => {
}).catch((error) => {
})
getOrderListbyCode(query)
.then((response) => {
if (response.code === 20000) {
this.orderListDate = response.data.list || []
this.orderListDate = response.data || []
if (this.orderListDate.length > 0){
this.idQuery = this.orderListDate[0]
}else {
this.idQuery.fromCorp = info.adNum
this.idQuery.sickerAdNum = info.adNum
this.sickerAdNum = info.adNum
this.idQuery.fromCorp = this.idQuery.fromCorp
this.idQuery.sickerAdNum = this.idQuery.sickerAdNum
this.sickerAdNum =this.idQuery.sickerAdNum
}
this.addOrderVisible = true
} else {
@ -141,10 +266,12 @@ export default {
this.list = []
this.total = 0
})
console.log(this.idQuery)
console.log("this.idQuery" + this.idQuery)
console.log("this.sickerAdNum" + this.sickerAdNum)
},
closeDialog() {
this.addOrderVisible = false;
this.enterPatientInfoVisible = false;
this.getList();
},
getList() {
@ -166,6 +293,44 @@ export default {
onSubmit() {
this.getList()
},
onInfoSubmit(){
if (isBlank(this.addInfo.name)) {
this.$message.error('姓名不能为空')
return
} else if (isBlank(this.addInfo.adNum)) {
this.$message.error('住院号不能为空')
return
}
addInfoSkSicker(this.addInfo).then((response) => {
if (response.code === 20000) {
this.$message.success(response.data)
this.addInfo = {
code: null,
name: null,
adNum: null,
idNum: null,
phone: null,
gender: null,
bornDate: null,
remark: null,
deptName: this.$store.getters.locDeptName,
deptCode: this.$store.getters.locDeptCode
}
this.closeDialog();
} else {
this.$message.error(response.message)
}
})
.catch((error) => {
this.$message.error(error.message)
})
},
enterPatientInfo(){
this.enterPatientInfoVisible = !this.enterPatientInfoVisible;
},
onReset() {
this.filterQuery = {
name: '',
@ -188,5 +353,5 @@ export default {
</script>
<style scoped>
</style>

Loading…
Cancel
Save