Merge remote-tracking branch 'origin/dev_ksck' into dev_ksck

演示数据2.0
wangwei 10 months ago
commit 804239fc38

@ -31,3 +31,11 @@ export function clickToTriggerbyCode(data) {
params: data
});
}
export function deleteSkSicker(data) {
return axios({
url: "/udiwms/inout/ioDepartmentOrder/deleteSkSicker",
method: "delete",
params: data
});
}

@ -1,7 +1,10 @@
<template>
<el-card :body-style="{margin:'20px'}"
style="margin:20px 20px 20px 20px;height: 200px;background-color: #e1f3fb;border-radius: 12px"
style="margin:20px 20px 20px 20px;height: 200px;background-color: #e1f3fb;border-radius: 12px; position: relative;"
>
<!-- 添加一个删除按钮在左上角 -->
<el-button icon="el-icon-close" circle class="close-button" @click="handleDelete">
</el-button>
<template #header>
<el-form class="query-form" size="mini">
<el-form-item class="query-form-item" label-width="23%" label="姓 名:">
@ -11,6 +14,7 @@
clearable
disabled
class="custom-disabled-input"
style="width: 80%"
>
</el-input>
</el-form-item>
@ -21,6 +25,7 @@
placeholder="请输入住院号"
clearable
disabled
style="width: 80%"
class="custom-disabled-input"
>
</el-input>
@ -66,7 +71,22 @@ export default {
mounted() {
},
methods: {
onCodeSubmit() {
handleDelete() {
//
// 使 this.$confirm
this.$confirm('确认删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
//
// this.$emit
this.$emit('deleteBaziPanel',this.info);
}).catch(() => {
//
});
},
onCodeSubmit() {
this.$emit('baziPanel', this.info)
},
statusFilterType(status) {
@ -86,4 +106,11 @@ export default {
.custom-disabled-input input.el-input__inner:disabled {
color: #000000; /* 修改为需要的颜色 */
}
/* 添加样式来定位左上角的删除按钮 */
.close-button {
position: absolute;
top: 10px; /* 你可以根据需要调整这个值 */
right: 10px; /* 你可以根据需要调整这个值 */
z-index: 1; /* 确保按钮在卡片内容之上 */
}
</style>

@ -891,24 +891,23 @@
</el-select>
</div>
</el-col>
<el-col :span="12" class="el-col">
<!-- <div class="text item">-->
<!-- <div class="itemTag">-->
<!-- <span>是否寄售:&nbsp;</span>-->
<!-- </div>-->
<!-- <el-select-->
<!-- v-model="editQuery.isAdavence"-->
<!-- disabled-->
<!-- style="width: 65%"-->
<!-- size="small"-->
<!-- >-->
<!-- <el-option label="是" :value="true"></el-option>-->
<!-- <el-option label="否" :value="false"></el-option>-->
<!-- <el-option label="否" :value="null"></el-option>-->
<!-- </el-select>-->
<!-- </div>-->
</el-col>
</el-row>
<el-col :span="12" class="el-col">
<div class="text item">
<div class="itemTag">
<span>是否需要扫码:&nbsp;</span>
</div>
<el-select
v-model="editQuery.requireScanCode"
disabled
style="width: 65%"
size="small"
>
<el-option label="是" :value=1></el-option>
<el-option label="否" :value=0></el-option>
</el-select>
</div>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item name="2">

@ -76,7 +76,29 @@
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="分类编码:" prop="flbm">
<el-input style="width: 90%" size="small" placeholder="请输入分类编码" v-model.trim="newProductData.flbm"></el-input>
<el-select
size="small"
v-model="newProductData.flbm"
filterable
remote
clearable="true"
style="width: 90%"
reserve-keyword
placeholder="请选择"
:remote-method="classifySearch"
:loading="loading"
@change="classifyChange()"
>
<el-option
v-for="item in classifyList"
:key="item.code"
:label="item.name"
:value="item.code">
<span>{{ item.code }}</span>
<span>{{ item.name }}</span>
</el-option>
</el-select>
<!-- <el-input style="width: 90%" size="small" placeholder="请输入分类编码" v-model.trim="newProductData.flbm"></el-input>-->
</el-form-item>
</el-col>
</el-row>
@ -148,6 +170,7 @@
<script>
import {getYbHcflDetail,addProduct} from '@/api/basic/product/udiRelevance'
import {filterClassify} from "@/api/purchase/classifyCode"
export default {
name: 'productAdd',
@ -178,12 +201,31 @@ export default {
cpms: null,
attributeType: null,
hcType: null,
requireScanCode: null,
},
thirdSys: []
thirdSys: [],
classifyList: [],
}
},
methods: {
classifyChange(){
this.editQuery.requireScanCode = this.classifyList.find(item => item.code == this.editQuery.flbm).requireScanCode;
},
classifySearch(key) {
let query = {
key: key,
}
filterClassify(query)
.then(response => {
this.loading = false;
this.classifyList = response.data.list || [];
})
.catch(() => {
this.loading = false;
this.classifyList = [];
});
},
getYbHcData(){
let query = {
specificationCode: this.newProductData.ybbm

@ -328,6 +328,35 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="分类编码:" prop="require">
<el-select
v-model="editQuery.flbm"
filterable
remote
clearable="true"
style="width: 80%"
reserve-keyword
placeholder="请选择"
:remote-method="classifySearch"
:loading="loading"
@change="classifyChange()"
>
<el-option
v-for="item in classifyList"
:key="item.code"
:label="item.name"
:value="item.code">
<span>{{ item.code }}</span>
<span>{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-card>
@ -352,6 +381,23 @@
</el-row>
<el-divider direction="horizontal"></el-divider>
<el-row>
<el-col span="5">
<span class="sptext">是否需要扫码</span>
</el-col>
<el-divider direction="vertical"></el-divider>
<el-col span="5">
<el-select v-model="editQuery.requireScanCode" style="width: 65%" placeholder="状态" clearable>
<el-option label="是" :value=1></el-option>
<el-option label="否" :value=0></el-option>
</el-select>
</el-col>
<el-divider direction="vertical"></el-divider>
<el-col span="13">
<span class="sptext">是否需要扫码</span>
</el-col>
</el-row>
<el-divider></el-divider>
<el-row>
<el-col span="5">
@ -705,6 +751,7 @@ import Treeselect from "@riophae/vue-treeselect";
import {getListMenu, getOneName} from '@/api/basic/basicHospType'
import {getSupComapnys} from "@/api/purchase/supCompany";
import {getHslbs} from "@/api/thrsys/thrHsfl";
import {filterClassify} from "@/api/purchase/classifyCode"
export default {
@ -766,6 +813,7 @@ export default {
measname: null,
nameCode: null
},
classifyList: [],
}
},
components: {
@ -789,8 +837,26 @@ export default {
if (this.editQuery.basicPrductRemak8 != null) {
this.findHsflMethod(this.editQuery.basicPrductRemak8);
}
this.classifySearch()
},
methods: {
classifyChange(){
this.editQuery.requireScanCode = this.classifyList.find(item => item.code == this.editQuery.flbm).requireScanCode;
},
classifySearch(key) {
let query = {
key: key,
}
filterClassify(query)
.then(response => {
this.loading = false;
this.classifyList = response.data.list || [];
})
.catch(() => {
this.loading = false;
this.classifyList = [];
});
},
getYbHcData(){
let query = {
specificationCode: this.editQuery.ybbm

@ -57,7 +57,7 @@
<el-row :gutter="8">
<el-col v-for="(bazi,key) in list" :key="key" :xs="12" :sm="8" :md="8" :lg="6">
<BaziPanel :info="bazi" @baziPanel="getValue"></BaziPanel>
<BaziPanel :info="bazi" @baziPanel="getValue" @deleteBaziPanel="deleteBaziPanel"></BaziPanel>
</el-col>
</el-row>
<!-- <pagination style="height: 20px"-->
@ -191,7 +191,7 @@
<script>
import BaziPanel from '@/components/inout/baziPanel.vue'
import {getSkSickerList, getOrderListbyCode, addInfoSkSicker, clickToTriggerbyCode} from '@/api/inout/ioDepartmentOrder'
import {getSkSickerList, getOrderListbyCode, addInfoSkSicker, clickToTriggerbyCode,deleteSkSicker} from '@/api/inout/ioDepartmentOrder'
import addOrder from "@/views/inout/DialogCreateOrder";
import {isBlank} from "@/utils/strUtil";
@ -212,6 +212,7 @@ export default {
showSearch: true,
filterQuery: {
name: '',
deptCode: this.$store.getters.locDeptCode,
page: 1,
limit: 12,
startTime: null,
@ -305,6 +306,23 @@ export default {
window.removeEventListener('resize', this.handleResize);
},
methods: {
deleteBaziPanel(info) {
let query = {
adNum: info.adNum
}
deleteSkSicker(query).then((response) => {
if (response.code === 20000) {
this.$message.success("操作成功!")
this.getList();
} else {
this.$message.error(response.message)
}
})
.catch((error) => {
this.$message.error(error.message)
})
},
getValue(info) {
console.log(info)
let query = {
@ -324,11 +342,12 @@ export default {
this.idQuery = this.orderListDate[0]; //
} else {
//
this.idQuery = {};
}
this.sickerAdNum = info.adNum;
this.sickerAdName = info.name;
this.addOrderVisible = true;
this.list = response.data || [];
this.addOrderVisible = true;
} else {
this.$message.error(response.message)
}
@ -409,6 +428,7 @@ export default {
onReset() {
this.filterQuery = {
name: '',
deptCode: this.$store.getters.locDeptCode,
page: 1,
limit: 24
}

@ -678,8 +678,9 @@ export default {
actionType: this.filterQuery.actionType,
keyWords: this.filterQuery.keyWords,
mainAction: this.filterQuery.mainAction,
action: this.filterQuery.action
action: this.filterQuery.action,
locInvName:this.$store.getters.locInvName,
employeeName: this.$store.getters.user.employeeName,
};
if (this.actDateRange !== null) {
printParams.startAduditTime = this.actDateRange[0];

Loading…
Cancel
Save