This commit is contained in:
linfso 2024-08-11 10:49:29 +08:00
parent 98790ce609
commit aa267b2815
6 changed files with 57 additions and 13 deletions

View File

@ -12,6 +12,9 @@
<i class="el-icon-bell"></i> <i class="el-icon-bell"></i>
</el-badge> </el-badge>
</div> </div>
<div class="wrap">
<audio id="audioMusic" class="audio" src="/static/tone/notifyTone2.mp3" controls autoplay="autoplay" hidden="true" ref="audio"></audio>
</div>
</div> </div>
<el-tabs v-model="active"> <el-tabs v-model="active">
<!-- <el-tab-pane name="notice" :label="noticeLabel"> --> <!-- <el-tab-pane name="notice" :label="noticeLabel"> -->
@ -72,6 +75,8 @@ export default {
}, },
mounted() { mounted() {
this.initXDNoticSdk(); this.initXDNoticSdk();
window.addEventListener("click", this.musicAutoPlay);
// this.notice(); // this.notice();
// const wsuri = this.url; // const wsuri = this.url;
@ -100,6 +105,15 @@ export default {
// }; // };
}, },
methods: { methods: {
musicAutoPlay() {
this.isPlay = true;
},
latestSecurityIncidents() {
//同时 触发提示音
if (this.isPlay){
document.getElementById('audioMusic').play();
}
},
initXDNoticSdk(){ initXDNoticSdk(){
this.xdNoticSdk = this.$xdNoticeSdk; this.xdNoticSdk = this.$xdNoticeSdk;
const userId=this.$store.getters.userId; const userId=this.$store.getters.userId;

View File

@ -7,7 +7,7 @@
<ChargeBillMoneyPanel key="billList" @onSelect="onSelectBill"> </ChargeBillMoneyPanel> <ChargeBillMoneyPanel key="billList" @onSelect="onSelectBill"> </ChargeBillMoneyPanel>
</el-tab-pane> </el-tab-pane>
<el-tab-pane v-for="(item, index) in billTabs" :key="index" :name="item.settleBillNo" :label="'账单:'+item.settleBillNo" closable > <el-tab-pane v-for="(item, index) in billTabs" :key="index" :name="item.settleBillNo" :label="'账单:'+item.settleBillNo" closable >
<BillDetailPanel :key="'Detail_'+index" :settleBillNo="item.settleBillNo"></BillDetailPanel> <BillDetailPanelReadOnly :key="'Detail_'+index" :settleBillNo="item.settleBillNo"></BillDetailPanelReadOnly>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@ -19,14 +19,14 @@
<script> <script>
import ChargeBillMoneyPanel from '@/views/emis/emisSettleBill/panel/ChargeBillMoneyPanel.vue'; import ChargeBillMoneyPanel from '@/views/emis/emisSettleBill/panel/ChargeBillMoneyPanel.vue';
import BillDetailPanel from '@/views/emis/emisSettleBill/panel/BillDetailPanel.vue'; import BillDetailPanelReadOnly from '@/views/emis/emisSettleBill/panel/BillDetailPanelReadOnly.vue';
export default { export default {
name: "ChargeBillMoneyList", name: "ChargeBillMoneyList",
components: { components: {
ChargeBillMoneyPanel, ChargeBillMoneyPanel,
BillDetailPanel BillDetailPanelReadOnly
}, },
dicts: [ dicts: [
], ],

View File

@ -7,7 +7,7 @@
<ChargeBillMonthPanel @onSelect="onSelectBill"> </ChargeBillMonthPanel> <ChargeBillMonthPanel @onSelect="onSelectBill"> </ChargeBillMonthPanel>
</el-tab-pane> </el-tab-pane>
<el-tab-pane v-for="(item, index) in billTabs" :key="index" :name="item.settleBillNo" :label="'账单:'+item.settleBillNo" closable > <el-tab-pane v-for="(item, index) in billTabs" :key="index" :name="item.settleBillNo" :label="'账单:'+item.settleBillNo" closable >
<BillDetailPanel :settleBillNo="item.settleBillNo"></BillDetailPanel> <BillDetailPanelReadOnly :settleBillNo="item.settleBillNo"></BillDetailPanelReadOnly>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@ -16,14 +16,14 @@
<script> <script>
import ChargeBillMonthPanel from '@/views/emis/emisSettleBill/panel/ChargeBillMonthPanel.vue'; import ChargeBillMonthPanel from '@/views/emis/emisSettleBill/panel/ChargeBillMonthPanel.vue';
import BillDetailPanel from '@/views/emis/emisSettleBill/panel/BillDetailPanel.vue'; import BillDetailPanelReadOnly from '@/views/emis/emisSettleBill/panel/BillDetailPanel.vue';
export default { export default {
name: "ChargeBillMonthList", name: "ChargeBillMonthList",
components: { components: {
ChargeBillMonthPanel, ChargeBillMonthPanel,
BillDetailPanel BillDetailPanelReadOnly
}, },
dicts: [ dicts: [
], ],

View File

@ -286,8 +286,10 @@ export default {
openForm: false, openForm: false,
titleForm: "", titleForm: "",
queryCode:null,
queryOrderType:null, queryOrderType:null,
subBillTotal: 0, subBillTotal: 0,
// 结算子账单表格数据 // 结算子账单表格数据
emisSettleSubBillList: [], emisSettleSubBillList: [],
@ -374,14 +376,19 @@ export default {
this.loading = true; this.loading = true;
// 按运单查询时的处理 // 按运单查询时的处理
if(this.queryOrderType==1){ if(this.queryOrderType=='1'){
this.queryParams.params.billCode=this.queryParams.settleBillNo; this.queryParams.params.billCode=this.queryParams.queryCode;
this.queryParams.settleBillNo=null; this.queryParams.settleBillNo=null;
} }
else if(this.queryOrderType=='2'){
this.queryParams.params.billCode=null;
this.queryParams.settleBillNo=this.queryParams.queryCode;
}
// 必须业务已确认后才可以做收款和开票 // 必须业务已确认后才可以做收款和开票
this.queryParams.blSiteConfirm="1" this.queryParams.blSiteConfirm="1"
listEmisSettleBill(this.addDateRange(this.queryParams, this.dateTimeRange)).then(response => { listEmisSettleBill(this.addDateRange(this.queryParams, this.dateTimeRange)).then(response => {
this.emisSettleBillList = response.rows; this.emisSettleBillList = response.rows;
this.total = response.total; this.total = response.total;

View File

@ -182,14 +182,25 @@
<el-table-column :label="$t('账单名称')" align="center" prop="settleBillName" min-width="100" :show-overflow-tooltip="true"/> <el-table-column :label="$t('账单名称')" align="center" prop="settleBillName" min-width="100" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('发票文件')" align="center" prop="filePath" min-width="170" :show-overflow-tooltip="true"> <el-table-column :label="$t('发票文件')" align="center" prop="filePath" min-width="170" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <!-- <el-button
v-if="scope.row.invoiceStatus=='2'" v-if="scope.row.invoiceStatus=='2'"
type="primary" type="primary"
plain plain
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleDownPDF(scope.row)" @click="handleDownPDF(scope.row)"
>下载发票</el-button> >下载发票</el-button> -->
<el-link
v-if="scope.row.invoiceStatus=='2'"
type="primary" style="line-height: 28px;font-size:13px;color:blue" @click="handleDownPDF(scope.row)" >
下载发票
</el-link>
<el-link
v-if="scope.row.invoiceStatus=='2'"
type="primary" style="line-height: 28px;font-size:13px;color:blue" @click="handleDownPDF(scope.row)" >
复制发票地址
</el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('开票状态')" align="center" prop="invoiceStatus" width="100" > <el-table-column :label="$t('开票状态')" align="center" prop="invoiceStatus" width="100" >

View File

@ -94,12 +94,12 @@
@click="handleDelete" @click="handleDelete"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<!-- <el-col :span="1.5"> <el-col :span="1.5">
<el-button plain class="filter-item" size="mini" type="primary" icon="el-icon-upload2" @click="handleBatchImport">导入</el-button> <el-button plain class="filter-item" size="mini" type="primary" icon="el-icon-upload2" @click="handleBatchImport">导入</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<a href="/static/tpl/转件管理导出模板.xlsx" style="color: blue;font-weight: 600;font-size:13px;text-decoration: underline">下载导入模版</a> <a href="/static/tpl/转件管理导出模板.xlsx" style="color: blue;font-weight: 600;font-size:13px;text-decoration: underline">下载导入模版</a>
</el-col> --> </el-col>
</el-row> </el-row>
</div> </div>
@ -550,13 +550,25 @@ export default {
// 组装提交的数据 // 组装提交的数据
for (let index = 0; index < results.length; index++) { for (let index = 0; index < results.length; index++) {
const element = results[index] const element = results[index]
// 判断转件公司是否正确
let transferExpressLabel=element['转件公司'];
let expressCodeItem=this.dict.type.emis_express_code.find(item=>item.label==transferExpressLabel);
if(!expressCodeItem){
this.$modal.msgError("转件公司:"+transferExpressLabel+" 名称不存在!");
loadingInstance.close();
return;
}
let transferExpress=expressCodeItem.value;
let orderData={ let orderData={
billCode: element['运单号'], billCode: element['运单号'],
transferBillCode: element['转件单号'], transferBillCode: element['转件单号'],
// transferDate2: element['转件时间'], // transferDate2: element['转件时间'],
transferDate: parseTime(new Date(element['转件时间'])), transferDate: parseTime(new Date(element['转件时间'])),
transferCity: element['目的城市'], transferCity: element['目的城市'],
transferExpress: element['转件公司'], transferExpress: transferExpress,
linkMan:element['联系人'], linkMan:element['联系人'],
linkPhone:element['联系电话'], linkPhone:element['联系电话'],
transferWeight: element['重量'], transferWeight: element['重量'],