Commit e89cba20 by 前端

细节逻辑调整

1 parent e66e3556
...@@ -118,7 +118,8 @@ ...@@ -118,7 +118,8 @@
:model="printForm" :model="printForm"
label-width="200px"> label-width="200px">
<el-form-item label="纸张类型:"> <el-form-item label="纸张类型:">
<el-radio-group v-model="printForm.pageType"> <el-radio-group v-model="printForm.pageType"
@input="changePageType">
<el-radio v-for="(item, index) in pageTypeList" <el-radio v-for="(item, index) in pageTypeList"
:label="item.confId" :label="item.confId"
:key="index">{{ :key="index">{{
...@@ -774,6 +775,28 @@ export default { ...@@ -774,6 +775,28 @@ export default {
} }
}, },
changePageType(val) {
if (val == 1) {
this.usageList = [
{
confId: 1,
confLabel: '一页一张'
}, {
confId: 2,
confLabel: '一页两张'
}
]
} else if (val == 2) {
this.usageList = [
{
confId: 1,
confLabel: '一页一张'
}
]
}
this.printForm.usage = this.usageList[0].confId
},
handleBatchPrint() { handleBatchPrint() {
var selectedData = [] var selectedData = []
if (this.$refs.recordTable.mutiSelectArr.transferAccounts) { if (this.$refs.recordTable.mutiSelectArr.transferAccounts) {
...@@ -796,7 +819,9 @@ export default { ...@@ -796,7 +819,9 @@ export default {
const params = deepClone(this.printForm) const params = deepClone(this.printForm)
params.detailIds = this.printIds params.detailIds = this.printIds
batchPrinting(params).then(res => { batchPrinting(params).then(res => {
if (res) {
window.open(res) window.open(res)
}
}) })
}, },
handleClosePrint() { handleClosePrint() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!