|
@@ -5,27 +5,28 @@
|
|
|
<div class="right">
|
|
|
<el-date-picker class="date-select" size="small" style="margin: 0 10px 0 0" value-format="yyyy-MM-dd"
|
|
|
v-model="value2" @change="datechange" type="daterange" align="right" unlink-panels range-separator="至"
|
|
|
- start-placeholder="结算时间起" end-placeholder="结算时间止">
|
|
|
+ start-placeholder="结算时间起" end-placeholder="结算时间止" :picker-options="pickerOptions">
|
|
|
</el-date-picker>
|
|
|
- <el-button type='primary' @click='addRecord'>生成代储记录</el-button>
|
|
|
+ <!-- -->
|
|
|
+ <el-button type='primary' @click='addRecord' v-if="isSHowAddRecordBtn">生成代储记录</el-button>
|
|
|
<el-button type="primary" @click="exportlist"
|
|
|
- v-hasPermission="`contractManagement.dsContract.dsContractInfo.export`">导出
|
|
|
+ v-hasPermission="`contractManagement.dsContract.dsContractInfo.export`" v-if="isSHowExportBtn">导出
|
|
|
</el-button>
|
|
|
<el-button type="primary" @click="collectMoney"
|
|
|
- v-hasPermission="`contractManagement.dsContract.dsContractInfo.shou`">收费
|
|
|
+ v-hasPermission="`contractManagement.dsContract.dsContractInfo.shou`" v-if="isSHowExportBtn">收费
|
|
|
</el-button>
|
|
|
- <el-button type='primary' @click='collectMoneyRecord'>收费记录</el-button>
|
|
|
+ <el-button type='primary' @click='collectMoneyRecord' v-if="isSHowExportBtn">收费记录</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content-top">
|
|
|
- <div class="content-top-item">合同编号:{{topThreeData.contractNo}}</div>
|
|
|
- <div class="content-top-item">买方:{{topThreeData.buyer}}</div>
|
|
|
- <div class="content-top-item">合同量:{{topThreeData.weight}}</div>
|
|
|
- <div class="content-top-item">已完成量:{{topThreeData.completed}}</div>
|
|
|
- <div class="content-top-item">应收代储费:{{topThreeData.agencyCharge}}</div>
|
|
|
- <div class="content-top-item">已收代储费:{{topThreeData.agencyCharge}}</div>
|
|
|
+ <div class="content-top-item">合同编号:{{routeData.contractNo}}</div>
|
|
|
+ <div class="content-top-item">买方:{{routeData.buyer}}</div>
|
|
|
+ <div class="content-top-item">合同量:{{routeData.weight}}</div>
|
|
|
+ <div class="content-top-item">已完成量:{{routeData.completedQuantity}}</div>
|
|
|
+ <div class="content-top-item">应收代储费:{{routeData.total}}</div>
|
|
|
+ <div class="content-top-item">已收代储费:{{routeData.received}}</div>
|
|
|
</div>
|
|
|
- <div v-if="isShowRecord">
|
|
|
+ <div v-show="isShowRecord">
|
|
|
<el-table :data="recordList" ref="table" style="width: 100%; margin-top: 20px" border height="calc(100% - 190px)">
|
|
|
<el-table-column type="index" label="序号">
|
|
|
<template scope="scope">
|
|
@@ -34,12 +35,12 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column class="table_td" prop="goodsName" label="货名"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="inDate" label="入库日期" width="150"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="netWeight" label="当日入库量(吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="netWeight" label="当日出库量(吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="netWeight" label="当日计费储量(吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="unitHave" label="代储费(元/吨天)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="amountIngPayable" label="应付(元)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="storageFeeDate" label="日期" width="150"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="storageVolume" label="当日入库量(吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="deliveryVolume" label="当日出库量(吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="dailyBillingReserves" label="当日计费储量(吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="storageFee" label="代储费(元/吨天)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="receivable" label="应收(元)"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="collectionEdPayable" label="操作" width="300">
|
|
|
<template scope="scope">
|
|
|
<el-button @click="storageFeeLook(scope.row)">代储费</el-button>
|
|
@@ -55,20 +56,21 @@
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
<!-- 修改代储费 -->
|
|
|
- <el-dialog :visible.sync="editStorageFee" :append-to-body="true" title="修改代储费" class="sk-dialog" width="400px!important">
|
|
|
+ <el-dialog :visible.sync="editStorageFee" :append-to-body="true" title="修改代储费" class="sk-dialog"
|
|
|
+ width="400px!important">
|
|
|
<div class="sf-dialog">
|
|
|
<div class="row">
|
|
|
<div class="left">代储费(元/吨·天)</div>
|
|
|
<div class="right">
|
|
|
- <el-input type="number" @mousewheel.native.prevent v-model="collectionments.money"
|
|
|
- placeholder="请输入代储费" maxlength="100" size="small" />
|
|
|
+ <el-input type="number" @mousewheel.native.prevent v-model="editRecordObj.storageFee" placeholder="请输入代储费"
|
|
|
+ maxlength="100" size="small" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="left">起用日期</div>
|
|
|
<div class="right">
|
|
|
- <el-input type="number" @mousewheel.native.prevent v-model="collectionments.money" placeholder=""
|
|
|
- maxlength="100" size="small" disabled />
|
|
|
+ <el-input type="text" @mousewheel.native.prevent v-model="recordObj.storageFeeStartdate" placeholder=""
|
|
|
+ maxlength="100" size="small" disabled />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row row-last">
|
|
@@ -78,20 +80,21 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 入库 -->
|
|
|
- <el-dialog :visible.sync="editWarehousing" :append-to-body="true" title="修改入库量" class="sk-dialog" width="400px!important">
|
|
|
+ <el-dialog :visible.sync="editWarehousing" :append-to-body="true" title="修改入库量" class="sk-dialog"
|
|
|
+ width="400px!important">
|
|
|
<div class="sf-dialog">
|
|
|
<div class="row">
|
|
|
<div class="left">当日入库量(吨)</div>
|
|
|
<div class="right">
|
|
|
- <el-input type="number" @mousewheel.native.prevent v-model="collectionments.money"
|
|
|
+ <el-input type="number" @mousewheel.native.prevent v-model="editWarehousingObj.storageVolume"
|
|
|
placeholder="请输入入库量" maxlength="100" size="small" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="left">入库日期</div>
|
|
|
<div class="right">
|
|
|
- <el-input type="number" @mousewheel.native.prevent v-model="collectionments.money" placeholder=""
|
|
|
- maxlength="100" size="small" disabled />
|
|
|
+ <el-input type="text" @mousewheel.native.prevent v-model="rowData.storageFeeDate" placeholder=""
|
|
|
+ maxlength="100" size="small" disabled />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row row-last">
|
|
@@ -107,28 +110,28 @@
|
|
|
<div class="row">
|
|
|
<div class="left">代储费(元/吨·天)</div>
|
|
|
<div class="right">
|
|
|
- <el-input type="number" @mousewheel.native.prevent v-model="collectionments.money" placeholder=""
|
|
|
+ <el-input type="number" @mousewheel.native.prevent v-model="recordObj.storageFee" placeholder=""
|
|
|
maxlength="100" size="small" disabled />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="left">起算日期</div>
|
|
|
<div class="right">
|
|
|
- <el-input type="number" @mousewheel.native.prevent v-model="collectionments.money" placeholder=""
|
|
|
+ <el-input type="text" @mousewheel.native.prevent v-model="recordObj.storageFeeStartdate" placeholder=""
|
|
|
maxlength="100" size="small" disabled />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
- <div class="left">起算日期</div>
|
|
|
+ <div class="left">预计截止日期</div>
|
|
|
<div class="right">
|
|
|
- <el-input type="number" @mousewheel.native.prevent v-model="collectionments.money" placeholder=""
|
|
|
+ <el-input type="text" @mousewheel.native.prevent v-model="recordObj.storageFeeEnddate" placeholder=""
|
|
|
maxlength="100" size="small" disabled />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="left">起算重量(吨)</div>
|
|
|
<div class="right">
|
|
|
- <el-input type="number" @mousewheel.native.prevent v-model="collectionments.money" placeholder=""
|
|
|
+ <el-input type="number" @mousewheel.native.prevent v-model="recordObj.storageFeeWeight" placeholder=""
|
|
|
maxlength="100" size="small" disabled />
|
|
|
</div>
|
|
|
</div>
|
|
@@ -144,15 +147,14 @@
|
|
|
<div class="row">
|
|
|
<div class="left">金额(元)</div>
|
|
|
<div class="right">
|
|
|
- <el-input type="number" @mousewheel.native.prevent v-model="collectionments.money"
|
|
|
+ <el-input type="number" @mousewheel.native.prevent v-model="chargeObj.amountMoney"
|
|
|
placeholder="请输入本次收款金额(元)" maxlength="100" size="small" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="left">收款日期</div>
|
|
|
<div class="right">
|
|
|
- <el-date-picker v-model="collectionments.collectionDate" type="date" placeholder="选择日期"></el-date-picker>
|
|
|
- </el-form-item>
|
|
|
+ <el-date-picker v-model="chargeObj.collectionDate" type="date" placeholder="选择日期"></el-date-picker>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
@@ -173,22 +175,23 @@
|
|
|
</el-dialog>
|
|
|
<!-- 收费记录 -->
|
|
|
<el-dialog :visible.sync="dialogVisible" title="收费记录" class="sfjl-dialog">
|
|
|
- <el-table :data="recordList" ref="table" style="width: 100%; margin-top: 20px" border height="calc(100% - 190px)">
|
|
|
+ <el-table :data="sfRecordList" ref="table" style="width: 100%; margin-top: 20px" border
|
|
|
+ height="calc(100% - 190px)">
|
|
|
<el-table-column type="index" label="序号">
|
|
|
<template scope="scope">
|
|
|
<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column class="table_td" prop="goodsName" label="金额(元)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="inDate" label="收费日期"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="inDate" label="操作日期"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="unitHave" label="操作人"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="addressUrl" label="附件">
|
|
|
+ <el-table-column class="table_td" prop="amountMoney" label="金额(元)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="collectionDate" label="收费日期"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="updateDate" label="操作日期"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="operator" label="操作人"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="collectionScreenshot" label="附件">
|
|
|
<template slot-scope="scope">
|
|
|
<img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
|
|
|
- <span v-if="scope.row.addressUrlArray != null">
|
|
|
+ <span v-if="scope.row.addressUrlArray != null">00
|
|
|
{{scope.row.addressUrlArray.length == 0? "":scope.row.addressUrlArray.length}}
|
|
|
</span>
|
|
|
</template>
|
|
@@ -197,62 +200,95 @@
|
|
|
|
|
|
<WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')"
|
|
|
@on-cancel="handleClose">
|
|
|
- <ws-upload ref="upload" :size-limit="2" @onChange="onChange" :comp-id="compId" :appendix-ids="appendixIdss"
|
|
|
- accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
|
|
|
+ <div class="image-list">
|
|
|
+ <el-image v-for="(item,index) in fjImageList" style="width: 100px; height: 100px" :src="item" fit="fill"
|
|
|
+ :preview-src-list="fjImageList"></el-image>
|
|
|
+ </div>
|
|
|
</WinseaContentModal>
|
|
|
<div class="close-sfju-dialog">
|
|
|
- <el-button type='primary' @click='dialogVisible=false'>关闭</el-button>
|
|
|
+ <el-button type='primary' @click='dialogVisible=false'>关闭</el-button>
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+ // import {
|
|
|
+ // dayjs,
|
|
|
+ // EventBus
|
|
|
+ // } from 'base-core-lib'
|
|
|
+ // import {
|
|
|
+ // downloadFile
|
|
|
+ // } from '@/utils/batchDown'
|
|
|
+ // import JSZip from 'jszip'
|
|
|
+ // import FileSaver from 'file-saver'
|
|
|
import {
|
|
|
- dayjs,
|
|
|
- EventBus
|
|
|
- } from 'base-core-lib'
|
|
|
- import {
|
|
|
- downloadFile
|
|
|
- } from '@/utils/batchDown'
|
|
|
- import JSZip from 'jszip'
|
|
|
- import FileSaver from 'file-saver'
|
|
|
- import {
|
|
|
- selectCollectionWarehousingRecordPage,
|
|
|
- insertCollectionWarehousingRecord,
|
|
|
- selectIdentityByCard,
|
|
|
- editCollectionWarehousingRecord,
|
|
|
- deleteCollectionWarehousingRecord,
|
|
|
- exportCollectionWarehousingRecord,
|
|
|
- payMoney,
|
|
|
- collectMoneyApi,
|
|
|
- invoicing
|
|
|
+ // selectCollectionWarehousingRecordPage,
|
|
|
+ // insertCollectionWarehousingRecord,
|
|
|
+ // selectIdentityByCard,
|
|
|
+ // editCollectionWarehousingRecord,
|
|
|
+ // deleteCollectionWarehousingRecord,
|
|
|
+ // exportCollectionWarehousingRecord,
|
|
|
+ // payMoney,
|
|
|
+ // collectMoneyApi,
|
|
|
+ // invoicing
|
|
|
+ storageFeeRecordList,
|
|
|
+ addStorageFeeRecord,
|
|
|
+ editStorageRecordInfo,
|
|
|
+ storageFeeRecordCharge,
|
|
|
+ feeRecord
|
|
|
} from '@/model/contarct/index'
|
|
|
- import {
|
|
|
- selectWarehouseSelf,
|
|
|
- getCustomerManage,
|
|
|
- getCustomerLook,
|
|
|
- } from '@/model/houseSelfCollect/index'
|
|
|
- import {
|
|
|
- posthandle,
|
|
|
- postqueryhandle
|
|
|
- } from '@/model/purchasingManagement/index'
|
|
|
- import paymentPrint from './component/paymentPrint.vue'
|
|
|
- import {
|
|
|
- getHp
|
|
|
- } from '@/utils/getHasPermission'
|
|
|
+ // import {
|
|
|
+ // selectWarehouseSelf,
|
|
|
+ // getCustomerManage,
|
|
|
+ // getCustomerLook,
|
|
|
+ // } from '@/model/houseSelfCollect/index'
|
|
|
+ // import {
|
|
|
+ // posthandle,
|
|
|
+ // postqueryhandle
|
|
|
+ // } from '@/model/purchasingManagement/index'
|
|
|
+ // import paymentPrint from './component/paymentPrint.vue'
|
|
|
+ // import {
|
|
|
+ // getHp
|
|
|
+ // } from '@/utils/getHasPermission'
|
|
|
import download from '../../components/WsDownload/download'
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
|
export default {
|
|
|
components: {
|
|
|
- paymentPrint,
|
|
|
WsUpload
|
|
|
},
|
|
|
watch: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- editWarehousing:false,
|
|
|
- editStorageFee:false,
|
|
|
+ fjImageList:[],
|
|
|
+ sfRecordList: [],
|
|
|
+ rowData: {},
|
|
|
+ //公司id,合同id,金额,收费截图,收费日期,操作人
|
|
|
+ chargeObj: {
|
|
|
+ compId: '',
|
|
|
+ contractId: '',
|
|
|
+ amountMoney: '',
|
|
|
+ collectionScreenshot: '',
|
|
|
+ collectionDate: "",
|
|
|
+ operator: '',
|
|
|
+ },
|
|
|
+ editWarehousingObj: {
|
|
|
+ id: '',
|
|
|
+ storageVolume: '',
|
|
|
+ },
|
|
|
+ editRecordObj: {
|
|
|
+ id: '',
|
|
|
+ storageFee: '',
|
|
|
+ flag: 1
|
|
|
+ },
|
|
|
+ pickerOptions: {},
|
|
|
+ isSHowExportBtn: false,
|
|
|
+ isSHowAddRecordBtn: false,
|
|
|
+ recordObj: {
|
|
|
+ storageFeeStartdate: ''
|
|
|
+ },
|
|
|
+ editWarehousing: false,
|
|
|
+ editStorageFee: false,
|
|
|
addRecoredDialog: false,
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
|
id: '',
|
|
@@ -261,20 +297,9 @@
|
|
|
isShowRecord: false,
|
|
|
isShowPrintType: false,
|
|
|
collectForm: false,
|
|
|
- topThreeData: {},
|
|
|
+ routeData: {},
|
|
|
// viewLock: false,
|
|
|
-
|
|
|
formLabelWidth: '300px',
|
|
|
- deleteshow: false,
|
|
|
- customerlist: {
|
|
|
- payeeAddressUrls: [],
|
|
|
- },
|
|
|
- customerList: {
|
|
|
- customerName: '',
|
|
|
- customerNumberCard: '',
|
|
|
- bankCard: '',
|
|
|
- bankDeposit: '',
|
|
|
- },
|
|
|
selectCustomerList: [],
|
|
|
// selectPrintList: [],
|
|
|
identity: [],
|
|
@@ -288,25 +313,15 @@
|
|
|
searchType: '',
|
|
|
searchTypeText: '',
|
|
|
searchKeyWord: '',
|
|
|
- // warehouseList: [],
|
|
|
- // warehouseNameKey: '',
|
|
|
- // warehouseName: '',
|
|
|
+
|
|
|
isShowPrint: false,
|
|
|
printData: {},
|
|
|
warehouse: [],
|
|
|
disabled: false,
|
|
|
- // dialogImageUrl: '',
|
|
|
dialogVisible: false,
|
|
|
value1: '', //付款日期
|
|
|
modification: [],
|
|
|
userJurisdiction: true,
|
|
|
- payments: {
|
|
|
- amountNotPayable: 0,
|
|
|
- paymentDate: '',
|
|
|
- },
|
|
|
- collectionments: {
|
|
|
- collectionmentDate: '',
|
|
|
- },
|
|
|
showPayImgs: false,
|
|
|
isShowAdopt: false,
|
|
|
//上传截图路径
|
|
@@ -314,37 +329,48 @@
|
|
|
payImg: [],
|
|
|
rowData: {},
|
|
|
value2: [],
|
|
|
- date: {
|
|
|
- year: dayjs().format('YYYY'),
|
|
|
- month: dayjs().format('MM'),
|
|
|
- },
|
|
|
}
|
|
|
},
|
|
|
- activated() {
|
|
|
- this.topThreeData = {
|
|
|
+ destroyed: function() {
|
|
|
+ debugger
|
|
|
+ this.editWarehousing = false
|
|
|
+ this.editStorageFee = false
|
|
|
+ this.addRecoredDialog = false
|
|
|
+ this.isShowRecord = false
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ debugger
|
|
|
+ let that = this
|
|
|
+ this.routeData = {
|
|
|
contractNo: this.$route.query.contractNo,
|
|
|
compId: this.$route.query.compId,
|
|
|
buyer: this.$route.query.buyer,
|
|
|
- goodsName: this.$route.query.goodsName,
|
|
|
weight: this.$route.query.weight,
|
|
|
- completed: this.$route.query.completed,
|
|
|
- agencyCharge: this.$route.query.agencyCharge
|
|
|
+ completedQuantity: this.$route.query.completedQuantity,
|
|
|
+ total: this.$route.query.total,
|
|
|
+ received: this.$route.query.received,
|
|
|
+ storageFee: this.$route.query.storageFee,
|
|
|
+ storageFeeStartdate: this.$route.query.storageFeeStartdate,
|
|
|
+ storageFeeEnddate: this.$route.query.storageFeeEnddate,
|
|
|
+ storageFeeWeight: this.$route.query.storageFeeWeight,
|
|
|
+ }
|
|
|
+ this.recordObj = {
|
|
|
+ storageFee: this.$route.query.storageFee,
|
|
|
+ storageFeeStartdate: this.$route.query.storageFeeStartdate,
|
|
|
+ storageFeeEnddate: this.$route.query.storageFeeEnddate,
|
|
|
+ storageFeeWeight: this.$route.query.storageFeeWeight,
|
|
|
+ }
|
|
|
+ this.value2 = [this.$route.query.storageFeeStartdate, this.$route.query.storageFeeEnddate]
|
|
|
+ this.pickerOptions = {
|
|
|
+ disabledDate(time) {
|
|
|
+ return (time.getTime() < (new Date(that.recordObj.storageFeeStartdate).getTime() - 86400000)) || (time
|
|
|
+ .getTime() >
|
|
|
+ new Date(that.recordObj.storageFeeEnddate).getTime())
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
- this.userJurisdiction = getHp('acquisitionManagement.acquisitionPay.print')
|
|
|
- this.getPassYearFormatDate()
|
|
|
- // this.getWarehouse()
|
|
|
this.getList()
|
|
|
},
|
|
|
- updated() {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs['table'].doLayout()
|
|
|
- })
|
|
|
- },
|
|
|
methods: {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
handleChange(file, fileList) {
|
|
|
this.excelData = []
|
|
|
this.jjSelectPrintList = []
|
|
@@ -369,40 +395,41 @@
|
|
|
}
|
|
|
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
handleClose() {
|
|
|
// this.dialogViewSpareMoney = false
|
|
|
},
|
|
|
onChange() {
|
|
|
- this.$refs.upload
|
|
|
- .handleSaveBill()
|
|
|
- .then(async (response) => {
|
|
|
- this.deptBudgetList.addressUrl = response
|
|
|
- this.deptBudgetList.id = this.id
|
|
|
- this.deptBudgetList.flag = 1
|
|
|
- editInfo(this.deptBudgetList)
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.accessoryTFs = false
|
|
|
- this.$message.success('上传成功')
|
|
|
- this.getList()
|
|
|
- })
|
|
|
- })
|
|
|
- .catch((res) => {
|
|
|
- EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
- this.$refs.upload.clearFiles()
|
|
|
- })
|
|
|
+ // this.$refs.upload
|
|
|
+ // .handleSaveBill()
|
|
|
+ // .then(async (response) => {
|
|
|
+ // this.deptBudgetList.addressUrl = response
|
|
|
+ // this.deptBudgetList.id = this.id
|
|
|
+ // this.deptBudgetList.flag = 1
|
|
|
+ // editInfo(this.deptBudgetList)
|
|
|
+ // .toPromise()
|
|
|
+ // .then((response) => {
|
|
|
+ // this.accessoryTFs = false
|
|
|
+ // this.$message.success('上传成功')
|
|
|
+ // this.getList()
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // .catch((res) => {
|
|
|
+ // EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
+ // this.$refs.upload.clearFiles()
|
|
|
+ // })
|
|
|
},
|
|
|
// 收费记录附件
|
|
|
fujian(row) {
|
|
|
+ debugger
|
|
|
this.id = row.id
|
|
|
this.accessoryTFs = true
|
|
|
- this.appendixIdss = row.addressUrl
|
|
|
+ this.appendixIdss = row.collectionScreenshot
|
|
|
console.log(this.appendixIdss)
|
|
|
},
|
|
|
// 代储费
|
|
|
storageFeeLook(row) {
|
|
|
+ this.editRecordObj.id = row.id;
|
|
|
+ this.editRecordObj.storageFee = row.storageFee
|
|
|
this.editStorageFee = true
|
|
|
|
|
|
// this.customerInfo = true
|
|
@@ -411,60 +438,95 @@
|
|
|
},
|
|
|
// 入库
|
|
|
warehousingLook(row) {
|
|
|
+ this.rowData = row
|
|
|
+ this.editWarehousingObj = {
|
|
|
+ id: row.id,
|
|
|
+ storageVolume: row.storageVolume,
|
|
|
+ }
|
|
|
this.editWarehousing = true
|
|
|
+
|
|
|
// this.getCustomerNumberCard(row)
|
|
|
},
|
|
|
// 修改代储费
|
|
|
- editStorageFeeSubmit(){
|
|
|
-
|
|
|
+ editStorageFeeSubmit() {
|
|
|
+ editStorageRecordInfo(this.editRecordObj)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('修改成功!')
|
|
|
+ this.editStorageFee = false
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
},
|
|
|
// 修改入库量
|
|
|
- editWarehousingSubmit(){
|
|
|
-
|
|
|
+ editWarehousingSubmit() {
|
|
|
+ editStorageRecordInfo(this.editWarehousingObj)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('修改成功!')
|
|
|
+ this.editWarehousing = false
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
},
|
|
|
// 收费记录
|
|
|
collectMoneyRecord() {
|
|
|
+ feeRecord({
|
|
|
+ contractId: this.$route.query.contractId
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ debugger
|
|
|
+ this.sfRecordList = response
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
+ response[i].addressUrlArray = response[i].collectionScreenshot.split(',')
|
|
|
+ this.fjImageList = response[i].collectionScreenshot.split(',')
|
|
|
+ }
|
|
|
+ // this.$message.success('修改成功!')
|
|
|
+ // this.editWarehousing = false
|
|
|
+ // this.getList()
|
|
|
+ })
|
|
|
+
|
|
|
this.dialogVisible = true
|
|
|
},
|
|
|
// 终止,取消终止
|
|
|
stop(row) {
|
|
|
- this.$confirm(
|
|
|
- '确定取消终止,继续收费?',
|
|
|
- '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- }
|
|
|
- )
|
|
|
- .then(() => {
|
|
|
- // deleteCollectionWarehousingRecord({
|
|
|
- // id: row.id,
|
|
|
- // })
|
|
|
- // .toPromise()
|
|
|
- // .then((response) => {
|
|
|
- // this.$message.success('删除成功')
|
|
|
- // this.getList()
|
|
|
- // })
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
- })
|
|
|
- this.$confirm(
|
|
|
- '已达到预计终止日期,如需继续收费请前往合同修改终止日期?',
|
|
|
- '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- }
|
|
|
- )
|
|
|
- .then(() => {
|
|
|
+ // this.$confirm(
|
|
|
+ // '确定取消终止,继续收费?',
|
|
|
+ // '提示', {
|
|
|
+ // confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // type: 'warning',
|
|
|
+ // }
|
|
|
+ // )
|
|
|
+ // .then(() => {
|
|
|
+ // // deleteCollectionWarehousingRecord({
|
|
|
+ // // id: row.id,
|
|
|
+ // // })
|
|
|
+ // // .toPromise()
|
|
|
+ // // .then((response) => {
|
|
|
+ // // this.$message.success('删除成功')
|
|
|
+ // // this.getList()
|
|
|
+ // // })
|
|
|
+ // })
|
|
|
+ // .catch(() => {
|
|
|
+ // return false
|
|
|
+ // })
|
|
|
+ // this.$confirm(
|
|
|
+ // '已达到预计终止日期,如需继续收费请前往合同修改终止日期?',
|
|
|
+ // '提示', {
|
|
|
+ // confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // type: 'warning',
|
|
|
+ // }
|
|
|
+ // )
|
|
|
+ // .then(() => {
|
|
|
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
- })
|
|
|
+ // })
|
|
|
+ // .catch(() => {
|
|
|
+ // return false
|
|
|
+ // })
|
|
|
+ debugger
|
|
|
this.$confirm(
|
|
|
- '20XX-xx-xx之后将不在计费,是否确定终止?',
|
|
|
+ row.storageFeeDate+'之后将不在计费,是否确定终止?',
|
|
|
'提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
@@ -484,49 +546,16 @@
|
|
|
this.addRecoredDialog = true
|
|
|
},
|
|
|
|
|
|
- previewPayOrder(val) {
|
|
|
- this.paymentReceipt = val.paymentScreenshot
|
|
|
- this.isPreviewPayOrder = true
|
|
|
- console.log(val.paymentScreenshot)
|
|
|
+ // previewPayOrder(val) {
|
|
|
+ // this.paymentReceipt = val.paymentScreenshot
|
|
|
+ // this.isPreviewPayOrder = true
|
|
|
+ // console.log(val.paymentScreenshot)
|
|
|
|
|
|
- },
|
|
|
+ // },
|
|
|
// paymentReceiptClose() {},
|
|
|
datechange() {
|
|
|
this.getList()
|
|
|
},
|
|
|
- getPassYearFormatDate() {
|
|
|
- var nowDate = new Date()
|
|
|
- nowDate.setTime(nowDate.getTime() - 24 * 60 * 60 * 1000 * 30)
|
|
|
- var seperator1 = '-'
|
|
|
- var year = nowDate.getFullYear()
|
|
|
- var month = nowDate.getMonth() + 1
|
|
|
- var strDate = nowDate.getDate()
|
|
|
- if (month >= 1 && month <= 9) {
|
|
|
- month = '0' + month
|
|
|
- }
|
|
|
- if (strDate >= 0 && strDate <= 9) {
|
|
|
- strDate = '0' + strDate
|
|
|
- }
|
|
|
- var formatDate = year + seperator1 + month + seperator1 + strDate
|
|
|
- this.getNowFormatDate(formatDate)
|
|
|
- },
|
|
|
- /* 获取现在时间,并接受过去时间的值 */
|
|
|
- getNowFormatDate(formatDate) {
|
|
|
- var date = new Date()
|
|
|
- date.setTime(date.getTime() + 24 * 60 * 60 * 1000)
|
|
|
- var seperator1 = '-'
|
|
|
- var year = date.getFullYear()
|
|
|
- var month = date.getMonth() + 1
|
|
|
- var strDate = date.getDate()
|
|
|
- if (month >= 1 && month <= 9) {
|
|
|
- month = '0' + month
|
|
|
- }
|
|
|
- if (strDate >= 0 && strDate <= 9) {
|
|
|
- strDate = '0' + strDate
|
|
|
- }
|
|
|
- var nowData = year + seperator1 + month + seperator1 + strDate
|
|
|
- this.value2 = [formatDate, nowData] // 默认赋值一年时间
|
|
|
- },
|
|
|
async exportlist() {
|
|
|
if (this.modification.length == 0) {
|
|
|
this.$message.warning('请选择要导出的条目!')
|
|
@@ -601,70 +630,7 @@
|
|
|
xmlhttp.send()
|
|
|
})
|
|
|
},
|
|
|
- invoicingClick(type) {
|
|
|
- let _data = {}
|
|
|
- if (type == 1) {
|
|
|
- _data.flag = 1
|
|
|
- } else {
|
|
|
- _data.flag = 2
|
|
|
- }
|
|
|
- _data.collectionWarehousingRecordList = this.modification
|
|
|
- if (this.modification.length == 0) {
|
|
|
- this.$message.warning('请选择一条要开票的条目')
|
|
|
- } else {
|
|
|
- for (let i = 0; i < this.modification.length; i++) {
|
|
|
- if (
|
|
|
- this.modification[i].status != '全部付款'
|
|
|
- ) {
|
|
|
- this.$message.error('请选择全部付款条目!')
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
- this.$confirm(
|
|
|
- '确定修改所选条目的发票状态?',
|
|
|
- '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- }
|
|
|
- )
|
|
|
- .then(() => {
|
|
|
- //开票
|
|
|
- invoicing(_data)
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- if (response.length > 0) {
|
|
|
- var arr = []
|
|
|
- for (let i = 0; i < response.length; i++) {
|
|
|
- if (type == 1) {
|
|
|
- arr.push({
|
|
|
- fileUrl: response[i],
|
|
|
- renameFileName: '自采发票' + i + '.xml',
|
|
|
- })
|
|
|
- } else {
|
|
|
- arr.push({
|
|
|
- fileUrl: response[i],
|
|
|
- renameFileName: '销售发票' + i + '.xml',
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- if (type == 1) {
|
|
|
- this.filesToRar(arr, '自采开票XML文件')
|
|
|
- } else {
|
|
|
- this.filesToRar(arr, '销售开票XML文件')
|
|
|
- }
|
|
|
- this.getList()
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(() => {})
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
// customerclose(e) {
|
|
|
// // row.textcss = false
|
|
|
// this.customerInfo = false
|
|
@@ -762,51 +728,46 @@
|
|
|
handleAvatarSuccess(e) {
|
|
|
this.imageUrl = e.url
|
|
|
},
|
|
|
- printBig() {
|
|
|
- let _list2 = []
|
|
|
- localStorage.setItem('collectionContractCustomerList_printList', JSON.stringify(this.selectCustomerList))
|
|
|
- window.open('../../../../../static/collectionContractRecordPrint.html?printTypeList=' + this.ruleForm.type)
|
|
|
- },
|
|
|
getList() {
|
|
|
- this.payments = {
|
|
|
- amountNotPayable: 0,
|
|
|
- paymentDate: '',
|
|
|
- }
|
|
|
- var searchParam = ''
|
|
|
- if (this.searchType != -1) {
|
|
|
- searchParam = this.searchType
|
|
|
- }
|
|
|
- var startDate = ''
|
|
|
- var endDate = ''
|
|
|
- if (this.value2) {
|
|
|
- startDate = this.value2[0] ? this.value2[0] : ''
|
|
|
- endDate = this.value2[1] ? this.value2[1] : ''
|
|
|
- }
|
|
|
// 查询列表
|
|
|
- selectCollectionWarehousingRecordPage({
|
|
|
+ storageFeeRecordList({
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
+ contractNo: this.$route.query.contractNo,
|
|
|
currentPage: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
- startDate: startDate,
|
|
|
- endDate: endDate,
|
|
|
- searchKeyWord: this.searchKeyWord,
|
|
|
- searchType: searchParam,
|
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
- contractNo: this.$route.query.contractNo
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.recordList = response.records
|
|
|
- // this.deptBudgetTotal = response.total
|
|
|
+ if (response.records.length > 0) {
|
|
|
+ this.isSHowExportBtn = true
|
|
|
+ this.isShowRecord = true
|
|
|
+ } else {
|
|
|
+ this.isSHowAddRecordBtn = true
|
|
|
+ }
|
|
|
})
|
|
|
- // getJurisdiction({
|
|
|
- // managementType: 1,
|
|
|
- // warehouseName: this.warehouseName,
|
|
|
- // compId: localStorage.getItem('ws-pf_compId')
|
|
|
- // })
|
|
|
- // .toPromise()
|
|
|
- // .then(response => {
|
|
|
- // this.isShowAdopt = response
|
|
|
- // })
|
|
|
+ },
|
|
|
+ dateFormat(fmt, date) {
|
|
|
+ let ret
|
|
|
+ const opt = {
|
|
|
+ 'Y+': date.getFullYear().toString(), // 年
|
|
|
+ 'm+': (date.getMonth() + 1).toString(), // 月
|
|
|
+ 'd+': date.getDate().toString(), // 日
|
|
|
+ 'H+': date.getHours().toString(), // 时
|
|
|
+ // "M+": date.getMinutes().toString(), // 分
|
|
|
+ // "S+": date.getSeconds().toString() // 秒
|
|
|
+ // 有其他格式化字符需求可以继续添加,必须转化成字符串
|
|
|
+ }
|
|
|
+ for (let k in opt) {
|
|
|
+ ret = new RegExp('(' + k + ')').exec(fmt)
|
|
|
+ if (ret) {
|
|
|
+ fmt = fmt.replace(
|
|
|
+ ret[1],
|
|
|
+ ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return fmt
|
|
|
},
|
|
|
|
|
|
screen(num) {
|
|
@@ -823,19 +784,14 @@
|
|
|
},
|
|
|
// 收款
|
|
|
collectMoney() {
|
|
|
- // if (this.modification.length == 0) {
|
|
|
- // this.$message.warning('请选择一条要收款的条目')
|
|
|
- // } else {
|
|
|
- // let sum = 0
|
|
|
- // for (let i = 0; i < this.modification.length; i++) {
|
|
|
- // sum += this.modification[i].amountNotCollectable
|
|
|
- // }
|
|
|
- // this.collectionments.money = sum.toFixed(2)
|
|
|
- // this.collectForm = true
|
|
|
- // }
|
|
|
+ this.chargeObj = {
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
+ contractId: this.$route.query.contractId,
|
|
|
+ operator: localStorage.getItem('ws-pf_staffName')
|
|
|
+ }
|
|
|
this.collectForm = true
|
|
|
},
|
|
|
- addRecoredSubmit(){
|
|
|
+ addRecoredSubmit() {
|
|
|
this.$confirm(
|
|
|
'提交后起算日期和起算重量不可修改,是否确定提交?',
|
|
|
'提示', {
|
|
@@ -844,15 +800,26 @@
|
|
|
type: 'warning',
|
|
|
}
|
|
|
)
|
|
|
- .then(() => {debugger
|
|
|
- this.addRecoredDialog =false
|
|
|
- this.isShowRecord = true
|
|
|
+ .then(() => {
|
|
|
+ // // 添加记录
|
|
|
+ addStorageFeeRecord({
|
|
|
+ contractNo: this.$route.query.contractNo,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+
|
|
|
+ this.addRecoredDialog = false
|
|
|
+ this.isShowRecord = true
|
|
|
})
|
|
|
.catch(() => {
|
|
|
return false
|
|
|
})
|
|
|
},
|
|
|
collectSubmit() {
|
|
|
+ console.log(this.chargeObj)
|
|
|
+ this.chargeObj.collectionDate = this.dateFormat('YYYY-mm-dd', this.chargeObj.collectionDate)
|
|
|
if (!this.imageUrl) {
|
|
|
this.$message({
|
|
|
message: '请上传收费截图',
|
|
@@ -860,26 +827,21 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ this.chargeObj.collectionScreenshot = this.imageUrl;
|
|
|
+
|
|
|
this.$confirm(`确定提交收费信息?`, {
|
|
|
cancelButtonText: '取消',
|
|
|
confirmButtonText: '确定',
|
|
|
type: 'warning',
|
|
|
}).then(() => {
|
|
|
- // collectMoneyApi({
|
|
|
- // collectionWarehousingRecordList: this.modification,
|
|
|
- // money: this.collectionments.money,
|
|
|
- // collectionDate: this.collectionments.collectionDate,
|
|
|
- // collectionScreenshot: this.imageUrl,
|
|
|
- // })
|
|
|
- // .toPromise()
|
|
|
- // .then((response) => {
|
|
|
- // this.$message.success('收款成功')
|
|
|
- // this.collectmoney = ''
|
|
|
- // this.collectionDate = ''
|
|
|
- // this.collectionScreenshot = ''
|
|
|
- // this.collectForm = false
|
|
|
- // this.getList()
|
|
|
- // })
|
|
|
+ storageFeeRecordCharge(this.chargeObj)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('收费成功!')
|
|
|
+ this.chargeObj = {}
|
|
|
+ this.collectForm = false
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
// 付款
|
|
@@ -1429,7 +1391,8 @@
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
}
|
|
|
- .close-sfju-dialog{
|
|
|
+
|
|
|
+ .close-sfju-dialog {
|
|
|
width: 100%;
|
|
|
margin: 10px;
|
|
|
display: flex;
|