Commit 58f3620f by 前端

版本功能代码提交

1 parent af59fbf7
...@@ -14370,6 +14370,11 @@ ...@@ -14370,6 +14370,11 @@
} }
} }
}, },
"print-js": {
"version": "1.6.0",
"resolved": "https://registry.npmmirror.com/print-js/-/print-js-1.6.0.tgz",
"integrity": "sha512-BfnOIzSKbqGRtO4o0rnj/K3681BSd2QUrsIZy/+WdCIugjIswjmx3lDEZpXB2ruGf9d4b3YNINri81+J0FsBWg=="
},
"printj": { "printj": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/printj/-/printj-1.1.2.tgz", "resolved": "https://registry.npmjs.org/printj/-/printj-1.1.2.tgz",
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
"lowdb": "^1.0.0", "lowdb": "^1.0.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"number-precision": "^1.6.0", "number-precision": "^1.6.0",
"print-js": "^1.6.0",
"qrcodejs2": "^0.0.2", "qrcodejs2": "^0.0.2",
"qs": "^6.8.0", "qs": "^6.8.0",
"rfdc": "^1.3.0", "rfdc": "^1.3.0",
......
...@@ -38,3 +38,9 @@ export function nbcbReceiptPdfUrl(data) { ...@@ -38,3 +38,9 @@ export function nbcbReceiptPdfUrl(data) {
data.method = `${path}nbcb.receipt.pdf.url` data.method = `${path}nbcb.receipt.pdf.url`
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
// 批量同步电子回单到金蝶
export function receiptBatchSync(data) {
data.method = `${path}nbcb.acc.receipt.batch.sync`
return request(data, RequestMethods.POST)
}
...@@ -983,7 +983,7 @@ export const filterOpt = [ ...@@ -983,7 +983,7 @@ export const filterOpt = [
{ confId: 2, confValue: "待我处理的" }, { confId: 2, confValue: "待我处理的" },
{ confId: 3, confValue: "我处理过的" } { confId: 3, confValue: "我处理过的" }
] ]
export const supervisorStatuOpt=[ export const supervisorStatuOpt = [
{ confId: 1, confValue: "已跟进" }, { confId: 1, confValue: "已跟进" },
{ confId: 0, confValue: "未跟进" } { confId: 0, confValue: "未跟进" }
] ]
...@@ -1061,11 +1061,23 @@ export const receiptStatusOpt = [ ...@@ -1061,11 +1061,23 @@ export const receiptStatusOpt = [
{ confId: 1, confValue: "是" } { confId: 1, confValue: "是" }
] ]
// 财资数据 数据来源
export const dataSourceOpt = [
{ confId: 1, confValue: "宁波财资" },
{ confId: 2, confValue: "人工导入" }
]
// 财资数据 操作项 // 财资数据 操作项
export const operationTypeOpt = [ export const operationTypeOpt = [
{ confId: 1, confValue: "重推财资数据" }, { confId: 1, confValue: "重推财资数据" },
{ confId: 2, confValue: "推送财资数据" }, { confId: 2, confValue: "推送财资数据" },
{ confId: 3, confValue: "获取财资数据" } { confId: 3, confValue: "获取财资数据" },
{ confId: 4, confValue: "获取流水明细" },
{ confId: 5, confValue: "获取回单" },
{ confId: 6, confValue: "推送流水明细" },
{ confId: 7, confValue: "推送回单" },
{ confId: 8, confValue: "重推流水明细" },
{ confId: 9, confValue: "重推回单" }
] ]
// 财资数据 操作项 // 财资数据 操作项
......
...@@ -383,6 +383,9 @@ import Province from "./provinceCity.vue" ...@@ -383,6 +383,9 @@ import Province from "./provinceCity.vue"
import mapView from "./mapView.vue" import mapView from "./mapView.vue"
import GLDialog from "../glsx-dialog/index.vue" import GLDialog from "../glsx-dialog/index.vue"
import { beforeRangePickerOptions, afterRangePickerOptions } from "./common" import { beforeRangePickerOptions, afterRangePickerOptions } from "./common"
import {
rangePickerOptions_30day2
} from "@/common/format"
export default { export default {
name: "GlsxCombiForm", name: "GlsxCombiForm",
components: { components: {
...@@ -395,7 +398,8 @@ export default { ...@@ -395,7 +398,8 @@ export default {
return { return {
pickerOption: { pickerOption: {
beforeRangePickerOptions: beforeRangePickerOptions, beforeRangePickerOptions: beforeRangePickerOptions,
afterRangePickerOptions: afterRangePickerOptions afterRangePickerOptions: afterRangePickerOptions,
rangePickerOptions_30day2: rangePickerOptions_30day2
}, },
subdistrict: 2, subdistrict: 2,
dialogMapVisible: false, dialogMapVisible: false,
......
...@@ -338,6 +338,14 @@ export const routerName = { ...@@ -338,6 +338,14 @@ export const routerName = {
parentId: "90509", parentId: "90509",
label: "回单", label: "回单",
handle: "handleReceipt" handle: "handleReceipt"
},
{
authId: "9050907",
parentId: "90509",
label: "下载资金日报",
category: "Button",
type: "primary",
handle: "handleFundExport"
} }
], ],
component: _import("financeManage/theAssetData/index") component: _import("financeManage/theAssetData/index")
......
...@@ -6,18 +6,61 @@ ...@@ -6,18 +6,61 @@
class="detail-content-warn"> class="detail-content-warn">
<div v-loading="loading"> <div v-loading="loading">
<div class="form_div"> <div class="form_div">
<div class="tipsDiv" <div>
v-if="detailInfo.jdSync == 1"> 财资数据同步金蝶系统状态
<div class="tipsText"> </div>
<img src="../image/info-circle-fill.png" <div class="tipsDiv">
class="imgCla">财资数据推送金蝶系统成功 <div class="labelCla">流水明细状态:</div>
<div v-if="detailInfo.jdSync == 1">
<div class="tipsText">
<img src="../image/info-circle-fill.png"
class="imgCla">成功
</div>
</div>
<div v-else>
<div class="tipsText">
<img src="../image/icon.png"
class="imgCla">失败
<div class="tipsError"
:title="detailInfo.failReason">
原因:【{{ detailInfo.failReason ? (detailInfo.failReason.length > 40 ? (detailInfo.failReason.slice(0, 40) + '...') : detailInfo.failReason) : '-' }}】
</div>
<div class="tipsBt">
<el-button size="small"
type="primary"
@click="dataPush">明细重推</el-button>
</div>
</div>
</div> </div>
</div> </div>
<div class="tipsDiv" <div class="tipsDiv">
<div class="labelCla">回单状态:</div>
<div v-if="detailInfo.receiptJdSync == 1">
<div class="tipsText">
<img src="../image/info-circle-fill.png"
class="imgCla">成功
</div>
</div>
<div v-else>
<div class="tipsText">
<img src="../image/icon.png"
class="imgCla">失败
<div class="tipsError">
原因:【{{ detailInfo.receiptFailReason ? (detailInfo.receiptFailReason.length > 40 ? (detailInfo.receiptFailReason.slice(0, 40) + '...') : detailInfo.receiptFailReason) : '-' }}】
</div>
<div class="tipsBt">
<el-button size="small"
type="primary"
@click="receiptBatchSync">回单重推</el-button>
</div>
</div>
</div>
</div>
<!-- <div class="tipsDiv"
v-if="detailInfo.jdSync == 0"> v-if="detailInfo.jdSync == 0">
<div class="tipsText"> <div class="tipsText">
<img src="../image/icon.png" <img src="../image/icon.png"
class="imgCla">财资数据推送金蝶系统失败 class="imgCla">失败
</div> </div>
<div class="tipsError">原因:【{{ detailInfo.failReason ? detailInfo.failReason : "-" }}】 <div class="tipsError">原因:【{{ detailInfo.failReason ? detailInfo.failReason : "-" }}】
</div> </div>
...@@ -26,7 +69,7 @@ ...@@ -26,7 +69,7 @@
type="primary" type="primary"
@click="dataPush">数据重推</el-button> @click="dataPush">数据重推</el-button>
</div> </div>
</div> </div> -->
<el-form class="edit-sub-block" <el-form class="edit-sub-block"
label-width="150px" label-width="150px"
:inline="true"> :inline="true">
...@@ -159,7 +202,7 @@ ...@@ -159,7 +202,7 @@
</template> </template>
<script> <script>
import { nbcbAccDetail, nbcbAccDetailBatchSync } from '@api/theAssetData' import { nbcbAccDetail, nbcbAccDetailBatchSync, receiptBatchSync } from '@api/theAssetData'
import { Util, deepClone } from "@/common/util" import { Util, deepClone } from "@/common/util"
import { cdSignOpt, operationResultOpt, operationTypeOpt } from '@/common/constants.js' import { cdSignOpt, operationResultOpt, operationTypeOpt } from '@/common/constants.js'
export default { export default {
...@@ -294,6 +337,24 @@ export default { ...@@ -294,6 +337,24 @@ export default {
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
},
receiptBatchSync() {
this.$confirm('请确认是否要执行当前操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
const ids = [this.paramsObj.id]
receiptBatchSync({ ids: ids }).then(res => {
this.notice.okTips()
this.getDetail()
this.refreshFlag = true
})
}).catch(err => {
console.log(err)
})
} }
} }
} }
...@@ -413,16 +474,20 @@ export default { ...@@ -413,16 +474,20 @@ export default {
.tipsDiv { .tipsDiv {
display: flex; display: flex;
justify-content: center; /* 水平居中 */ // justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */ align-items: center; /* 垂直居中 */
flex-direction: column; // flex-direction: column;
margin: 20px 0 34px 0; margin: 20px 0 34px 0;
.labelCla {
width: 200px;
text-align: right;
}
.tipsText { .tipsText {
display: flex; display: flex;
justify-content: center; /* 水平居中 */ // justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */ align-items: center; /* 垂直居中 */
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 14px;
color: #000000e6; color: #000000e6;
} }
.imgCla { .imgCla {
...@@ -431,10 +496,12 @@ export default { ...@@ -431,10 +496,12 @@ export default {
.tipsError { .tipsError {
font-size: 12px; font-size: 12px;
color: #eb4e4e; color: #eb4e4e;
margin-top: 8px; // margin-top: 8px;
margin-left: 20px;
} }
.tipsBt { .tipsBt {
margin-top: 10px; // margin-top: 10px;
margin-left: 20px;
} }
} }
......
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
@click="handleClickIcon" @click="handleClickIcon"
class="el-icon-circle-close"></i> class="el-icon-circle-close"></i>
</div> </div>
<!----><!----> <div class="errorTips"
v-if="tipsShow">最大金额需大于最小金额</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -56,7 +57,8 @@ export default { ...@@ -56,7 +57,8 @@ export default {
oldVal: { oldVal: {
startInput: '', startInput: '',
endInput: '' endInput: ''
} },
tipsShow: false
} }
}, },
...@@ -71,6 +73,9 @@ export default { ...@@ -71,6 +73,9 @@ export default {
displayValue(val) { displayValue(val) {
if (val) { if (val) {
this.userInput = val this.userInput = val
if (val.length == 0) {
this.tipsShow = false
}
} }
} }
}, },
...@@ -101,6 +106,7 @@ export default { ...@@ -101,6 +106,7 @@ export default {
handleClickIcon(event) { handleClickIcon(event) {
this.userInput[0] = null this.userInput[0] = null
this.userInput[1] = null this.userInput[1] = null
this.tipsShow = false
}, },
valueIsEmpty() { valueIsEmpty() {
const val = this.userInput const val = this.userInput
...@@ -138,6 +144,9 @@ export default { ...@@ -138,6 +144,9 @@ export default {
if (Array.isArray(val)) { if (Array.isArray(val)) {
if (+val[0] > +val[1]) { if (+val[0] > +val[1]) {
val[1] = null val[1] = null
this.tipsShow = true
} else {
this.tipsShow = false
} }
} }
} }
...@@ -169,5 +178,10 @@ export default { ...@@ -169,5 +178,10 @@ export default {
} }
} }
} }
.errorTips {
color: red;
// text-align: center;
font-size: 12px;
}
} }
</style> </style>
...@@ -14,6 +14,23 @@ ...@@ -14,6 +14,23 @@
:form-obj="infoForm" :form-obj="infoForm"
:form-data="editFormData" :form-data="editFormData"
:form-rules="formRules"> :form-rules="formRules">
<div slot="accHtml">
<el-select v-model="infoForm.accNameList"
clearable
:style="{ width: '400px'}"
placeholder="请选择单位名称"
multiple
collapse-tags>
<span class="select-all">
<el-checkbox v-model="allSelected"
@change="toggleAll">全选</el-checkbox>
</span>
<el-option v-for="item in baseData.accNameList"
:key="item.confId"
:label="item.confValue"
:value="item.confId"></el-option>
</el-select>
</div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<!-- <span class="dialog-footer"> <!-- <span class="dialog-footer">
...@@ -50,49 +67,57 @@ export default { ...@@ -50,49 +67,57 @@ export default {
}, },
handleFormRef: 'handleFormRef', handleFormRef: 'handleFormRef',
formRules: { formRules: {
transactionTime: [{ required: true, message: '请选择交易时间', trigger: 'change' }], transactionTime: [{ required: true, message: '请选择交易时间', trigger: 'change' }]
}, },
editFormData: [{ editFormData: [
label: '单位名称', {
name: 'accNameList', label: '单位名称',
type: 'select', addHtml: 'accHtml'
isClear: true, },
multiple: true, // {
collapseTags: true, // label: '单位名称',
optionList: [], // name: 'accNameList',
optionId: 'confId', // type: 'select',
optionLabel: 'confValue', // isClear: true,
optionsName: 'accNameList' // multiple: true,
}, { // collapseTags: true,
label: '银行类别', // optionList: [],
name: 'bankType', // optionId: 'confId',
type: 'select', // optionLabel: 'confValue',
isClear: true, // optionsName: 'accNameList'
optionList: [], // },
optionId: 'confId', {
optionLabel: 'confValue', label: '银行类别',
optionsName: 'bankTypeList' name: 'bankType',
}, { type: 'select',
label: '本方账号', isClear: true,
name: 'bankAcc', optionList: [],
type: 'select', optionId: 'confId',
isClear: true, optionLabel: 'confValue',
optionList: [], optionsName: 'bankTypeList'
optionId: 'confId', }, {
optionLabel: 'confValue', label: '本方账号',
optionsName: 'bankAccList' name: 'bankAcc',
}, { type: 'select',
label: '交易时间', isClear: true,
name: 'transactionTime', optionList: [],
type: 'datePicker', optionId: 'confId',
isClear: true, optionLabel: 'confValue',
pickerOptions: 'beforeRangePickerOptions' optionsName: 'bankAccList'
}], }, {
label: '交易时间',
name: 'transactionTime',
type: 'datePicker',
isClear: true,
// pickerOptions: 'beforeRangePickerOptions'
pickerOptions: "rangePickerOptions_30day2"
}],
baseData: { baseData: {
accNameList: [], accNameList: [],
bankTypeList: [], bankTypeList: [],
bankAccList: [] bankAccList: []
} },
allSelected: false
} }
}, },
...@@ -163,6 +188,18 @@ export default { ...@@ -163,6 +188,18 @@ export default {
}) })
}, },
// 实现全选功能的方法
toggleAll() {
console.log('this.allSelected', this.allSelected)
if (this.allSelected) {
this.infoForm.accNameList = this.baseData.accNameList.map(option => option.confId)
} else {
this.infoForm.accNameList = []
}
// 更新allSelected状态,确保下一次操作时状态正确
// this.allSelected = !this.allSelected
},
handleAddConfirm() { handleAddConfirm() {
this.$refs.editFormRef.$refs[this.handleFormRef].validate(valid => { this.$refs.editFormRef.$refs[this.handleFormRef].validate(valid => {
if (valid) { if (valid) {
...@@ -344,4 +381,7 @@ export default { ...@@ -344,4 +381,7 @@ export default {
font-size: 12px; font-size: 12px;
color: #eb4e4e; color: #eb4e4e;
} }
.select-all {
margin: 0 0 20px 20px;
}
</style> </style>
...@@ -4,12 +4,38 @@ ...@@ -4,12 +4,38 @@
<d2-container> <d2-container>
<div class="header" <div class="header"
slot="header" slot="header"
style="padding: 10px 20px;"> style="padding: 10px 20px 20px 0;">
<d2-search ref="showSearch" <d2-search ref="showSearch"
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
:label-width="labelWidth" :label-width="labelWidth"
:form-data="showFormData"> :form-data="showFormData">
<!-- 同步状态 -->
<div slot="jdSyncStatusHtml">
<el-select v-model="searchForm.jdSyncType"
placeholder="请选择"
clearable
style="width: 150px;margin-right: 20px;">
<el-option label="全部"
value=""></el-option>
<el-option label="流水明细"
value="1"></el-option>
<el-option label="回单"
value="2"></el-option>
</el-select>
<el-select v-model="searchForm.jdSyncStatus"
placeholder="请选择"
clearable
style="width: 150px;">
<el-option label="全部"
value=""></el-option>
<el-option v-for="(item, index) in baseData.jdSyncOpt"
:key="index"
:label="item.confValue"
:value="item.confId">
</el-option>
</el-select>
</div>
<!-- 交易金额 --> <!-- 交易金额 -->
<div slot="transactionMoneyHtml"> <div slot="transactionMoneyHtml">
<input-range start-placeholder="最小金额" <input-range start-placeholder="最小金额"
...@@ -84,7 +110,7 @@ ...@@ -84,7 +110,7 @@
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
// import { rangePickerOptions } from '@/common/format' // import { rangePickerOptions } from '@/common/format'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { cdSignOpt, jdSyncOpt, receiptStatusOpt } from '@/common/constants.js' import { cdSignOpt, jdSyncOpt, receiptStatusOpt, dataSourceOpt } from '@/common/constants.js'
import { nbcbAccDetailPage, nbcbAccDetailConfig, nbcbAccDetailBatchSync, nbcbReceiptPdfUrl } from '@api/theAssetData' import { nbcbAccDetailPage, nbcbAccDetailConfig, nbcbAccDetailBatchSync, nbcbReceiptPdfUrl } from '@api/theAssetData'
import inputRange from './components/inputRange' import inputRange from './components/inputRange'
import refetchDialog from './components/refetchDialog' import refetchDialog from './components/refetchDialog'
...@@ -116,7 +142,11 @@ export default { ...@@ -116,7 +142,11 @@ export default {
postScript: '', postScript: '',
jdSync: '', jdSync: '',
transactionTime: '', transactionTime: '',
receiptStatus: '' receiptStatus: '',
receiptJdSync: '',
jdSyncType: '',
jdSyncStatus: '',
dataSource: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
showFormData: [{ showFormData: [{
...@@ -179,10 +209,6 @@ export default { ...@@ -179,10 +209,6 @@ export default {
optionLabel: 'curName', optionLabel: 'curName',
optionsName: 'curCodeList' optionsName: 'curCodeList'
}, { }, {
label: '交易金额',
name: 'transactionMoney',
addHtml: "transactionMoneyHtml"
}, {
label: '收支标志', label: '收支标志',
name: 'cdSign', name: 'cdSign',
type: 'select', type: 'select',
...@@ -197,15 +223,21 @@ export default { ...@@ -197,15 +223,21 @@ export default {
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
isClear: true isClear: true
}, { },
// {
// label: '同步状态',
// name: 'jdSync',
// type: 'select',
// isClear: true,
// optionList: [],
// optionId: 'confId',
// optionLabel: 'confValue',
// optionsName: 'jdSyncOpt'
// },
{
label: '同步状态', label: '同步状态',
name: 'jdSync', name: 'jdSyncStatus',
type: 'select', addHtml: "jdSyncStatusHtml"
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'jdSyncOpt'
}, { }, {
label: '交易时间', label: '交易时间',
name: 'transactionTime', name: 'transactionTime',
...@@ -222,6 +254,19 @@ export default { ...@@ -222,6 +254,19 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confValue', optionLabel: 'confValue',
optionsName: 'receiptStatusOpt' optionsName: 'receiptStatusOpt'
}, {
label: '数据来源',
name: 'dataSource',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'dataSourceOpt'
}, {
label: '交易金额',
name: 'transactionMoney',
addHtml: "transactionMoneyHtml"
}], }],
getListApi: nbcbAccDetailPage, getListApi: nbcbAccDetailPage,
tableParams: { tableParams: {
...@@ -299,9 +344,9 @@ export default { ...@@ -299,9 +344,9 @@ export default {
return this.baseData.receiptStatusOpt.find(item => item.confId === cellValue.receiptStatus)?.confValue return this.baseData.receiptStatusOpt.find(item => item.confId === cellValue.receiptStatus)?.confValue
} }
}, { }, {
label: '同步状态', label: '同步状态(流水明细)',
prop: 'jdSync', prop: 'jdSync',
width: '100px', width: '150px',
formatter: (cellValue) => { formatter: (cellValue) => {
return this.baseData.jdSyncOpt.find(item => item.confId === cellValue.jdSync)?.confValue return this.baseData.jdSyncOpt.find(item => item.confId === cellValue.jdSync)?.confValue
}, },
...@@ -311,6 +356,26 @@ export default { ...@@ -311,6 +356,26 @@ export default {
1: 'greenSpot' 1: 'greenSpot'
}[cellValue.jdSync] }[cellValue.jdSync]
} }
}, {
label: '同步状态(回单)',
prop: 'receiptJdSync',
width: '150px',
formatter: (cellValue) => {
return this.baseData.jdSyncOpt.find(item => item.confId === cellValue.receiptJdSync)?.confValue
},
className: (cellValue) => {
return {
0: 'redSpot',
1: 'greenSpot'
}[cellValue.receiptJdSync]
}
}, {
label: '数据来源',
prop: 'dataSource',
width: '100px',
formatter: (cellValue) => {
return this.baseData.dataSourceOpt.find(item => item.confId === cellValue.dataSource)?.confValue
}
} }
] ]
}, },
...@@ -323,6 +388,7 @@ export default { ...@@ -323,6 +388,7 @@ export default {
cdSignOpt: deepClone(cdSignOpt), cdSignOpt: deepClone(cdSignOpt),
jdSyncOpt: deepClone(jdSyncOpt), jdSyncOpt: deepClone(jdSyncOpt),
receiptStatusOpt: deepClone(receiptStatusOpt), receiptStatusOpt: deepClone(receiptStatusOpt),
dataSourceOpt: deepClone(dataSourceOpt)
}, },
recordInfo: null, recordInfo: null,
...@@ -368,6 +434,16 @@ export default { ...@@ -368,6 +434,16 @@ export default {
delete this.searchFormSearch.amtMin delete this.searchFormSearch.amtMin
delete this.searchFormSearch.amtMax delete this.searchFormSearch.amtMax
} }
if (this.searchFormSearch.jdSyncType == '1') {
this.searchFormSearch.jdSync = this.searchFormSearch.jdSyncStatus
} else if (this.searchFormSearch.jdSyncType == '2') {
this.searchFormSearch.receiptJdSync = this.searchFormSearch.jdSyncStatus
} else {
delete this.searchFormSearch.jdSync
delete this.searchFormSearch.receiptJdSync
}
delete this.searchFormSearch.jdSyncType
delete this.searchFormSearch.jdSyncStatus
resolve() resolve()
}) })
}, },
...@@ -394,9 +470,9 @@ export default { ...@@ -394,9 +470,9 @@ export default {
selectableFn(row, index) { selectableFn(row, index) {
var isSelect = true var isSelect = true
if (row.jdSync == 1) { // 已同步不可勾选 // if (row.jdSync == 1) { // 已同步不可勾选
isSelect = false // isSelect = false
} // }
return isSelect return isSelect
}, },
...@@ -417,7 +493,11 @@ export default { ...@@ -417,7 +493,11 @@ export default {
postScript: '', postScript: '',
jdSync: '', jdSync: '',
transactionTime: '', transactionTime: '',
receiptStatus: '' receiptStatus: '',
receiptJdSync: '',
jdSyncType: '',
jdSyncStatus: '',
dataSource: ''
} }
this.$refs.recordTable.refreshTable(false, true) this.$refs.recordTable.refreshTable(false, true)
}, },
...@@ -545,7 +625,37 @@ export default { ...@@ -545,7 +625,37 @@ export default {
}) })
} }
}) })
// window.open('http://qcimg01.glsx.com.cn:7060/group1/M00/07/46/wKgD3mdD9oaARUE4AABxS-wgZWk991.pdf') },
// 资金日报导出
handleFundExport() {
var params = deepClone(this.searchFormSearch)
if (params.accNameList.length > 0) {
params.accNameList.forEach((item, index) => {
const name = `accNameList[${index}]`
params[name] = item
})
delete params.accNameList
}
// console.log(params)
// 去除为null的值
for (const key in params) {
// console.log(params[key])
if (params[key] === null || params[key] === '' || params[key].length == 0) {
delete params[key]
}
}
params.method = 'dj.smartcarlife.api.nbcb.acc.financial.report.download'
const list = [
...this.dowloadList,
{
name: '资金日报导出',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
} }
} }
......
...@@ -8862,6 +8862,11 @@ pretty@2.0.0: ...@@ -8862,6 +8862,11 @@ pretty@2.0.0:
extend-shallow "^2.0.1" extend-shallow "^2.0.1"
js-beautify "^1.6.12" js-beautify "^1.6.12"
print-js@^1.6.0:
version "1.6.0"
resolved "https://registry.npmmirror.com/print-js/-/print-js-1.6.0.tgz#692b046cf31992b46afa6c6d8a9db1c69d431d1f"
integrity sha512-BfnOIzSKbqGRtO4o0rnj/K3681BSd2QUrsIZy/+WdCIugjIswjmx3lDEZpXB2ruGf9d4b3YNINri81+J0FsBWg==
printj@~1.1.0: printj@~1.1.0:
version "1.1.2" version "1.1.2"
resolved "https://registry.npmjs.org/printj/-/printj-1.1.2.tgz" resolved "https://registry.npmjs.org/printj/-/printj-1.1.2.tgz"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!