dev
This commit is contained in:
parent
3329690de8
commit
e7c7a50392
13
index.html
13
index.html
|
|
@ -1,13 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<link rel="stylesheet" href="@/assets/iconfont/iconfont.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>药慧精灵智慧诊所</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
@font-face {
|
||||
font-family: "iconfont"; /* Project id 4921806 */
|
||||
src: url('iconfont.woff?t=1747274949107') format('woff'),
|
||||
url('iconfont.ttf?t=1747274949107') format('truetype');
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
font-family: "iconfont", serif !important;
|
||||
font-size: 16px;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-RectangleCopy:before {
|
||||
content: "\e6a2";
|
||||
}
|
||||
|
||||
.icon-RectangleCopy1:before {
|
||||
content: "\e6a4";
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -96,8 +96,8 @@ body {
|
|||
padding: 0 !important;
|
||||
//border: 1px solid #4D6DE4 !important;
|
||||
}
|
||||
$btn-color: #4d99e4;
|
||||
$lighter-color: #6eaeed;
|
||||
$btn-color: #4D6DE4;
|
||||
$lighter-color: #7c91e3;
|
||||
.default-btn{
|
||||
cursor: pointer;
|
||||
width: 120px;
|
||||
|
|
@ -106,7 +106,7 @@ $lighter-color: #6eaeed;
|
|||
background: $btn-color;
|
||||
border-radius: 6px;
|
||||
color: #FFF;
|
||||
font-size: 15px;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
&:hover{
|
||||
background: $lighter-color;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import './assets/scss/main.scss'
|
|||
import {createApp} from 'vue'
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
import '../src/assets/iconfont/iconfont.css'
|
||||
import {createPinia} from 'pinia'
|
||||
|
||||
import App from './App.vue'
|
||||
|
|
|
|||
|
|
@ -12,16 +12,12 @@
|
|||
</el-form>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="btn" @click="resetSearch">
|
||||
<el-icon style="margin-right: 10px">
|
||||
<Refresh/>
|
||||
</el-icon>
|
||||
<div class="default-btn" @click="resetSearch">
|
||||
<span class="iconfont icon-RectangleCopy1"></span>
|
||||
重置
|
||||
</div>
|
||||
<div class="btn" @click="getList">
|
||||
<el-icon style="margin-right: 10px">
|
||||
<Search/>
|
||||
</el-icon>
|
||||
<div class="default-btn" @click="getList" style="margin-left: 24px">
|
||||
<span class="iconfont icon-RectangleCopy"></span>
|
||||
搜索
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -31,7 +27,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<el-table :data="dataList" style="width: 100%" @row-click="rowClick">
|
||||
<el-table :data="dataList" style="width: 100%;height: 100%" @row-click="rowClick">
|
||||
<el-table-column prop="useCode" label="单号" width="180"></el-table-column>
|
||||
<el-table-column prop="status" label="状态" width="180"></el-table-column>
|
||||
<el-table-column prop="useUserId" label="领用人" width="180"></el-table-column>
|
||||
|
|
|
|||
|
|
@ -13,16 +13,12 @@
|
|||
</el-form>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="btn" @click="resetSearch">
|
||||
<el-icon style="margin-right: 10px">
|
||||
<Refresh/>
|
||||
</el-icon>
|
||||
<div class="default-btn" @click="resetSearch">
|
||||
<span class="iconfont icon-RectangleCopy1"></span>
|
||||
重置
|
||||
</div>
|
||||
<div class="btn" @click="getCheck">
|
||||
<el-icon style="margin-right: 10px">
|
||||
<Search/>
|
||||
</el-icon>
|
||||
<div class="default-btn" @click="getCheck" style="margin-left: 24px">
|
||||
<span class="iconfont icon-RectangleCopy"></span>
|
||||
搜索
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -33,7 +29,7 @@
|
|||
</div>
|
||||
<div class="content_list">
|
||||
<el-scrollbar>
|
||||
<el-table :data="tableData" @cell-click="editCheck">
|
||||
<el-table :data="tableData" @cell-click="editCheck" style="height: 100%">
|
||||
<el-table-column label="订单号" prop="code" width="250">
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" prop="state" width="250"></el-table-column>
|
||||
|
|
|
|||
|
|
@ -65,16 +65,12 @@
|
|||
<el-checkbox v-model="inventoryNumber" label="不看0库存" size="large" @change="searchGoods"/>
|
||||
<el-checkbox v-model="status" label="不看已停用" size="large" @change="searchGoods"/>
|
||||
</div>
|
||||
<div class="btn" @click="resetSearch">
|
||||
<el-icon style="margin-right: 10px">
|
||||
<Refresh/>
|
||||
</el-icon>
|
||||
<div class="default-btn" @click="resetSearch">
|
||||
<span class="iconfont icon-RectangleCopy1"></span>
|
||||
重置
|
||||
</div>
|
||||
<div class="btn" @click="searchGoods">
|
||||
<el-icon style="margin-right: 10px">
|
||||
<Search/>
|
||||
</el-icon>
|
||||
<div class="default-btn" @click="searchGoods" style="margin-left: 24px">
|
||||
<span class="iconfont icon-RectangleCopy"></span>
|
||||
搜索
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -66,16 +66,12 @@
|
|||
</el-form>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="btn" @click="resetSearch">
|
||||
<el-icon style="margin-right: 10px">
|
||||
<Refresh/>
|
||||
</el-icon>
|
||||
<div class="default-btn" @click="resetSearch">
|
||||
<span class="iconfont icon-RectangleCopy1"></span>
|
||||
重置
|
||||
</div>
|
||||
<div class="btn" @click="init">
|
||||
<el-icon style="margin-right: 10px">
|
||||
<Search/>
|
||||
</el-icon>
|
||||
<div class="default-btn" @click="init" style="margin-left: 24px">
|
||||
<span class="iconfont icon-RectangleCopy"></span>
|
||||
搜索
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -86,7 +82,7 @@
|
|||
</div>
|
||||
<div class="content_list">
|
||||
<el-scrollbar>
|
||||
<el-table :data="tableData" style="width: 100%" @row-click="open_edit"
|
||||
<el-table :data="tableData" style="width: 100%;height: 100%" @row-click="open_edit"
|
||||
:header-cell-style="{ backgroundColor: '#F1F5FB' }">
|
||||
<el-table-column fixed label="采购单号" show-overflow-tooltip>
|
||||
<template #default="scope">
|
||||
|
|
|
|||
|
|
@ -13,16 +13,12 @@
|
|||
</el-form>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="btn" @click="resetSearch">
|
||||
<el-icon style="margin-right: 10px">
|
||||
<Refresh/>
|
||||
</el-icon>
|
||||
<div class="default-btn" @click="resetSearch">
|
||||
<span class="iconfont icon-RectangleCopy1"></span>
|
||||
重置
|
||||
</div>
|
||||
<div class="btn" @click="getSupplier">
|
||||
<el-icon style="margin-right: 10px">
|
||||
<Search/>
|
||||
</el-icon>
|
||||
<div class="default-btn" @click="getSupplier" style="margin-left: 24px">
|
||||
<span class="iconfont icon-RectangleCopy"></span>
|
||||
搜索
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -13,12 +13,17 @@
|
|||
</div>
|
||||
<div class="tip">
|
||||
<div class="search_input">
|
||||
<el-input v-model="search_keyword" placeholder="名称/编号" :suffix-icon="Search" size="large" clearable @change="change_search"/>
|
||||
<el-input v-model="search_keyword" placeholder="名称/编号" :suffix-icon="Search" size="large" clearable
|
||||
@change="change_search"/>
|
||||
|
||||
</div>
|
||||
<div class="search_btn"><div class="default-btn" @click="change_search">搜索</div></div>
|
||||
<div class="search_btn">
|
||||
<div class="default-btn" @click="change_search">
|
||||
<span class="iconfont icon-RectangleCopy"></span>
|
||||
搜索
|
||||
</div>
|
||||
</div>
|
||||
<div class="middel">
|
||||
|
||||
</div>
|
||||
<div class="op_btn">
|
||||
<el-dropdown placement="bottom">
|
||||
|
|
@ -64,7 +69,7 @@
|
|||
size="default"
|
||||
/>
|
||||
<div class="btn" @click="update1312(1)">开始更新</div>
|
||||
<div class="tip">{{tip}}</div>
|
||||
<div class="tip">{{ tip }}</div>
|
||||
</div>
|
||||
|
||||
</Mask>
|
||||
|
|
@ -77,9 +82,10 @@ import {ElNotification, type TabsPaneContext} from 'element-plus'
|
|||
import {post} from '@/utils/request.ts'
|
||||
import {Search} from '@element-plus/icons-vue'
|
||||
import Mask from "@/components/common/Mask.vue";
|
||||
let isUpdate1312=ref(false)
|
||||
let isUpdate1318=ref(false)
|
||||
let isUpdate1319=ref(false)
|
||||
|
||||
let isUpdate1312 = ref(false)
|
||||
let isUpdate1318 = ref(false)
|
||||
let isUpdate1319 = ref(false)
|
||||
let updt_time = ref(new Date())
|
||||
let current_page = ref(1);
|
||||
let total_page = ref(0)
|
||||
|
|
@ -87,7 +93,7 @@ let current_tab = ref(1301);
|
|||
let column_list = ref([]);
|
||||
let search_keyword = ref("");
|
||||
let isDownLoading = ref(false);
|
||||
let tip=ref("")
|
||||
let tip = ref("")
|
||||
const tabs = [
|
||||
{label: '中西成药', name: 1301},
|
||||
{label: '中药饮片', name: 1302},
|
||||
|
|
@ -103,43 +109,43 @@ const tabs = [
|
|||
];
|
||||
let tableData: any = ref([])
|
||||
let content: any = ref(null);
|
||||
let update1312 = (current_page:number) => {
|
||||
if(current_page==1){
|
||||
tip.value="开始更新第1页"
|
||||
let update1312 = (current_page: number) => {
|
||||
if (current_page == 1) {
|
||||
tip.value = "开始更新第1页"
|
||||
}
|
||||
post("social/directory_upinfo/get_page", {
|
||||
updt_time: updt_time.value,
|
||||
page:current_page
|
||||
page: current_page
|
||||
}, {catch_error: true}).then((res: any) => {
|
||||
let pages = res.pages;
|
||||
let number = res.number;
|
||||
if (current_page < pages&&isUpdate1312.value) {
|
||||
if (current_page < pages && isUpdate1312.value) {
|
||||
current_page++
|
||||
let percent = Math.floor((current_page / pages) * 100)
|
||||
tip.value= "开始更新第:" + current_page + "/" + pages;
|
||||
tip.value = "开始更新第:" + current_page + "/" + pages;
|
||||
update1312(current_page);
|
||||
} else {
|
||||
tip.value= "所有更新已完成"
|
||||
tip.value = "所有更新已完成"
|
||||
isUpdate1312.value = false
|
||||
}
|
||||
|
||||
}).catch((err: any) => {
|
||||
isUpdate1312.value = false;
|
||||
current_page=1;
|
||||
current_page = 1;
|
||||
})
|
||||
}
|
||||
const openUpdateBox = (type:number) => {
|
||||
const openUpdateBox = (type: number) => {
|
||||
//获取30天前时间
|
||||
let start_time = new Date();
|
||||
start_time.setDate(start_time.getDate() - 30);
|
||||
updt_time.value = start_time;
|
||||
if(type==1312){
|
||||
if (type == 1312) {
|
||||
isUpdate1312.value = true
|
||||
}
|
||||
if(type==1318){
|
||||
if (type == 1318) {
|
||||
isUpdate1318.value = true
|
||||
}
|
||||
if(type==1319){
|
||||
if (type == 1319) {
|
||||
isUpdate1319.value = true
|
||||
}
|
||||
|
||||
|
|
@ -194,7 +200,7 @@ let change_page = (val: number) => {
|
|||
}
|
||||
let change_tab = (tab: TabsPaneContext, event: Event) => {
|
||||
search_keyword.value = "";
|
||||
nextTick(()=>{
|
||||
nextTick(() => {
|
||||
init()
|
||||
})
|
||||
}
|
||||
|
|
@ -247,12 +253,13 @@ let download = (ver: any, type: any) => {
|
|||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.update_box{
|
||||
.update_box {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.container-wrapper {
|
||||
box-sizing: border-box;
|
||||
padding: 20px;
|
||||
|
|
@ -273,18 +280,22 @@ let download = (ver: any, type: any) => {
|
|||
|
||||
.tip {
|
||||
display: flex;
|
||||
.search_input{
|
||||
|
||||
.search_input {
|
||||
flex: 1;
|
||||
}
|
||||
.search_btn{
|
||||
|
||||
.search_btn {
|
||||
width: 140px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
.middel{
|
||||
|
||||
.middel {
|
||||
width: 200px;
|
||||
}
|
||||
.op_btn{
|
||||
|
||||
.op_btn {
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue