|
|
@@ -16,24 +16,24 @@
|
|
|
<div v-else>{{scope.column.data[scope.column.columnname]||scope.column.columnname ==='operation'?scope.column.data[scope.column.columnname] : '--'}}</div>
|
|
|
</template>
|
|
|
</tableDetail>
|
|
|
- <div style="margin-top:16px;text-align:right">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- small
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage"
|
|
|
- :page-size="params.content.pageSize"
|
|
|
- layout="total, prev, pager, next, jumper"
|
|
|
- :total="total">
|
|
|
- </el-pagination>
|
|
|
- </div>
|
|
|
+<!-- <div style="margin-top:16px;text-align:right">-->
|
|
|
+<!-- <el-pagination-->
|
|
|
+<!-- background-->
|
|
|
+<!-- small-->
|
|
|
+<!-- @size-change="handleSizeChange"-->
|
|
|
+<!-- @current-change="handleCurrentChange"-->
|
|
|
+<!-- :current-page="currentPage"-->
|
|
|
+<!-- :page-size="params.content.pageSize"-->
|
|
|
+<!-- layout="total, prev, pager, next, jumper"-->
|
|
|
+<!-- :total="total">-->
|
|
|
+<!-- </el-pagination>-->
|
|
|
+<!-- </div>-->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
- props:['data','paytype'],
|
|
|
+ props:['data','paytype','addList'],
|
|
|
data() {
|
|
|
return {
|
|
|
tableSelectData:[],
|
|
|
@@ -58,13 +58,40 @@
|
|
|
},
|
|
|
methods:{
|
|
|
async listData () {
|
|
|
+ console.log('重新查询')
|
|
|
+ this.tableData = []
|
|
|
this.params.content.sa_logisticsid = this.$route.query.id?this.$route.query.id:0
|
|
|
this.params.content.sys_enterpriseid = this.data.sys_enterpriseid
|
|
|
this.params.content.paytype = this.params.content.freightstatus = this.paytype
|
|
|
const res = await this.$api.requested(this.params)
|
|
|
- this.tableData = res.data
|
|
|
- this.total = res.total
|
|
|
- this.currentPage = res.pageNumber
|
|
|
+ console.log(this.addList,'列表1111')
|
|
|
+ // this.tableData = res.data
|
|
|
+ if (this.addList.length > 0){
|
|
|
+ let indexof = 0
|
|
|
+ let dataNew = []
|
|
|
+ res.data.forEach((t,indexs)=>{
|
|
|
+ let float = 0
|
|
|
+ this.addList.forEach((i,index)=>{
|
|
|
+ if (t.sa_dispatchid == i.sa_dispatchid){
|
|
|
+ float = 1
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(float,'float')
|
|
|
+ if (float != 1){
|
|
|
+ dataNew[indexof] = res.data[indexs]
|
|
|
+ indexof = indexof + 1
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.tableData = dataNew
|
|
|
+ console.log(res.data,'11111')
|
|
|
+ console.log(this.tableData,'1111%%%%')
|
|
|
+
|
|
|
+ }else {
|
|
|
+ this.tableData = res.data
|
|
|
+ }
|
|
|
+
|
|
|
+ // this.total = res.total
|
|
|
+ // this.currentPage = res.pageNumber
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|