Commit 4d81ada7 authored by zhengke's avatar zhengke
parents c0228b47 f98759e7
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
<el-tooltip class="item" effect="dark" content="一键制单" placement="top"> <el-tooltip class="item" effect="dark" content="一键制单" placement="top">
<el-button @click="YijianZD(item)" type="danger" class="CM_look" icon="iconfont icon-mui-icon-add" circle></el-button> <el-button @click="YijianZD(item)" type="danger" class="CM_look" icon="iconfont icon-mui-icon-add" circle></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="手动制单" placement="top">
<el-button type="primary" class="CM_look" @click="goUrlZD" icon="iconfont icon-danju1" circle></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="查看" placement="top"> <el-tooltip class="item" effect="dark" content="查看" placement="top">
<el-button type="primary" class="CM_look" @click="goUrl('DjCommissionDetail',item.ID)" icon="iconfont icon-chakan" circle></el-button> <el-button type="primary" class="CM_look" @click="goUrl('DjCommissionDetail',item.ID)" icon="iconfont icon-chakan" circle></el-button>
</el-tooltip> </el-tooltip>
...@@ -70,6 +73,27 @@ ...@@ -70,6 +73,27 @@
this.getList(); this.getList();
}, },
methods: { methods: {
goUrlZD(){
let orderObj = {
OrderID: 0,
OrderSource: 8,
Obj: {},
SourceID: 0,
CostType: 112,
SelectState:true,
}
console.log(JSON.stringify(orderObj))
let id=[29,31];
this.$router.push({
name: 'ChoiceAddFinancialDocuments',
query: {
Type: 2,
templateID: JSON.stringify(id),
'blank': 'y',
'orderObj': JSON.stringify(orderObj)
}
})
},
YijianZD(item){ YijianZD(item){
this.$confirm('提成金额是否正确?', '提示', { this.$confirm('提成金额是否正确?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -95,26 +119,26 @@ ...@@ -95,26 +119,26 @@
}); });
}, },
goUrlZD(num){ // goUrlZD(num){
let orderObj = { // let orderObj = {
OrderID: 0, // OrderID: 0,
OrderSource: 8, // OrderSource: 8,
Obj: {}, // Obj: {},
SourceID: 0, // SourceID: 0,
CostType: num, // CostType: num,
SelectState:true, // SelectState:true,
} // }
let id=[29,31]; // let id=[29,31];
this.$router.push({ // this.$router.push({
name: 'ChoiceAddFinancialDocuments', // name: 'ChoiceAddFinancialDocuments',
query: { // query: {
Type: 2, // Type: 2,
templateID: JSON.stringify(id), // templateID: JSON.stringify(id),
'blank': 'y', // 'blank': 'y',
'orderObj': JSON.stringify(orderObj) // 'orderObj': JSON.stringify(orderObj)
} // }
}) // })
}, // },
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.PageIndex = val; this.msg.PageIndex = val;
this.getList(); this.getList();
......
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