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

zc防伪码导出txt

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