Commit b43ee9e3 authored by 我在何方's avatar 我在何方

客户延期回显更新

parent 773bfaf5
......@@ -40,7 +40,7 @@
<!-- 只有不需要预付才需要审核 -->
<template>
<div class="page-title">{{$t('审批流程')}}</div>
<work-flow xmlkey="quotation_customer_delay_public" v-model="handlerParams.ccIds" />
<work-flow xmlkey="quotation_customer_delay_public" v-model="ccIdArr" />
</template>
<div slot="footer" class="dialog-footer">
<!-- bpmStatus
......@@ -81,9 +81,15 @@
showWorkFlow: false, // 是否显示工作流
dateRangeCreateTime:[],
pickerOptions: {
}
},
ccIdArr:[]
};
},
watch:{
ccIdArr(){
this.$set(this.handlerParams, 'ccIds', this.ccIdArr.join(','))
}
},
created() {
if(this.$route.query.id){
this.getData(this.$route.query.id)
......@@ -105,6 +111,16 @@
if(!that.handlerParams.orgEstimateEnterOpenSeaTime){
that.handlerParams.orgEstimateEnterOpenSeaTime = that.getNowDate(that.customerData.enterOpenSeaTime)
}
if(that.handlerParams.estimateEnterOpenSeaTime){
that.handlerParams.estimateEnterOpenSeaTime = that.getTime(that.handlerParams.estimateEnterOpenSeaTime)
}
if(that.handlerParams.ccIds){
var ids = that.handlerParams.ccIds.split(',')
ids.map(v=>{
that.ccIdArr.push(parseInt(v))
})
}
console.log(that.handlerParams)
}else{
that.handlerParams = {
......@@ -134,8 +150,8 @@
// return
// }
var params = Object.assign({},this.handlerParams)
var ccIds = Array.isArray(this.handlerParams.ccIds) ? this.handlerParams.ccIds.join(',') : this.handlerParams.ccIds
params.ccIds = ccIds
// var ccIds = Array.isArray(this.handlerParams.ccIds) ? this.handlerParams.ccIds.join(',') : this.handlerParams.ccIds
// params.ccIds = ccIds
params.voucher = Array.isArray(this.handlerParams.voucher) ? this.handlerParams.voucher.join(',') : this.handlerParams.voucher
this.$set(this.handlerParams,'createTime',this.formatDate())
params.estimateEnterOpenSeaTime = this.getNowDate(this.handlerParams.estimateEnterOpenSeaTime)
......@@ -144,6 +160,10 @@
this.$store.dispatch('tagsView/delCurrentView')
})
},
getTime(dateTime){
var date = new Date(dateTime);
return date.getTime()
},
getNowDate(time) {
if(time){
var date = new Date(time);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment