feat: 科室出库

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

@ -12,6 +12,22 @@ export function getOrderListbyCode(data) {
return axios({ return axios({
url: "/udiwms/inout/ioDepartmentOrder/getOrderListbyCode", url: "/udiwms/inout/ioDepartmentOrder/getOrderListbyCode",
method: "get", method: "get",
params: data
});
}
export function addInfoSkSicker(data) {
return axios({
url: "/udiwms/inout/ioDepartmentOrder/addInfoSkSicker",
method: "post",
data: data 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({ return axios({
url: "/udiwms/thrsys/delOrderDetail", url: "/udiwms/thrsys/delOrderDetail",
method: "post", method: "post",
data: query data: query1
}); });
} }

@ -10,6 +10,7 @@
placeholder="请输入姓名" placeholder="请输入姓名"
clearable clearable
disabled disabled
class="custom-disabled-input"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -20,6 +21,7 @@
placeholder="请输入住院号" placeholder="请输入住院号"
clearable clearable
disabled disabled
class="custom-disabled-input"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -61,3 +63,9 @@ export default {
computed: {} computed: {}
} }
</script> </script>
<style>
.custom-disabled-input input.el-input__inner:disabled {
color: #000000; /* 修改为需要的颜色 */
}
</style>

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

@ -26,6 +26,10 @@
>查询 >查询
</el-button </el-button
> >
<el-button type="primary" icon="el-icon-plus" @click="enterPatientInfo"
>录入患者信息
</el-button
>
</el-button-group> </el-button-group>
</div> </div>
</el-card> </el-card>
@ -62,16 +66,114 @@
:sickerAdNum="this.sickerAdNum" :sickerAdNum="this.sickerAdNum"
:viewType="2" :viewType="2"
:errView="0" :errView="0"
:viewTypeKsck=true
></addOrder> ></addOrder>
</el-dialog> </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> </div>
</template> </template>
<script> <script>
import BaziPanel from '@/components/inout/baziPanel.vue' 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 addOrder from "@/views/inout/DialogCreateOrder";
import {isBlank} from "@/utils/strUtil";
export default { export default {
components: { BaziPanel,addOrder }, components: { BaziPanel,addOrder },
@ -96,6 +198,7 @@ export default {
}, },
sickerAdNum:null, sickerAdNum:null,
addOrderVisible: false, addOrderVisible: false,
enterPatientInfoVisible: false,
idQuery:{ idQuery:{
billNo: null, billNo: null,
corpOrderId: null, corpOrderId: null,
@ -116,21 +219,43 @@ export default {
preCurSpaceCode: null, // preCurSpaceCode: null, //
sickerAdNum: 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: { methods: {
getValue(info) { getValue(info) {
getOrderListbyCode(info.adNum) console.log(info)
let query = {
adNum: info.adNum
}
clickToTriggerbyCode(query).then( (response) => {
}).catch((error) => {
})
getOrderListbyCode(query)
.then((response) => { .then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.orderListDate = response.data.list || [] this.orderListDate = response.data || []
if (this.orderListDate.length > 0){ if (this.orderListDate.length > 0){
this.idQuery = this.orderListDate[0] this.idQuery = this.orderListDate[0]
}else { }else {
this.idQuery.fromCorp = info.adNum this.idQuery.fromCorp = this.idQuery.fromCorp
this.idQuery.sickerAdNum = info.adNum this.idQuery.sickerAdNum = this.idQuery.sickerAdNum
this.sickerAdNum = info.adNum this.sickerAdNum =this.idQuery.sickerAdNum
} }
this.addOrderVisible = true this.addOrderVisible = true
} else { } else {
@ -141,10 +266,12 @@ export default {
this.list = [] this.list = []
this.total = 0 this.total = 0
}) })
console.log(this.idQuery) console.log("this.idQuery" + this.idQuery)
console.log("this.sickerAdNum" + this.sickerAdNum)
}, },
closeDialog() { closeDialog() {
this.addOrderVisible = false; this.addOrderVisible = false;
this.enterPatientInfoVisible = false;
this.getList(); this.getList();
}, },
getList() { getList() {
@ -166,6 +293,44 @@ export default {
onSubmit() { onSubmit() {
this.getList() 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() { onReset() {
this.filterQuery = { this.filterQuery = {
name: '', name: '',
@ -188,5 +353,5 @@ export default {
</script> </script>
<style scoped> <style scoped>
</style> </style>

Loading…
Cancel
Save