|
@@ -1201,16 +1201,19 @@
|
|
|
let _list2 = []
|
|
|
if (this.printType == 1) {
|
|
|
localStorage.setItem('cwprint', true)
|
|
|
- // 财务批量打印数据
|
|
|
- for (let i = 0; i < this.selectPrintList.length; i++) {
|
|
|
- if (this.selectPrintList[i].warehouseName.indexOf('鑫满仓') > -1) {
|
|
|
- this.selectPrintList[i].compName = '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
- this.selectPrintList[i].taxRegistrationNo = '91230230MA1CCQ0H5R'
|
|
|
- } else {
|
|
|
- this.selectPrintList[i].compName = '黑龙江利润元粮食贸易有限公司'
|
|
|
- this.selectPrintList[i].taxRegistrationNo = '91230230MA1C08CC6B'
|
|
|
+ if(localStorage.getItem('ws-pf_staffName') == '全能账号'){
|
|
|
+ // 财务批量打印数据
|
|
|
+ for (let i = 0; i < this.selectPrintList.length; i++) {
|
|
|
+ if (this.selectPrintList[i].warehouseName.indexOf('鑫满仓') > -1) {
|
|
|
+ this.selectPrintList[i].compName = '黑龙江鑫满仓粮食贸易有限公司'
|
|
|
+ this.selectPrintList[i].taxRegistrationNo = '91230230MA1CCQ0H5R'
|
|
|
+ } else {
|
|
|
+ this.selectPrintList[i].compName = '黑龙江利润元粮食贸易有限公司'
|
|
|
+ this.selectPrintList[i].taxRegistrationNo = '91230230MA1C08CC6B'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
localStorage.setItem(
|
|
|
'selectPrint_selectPrintList',
|
|
|
JSON.stringify(this.selectPrintList)
|
|
@@ -1230,15 +1233,29 @@
|
|
|
_list1 = JSON.stringify(this.printData)
|
|
|
_list2 = JSON.stringify(this.customerList)
|
|
|
}
|
|
|
- window.open(
|
|
|
- '../../../../../static/payprint.html?type=2&dataList=' +
|
|
|
- _list1 +
|
|
|
- '&customerList=' +
|
|
|
- _list2 +
|
|
|
- '&printTypeList=' +
|
|
|
- this.ruleForm.type,
|
|
|
- '结算凭证'
|
|
|
- )
|
|
|
+ if(localStorage.getItem('ws-pf_staffName') == '全能账号'){
|
|
|
+ window.open(
|
|
|
+ '../../../../../static/payprint.html?type=2&dataList=' +
|
|
|
+ _list1 +
|
|
|
+ '&customerList=' +
|
|
|
+ _list2 +
|
|
|
+ '&printTypeList=' +
|
|
|
+ this.ruleForm.type,
|
|
|
+ '结算凭证'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ window.open(
|
|
|
+ '../../../../../static/payprint1.html?type=2&dataList=' +
|
|
|
+ _list1 +
|
|
|
+ '&customerList=' +
|
|
|
+ _list2 +
|
|
|
+ '&printTypeList=' +
|
|
|
+ this.ruleForm.type,
|
|
|
+ '结算凭证'
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
getList() {
|
|
|
for (let _temp = 0; _temp < this.warehouseList.length; _temp++) {
|