Browse Source

付款优化

master
陈裕财 4 years ago
parent
commit
e094a8c9fd
  1. 24
      src/views/xm/core/xmTask/XmTaskEdit.vue
  2. 5
      src/views/xm/core/xmTaskOrder/ToPay.vue

24
src/views/xm/core/xmTask/XmTaskEdit.vue

@ -210,7 +210,7 @@
<el-steps :active="calcTaskStep" align-center simple v-if="editForm.crowd==='1'"> <el-steps :active="calcTaskStep" align-center simple v-if="editForm.crowd==='1'">
<el-step v-for="(item,index) in dicts.bidStep" :title="item.name" :description="item.name" :key="index"></el-step> <el-step v-for="(item,index) in dicts.bidStep" :title="item.name" :description="item.name" :key="index"></el-step>
</el-steps> </el-steps>
<p v-if="!toPayVisible && activateTabPaneName=='8'">
<p v-if="!toPayEfundsVisible && activateTabPaneName=='8'">
<el-form-item> <el-form-item>
<el-checkbox v-model="editForm.taskOut" true-label="1" false-label="0" id="taskOut" @change="editXmTaskSomeFields(editForm,'taskOut',$event)">外购</el-checkbox> <el-checkbox v-model="editForm.taskOut" true-label="1" false-label="0" id="taskOut" @change="editXmTaskSomeFields(editForm,'taskOut',$event)">外购</el-checkbox>
@ -286,18 +286,18 @@
<el-col :span="6" v-if="editForm.bidStep=='4'"> <el-col :span="6" v-if="editForm.bidStep=='4'">
<strong> 合计待付款:</strong>&nbsp;&nbsp;<font style="font-size:48px;color:red;"> {{needPayEfundsAt}}&nbsp;</font> <strong> 合计待付款:</strong>&nbsp;&nbsp;<font style="font-size:48px;color:red;"> {{needPayEfundsAt}}&nbsp;</font>
<br/> <br/>
<el-button class="padding" @click="toPayAt" type="primary">去付款</el-button>
<el-button class="padding" @click="toPayEfundsVisible=true" type="primary">去付款</el-button>
</el-col> </el-col>
</el-row> </el-row>
</p> </p>
<to-pay v-else-if="toPayVisible && activateTabPaneName=='8'" :biz-type="'1'" :task-id="editForm.id" :visible="toPayVisible" @cancel="toPayVisible=false" @pay-success="onTaskPaySuccess"></to-pay>
<to-pay v-else-if="toPayEfundsVisible && activateTabPaneName=='8'" :biz-type="'1'" :task-id="editForm.id" :visible="toPayEfundsVisible" @cancel="toPayEfundsVisible=false" @pay-success="onTaskPaySuccess"></to-pay>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="营销推广" name="82" v-if="editForm.ntype!='1'"> <el-tab-pane label="营销推广" name="82" v-if="editForm.ntype!='1'">
<el-steps :active="calcTaskStep" align-center simple v-if="editForm.crowd==='1'"> <el-steps :active="calcTaskStep" align-center simple v-if="editForm.crowd==='1'">
<el-step v-for="(item,index) in dicts.bidStep" :title="item.name" :description="item.name" :key="index"></el-step> <el-step v-for="(item,index) in dicts.bidStep" :title="item.name" :description="item.name" :key="index"></el-step>
</el-steps> </el-steps>
<p v-if="!toPayVisible && activateTabPaneName=='82'">
<p v-if="!toPayMarketVisible && activateTabPaneName=='82'">
<el-row v-if="editForm.crowd==='1'"> <el-row v-if="editForm.crowd==='1'">
<el-col :span="18"> <el-col :span="18">
@ -371,11 +371,11 @@
<el-col :span="6" v-if="needPayMarketAt>0"> <el-col :span="6" v-if="needPayMarketAt>0">
<strong> 合计待付款:</strong>&nbsp;&nbsp;<font style="font-size:48px;color:red;"> {{needPayMarketAt}}&nbsp;</font> <strong> 合计待付款:</strong>&nbsp;&nbsp;<font style="font-size:48px;color:red;"> {{needPayMarketAt}}&nbsp;</font>
<br/> <br/>
<el-button class="padding" @click="toPayAt" type="primary">去付款</el-button>
<el-button class="padding" @click="toPayMarketVisible=true" type="primary">去付款</el-button>
</el-col> </el-col>
</el-row> </el-row>
</p> </p>
<to-pay v-else-if=" toPayVisible && activateTabPaneName=='82'" :task-id="editForm.id" :visible="toPayVisible" :biz-type="'2'" @cancel="toPayVisible=false" @pay-success="onTaskPaySuccess"></to-pay>
<to-pay v-else-if=" toPayMarketVisible && activateTabPaneName=='82'" :task-id="editForm.id" :visible="toPayMarketVisible" :biz-type="'2'" @cancel="toPayMarketVisible=false" @pay-success="onTaskPaySuccess"></to-pay>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="关注" name="91"> <el-tab-pane label="关注" name="91">
<xm-my-do-focus v-if="activateTabPaneName=='91'" :biz-id="editForm.id" :pbiz-id="editForm.projectId" :biz-name="editForm.name" focus-type="2"></xm-my-do-focus> <xm-my-do-focus v-if="activateTabPaneName=='91'" :biz-id="editForm.id" :pbiz-id="editForm.projectId" :biz-name="editForm.name" focus-type="2"></xm-my-do-focus>
@ -560,7 +560,8 @@
activateTabPaneName:'2', activateTabPaneName:'2',
selectParentTaskVisible:false, selectParentTaskVisible:false,
supRequires:[], supRequires:[],
toPayVisible:false,
toPayEfundsVisible:false,
toPayMarketVisible:false,
/**end 在上面加自定义属性**/ /**end 在上面加自定义属性**/
}//end return }//end return
},//end data },//end data
@ -891,17 +892,14 @@
}, },
doAddXmRecordVisit(){ doAddXmRecordVisit(){
addXmRecordVisit({bizId:this.editForm.id,objType:'2',pbizId:this.editForm.projectId}) addXmRecordVisit({bizId:this.editForm.id,objType:'2',pbizId:this.editForm.projectId})
},
toPayAt(){
this.toPayVisible=true;
},
},
onTaskPaySuccess(orderId){ onTaskPaySuccess(orderId){
listXmTask({ids:[this.editForm.id]}).then(res=>{ listXmTask({ids:[this.editForm.id]}).then(res=>{
Object.assign(this.editForm,res.data.data[0]) Object.assign(this.editForm,res.data.data[0])
this.editFormBak={...this.editForm} this.editFormBak={...this.editForm}
this.$emit("pay-success",this.editForm) this.$emit("pay-success",this.editForm)
this.toPayVisible=false;
this.toPayEfundsVisible=false;
this.toPayMarketVisible=false;
}) })
} }

5
src/views/xm/core/xmTaskOrder/ToPay.vue

@ -28,6 +28,7 @@
title="微信支付" title="微信支付"
:visible.sync="weixinPayVisible" :visible.sync="weixinPayVisible"
:show-close="false" :show-close="false"
append-to-body
@close="closeDialog" @close="closeDialog"
width="350px" width="350px"
> >
@ -85,13 +86,13 @@
label: '支付宝', label: '支付宝',
val: '2', val: '2',
icon: aliPayImg, icon: aliPayImg,
isChecked: true
isChecked: false
}, },
{ {
label: '微信', label: '微信',
val: '1', val: '1',
icon: weixinPayImg, icon: weixinPayImg,
isChecked: false
isChecked: true
} }
], ],
agreementChecked:false, agreementChecked:false,

Loading…
Cancel
Save