|
@@ -97,33 +97,47 @@
|
|
|
]"
|
|
|
></myCard>
|
|
|
<showIsNone title="订单明细">
|
|
|
- <pageTable
|
|
|
- ref="dingdan"
|
|
|
- :tablecols="tool.tabelCol($route.name).orderTable.tablecols"
|
|
|
- :param="param2"
|
|
|
- :custom="true"
|
|
|
- >
|
|
|
- <template v-slot:custom="scope">
|
|
|
- <div v-if="scope.data.columnname == 'sumamount'">
|
|
|
- {{scope.data.data.sumamount && tool.formatAmount(scope.data.data.sumamount || 0,2,'¥') }}
|
|
|
- </div>
|
|
|
- <div v-else-if="scope.data.columnname == 'writeoffamount'">
|
|
|
- {{scope.data.data.writeoffamount && tool.formatAmount(scope.data.data.writeoffamount || 0,2,'¥') }}
|
|
|
- </div>
|
|
|
- <div v-else-if="scope.data.columnname == 'unoutOrderamount'">
|
|
|
- {{scope.data.data.unoutOrderamount && tool.formatAmount(scope.data.data.unoutOrderamount || 0,2,'¥') }}
|
|
|
- </div>
|
|
|
- <div v-else-if="scope.data.columnname == 'uninvoicamount'">
|
|
|
- {{scope.data.data.uninvoicamount && tool.formatAmount(scope.data.data.uninvoicamount || 0,2,'¥') }}
|
|
|
- </div>
|
|
|
- <div v-else-if="scope.data.columnname == 'unwriteoffamount'">
|
|
|
- {{scope.data.data.unwriteoffamount && tool.formatAmount(scope.data.data.unwriteoffamount || 0,2,'¥') }}
|
|
|
- </div>
|
|
|
- <div v-else>
|
|
|
- {{ scope.data.data[scope.data.columnname] }}
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </pageTable>
|
|
|
+ <div style="float: right;margin-bottom: 10px;margin-top: -40px">
|
|
|
+ <el-button-group>
|
|
|
+ <el-button :type="param2.content.sort[0].sortid == '172'?'primary':''" size="mini" @click="sortChange('订单')">订单</el-button>
|
|
|
+ <el-button :type="param2.content.sort[0].sortid == '173'?'primary':''" size="mini" @click="sortChange('出货')">出货</el-button>
|
|
|
+ <el-button :type="param2.content.sort[0].sortid == '174'?'primary':''" size="mini" @click="sortChange('开票')">开票</el-button>
|
|
|
+ <el-button :type="param2.content.sort[0].sortid == '175'?'primary':''" size="mini" @click="sortChange('回款')">回款</el-button>
|
|
|
+ </el-button-group>
|
|
|
+ <img v-if="param2.content.sort[0].reversed == 0" @click="upSort('down')" width="28" height="28" src="../../../assets/icons/upSort.svg" alt="" style="vertical-align: middle;margin-left: 10px;">
|
|
|
+ <img v-if="param2.content.sort[0].reversed == 1" @click="upSort('up')" width="28" height="28" src="../../../assets/icons/downSort.svg" alt="" style="vertical-align: middle;margin-left: 10px;">
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <pageTable
|
|
|
+ ref="dingdan"
|
|
|
+ :tablecols="tool.tabelCol($route.name).orderTable.tablecols"
|
|
|
+ :param="param2"
|
|
|
+ :custom="true"
|
|
|
+ >
|
|
|
+ <template v-slot:custom="scope">
|
|
|
+ <div v-if="scope.data.columnname == 'sumamount'">
|
|
|
+ {{scope.data.data.sumamount && tool.formatAmount(scope.data.data.sumamount || 0,2,'¥') }}
|
|
|
+ </div>
|
|
|
+ <div v-else-if="scope.data.columnname == 'writeoffamount'">
|
|
|
+ {{scope.data.data.writeoffamount && tool.formatAmount(scope.data.data.writeoffamount || 0,2,'¥') }}
|
|
|
+ </div>
|
|
|
+ <div v-else-if="scope.data.columnname == 'unoutOrderamount'">
|
|
|
+ {{scope.data.data.unoutOrderamount && tool.formatAmount(scope.data.data.unoutOrderamount || 0,2,'¥') }}
|
|
|
+ </div>
|
|
|
+ <div v-else-if="scope.data.columnname == 'uninvoicamount'">
|
|
|
+ {{scope.data.data.uninvoicamount && tool.formatAmount(scope.data.data.uninvoicamount || 0,2,'¥') }}
|
|
|
+ </div>
|
|
|
+ <div v-else-if="scope.data.columnname == 'unwriteoffamount'">
|
|
|
+ {{scope.data.data.unwriteoffamount && tool.formatAmount(scope.data.data.unwriteoffamount || 0,2,'¥') }}
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ {{ scope.data.data[scope.data.columnname] }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </pageTable>
|
|
|
</showIsNone>
|
|
|
</el-card>
|
|
|
</div>
|
|
@@ -454,8 +468,13 @@ export default {
|
|
|
"isAll":1,
|
|
|
"hrid":this.$route.query.id,
|
|
|
"where": {
|
|
|
- type:''
|
|
|
- }
|
|
|
+ "type":''
|
|
|
+ },
|
|
|
+ "sort":[{
|
|
|
+ "reversed": 1,//1降序,0升序
|
|
|
+ "sorted": 1,
|
|
|
+ "sortid": 172,//订单:172,出货:173,开票:174,回款:175
|
|
|
+ }]
|
|
|
}
|
|
|
},
|
|
|
//销售线索
|
|
@@ -547,7 +566,7 @@ export default {
|
|
|
performance:{},
|
|
|
contractTypeList:[],
|
|
|
orderTypeList:[],
|
|
|
- stageList:[]
|
|
|
+ stageList:[],
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -605,6 +624,27 @@ export default {
|
|
|
return this.tool.formatAmount(num / 10000,2,'¥') + '万'
|
|
|
}
|
|
|
},
|
|
|
+ /*订单明细排序*/
|
|
|
+ sortChange(val){
|
|
|
+ if (val === '订单'){
|
|
|
+ this.param2.content.sort[0].sortid = 172
|
|
|
+ }else if (val === '出货'){
|
|
|
+ this.param2.content.sort[0].sortid = 173
|
|
|
+ }else if (val === '开票'){
|
|
|
+ this.param2.content.sort[0].sortid = 174
|
|
|
+ }else if (val === '回款'){
|
|
|
+ this.param2.content.sort[0].sortid = 175
|
|
|
+ }
|
|
|
+ this.$refs.dingdan.listData()
|
|
|
+ },
|
|
|
+ upSort(val){
|
|
|
+ if (val === 'down'){
|
|
|
+ this.param2.content.sort[0].reversed = 1
|
|
|
+ }else {
|
|
|
+ this.param2.content.sort[0].reversed = 0
|
|
|
+ }
|
|
|
+ this.$refs.dingdan.listData()
|
|
|
+ }
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getbaseInfo()
|