Commit 359fdb08 by wangql

修复一些BUG

1 parent 16d8d2ee
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
<div class="cusInfo"> <div class="cusInfo">
<span class="d2-atr-item"><span <span class="d2-atr-item"><span
class="d2-atr-item-label">客户姓名:</span>{{orderInfo.order.customer.customerName}}</span> class="d2-atr-item-label">客户姓名:</span>{{orderInfo.order.customer.customerName}}</span>
<span class="d2-atr-item"><span <span class="d2-atr-item"
style="width:40%"><span
class="d2-atr-item-label">车型:</span>{{Util.fieldShow(orderInfo.order.customer.carBrand,'') + ' - ' + Util.fieldShow(orderInfo.order.customer.carChildsBrandName,'') + ' - ' + Util.fieldShow(orderInfo.order.customer.carSeriesName,'')}}</span> class="d2-atr-item-label">车型:</span>{{Util.fieldShow(orderInfo.order.customer.carBrand,'') + ' - ' + Util.fieldShow(orderInfo.order.customer.carChildsBrandName,'') + ' - ' + Util.fieldShow(orderInfo.order.customer.carSeriesName,'')}}</span>
<span class="d2-atr-item"><span <span class="d2-atr-item"><span
class="d2-atr-item-label">车架号:</span>{{orderInfo.order.customer.standNo}}</span> class="d2-atr-item-label">车架号:</span>{{orderInfo.order.customer.standNo}}</span>
...@@ -34,14 +35,14 @@ ...@@ -34,14 +35,14 @@
placement="right"> placement="right">
<span class="el-icon-info"></span> <span class="el-icon-info"></span>
</el-tooltip> </el-tooltip>
<div>销售订单号:</div> <div>
<div <span
v-if="orderInfo.erpOrderResponse && Object.keys(this.orderInfo.erpOrderResponse).length == 1"> v-if="orderInfo.erpOrderResponse && Object.keys(this.orderInfo.erpOrderResponse).length == 1">
{{Object.keys(this.orderInfo.erpOrderResponse)[0]}} 销售订单号:{{Object.keys(this.orderInfo.erpOrderResponse)[0]}}</span>
</div> </div>
<div style="width:310px;display: inline-block;" <div style="width:310px;display: inline-block;"
v-if="['2', '5'].includes(orderInfo.order.outboundStatus) && orderInfo.erpOrderResponse && Object.keys(this.orderInfo.erpOrderResponse).length > 1"> v-if="['2', '5'].includes(orderInfo.order.outboundStatus) && orderInfo.erpOrderResponse && Object.keys(this.orderInfo.erpOrderResponse).length > 1">
<!-- 销售订单号: --> 销售订单号:
<el-select v-model="erpOrderResponse_orderNo" <el-select v-model="erpOrderResponse_orderNo"
placeholder="请选择" placeholder="请选择"
@change="changeOrderNo"> @change="changeOrderNo">
...@@ -65,14 +66,14 @@ ...@@ -65,14 +66,14 @@
size="mini" size="mini"
class="captchaBtn" class="captchaBtn"
@click="queryCode" @click="queryCode"
v-if="(!orderInfo.storeCode || orderInfo.order.outboundStatus == '1') && jurisdictionBtn" v-if="(!orderInfo.storeCode || orderInfo.order.outboundStatus == '1' || !orderInfo.erpOrderResponse) && jurisdictionBtn"
:disabled="!orderInfo.order.customer.standNo"> :disabled="!orderInfo.order.customer.standNo">
查询物料 查询物料
</el-button> </el-button>
<p class="captchaMsg" <p class="captchaMsg"
v-if="!orderInfo.order.customer.standNo">车架号为空,无法查询,请在小程序上补充该订单客户车架号再尝试。</p> v-if="!orderInfo.order.customer.standNo">车架号为空,无法查询,请在小程序上补充该订单客户车架号再尝试。</p>
</div> </div>
<div v-if="orderInfo.storeCode"> <!-- <div v-if="orderInfo.storeCode"> -->
<div style="textAlign:center; padding:5px 0;color:blue" <div style="textAlign:center; padding:5px 0;color:blue"
v-if="orderInfo.order.outboundStatus == '2' && !orderInfo.erpOrderResponse"> v-if="orderInfo.order.outboundStatus == '2' && !orderInfo.erpOrderResponse">
已查询,等待数据返回 已查询,等待数据返回
...@@ -111,7 +112,7 @@ ...@@ -111,7 +112,7 @@
<!-- style="font-weight: bold;" --> <!-- style="font-weight: bold;" -->
</el-form> </el-form>
</div> </div>
</div> <!-- </div> -->
<div class="sub-head"> <div class="sub-head">
<p class="sub-title">出库产品</p> <p class="sub-title">出库产品</p>
<el-tooltip effect="dark" <el-tooltip effect="dark"
...@@ -119,7 +120,7 @@ ...@@ -119,7 +120,7 @@
placement="right"> placement="right">
<span class="el-icon-info"></span> <span class="el-icon-info"></span>
</el-tooltip> </el-tooltip>
<span class="right">销售订单号:{{erpOrderResponse_orderNo}}</span> <span>销售订单号:{{erpOrderResponse_orderNo}}</span>
</div> </div>
<!-- child-drawer-block --> <!-- child-drawer-block -->
<el-form class="proForm" <el-form class="proForm"
...@@ -369,13 +370,24 @@ export default { ...@@ -369,13 +370,24 @@ export default {
} }
}) })
this.objList.unshift({ optionId: '-1', optionLabel: '空' }) this.objList.unshift({ optionId: '-1', optionLabel: '空' })
//清空已选项目号及说明
this.orderInfo.subOrderList = this.orderInfo.subOrderList.map(item => {
item.posnr = ''
item.remarks = ''
return item
})
}, },
selectObj(value, index) { selectObj(value, index) {
console.log(value, index) console.log(value, index)
if (value != -1) { if (value != -1) {
this.selectedOptions[index] = value this.selectedOptions[index] = value
} else {
if (this.selectedOptions[index]) {
this.selectedOptions[index] = ''
} }
}
console.log(this.selectedOptions);
}, },
getDisable(value) { getDisable(value) {
...@@ -472,6 +484,10 @@ export default { ...@@ -472,6 +484,10 @@ export default {
font-weight: 400; font-weight: 400;
padding-left: 15px; padding-left: 15px;
} }
.car-txt {
height: calc(100% - 66px);
overflow-y: scroll;
}
.car-txt .examineP { .car-txt .examineP {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 14px; font-size: 14px;
......
...@@ -243,8 +243,13 @@ export default { ...@@ -243,8 +243,13 @@ export default {
return sums return sums
}, },
handleClose() { handleClose() {
if (this.$route.params.from) {//从待补录订单列表跳转
this.close({ tagName: '/orderSupplement' })
this.$router.push({ name: 'orderSupplement' })
} else {//从订单列表跳转
this.close({ tagName: '/orderList' }) this.close({ tagName: '/orderList' })
this.$router.push({ name: 'orderList' }) this.$router.push({ name: 'orderList' })
}
this.close({ tagName: '/orderDetail' }) this.close({ tagName: '/orderDetail' })
} }
} }
......
...@@ -39,7 +39,12 @@ ...@@ -39,7 +39,12 @@
:searchForm="searchFormSearch" :searchForm="searchFormSearch"
:tableParams="tableParams" :tableParams="tableParams"
:beforeSearchFn="beforeSearchFn"> :beforeSearchFn="beforeSearchFn">
<template slot="auth-button"
slot-scope="scope">
<el-button type="text"
v-if="scope.scope.inputtedOrderCode"
@click="orderDetail(scope.scope)">订单详情</el-button>
</template>
</d2-table> </d2-table>
</div> </div>
...@@ -54,7 +59,7 @@ import { Util } from '@/common/util' ...@@ -54,7 +59,7 @@ import { Util } from '@/common/util'
import _ from 'lodash' import _ from 'lodash'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { getParkStore } from '@api/editCustomer' import { getParkStore } from '@api/editCustomer'
import { waitinputorderCount, waitinputorderPage, waitinputorderExport } from '@api/order' import { waitinputorderCount, waitinputorderPage, waitinputorderExport, getList } from '@api/order'
export default { export default {
name: 'orderSupplement', name: 'orderSupplement',
data() { data() {
...@@ -140,7 +145,7 @@ export default { ...@@ -140,7 +145,7 @@ export default {
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableOption: false, tableOption: true,
tableColumns: [{ tableColumns: [{
label: '交易参考号', label: '交易参考号',
prop: 'tradeNo', prop: 'tradeNo',
...@@ -328,6 +333,18 @@ export default { ...@@ -328,6 +333,18 @@ export default {
waitinputorderExport(params).then(res => { waitinputorderExport(params).then(res => {
this.$open(res) this.$open(res)
}) })
},
orderDetail(row) {
getList({ orderCode: row.inputtedOrderCode }).then(res => {
this.$router.push({
name: 'orderDetail',
params: {
detail: res.list[0],
from: 'orderSupplement'
}
})
})
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!