|
@@ -334,7 +334,10 @@ export default {
|
|
payTableData:[],
|
|
payTableData:[],
|
|
payTableColumns:[
|
|
payTableColumns:[
|
|
{title:'序号',type:'index',align:'center',minWidth:80},
|
|
{title:'序号',type:'index',align:'center',minWidth:80},
|
|
- {title:'付款时间',key:'pay_time',minWidth:120,align:'center'},
|
|
|
|
|
|
+ {title:'付款时间',key:'pay_time',minWidth:120,align:'center',render:(h,params)=>{
|
|
|
|
+ const {row} = params;
|
|
|
|
+ return h('span',{},this.func.replaceDateNoHMS(row.pay_time))
|
|
|
|
+ }},
|
|
{title:'付款金额',key:'price',minWidth:120,align:'center'},
|
|
{title:'付款金额',key:'price',minWidth:120,align:'center'},
|
|
{title:'未付金额',key:'un_price',minWidth:120,align:'center'},
|
|
{title:'未付金额',key:'un_price',minWidth:120,align:'center'},
|
|
{title:'操作',key:'set',minWidth:200,align:'center',slot:'set'},
|
|
{title:'操作',key:'set',minWidth:200,align:'center',slot:'set'},
|
|
@@ -671,6 +674,7 @@ initData(){
|
|
this.formData.payment_time = this.func.replaceDateNoHMS(this.formData.payment_time);
|
|
this.formData.payment_time = this.func.replaceDateNoHMS(this.formData.payment_time);
|
|
this.formData.crt_time =Number(this.formData.crt_time)? this.func.replaceDate(this.formData.crt_time):'';
|
|
this.formData.crt_time =Number(this.formData.crt_time)? this.func.replaceDate(this.formData.crt_time):'';
|
|
this.formData.upd_time =Number(this.formData.upd_time)? this.func.replaceDate(this.formData.upd_time):'';
|
|
this.formData.upd_time =Number(this.formData.upd_time)? this.func.replaceDate(this.formData.upd_time):'';
|
|
|
|
+ this.payTableData = res.data.payData||[];
|
|
this.digitUppercase(this.formData.apply_price);
|
|
this.digitUppercase(this.formData.apply_price);
|
|
delete this.formData.children;
|
|
delete this.formData.children;
|
|
})
|
|
})
|
|
@@ -679,6 +683,10 @@ initData(){
|
|
let obj = JSON.parse(JSON.stringify(this.formData));
|
|
let obj = JSON.parse(JSON.stringify(this.formData));
|
|
obj.invoice_time = obj.invoice_time?Date.parse(obj.invoice_time).toString().slice(0,10):'';
|
|
obj.invoice_time = obj.invoice_time?Date.parse(obj.invoice_time).toString().slice(0,10):'';
|
|
obj.payment_time = obj.payment_time?Date.parse(obj.payment_time).toString().slice(0,10):'';
|
|
obj.payment_time = obj.payment_time?Date.parse(obj.payment_time).toString().slice(0,10):'';
|
|
|
|
+ let arr = JSON.parse(JSON.stringify(this.payTableData));
|
|
|
|
+ arr.forEach(v=>{
|
|
|
|
+ v.pay_time = v.pay_time?Date.parse(v.pay_time).toString().slice(0,10):'';
|
|
|
|
+ })
|
|
if(this.type==1){
|
|
if(this.type==1){
|
|
this.axios.post('/api/payment_add',{...obj}).then(res=>{
|
|
this.axios.post('/api/payment_add',{...obj}).then(res=>{
|
|
if(res.code==200){
|
|
if(res.code==200){
|
|
@@ -687,7 +695,7 @@ initData(){
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}else{
|
|
}else{
|
|
- this.axios.post('/api/payment_edit',{...obj}).then(res=>{
|
|
|
|
|
|
+ this.axios.post('/api/payment_edit',{...obj,payData:arr}).then(res=>{
|
|
if(res.code==200){
|
|
if(res.code==200){
|
|
this.$Message.success(res.msg);
|
|
this.$Message.success(res.msg);
|
|
this.back();
|
|
this.back();
|