|
|
@@ -1209,7 +1209,11 @@ export default {
|
|
|
reports
|
|
|
},
|
|
|
props: {
|
|
|
- detailData: Object
|
|
|
+ detailData: Object,
|
|
|
+ pageIds: {
|
|
|
+ type: Array, // 指定 prop 的类型为 Array
|
|
|
+ default: () => [], // 提供一个默认值,这里使用函数形式返回一个空数组
|
|
|
+ }
|
|
|
},
|
|
|
async created() {
|
|
|
this.saberUserInfo = JSON.parse(localStorage.getItem('saber-userInfo')).content
|
|
|
@@ -1232,6 +1236,44 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ lastPage() {
|
|
|
+ if (this.pageIds.length) {
|
|
|
+ const index = this.pageIds.indexOf(this.form.id)
|
|
|
+ if (index == 0) {
|
|
|
+ return this.$message.error('没有上一票了');
|
|
|
+ }
|
|
|
+ const lastIndex = index - 1
|
|
|
+ if (this.form.id) {
|
|
|
+ this.unLock({
|
|
|
+ moduleName: "COC",
|
|
|
+ tableName: "COC_order",
|
|
|
+ billId: this.form.id,
|
|
|
+ billNo: this.form.businessNo
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.pageLoading = true
|
|
|
+ this.getDetails(this.pageIds[lastIndex])
|
|
|
+ }
|
|
|
+ },
|
|
|
+ nextPage() {
|
|
|
+ if (this.pageIds.length) {
|
|
|
+ const index = this.pageIds.indexOf(this.form.id)
|
|
|
+ if (this.pageIds[this.pageIds.length - 1] == this.form.id) {
|
|
|
+ return this.$message.error('没有下一票了');
|
|
|
+ }
|
|
|
+ const nextIndex = index + 1
|
|
|
+ if (this.form.id) {
|
|
|
+ this.unLock({
|
|
|
+ moduleName: "COC",
|
|
|
+ tableName: "COC_order",
|
|
|
+ billId: this.form.id,
|
|
|
+ billNo: this.form.businessNo
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.pageLoading = true
|
|
|
+ this.getDetails(this.pageIds[nextIndex])
|
|
|
+ }
|
|
|
+ },
|
|
|
exrateDateCount() {
|
|
|
this.form.costItemList.forEach(item => {
|
|
|
let polSUM = 0
|
|
|
@@ -1508,8 +1550,9 @@ export default {
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
getDetail({ id: id }).then(res => {
|
|
|
- this.polFeeList = res.data.data.costFeeList.filter(item => item.busType == 'POL')
|
|
|
- this.podFeeList = res.data.data.costFeeList.filter(item => item.busType == 'POD')
|
|
|
+ // this.polFeeList = res.data.data.costFeeList.filter(item => item.busType == 'POL')
|
|
|
+ // this.podFeeList = res.data.data.costFeeList.filter(item => item.busType == 'POD')
|
|
|
+ console.log(res.data.data)
|
|
|
this.saveLocalCurrency(res.data.data.belongingCompanyId)
|
|
|
this.form = res.data.data
|
|
|
if (res.data.data.status != '录入') {
|
|
|
@@ -1529,8 +1572,8 @@ export default {
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
copyAgent({ id: id }).then(res => {
|
|
|
- this.polFeeList = res.data.data.costFeeList.filter(item => item.busType == 'POL')
|
|
|
- this.podFeeList = res.data.data.costFeeList.filter(item => item.busType == 'POD')
|
|
|
+ // this.polFeeList = res.data.data.costFeeList.filter(item => item.busType == 'POL')
|
|
|
+ // this.podFeeList = res.data.data.costFeeList.filter(item => item.busType == 'POD')
|
|
|
this.form = res.data.data
|
|
|
}).finally(() => {
|
|
|
loading.close()
|