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 params: data
}); });
} }
export function deleteSkSicker(data) {
return axios({
url: "/udiwms/inout/ioDepartmentOrder/deleteSkSicker",
method: "delete",
params: data
});
}

@ -1,7 +1,10 @@
<template> <template>
<el-card :body-style="{margin:'20px'}" <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> <template #header>
<el-form class="query-form" size="mini"> <el-form class="query-form" size="mini">
<el-form-item class="query-form-item" label-width="23%" label="姓 名:"> <el-form-item class="query-form-item" label-width="23%" label="姓 名:">
@ -11,6 +14,7 @@
clearable clearable
disabled disabled
class="custom-disabled-input" class="custom-disabled-input"
style="width: 80%"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -21,6 +25,7 @@
placeholder="请输入住院号" placeholder="请输入住院号"
clearable clearable
disabled disabled
style="width: 80%"
class="custom-disabled-input" class="custom-disabled-input"
> >
</el-input> </el-input>
@ -66,7 +71,22 @@ export default {
mounted() { mounted() {
}, },
methods: { 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) this.$emit('baziPanel', this.info)
}, },
statusFilterType(status) { statusFilterType(status) {
@ -86,4 +106,11 @@ export default {
.custom-disabled-input input.el-input__inner:disabled { .custom-disabled-input input.el-input__inner:disabled {
color: #000000; /* 修改为需要的颜色 */ color: #000000; /* 修改为需要的颜色 */
} }
/* 添加样式来定位左上角的删除按钮 */
.close-button {
position: absolute;
top: 10px; /* 你可以根据需要调整这个值 */
right: 10px; /* 你可以根据需要调整这个值 */
z-index: 1; /* 确保按钮在卡片内容之上 */
}
</style> </style>

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

@ -76,7 +76,29 @@
</el-col> </el-col>
<el-col :span="11" class="el-col"> <el-col :span="11" class="el-col">
<el-form-item label="分类编码:" prop="flbm"> <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-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -148,6 +170,7 @@
<script> <script>
import {getYbHcflDetail,addProduct} from '@/api/basic/product/udiRelevance' import {getYbHcflDetail,addProduct} from '@/api/basic/product/udiRelevance'
import {filterClassify} from "@/api/purchase/classifyCode"
export default { export default {
name: 'productAdd', name: 'productAdd',
@ -178,12 +201,31 @@ export default {
cpms: null, cpms: null,
attributeType: null, attributeType: null,
hcType: null, hcType: null,
requireScanCode: null,
}, },
thirdSys: [] thirdSys: [],
classifyList: [],
} }
}, },
methods: { 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(){ getYbHcData(){
let query = { let query = {
specificationCode: this.newProductData.ybbm specificationCode: this.newProductData.ybbm

@ -328,6 +328,35 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </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> </el-card>
@ -352,6 +381,23 @@
</el-row> </el-row>
<el-divider direction="horizontal"></el-divider> <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-row>
<el-col span="5"> <el-col span="5">
@ -705,6 +751,7 @@ 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 {getSupComapnys} from "@/api/purchase/supCompany";
import {getHslbs} from "@/api/thrsys/thrHsfl"; import {getHslbs} from "@/api/thrsys/thrHsfl";
import {filterClassify} from "@/api/purchase/classifyCode"
export default { export default {
@ -766,6 +813,7 @@ export default {
measname: null, measname: null,
nameCode: null nameCode: null
}, },
classifyList: [],
} }
}, },
components: { components: {
@ -789,8 +837,26 @@ export default {
if (this.editQuery.basicPrductRemak8 != null) { if (this.editQuery.basicPrductRemak8 != null) {
this.findHsflMethod(this.editQuery.basicPrductRemak8); this.findHsflMethod(this.editQuery.basicPrductRemak8);
} }
this.classifySearch()
}, },
methods: { 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(){ getYbHcData(){
let query = { let query = {
specificationCode: this.editQuery.ybbm specificationCode: this.editQuery.ybbm

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

@ -678,8 +678,9 @@ export default {
actionType: this.filterQuery.actionType, actionType: this.filterQuery.actionType,
keyWords: this.filterQuery.keyWords, keyWords: this.filterQuery.keyWords,
mainAction: this.filterQuery.mainAction, 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) { if (this.actDateRange !== null) {
printParams.startAduditTime = this.actDateRange[0]; printParams.startAduditTime = this.actDateRange[0];

Loading…
Cancel
Save