|
|
@ -20,6 +20,7 @@
|
|
|
|
@changePage="changePageFun"
|
|
|
|
@changePage="changePageFun"
|
|
|
|
@copy="copyBookingFun"
|
|
|
|
@copy="copyBookingFun"
|
|
|
|
@addSedList="addSedList"
|
|
|
|
@addSedList="addSedList"
|
|
|
|
|
|
|
|
@FnOcrChenga="FnOcrChenga"
|
|
|
|
></operationArea>
|
|
|
|
></operationArea>
|
|
|
|
<a-tabs type="card">
|
|
|
|
<a-tabs type="card">
|
|
|
|
<a-tab-pane key="1-1" tab="基础信息">
|
|
|
|
<a-tab-pane key="1-1" tab="基础信息">
|
|
|
@ -39,15 +40,15 @@
|
|
|
|
<!-- 备注信息 -->
|
|
|
|
<!-- 备注信息 -->
|
|
|
|
<remarksInfo :details="bookingDetails" @changeDetail="changeDetailFun"></remarksInfo>
|
|
|
|
<remarksInfo :details="bookingDetails" @changeDetail="changeDetailFun"></remarksInfo>
|
|
|
|
<!-- 箱型 -->
|
|
|
|
<!-- 箱型 -->
|
|
|
|
<goodsTable :details="bookingDetails" @changeDetail="changeDetailFun" v-if="!inPageLoading"></goodsTable>
|
|
|
|
<goodsTable
|
|
|
|
|
|
|
|
:details="bookingDetails"
|
|
|
|
|
|
|
|
@changeDetail="changeDetailFun"
|
|
|
|
|
|
|
|
v-if="!inPageLoading"
|
|
|
|
|
|
|
|
></goodsTable>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-tab-pane>
|
|
|
|
</a-tab-pane>
|
|
|
|
<a-tab-pane key="2-2" tab="EDI补充信息">
|
|
|
|
<a-tab-pane key="2-2" tab="EDI补充信息">
|
|
|
|
<ediMore
|
|
|
|
<ediMore class="pane-box" :details="bookingDetails" @changeDetail="changeDetailFun"></ediMore>
|
|
|
|
class="pane-box"
|
|
|
|
|
|
|
|
:details="bookingDetails"
|
|
|
|
|
|
|
|
@changeDetail="changeDetailFun"
|
|
|
|
|
|
|
|
></ediMore>
|
|
|
|
|
|
|
|
</a-tab-pane>
|
|
|
|
</a-tab-pane>
|
|
|
|
</a-tabs>
|
|
|
|
</a-tabs>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -110,108 +111,108 @@ import {
|
|
|
|
import { mapActions, mapGetters } from 'vuex'
|
|
|
|
import { mapActions, mapGetters } from 'vuex'
|
|
|
|
import { string } from 'clipboard'
|
|
|
|
import { string } from 'clipboard'
|
|
|
|
const initDetail = {
|
|
|
|
const initDetail = {
|
|
|
|
id: 0,
|
|
|
|
id: 0,
|
|
|
|
parentId: 0,
|
|
|
|
parentId: 0,
|
|
|
|
// 基本信息
|
|
|
|
// 基本信息
|
|
|
|
customername: '',
|
|
|
|
customername: '',
|
|
|
|
customerid: '',
|
|
|
|
customerid: '',
|
|
|
|
carrier: '',
|
|
|
|
carrier: '',
|
|
|
|
carrierid: '',
|
|
|
|
carrierid: '',
|
|
|
|
forwarder: '',
|
|
|
|
forwarder: '',
|
|
|
|
pono: '',
|
|
|
|
pono: '',
|
|
|
|
mblno: '',
|
|
|
|
mblno: '',
|
|
|
|
hblno: '',
|
|
|
|
hblno: '',
|
|
|
|
bookingno: '',
|
|
|
|
bookingno: '',
|
|
|
|
contractno: '',
|
|
|
|
contractno: '',
|
|
|
|
vessel: '',
|
|
|
|
vessel: '',
|
|
|
|
voyno: '',
|
|
|
|
voyno: '',
|
|
|
|
voynoinner: '',
|
|
|
|
voynoinner: '',
|
|
|
|
lanecode: '',
|
|
|
|
lanecode: '',
|
|
|
|
etd: '',
|
|
|
|
etd: '',
|
|
|
|
atd: '',
|
|
|
|
atd: '',
|
|
|
|
lanename: '',
|
|
|
|
lanename: '',
|
|
|
|
shipagency: '',
|
|
|
|
shipagency: '',
|
|
|
|
sale: '',
|
|
|
|
sale: '',
|
|
|
|
op: '',
|
|
|
|
op: '',
|
|
|
|
doc: '',
|
|
|
|
doc: '',
|
|
|
|
custservice: '',
|
|
|
|
custservice: '',
|
|
|
|
// 收发通信息
|
|
|
|
// 收发通信息
|
|
|
|
shipper: '',
|
|
|
|
shipper: '',
|
|
|
|
consignee: '',
|
|
|
|
consignee: '',
|
|
|
|
notifyparty: '',
|
|
|
|
notifyparty: '',
|
|
|
|
yard: '',
|
|
|
|
yard: '',
|
|
|
|
customser: '',
|
|
|
|
customser: '',
|
|
|
|
trucker: '',
|
|
|
|
trucker: '',
|
|
|
|
agentid: '',
|
|
|
|
agentid: '',
|
|
|
|
eta: '',
|
|
|
|
eta: '',
|
|
|
|
closingdate: '',
|
|
|
|
closingdate: '',
|
|
|
|
closedocdate: '',
|
|
|
|
closedocdate: '',
|
|
|
|
closevgmdate: '',
|
|
|
|
closevgmdate: '',
|
|
|
|
portload: '',
|
|
|
|
portload: '',
|
|
|
|
portloadid: '',
|
|
|
|
portloadid: '',
|
|
|
|
transport: '',
|
|
|
|
transport: '',
|
|
|
|
transportid: '',
|
|
|
|
transportid: '',
|
|
|
|
portdischarge: '',
|
|
|
|
portdischarge: '',
|
|
|
|
portdischargeid: '',
|
|
|
|
portdischargeid: '',
|
|
|
|
destination: '',
|
|
|
|
destination: '',
|
|
|
|
destinationid: '',
|
|
|
|
destinationid: '',
|
|
|
|
placedelivery: '',
|
|
|
|
placedelivery: '',
|
|
|
|
placedeliveryid: '',
|
|
|
|
placedeliveryid: '',
|
|
|
|
placereceipt: '',
|
|
|
|
placereceipt: '',
|
|
|
|
placereceiptid: '',
|
|
|
|
placereceiptid: '',
|
|
|
|
pkgs: 0,
|
|
|
|
pkgs: 0,
|
|
|
|
kindpkgs: '',
|
|
|
|
kindpkgs: '',
|
|
|
|
kgs: 0,
|
|
|
|
kgs: 0,
|
|
|
|
cbm: 0,
|
|
|
|
cbm: 0,
|
|
|
|
// 货物信息
|
|
|
|
// 货物信息
|
|
|
|
marks: '',
|
|
|
|
marks: '',
|
|
|
|
cargoid: '',
|
|
|
|
cargoid: '',
|
|
|
|
hscode: '',
|
|
|
|
hscode: '',
|
|
|
|
description: '',
|
|
|
|
description: '',
|
|
|
|
totalno: '',
|
|
|
|
totalno: '',
|
|
|
|
// 签单信息
|
|
|
|
// 签单信息
|
|
|
|
issuetype: '',
|
|
|
|
issuetype: '',
|
|
|
|
issuedate: '',
|
|
|
|
issuedate: '',
|
|
|
|
issueplace: '',
|
|
|
|
issueplace: '',
|
|
|
|
issueplaceid: '',
|
|
|
|
issueplaceid: '',
|
|
|
|
nobill: 'THREE',
|
|
|
|
nobill: 'THREE',
|
|
|
|
copynobilll: 'THREE',
|
|
|
|
copynobilll: 'THREE',
|
|
|
|
prepardat: '',
|
|
|
|
prepardat: '',
|
|
|
|
payableat: '',
|
|
|
|
payableat: '',
|
|
|
|
blfrt: '',
|
|
|
|
blfrt: '',
|
|
|
|
thirdpayaddr: '',
|
|
|
|
thirdpayaddr: '',
|
|
|
|
service: 'CY-CY',
|
|
|
|
service: 'CY-CY',
|
|
|
|
reeferf: '',
|
|
|
|
reeferf: '',
|
|
|
|
tempset: '',
|
|
|
|
tempset: '',
|
|
|
|
tempid: '',
|
|
|
|
tempid: '',
|
|
|
|
tempmin: '',
|
|
|
|
tempmin: '',
|
|
|
|
tempmax: '',
|
|
|
|
tempmax: '',
|
|
|
|
humidity: '',
|
|
|
|
humidity: '',
|
|
|
|
dclass: '',
|
|
|
|
dclass: '',
|
|
|
|
dunno: '',
|
|
|
|
dunno: '',
|
|
|
|
dpage: '',
|
|
|
|
dpage: '',
|
|
|
|
dlabel: '',
|
|
|
|
dlabel: '',
|
|
|
|
linkman: '',
|
|
|
|
linkman: '',
|
|
|
|
// 备注信息
|
|
|
|
// 备注信息
|
|
|
|
soremark: '',
|
|
|
|
soremark: '',
|
|
|
|
siremark: '',
|
|
|
|
siremark: '',
|
|
|
|
// 箱型
|
|
|
|
// 箱型
|
|
|
|
ctnInputs: [],
|
|
|
|
ctnInputs: [],
|
|
|
|
// edi补充信息 (edi联系人等暂无字段)
|
|
|
|
// edi补充信息 (edi联系人等暂无字段)
|
|
|
|
weituo: '',
|
|
|
|
weituo: '',
|
|
|
|
freightpayer: '',
|
|
|
|
freightpayer: '',
|
|
|
|
scaccode: '',
|
|
|
|
scaccode: '',
|
|
|
|
itncode: '',
|
|
|
|
itncode: '',
|
|
|
|
iscontainersoc: 0,
|
|
|
|
iscontainersoc: 0,
|
|
|
|
bookingEDIExt: {
|
|
|
|
bookingEDIExt: {
|
|
|
|
weiTuoFang: '',
|
|
|
|
weiTuoFang: '',
|
|
|
|
ediAttn: '',
|
|
|
|
ediAttn: '',
|
|
|
|
ediAttnTel: '',
|
|
|
|
ediAttnTel: '',
|
|
|
|
ediAttnMail: ''
|
|
|
|
ediAttnMail: ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 分单信息未添加
|
|
|
|
// 分单信息未添加
|
|
|
|
hbList: []
|
|
|
|
hbList: []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'BookingDetail',
|
|
|
|
name: 'BookingDetail',
|
|
|
|
inject: ['reload'],
|
|
|
|
inject: ['reload'],
|
|
|
@ -275,9 +276,13 @@ export default {
|
|
|
|
this.init()
|
|
|
|
this.init()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
window.addEventListener('scroll', () => {
|
|
|
|
window.addEventListener(
|
|
|
|
this.scrollTop = document.getElementById('app').scrollTop
|
|
|
|
'scroll',
|
|
|
|
}, true)
|
|
|
|
() => {
|
|
|
|
|
|
|
|
this.scrollTop = document.getElementById('app').scrollTop
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
true
|
|
|
|
|
|
|
|
)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeRouteUpdate(to, from, next) {
|
|
|
|
beforeRouteUpdate(to, from, next) {
|
|
|
|
// console.log('fromId:', from.query.id, '| toId:', to.query.id)
|
|
|
|
// console.log('fromId:', from.query.id, '| toId:', to.query.id)
|
|
|
@ -369,7 +374,7 @@ export default {
|
|
|
|
next()
|
|
|
|
next()
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.inChildLoading = false
|
|
|
|
this.inChildLoading = false
|
|
|
|
}, 2000);
|
|
|
|
}, 2000)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
|
next(vm => {
|
|
|
|
next(vm => {
|
|
|
@ -379,10 +384,14 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
...mapActions(['setNeedSavePages']),
|
|
|
|
...mapActions(['setNeedSavePages']),
|
|
|
|
getRouterHis() {
|
|
|
|
getRouterHis() {
|
|
|
|
console.log('Router 2.3 === beforeRouteEnter - getRouterHis ===', Object.keys(this.historyData), this.$route.query.id)
|
|
|
|
console.log(
|
|
|
|
|
|
|
|
'Router 2.3 === beforeRouteEnter - getRouterHis ===',
|
|
|
|
|
|
|
|
Object.keys(this.historyData),
|
|
|
|
|
|
|
|
this.$route.query.id
|
|
|
|
|
|
|
|
)
|
|
|
|
this.inChildLoading = true
|
|
|
|
this.inChildLoading = true
|
|
|
|
const newId = this.$route.query.id
|
|
|
|
const newId = this.$route.query.id
|
|
|
|
if (Object.keys(this.historyData).includes(`copy-${newId}`) && this.$route.query.isCopy === 'true') {
|
|
|
|
if (Object.keys(this.historyData).includes(`copy-${newId}`) && this.$route.query.isCopy === 'true') {
|
|
|
|
this.id = this.$route.query.id
|
|
|
|
this.id = this.$route.query.id
|
|
|
|
const $data = JSON.parse(JSON.stringify(this.historyData[`copy-${newId}`]))
|
|
|
|
const $data = JSON.parse(JSON.stringify(this.historyData[`copy-${newId}`]))
|
|
|
|
this.bookingDetails = $data.bookingDetails
|
|
|
|
this.bookingDetails = $data.bookingDetails
|
|
|
@ -477,7 +486,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.inPageLoading = true
|
|
|
|
this.inPageLoading = true
|
|
|
|
this.inChildLoading = true
|
|
|
|
this.inChildLoading = true
|
|
|
|
this.$message.loading({ content: '加载中...' });
|
|
|
|
this.$message.loading({ content: '加载中...' })
|
|
|
|
// console.log('4.1 == 获取详情 ==', this.id)
|
|
|
|
// console.log('4.1 == 获取详情 ==', this.id)
|
|
|
|
BookingOrderGet({
|
|
|
|
BookingOrderGet({
|
|
|
|
id: this.id
|
|
|
|
id: this.id
|
|
|
@ -505,9 +514,9 @@ export default {
|
|
|
|
// 初始化箱型 累加 称重总重
|
|
|
|
// 初始化箱型 累加 称重总重
|
|
|
|
if (res.data.ctnInputs.length > 0) {
|
|
|
|
if (res.data.ctnInputs.length > 0) {
|
|
|
|
res.data.ctnInputs.map((item, index) => {
|
|
|
|
res.data.ctnInputs.map((item, index) => {
|
|
|
|
if (item.weightype === '累加') {
|
|
|
|
if (item.weightype === '累加') {
|
|
|
|
item.weighkgs = this.calc(Number(item['kgs']), Number(item['tareweight']), '+')
|
|
|
|
item.weighkgs = this.calc(Number(item['kgs']), Number(item['tareweight']), '+')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$set(this, 'bookingDetails', res.data)
|
|
|
|
this.$set(this, 'bookingDetails', res.data)
|
|
|
@ -534,18 +543,17 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
ifCompare(object1, object2) {
|
|
|
|
ifCompare(object1, object2) {
|
|
|
|
var o1keys = Object.keys(object1);
|
|
|
|
var o1keys = Object.keys(object1)
|
|
|
|
var o2keys = Object.keys(object2);
|
|
|
|
var o2keys = Object.keys(object2)
|
|
|
|
if (o2keys.length !== o1keys.length) return false;
|
|
|
|
if (o2keys.length !== o1keys.length) return false
|
|
|
|
for (let i = 0; i <= o1keys.length - 1; i++) {
|
|
|
|
for (let i = 0; i <= o1keys.length - 1; i++) {
|
|
|
|
let key = o1keys[i];
|
|
|
|
let key = o1keys[i]
|
|
|
|
if (!o2keys.includes(key)) return false;
|
|
|
|
if (!o2keys.includes(key)) return false
|
|
|
|
if (object2[key] !== object1[key]) return false;
|
|
|
|
if (object2[key] !== object1[key]) return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bookingOrderUpdate() {
|
|
|
|
bookingOrderUpdate() {
|
|
|
|
if (!this.bookingDetails.mblno) {
|
|
|
|
if (!this.bookingDetails.mblno) {
|
|
|
|
this.$message.error('请输入提单号')
|
|
|
|
this.$message.error('请输入提单号')
|
|
|
@ -566,13 +574,18 @@ export default {
|
|
|
|
// console.log('1.2 == 保存成功 - 刷新路由 ==', this.id)
|
|
|
|
// console.log('1.2 == 保存成功 - 刷新路由 ==', this.id)
|
|
|
|
this.$router.replace({
|
|
|
|
this.$router.replace({
|
|
|
|
name: 'BookingDetail',
|
|
|
|
name: 'BookingDetail',
|
|
|
|
query: { id: this.id, type: this.bookingDetails.carrierid, noOpenTab: true, mblno: this.bookingDetails.mblno }
|
|
|
|
query: {
|
|
|
|
|
|
|
|
id: this.id,
|
|
|
|
|
|
|
|
type: this.bookingDetails.carrierid,
|
|
|
|
|
|
|
|
noOpenTab: true,
|
|
|
|
|
|
|
|
mblno: this.bookingDetails.mblno
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// this.init()
|
|
|
|
// this.init()
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.$forceUpdate()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (typeof (res.message) === 'string') {
|
|
|
|
if (typeof res.message === 'string') {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error('保存失败')
|
|
|
|
this.$message.error('保存失败')
|
|
|
@ -599,11 +612,16 @@ export default {
|
|
|
|
this.$message.success('保存成功')
|
|
|
|
this.$message.success('保存成功')
|
|
|
|
this.$router.replace({
|
|
|
|
this.$router.replace({
|
|
|
|
name: 'BookingDetail',
|
|
|
|
name: 'BookingDetail',
|
|
|
|
query: { id: res.data, type: this.bookingDetails.carrierid, noOpenTab: true, mblno: this.bookingDetails.mblno }
|
|
|
|
query: {
|
|
|
|
|
|
|
|
id: res.data,
|
|
|
|
|
|
|
|
type: this.bookingDetails.carrierid,
|
|
|
|
|
|
|
|
noOpenTab: true,
|
|
|
|
|
|
|
|
mblno: this.bookingDetails.mblno
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.$forceUpdate()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (typeof (res.message) === 'string') {
|
|
|
|
if (typeof res.message === 'string') {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error('保存失败')
|
|
|
|
this.$message.error('保存失败')
|
|
|
@ -642,7 +660,10 @@ export default {
|
|
|
|
changePageFun(type) {
|
|
|
|
changePageFun(type) {
|
|
|
|
const _this = this
|
|
|
|
const _this = this
|
|
|
|
const key = this.$route.fullPath
|
|
|
|
const key = this.$route.fullPath
|
|
|
|
if (Object.keys(this.needSavePages).includes(key) && (this.needSavePages[key].details || this.needSavePages[key].hbList)) {
|
|
|
|
if (
|
|
|
|
|
|
|
|
Object.keys(this.needSavePages).includes(key) &&
|
|
|
|
|
|
|
|
(this.needSavePages[key].details || this.needSavePages[key].hbList)
|
|
|
|
|
|
|
|
) {
|
|
|
|
// console.log('== 切换上一票下一票 - biu 弹窗出现 ==')
|
|
|
|
// console.log('== 切换上一票下一票 - biu 弹窗出现 ==')
|
|
|
|
this.$confirm({
|
|
|
|
this.$confirm({
|
|
|
|
title: '请确认无未保存数据!',
|
|
|
|
title: '请确认无未保存数据!',
|
|
|
@ -659,7 +680,7 @@ export default {
|
|
|
|
this.changePage(type)
|
|
|
|
this.changePage(type)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
changePage (type) {
|
|
|
|
changePage(type) {
|
|
|
|
const nowId = this.$route.query.id
|
|
|
|
const nowId = this.$route.query.id
|
|
|
|
const arr = Object.keys(this.bookingList)
|
|
|
|
const arr = Object.keys(this.bookingList)
|
|
|
|
const index = arr.indexOf(nowId.toString())
|
|
|
|
const index = arr.indexOf(nowId.toString())
|
|
|
@ -704,6 +725,10 @@ export default {
|
|
|
|
query: { id: this.id, isCopy: true, type: this.bookingDetails.carrierid }
|
|
|
|
query: { id: this.id, isCopy: true, type: this.bookingDetails.carrierid }
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
FnOcrChenga(data) {
|
|
|
|
|
|
|
|
this.bookingDetails = data
|
|
|
|
|
|
|
|
console.log(this.bookingDetails)
|
|
|
|
|
|
|
|
},
|
|
|
|
addSedList() {
|
|
|
|
addSedList() {
|
|
|
|
if (this.isAdd) {
|
|
|
|
if (this.isAdd) {
|
|
|
|
this.$message.error('请先保存主单')
|
|
|
|
this.$message.error('请先保存主单')
|
|
|
@ -720,7 +745,7 @@ export default {
|
|
|
|
this.tabActiveKey = '2'
|
|
|
|
this.tabActiveKey = '2'
|
|
|
|
this.Showtabs = true
|
|
|
|
this.Showtabs = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
changeHBFun (data) {
|
|
|
|
changeHBFun(data) {
|
|
|
|
const arr = data.map((item, index) => {
|
|
|
|
const arr = data.map((item, index) => {
|
|
|
|
return item.isNoSave
|
|
|
|
return item.isNoSave
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -731,7 +756,7 @@ export default {
|
|
|
|
this.checkSaveFun({ type: 'hbList', hasChange: false })
|
|
|
|
this.checkSaveFun({ type: 'hbList', hasChange: false })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
checkSaveFun (data) {
|
|
|
|
checkSaveFun(data) {
|
|
|
|
// if (this.inPageLoading) {
|
|
|
|
// if (this.inPageLoading) {
|
|
|
|
// return false
|
|
|
|
// return false
|
|
|
|
// }
|
|
|
|
// }
|
|
|
@ -749,16 +774,16 @@ export default {
|
|
|
|
// console.log('== vuex 配置更新信息 ==', this.needSavePages)
|
|
|
|
// console.log('== vuex 配置更新信息 ==', this.needSavePages)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
calc(num1, num2, calcStr) {
|
|
|
|
calc(num1, num2, calcStr) {
|
|
|
|
var str1; // 转换为字符串的数字
|
|
|
|
var str1 // 转换为字符串的数字
|
|
|
|
var str2;
|
|
|
|
var str2
|
|
|
|
var ws1 = 0; // ws1,ws2 用来存储传入的num的小数点后的数字的位数
|
|
|
|
var ws1 = 0 // ws1,ws2 用来存储传入的num的小数点后的数字的位数
|
|
|
|
var ws2 = 0; // 赋默认值,解决当整数和小数运算时倍数计算错误导致的结果误差
|
|
|
|
var ws2 = 0 // 赋默认值,解决当整数和小数运算时倍数计算错误导致的结果误差
|
|
|
|
var bigger; // bigger和smaller用于加,减,除法找出小的那个数字,给后面补0,解决位数不对从而造成的计算错误的问题;乘法需要将结果除两个数字的倍数之和
|
|
|
|
var bigger // bigger和smaller用于加,减,除法找出小的那个数字,给后面补0,解决位数不对从而造成的计算错误的问题;乘法需要将结果除两个数字的倍数之和
|
|
|
|
var smaller; // 例如:加减除法中1.001 + 2.03 ,如果不给2.03进行补0,最后会变成1001+203,数字错位导致结果错误;乘法中1.12*1.1会放大为112*11,所以结果需要除以1000才会是正确的结果,112*11/1000=1.232
|
|
|
|
var smaller // 例如:加减除法中1.001 + 2.03 ,如果不给2.03进行补0,最后会变成1001+203,数字错位导致结果错误;乘法中1.12*1.1会放大为112*11,所以结果需要除以1000才会是正确的结果,112*11/1000=1.232
|
|
|
|
var zeroCount; // 需要补充0的个数
|
|
|
|
var zeroCount // 需要补充0的个数
|
|
|
|
var isExistDot1; // 传入的数字是否存在小数点
|
|
|
|
var isExistDot1 // 传入的数字是否存在小数点
|
|
|
|
var isExistDot2;
|
|
|
|
var isExistDot2
|
|
|
|
var sum;
|
|
|
|
var sum
|
|
|
|
var beishu = 1
|
|
|
|
var beishu = 1
|
|
|
|
// 将数字转换为字符串
|
|
|
|
// 将数字转换为字符串
|
|
|
|
str1 = num1.toString()
|
|
|
|
str1 = num1.toString()
|
|
|
@ -912,47 +937,47 @@ export default {
|
|
|
|
// // padding-top: 4px !important;
|
|
|
|
// // padding-top: 4px !important;
|
|
|
|
// background: #f99 !important;
|
|
|
|
// background: #f99 !important;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
.ant-input-affix-wrapper .ant-input:not(:last-child){
|
|
|
|
.ant-input-affix-wrapper .ant-input:not(:last-child) {
|
|
|
|
height: 28px !important;
|
|
|
|
height: 28px !important;
|
|
|
|
// margin-top: 4px !important;
|
|
|
|
// margin-top: 4px !important;
|
|
|
|
// background: #9f9 !important;
|
|
|
|
// background: #9f9 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ant-select-selection{
|
|
|
|
.ant-select-selection {
|
|
|
|
height: 28px !important;
|
|
|
|
height: 28px !important;
|
|
|
|
// margin-top: 4px !important;
|
|
|
|
// margin-top: 4px !important;
|
|
|
|
// background: #f00 !important;
|
|
|
|
// background: #f00 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ant-input:placeholder-shown{
|
|
|
|
.ant-input:placeholder-shown {
|
|
|
|
height: 28px !important;
|
|
|
|
height: 28px !important;
|
|
|
|
// margin-top: 4px !important;
|
|
|
|
// margin-top: 4px !important;
|
|
|
|
// background: #99f !important;
|
|
|
|
// background: #99f !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ant-calendar-picker-input.ant-input{
|
|
|
|
.ant-calendar-picker-input.ant-input {
|
|
|
|
height: 28px !important;
|
|
|
|
height: 28px !important;
|
|
|
|
// margin-top: 4px !important;
|
|
|
|
// margin-top: 4px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ant-form-item-label{
|
|
|
|
.ant-form-item-label {
|
|
|
|
// line-height: 30px !important;
|
|
|
|
// line-height: 30px !important;
|
|
|
|
// border: 1px solid #f00;
|
|
|
|
// border: 1px solid #f00;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ant-form-item-control-wrapper{
|
|
|
|
.ant-form-item-control-wrapper {
|
|
|
|
// border: 1px solid #f99;
|
|
|
|
// border: 1px solid #f99;
|
|
|
|
// height: 30px;
|
|
|
|
// height: 30px;
|
|
|
|
// vertical-align: top;
|
|
|
|
// vertical-align: top;
|
|
|
|
// padding: 0;
|
|
|
|
// padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.left-box{
|
|
|
|
.left-box {
|
|
|
|
// padding-top: 60px;
|
|
|
|
// padding-top: 60px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.normal-nav{
|
|
|
|
.normal-nav {
|
|
|
|
transition: .5s all;
|
|
|
|
transition: 0.5s all;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.fixed-nav{
|
|
|
|
.fixed-nav {
|
|
|
|
position: fixed;
|
|
|
|
position: fixed;
|
|
|
|
top: 56px;
|
|
|
|
top: 56px;
|
|
|
|
box-shadow:0px 15px 10px -15px #ccc;
|
|
|
|
box-shadow: 0px 15px 10px -15px #ccc;
|
|
|
|
z-index: 999;
|
|
|
|
z-index: 999;
|
|
|
|
background:#fff;
|
|
|
|
background: #fff;
|
|
|
|
transition: .5s all;
|
|
|
|
transition: 0.5s all;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|