|
@@ -258,6 +258,11 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="left" label="备注" prop="remark" min-width="100" show-overflow-tooltip />
|
|
<el-table-column align="left" label="备注" prop="remark" min-width="100" show-overflow-tooltip />
|
|
|
|
+ <el-table-column fixed="right" label="操作" width="100" >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-button @click="handLogistics(scope.row)" type="text" size="small">物流信息</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -274,14 +279,35 @@
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-dialog title="物流信息" :visible.sync="visible" width="60%" @close="onClose" :close-on-click-modal="false">
|
|
|
|
+ <el-timeline class="logistics" :reverse="false" v-if="logisticsDetail.length">
|
|
|
|
+ <el-timeline-item
|
|
|
|
+ placement="top"
|
|
|
|
+ type="success"
|
|
|
|
+ v-for="(item, index) in logisticsDetail"
|
|
|
|
+ :key="index"
|
|
|
|
+ :timestamp="item.time"
|
|
|
|
+ >
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
+ <el-col class="logistics-title"> {{ item.status }} </el-col>
|
|
|
|
+ <el-col>
|
|
|
|
+ <div class="flex">
|
|
|
|
+ <div>{{ item.context }}</div>
|
|
|
|
+ <!-- <div>{{ item.createTime }}</div> -->
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-timeline-item>
|
|
|
|
+ </el-timeline>
|
|
|
|
+ <div v-else class="tip">暂无物流信息</div>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getPickupList, getPickupManList } from '@/api/supply/pickup'
|
|
|
|
|
|
+import { getPickupList, getPickupManList,getListOrderTrack } from '@/api/supply/pickup'
|
|
import { getLogisticsList } from '@/api/basic_data/logistics'
|
|
import { getLogisticsList } from '@/api/basic_data/logistics'
|
|
import { getWarehouseList } from '@/api/supply/engin'
|
|
import { getWarehouseList } from '@/api/supply/engin'
|
|
-
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -307,7 +333,10 @@ export default {
|
|
pickupManList: '',
|
|
pickupManList: '',
|
|
isCollapse: true,
|
|
isCollapse: true,
|
|
logisticsList: [],
|
|
logisticsList: [],
|
|
- warehouseList: []
|
|
|
|
|
|
+ warehouseList: [],
|
|
|
|
+ visible: false,
|
|
|
|
+ orderId: '',
|
|
|
|
+ logisticsDetail: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -414,9 +443,27 @@ export default {
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
this.currentPage = val
|
|
this.currentPage = val
|
|
this.getList()
|
|
this.getList()
|
|
|
|
+ },
|
|
|
|
+ handLogistics(row) {
|
|
|
|
+ getListOrderTrack({ orderId: row.invoiceId }).then(res => {
|
|
|
|
+ this.logisticsDetail = res.data
|
|
|
|
+ })
|
|
|
|
+ this.orderId = row.id
|
|
|
|
+ this.visible = true
|
|
|
|
+ },
|
|
|
|
+ onClose() {
|
|
|
|
+ this.logisticsDetail = []
|
|
|
|
+ this.orderId = ''
|
|
|
|
+ this.visible = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped></style>
|
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
+.tip{
|
|
|
|
+ height: 200px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ line-height: 200px;
|
|
|
|
+}
|
|
|
|
+</style>
|