Commit f8b5f431 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 59510db9 bffdb561
<template> <template>
<div class="search-box" :style="{ width }"> <div class="search-box" :style="{ width }">
<el-input <el-input
placeholder="输入关键词查询" placeholder="输入事项表单关键词或排队编号查询"
:value="value" :value="value"
@keyup.native.enter="handleSearch" @keyup.native.enter="handleSearch"
@input="changeInput" @input="changeInput"
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<div class="search-box"> <div class="search-box">
<el-input <el-input
v-model="search" v-model="search"
placeholder="输入关键词查询" placeholder="输入事项表单关键词或排队编号查询"
@keyup.native.enter="handleSearch" @keyup.native.enter="handleSearch"
> >
<i <i
......
...@@ -71,6 +71,7 @@ export default { ...@@ -71,6 +71,7 @@ export default {
width: 100%; width: 100%;
padding: 0px 24px; padding: 0px 24px;
background-color: #2681e8; background-color: #2681e8;
// background: linear-gradient(90deg, #1845c6 0%, #2999ff 100%);
color: #fff; color: #fff;
.title { .title {
font-size: 16px; font-size: 16px;
...@@ -85,6 +86,7 @@ export default { ...@@ -85,6 +86,7 @@ export default {
} }
/deep/.el-menu { /deep/.el-menu {
border: none !important; border: none !important;
background-color: transparent;
} }
/deep/.el-menu-item { /deep/.el-menu-item {
border: none !important; border: none !important;
......
...@@ -57,10 +57,10 @@ ...@@ -57,10 +57,10 @@
</el-button> </el-button>
</div> </div>
<div class="mt50"> <div class="mt50">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button size="small" type="primary" @click="handleOk" <el-button size="small" type="primary" @click="handleOk"
>确定 >确定
</el-button> </el-button>
<el-button size="small" @click="handleReset">重置</el-button>
</div> </div>
</el-card> </el-card>
</div> </div>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
type="primary" type="primary"
:loading="loading" :loading="loading"
@click="handlePrint(materialsInfo)" @click="handlePrint(materialsInfo)"
>打 印</el-button >下 载</el-button
> >
</div> </div>
</el-dialog> </el-dialog>
...@@ -62,25 +62,10 @@ export default { ...@@ -62,25 +62,10 @@ export default {
}, },
methods: { methods: {
handlePrint(info) { handlePrint(info) {
let _this = this; const a = document.createElement("a");
_this.loading = true; a.href = this.api2 + info.samplePath;
/* eslint-disable */ a.download = info.sampleName;
device.printer({ a.click();
papertype: "A4",
printername: "", // 打印机名称 为空则为默认打印机
printertype: "url", // base64 ,normal,url
url: this.api2 + info.samplePath, // url
success: (res) => {
if (res && res.code == "00000") {
_this.$message.success("打印成功");
_this.loading = false;
}
},
fail: (err) => {
_this.$message.error(err.Message);
_this.loading = false;
},
});
}, },
}, },
}; };
......
...@@ -217,6 +217,8 @@ ...@@ -217,6 +217,8 @@
width="80" width="80"
> >
</el-table-column> </el-table-column>
<el-table-column prop="sort" label="排序" align="center" width="80">
</el-table-column>
<el-table-column label="操作" align="center" width="180"> <el-table-column label="操作" align="center" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="flex jcb"> <div class="flex jcb">
......
...@@ -7,7 +7,13 @@ ...@@ -7,7 +7,13 @@
@close="handleClose" @close="handleClose"
:destroy-on-close="true" :destroy-on-close="true"
> >
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form
size="small"
ref="form"
:model="form"
:rules="rules"
label-width="80px"
>
<el-form-item label="材料简称" prop="materialName"> <el-form-item label="材料简称" prop="materialName">
<el-input <el-input
size="small" size="small"
...@@ -28,6 +34,14 @@ ...@@ -28,6 +34,14 @@
<el-form-item label="事项编码"> <el-form-item label="事项编码">
<el-input disabled size="small" v-model="form.matterNo"></el-input> <el-input disabled size="small" v-model="form.matterNo"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="排序" prop="sort">
<el-input-number
v-model="form.sort"
controls-position="right"
:min="0"
></el-input-number>
</el-form-item>
<el-form-item label="公共库" prop="pub"> <el-form-item label="公共库" prop="pub">
<el-switch <el-switch
class="tableScopeSwitch" class="tableScopeSwitch"
...@@ -55,6 +69,7 @@ ...@@ -55,6 +69,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleRest">重 置</el-button>
<el-button <el-button
:loading="loading" :loading="loading"
size="small" size="small"
...@@ -62,7 +77,6 @@ ...@@ -62,7 +77,6 @@
@click="handleOk" @click="handleOk"
>确 定</el-button >确 定</el-button
> >
<el-button size="small" @click="handleRest">重 置</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -106,6 +120,7 @@ export default { ...@@ -106,6 +120,7 @@ export default {
deptName: "", // 部门名称 deptName: "", // 部门名称
deptId: "", // 部门id deptId: "", // 部门id
deptCode: "", // 部门编码 deptCode: "", // 部门编码
sort: 99, // 排序
}, },
samplePathFileList: [], samplePathFileList: [],
loading: false, loading: false,
......
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
</el-pagination> </el-pagination>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="Visible = false">取 消</el-button>
<el-button <el-button
:loading="loading" :loading="loading"
size="small" size="small"
...@@ -89,7 +90,6 @@ ...@@ -89,7 +90,6 @@
@click="handleOk" @click="handleOk"
>确 定</el-button >确 定</el-button
> >
<el-button size="small" @click="Visible = false">取 消</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
......
...@@ -48,10 +48,10 @@ ...@@ -48,10 +48,10 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleRest">重 置</el-button>
<el-button size="small" type="primary" @click="handleOk" <el-button size="small" type="primary" @click="handleOk"
>确 定</el-button >确 定</el-button
> >
<el-button size="small" @click="handleRest">重 置</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment