| | |
| | | <div style="display: flex;margin-top: 20px" class="orange"> |
| | | <div style="flex: 1" >线路原始总路程: |
| | | <span v-if="(model.originDistance ||0) > 0 || (model.status||0) != 0" class="red" style="font-weight: bold"> {{((model.originDistance ||0)/1000).toFixed(2)}}</span> |
| | | <span v-if="(model.originDistance ||0) == 0 && (model.status||0) == 0" class="blue" style="font-weight: bold;cursor: pointer" @click="initDistance"> 点击获取 </span> 公里, |
| | | <span v-if="(model.originDistance ||0) == 0 && (model.status||0) == 0" class="blue" style="font-weight: bold;cursor: pointer" @click="initDistance"> 点击获取 </span> 公里; |
| | | <span v-if="model.status ==2">优化后总路程:<span class="green" style="font-weight: bold"> {{((model.distance ||0)/1000).toFixed(2)}} </span> 公里</span> |
| | | </div> |
| | | </div> |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | min-width="120" |
| | | min-width="160" |
| | | align="center" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaJkSketchCustomerWindow.open('线路客户明细——', row)" icon="el-icon-view" >查看客户</el-button> |
| | | <el-button type="text" @click="$refs.operaJkSketchLineMapWindow.open('线路客户交通路线——', row)" icon="el-icon-view" >交通路线</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-button @click="visible=false">返回</el-button> |
| | | </template> |
| | | <OperaJkSketchCustomerWindow ref="operaJkSketchCustomerWindow" /> |
| | | <OperaJkSketchLineMapWindow ref="operaJkSketchLineMapWindow" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import OperaJkSketchCustomerWindow from '@/components/business/OperaJkSketchCustomerWindow' |
| | | import OperaJkSketchLineMapWindow from '@/components/business/OperaJkSketchLineMapWindow' |
| | | import { initOriginDistance } from '@/api/business/jkSketch' |
| | | export default { |
| | | name: 'OperaJkSketchLineWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, OperaJkSketchCustomerWindow }, |
| | | components: { GlobalWindow, OperaJkSketchCustomerWindow ,OperaJkSketchLineMapWindow}, |
| | | data () { |
| | | return { |
| | | // 表单数据 |
| | |
| | | if(res){ |
| | | that.model.originDistance = res.originDistance |
| | | that.model.distance = res.distance |
| | | that.loadList() |
| | | } |
| | | }) |
| | | }, |