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

演示数据2.0
anthonywj 10 months ago
commit 43690f72b9

@ -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
} }

@ -169,7 +169,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`"> <el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select <el-select
v-model="filterQuery[item.columnName]" v-model="map[item.columnName]"
:placeholder="item.columnDesc" :placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)" :disabled="executeEval(null,item.disabledFuc,false)"
filterable filterable
@ -198,6 +198,7 @@
end-placeholder="结束日期" end-placeholder="结束日期"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`"> <el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker <el-date-picker
v-model="filterQuery[item.columnName]" v-model="filterQuery[item.columnName]"
@ -208,6 +209,18 @@
:placeholder="item.columnDesc" :placeholder="item.columnDesc"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item v-if="item.columnType == 'datePickera' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
:picker-options="pickerOptions"
v-model="confirmDateRange"
type="daterange"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
</template> </template>
</el-row> </el-row>
</el-form> </el-form>
@ -443,7 +456,8 @@ export default {
fromCorp: null, fromCorp: null,
keyWords: null, keyWords: null,
inoutPrintStatus: null, inoutPrintStatus: null,
confirmStarTime:null, //
confirmEndTime:null,
}, },
printMap: { printMap: {
@ -464,9 +478,13 @@ export default {
orderSelection: [], orderSelection: [],
showSup: false, showSup: false,
customerId: this.$store.getters.customerId, customerId: this.$store.getters.customerId,
map:{
"actDateRange" : this.actDateRange,
"confirmDateRange" : this.confirmDateRange,
},
actDateRange: [], actDateRange: [],
confirmDateRange:[],
actionType: null, actionType: null,
auditDateRange: [], auditDateRange: [],
pickerOptions: { pickerOptions: {
shortcuts: [ shortcuts: [
@ -535,6 +553,13 @@ export default {
this.filterQuery.startAduditTime = null; this.filterQuery.startAduditTime = null;
this.filterQuery.endAduditTime = null; this.filterQuery.endAduditTime = null;
} }
if (this.confirmDateRange!== null) {
this.filterQuery.confirmStarTime = this.confirmDateRange[0];
this.filterQuery.confirmEndTime = this.confirmDateRange[1];
} else {
this.filterQuery.confirmStarTime = null;
this.filterQuery.confirmEndTime = null;
}
this.filterQuery.page = 1; this.filterQuery.page = 1;
this.getList(); this.getList();
@ -626,6 +651,8 @@ export default {
let printParams = { let printParams = {
startAduditTime :this.filterQuery.startAduditTime, startAduditTime :this.filterQuery.startAduditTime,
endAduditTime: this.filterQuery.endAduditTime, endAduditTime: this.filterQuery.endAduditTime,
confirmStarTime : this.filterQuery.confirmStarTime ,
confirmEndTime : this.filterQuery.confirmEndTime ,
employeeName: this.$store.getters.user.employeeName, employeeName: this.$store.getters.user.employeeName,
locInvName:this.$store.getters.locInvName, locInvName:this.$store.getters.locInvName,
templateId: res.data, templateId: res.data,
@ -689,6 +716,13 @@ export default {
printParams.startAduditTime = null; printParams.startAduditTime = null;
printParams.endAduditTime = null; printParams.endAduditTime = null;
} }
if (this.confirmDateRange!== null) {
printParams.confirmStarTime = this.confirmDateRange[0];
printParams.confirmEndTime = this.confirmDateRange[1];
} else {
printParams.confirmStarTime = null;
printParams.confirmEndTime = null;
}
printOrder(printParams).then((response) => { printOrder(printParams).then((response) => {
//pdfurl //pdfurl
const binaryData = []; const binaryData = [];
@ -777,6 +811,13 @@ export default {
printParams.startAduditTime = null; printParams.startAduditTime = null;
printParams.endAduditTime = null; printParams.endAduditTime = null;
} }
if (this.confirmDateRange!== null) {
printParams.confirmStarTime = this.confirmDateRange[0];
printParams.confirmEndTime = this.confirmDateRange[1];
} else {
printParams.confirmStarTime = null;
printParams.confirmEndTime = null;
}
excelInoutImport(printParams).then((response) => { excelInoutImport(printParams).then((response) => {
let blob = new Blob([response], {type: "application/vnd.ms-excel"}); let blob = new Blob([response], {type: "application/vnd.ms-excel"});
let url = window.URL.createObjectURL(blob); // urlblob let url = window.URL.createObjectURL(blob); // urlblob

@ -367,6 +367,7 @@ export default {
this.getList(); this.getList();
}, },
getList() { getList() {
this.listQuery.attributeType = this.attributeType
if (this.listType == null) if (this.listType == null)
this.getApplyList(); this.getApplyList();
else { else {

@ -309,11 +309,58 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-descriptions-item>
<!-- 设备管理数据 -->
<el-descriptions-item>
<template slot="label">设备管理数据</template>
<el-form label-positiom="right" label-width="200px" :inline="true" style="padding-top: 20px">
<el-form-item label="基础设备数据">
<el-select v-model="configQuery.deviceInfo">
<el-option :value="0" label="不同步"></el-option>
<el-option :value="1" label="由内向外"></el-option>
<el-option :value="2" label="由外向内"></el-option>
</el-select>
</el-form-item>
<el-form-item label="巡检设备管理">
<el-select v-model="configQuery.deviceCheck">
<el-option :value="0" label="不同步"></el-option>
<el-option :value="1" label="由内向外"></el-option>
<el-option :value="2" label="由外向内"></el-option>
</el-select>
</el-form-item>
<el-form-item label="报修设备管理">
<el-select v-model="configQuery.deviceRepairApply">
<el-option :value="0" label="不同步"></el-option>
<el-option :value="1" label="由内向外"></el-option>
<el-option :value="2" label="由外向内"></el-option>
</el-select>
</el-form-item>
<el-form-item label="保养设备管理">
<el-select v-model="configQuery.deviceUpkeep">
<el-option :value="0" label="不同步"></el-option>
<el-option :value="1" label="由内向外"></el-option>
<el-option :value="2" label="由外向内"></el-option>
</el-select>
</el-form-item>
</el-form>
<!-- <el-checkbox v-model="configQuery.dbDiProducts">DI</el-checkbox> <!-- <el-checkbox v-model="configQuery.dbDiProducts">DI</el-checkbox>
<el-checkbox v-model="configQuery.dbDiProducts" <el-checkbox v-model="configQuery.dbDiProducts"
>医疗器械注册人</el-checkbox >医疗器械注册人</el-checkbox
> --> > -->
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item>
<template slot="label">生产企业数据</template>
<el-form label-positiom="right" label-width="200px" :inline="true" style="padding-top: 20px">
<el-form-item label="生产企业数据">
<el-select v-model="configQuery.produceBusiness">
<el-option :value="0" label="不同步"></el-option>
<el-option :value="1" label="由内向外"></el-option>
<el-option :value="2" label="由外向内"></el-option>
</el-select>
</el-form-item>
</el-form>
</el-descriptions-item>
</el-descriptions> </el-descriptions>
</el-collapse-item> </el-collapse-item>
@ -885,6 +932,11 @@ export default {
udiCodeLost: null, udiCodeLost: null,
udiCodeRel: null, udiCodeRel: null,
orderInvoice: null, orderInvoice: null,
deviceInfo:null,
deviceCheck:null,
deviceRepairApply:null,
produceBusiness:null,
deviceUpkeep:null,
}, },
checkedBusTypes: [], checkedBusTypes: [],
checkedToInBusTypes: [], checkedToInBusTypes: [],

Loading…
Cancel
Save