提交 d4a72509 authored 作者: 翟畅's avatar 翟畅

zc防伪码导出txt

上级 de16e637
......@@ -93,7 +93,7 @@
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer" style="display:flex;justify-content:center;">
<span slot="footer" class="dialog-footer">
<el-button @click="createCodeDialog = false">取 消</el-button>
<el-button type="primary" @click="dataSubmitCode" v-loading="sending">确 定</el-button>
</span>
......@@ -111,8 +111,8 @@
</div>
</el-dialog>
<!-- 下载防伪码 -->
<el-dialog title="下载防伪码方式" :visible.sync="downloadTypeDialog" width="30%" center>
<div class="downloadType" style="width:100%;text-align:center;">
<el-dialog title="下载防伪码方式" :visible.sync="downloadTypeDialog" width="30%" @close="closeDownQR">
<div class="downloadType" style="text-align:center;">
<el-radio-group v-model="downLoadType">
<el-radio :label="1">携带暗码</el-radio>
<el-radio :label="2">不带暗码</el-radio>
......@@ -124,13 +124,21 @@
</span>
</el-dialog>
<!-- 导出TXT文件 -->
<el-dialog title="批量导出TXT文件" :visible.sync="exportTxtTypeDialog" width="30%" center>
<div class="downloadType" style="width:100%;text-align:center;">
<el-dialog title="批量导出TXT文件" :visible.sync="exportTxtTypeDialog" width="30%" @click="closeExportDialog">
<div class="downloadType">
<span class="labelStyle">是否携带暗码:</span>
<el-radio-group v-model="exportTxtType">
<el-radio :label="1">携带暗码</el-radio>
<el-radio :label="2">不带暗码</el-radio>
</el-radio-group>
</div>
<div class="downloadType">
<span class="labelStyle">是否携带明码:</span>
<el-radio-group v-model="exportTxtPlainType">
<el-radio :label="1">携带明码</el-radio>
<el-radio :label="2">不带明码</el-radio>
</el-radio-group>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="exportTxtTypeDialog = false">取 消</el-button>
<el-button type="primary" @click="confirmExportTxt()">确 定</el-button>
......@@ -209,6 +217,7 @@ import queryString from "query-string";
downLoadType:1,
exportTxtTypeDialog:false,
exportTxtType:1,
exportTxtPlainType:1,
lockingState:null,
collapse: false,
}
......@@ -289,6 +298,12 @@ import queryString from "query-string";
}
// }
},
closeDownQR(){
this.downloadTypeDialog = false
// this.startCode0 = null
// this.startCode1 = null
this.downLoadType = 1
},
confirmDownLoad(){
this.downloadTypeDialog = false
let ids = getSelectionIds(this.chooiceList);
......@@ -457,12 +472,18 @@ import queryString from "query-string";
this.$message.warning('图书为锁定状态时,该功能方可使用')
}
},
closeExportDialog(){
this.exportTxtType = 1
this.exportTxtPlainType = 1
this.exportTxtTypeDialog = false
},
confirmExportTxt(){
this.exportTxtTypeDialog = false
let ids = getSelectionIds(this.chooiceList);
let data = {
ids:ids,
isCode:this.exportTxtType,
isPlain:this.exportTxtPlainType,
phyId: this.listQuery.phyId,
code: this.listQuery.code,
status: this.listQuery.status,
......@@ -601,6 +622,25 @@ import queryString from "query-string";
<style scoped lang="scss">
@import '@/styles/top_common.scss';
.downloadType{
width: 100%;
height: auto;
text-align: left;
margin-bottom: 20px;
.labelStyle{
font-weight: bold;
font-size: 16px;
color: #222;
width: 120px;
display: inline-block;
margin-right: 10px;
text-align: right;
}
}
.dialog-footer{
display:flex;
justify-content:center;
}
.back_content{
width:100%;
height: 40px;
......
......@@ -98,7 +98,7 @@
</el-form-item> -->
</el-form>
</div>
<span slot="footer" class="dialog-footer" style="display:flex;justify-content:center;">
<span slot="footer" class="dialog-footer">
<el-button @click="createCodeDialog = false">取 消</el-button>
<el-button type="primary" @click="dataSubmitCode" v-loading="sending">确 定</el-button>
</span>
......@@ -127,7 +127,7 @@
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer" style="display:flex;justify-content:center;">
<span slot="footer" class="dialog-footer">
<el-button @click="relevanceBookDialog = false">取 消</el-button>
<el-button type="primary" @click="dataSubmitRelevanceBook" v-loading="sending">确 定</el-button>
</span>
......@@ -146,7 +146,7 @@
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer" style="display:flex;justify-content:center;">
<span slot="footer" class="dialog-footer">
<el-button @click="disassociateBookDialog = false">取 消</el-button>
<el-button type="primary" @click="dataSubmitDisassociateBook" v-loading="sending">确 定</el-button>
</span>
......@@ -164,7 +164,7 @@
</div>
</el-dialog>
<!-- 下载防伪码 -->
<el-dialog title="下载防伪码方式" :visible.sync="downloadTypeDialog" width="30%" center @close="closeDownQR">
<el-dialog title="下载防伪码方式" :visible.sync="downloadTypeDialog" width="30%" @close="closeDownQR">
<div class="downloadType">
<span class="labelStyle">是否携带暗码:</span>
<el-radio-group v-model="downLoadType">
......@@ -183,7 +183,7 @@
</span>
</el-dialog>
<!-- 导出TXT文件 -->
<el-dialog title="批量导出TXT文件" :visible.sync="exportTxtTypeDialog" width="30%" center @close="closeDownTxt">
<el-dialog title="批量导出TXT文件" :visible.sync="exportTxtTypeDialog" width="30%" @close="closeDownTxt">
<div class="downloadType">
<span class="labelStyle">是否携带暗码:</span>
<el-radio-group v-model="exportTxtType">
......@@ -192,6 +192,13 @@
</el-radio-group>
</div>
<div class="downloadType">
<span class="labelStyle">是否携带明码:</span>
<el-radio-group v-model="exportTxtPlainType">
<el-radio :label="1">携带明码</el-radio>
<el-radio :label="2">不带明码</el-radio>
</el-radio-group>
</div>
<div class="downloadType">
<span class="labelStyle">明码区间值:</span>
<el-input v-model="startTxtCode0" placeholder="起始值" clearable style="width:140px;" @input="limitNumTxtDialog"/>
<el-input v-model="startTxtCode1" placeholder="结束值" clearable style="width:140px;" @input="changeCodeEndNumTxtDialog"/>
......@@ -289,6 +296,7 @@ import store from '@/store'
startTxtCode1:null,
exportTxtTypeDialog:false,
exportTxtType:1,
exportTxtPlainType:1,
relevanceBookDialog:false,
relevanceBookForm:{
bookList:{},
......@@ -584,6 +592,7 @@ import store from '@/store'
this.downloadTypeDialog = false
this.startCode0 = null
this.startCode1 = null
this.downLoadType = 1
},
confirmDownLoad(){
if(this.startCode0 && this.startCode1){
......@@ -694,9 +703,11 @@ import store from '@/store'
}
},
closeDownTxt(){
this.exportTxtTypeDialog = false
this.exportTxtType = 1
this.exportTxtPlainType = 1
this.startTxtCode0 = null
this.startTxtCode1 = null
this.exportTxtTypeDialog = false
},
confirmExportTxt(){
if(this.startTxtCode0 && this.startTxtCode1){
......@@ -714,6 +725,7 @@ import store from '@/store'
let data = {
ids:ids,
isCode:this.exportTxtType,
isPlain:this.exportTxtPlainType,
code0: this.startTxtCode0,
code1:this.startTxtCode1,
departmentCode: this.listQuery.departmentCode?this.listQuery.departmentCode:this.JavaInfo.oldCode
......@@ -857,6 +869,10 @@ import store from '@/store'
text-align: right;
}
}
.dialog-footer{
display:flex;
justify-content:center;
}
.back_content{
width:100%;
height: 40px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论