|
@@ -133,7 +133,6 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
<el-table
|
|
<el-table
|
|
- class="specTable"
|
|
|
|
:data="goodsList"
|
|
:data="goodsList"
|
|
element-loading-text="Loading"
|
|
element-loading-text="Loading"
|
|
border
|
|
border
|
|
@@ -151,12 +150,14 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center" label="退货数量" prop="waitRefundNum" min-width="120">
|
|
<el-table-column align="center" label="退货数量" prop="waitRefundNum" min-width="120">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-input size="small" type="number" v-model="scope.row.waitRefundNum"></el-input>
|
|
|
|
|
|
+ {{scope.row.waitRefundNum}}
|
|
|
|
+ <!-- <el-input size="small" type="number" v-model="scope.row.waitRefundNum"></el-input> -->
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center" label="退货单价" prop="waitRefundPrice" min-width="120">
|
|
<el-table-column align="center" label="退货单价" prop="waitRefundPrice" min-width="120">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-input size="small" type="number" v-model="scope.row.waitRefundPrice"></el-input>
|
|
|
|
|
|
+ {{scope.row.waitRefundPrice}}
|
|
|
|
+ <!-- <el-input size="small" type="number" v-model="scope.row.waitRefundPrice"></el-input> -->
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center" label="退货金额" prop="amount" min-width="120">
|
|
<el-table-column align="center" label="退货金额" prop="amount" min-width="120">
|
|
@@ -399,17 +400,18 @@
|
|
|
|
|
|
<div slot="footer" class="dialog-footer" style="margin-top: 20px;">
|
|
<div slot="footer" class="dialog-footer" style="margin-top: 20px;">
|
|
<el-button size="mini" @click="data.removeTab()">关 闭</el-button>
|
|
<el-button size="mini" @click="data.removeTab()">关 闭</el-button>
|
|
- <el-button size="mini" @click="detailConfirm(data.removeTab)" type="primary" v-if="activeKey == 'examine'">审核通过</el-button>
|
|
|
|
|
|
+ <el-button size="mini" @click="detailConfirm(data.removeTab, 'FAIL')" type="danger" v-if="activeKey == 'examine'">审核驳回</el-button>
|
|
|
|
+ <el-button size="mini" @click="detailConfirm(data.removeTab, 'OK')" type="primary" v-if="activeKey == 'examine'">审核通过</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
<el-dialog
|
|
- title="选择销售订单"
|
|
|
|
|
|
+ title="选择发货单"
|
|
:visible.sync="isShowOrderDialog"
|
|
:visible.sync="isShowOrderDialog"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
:show-close="false"
|
|
:show-close="false"
|
|
- width="800px">
|
|
|
|
|
|
+ width="1200px">
|
|
|
|
|
|
<div class="screen-container">
|
|
<div class="screen-container">
|
|
<el-form ref="screenForm" :model="screenForm" label-width="90px" size="small" label-position="left">
|
|
<el-form ref="screenForm" :model="screenForm" label-width="90px" size="small" label-position="left">
|
|
@@ -586,6 +588,7 @@ export default {
|
|
},
|
|
},
|
|
formRules: {
|
|
formRules: {
|
|
isReturnOld: [{ required: true, message: '请选择是否退旧机', trigger: 'change' }],
|
|
isReturnOld: [{ required: true, message: '请选择是否退旧机', trigger: 'change' }],
|
|
|
|
+ storageStockId: [{ required: true, message: '请选择退货仓库', trigger: 'change' }],
|
|
},
|
|
},
|
|
formType: 'add',
|
|
formType: 'add',
|
|
formVisible: false,
|
|
formVisible: false,
|
|
@@ -768,8 +771,11 @@ export default {
|
|
getSalesReturnOrderDetail({ id }).then(res => {
|
|
getSalesReturnOrderDetail({ id }).then(res => {
|
|
const data = res.data;
|
|
const data = res.data;
|
|
this.formData.id = data.id;
|
|
this.formData.id = data.id;
|
|
|
|
+ this.formData.deliveryId = data.deliveryId;
|
|
this.formData.companyWechatName = data.companyWechatName;
|
|
this.formData.companyWechatName = data.companyWechatName;
|
|
this.formData.orderId = data.orderId;
|
|
this.formData.orderId = data.orderId;
|
|
|
|
+ this.formData.storageStockId = data.storageStockId;
|
|
|
|
+ this.formData.storageStockName = data.storageStockName;
|
|
this.formData.saleType = data.orderInfo.saleType;
|
|
this.formData.saleType = data.orderInfo.saleType;
|
|
this.formData.saleName = data.orderInfo.saleName;
|
|
this.formData.saleName = data.orderInfo.saleName;
|
|
this.formData.saleMobile = data.orderInfo.saleMobile;
|
|
this.formData.saleMobile = data.orderInfo.saleMobile;
|
|
@@ -879,10 +885,10 @@ export default {
|
|
detailCancel() {
|
|
detailCancel() {
|
|
this.formVisible = false
|
|
this.formVisible = false
|
|
},
|
|
},
|
|
- detailConfirm(cancel) {
|
|
|
|
|
|
+ detailConfirm(cancel, status) {
|
|
salesReturnOrderExamine({
|
|
salesReturnOrderExamine({
|
|
id: this.detailData.id,
|
|
id: this.detailData.id,
|
|
- examineStatus: 'OK',
|
|
|
|
|
|
+ examineStatus: status,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.$message({ type: 'success', message: `审批成功!` })
|
|
this.$message({ type: 'success', message: `审批成功!` })
|
|
cancel('list')
|
|
cancel('list')
|
|
@@ -928,7 +934,8 @@ export default {
|
|
params: [
|
|
params: [
|
|
{param: "a.order_id", compare: "like", value: this.screenForm.orderId},
|
|
{param: "a.order_id", compare: "like", value: this.screenForm.orderId},
|
|
{param: "a.delivery_id", compare: "like", value: this.screenForm.deliveryId},
|
|
{param: "a.delivery_id", compare: "like", value: this.screenForm.deliveryId},
|
|
- {param: "b.goods_name", compare: "like", value: this.screenForm.goodsName}
|
|
|
|
|
|
+ {param: "b.goods_name", compare: "like", value: this.screenForm.goodsName},
|
|
|
|
+ {param: "a.status", compare: "=", value: 'SEND'},
|
|
]
|
|
]
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.orderList = res.data.records;
|
|
this.orderList = res.data.records;
|
|
@@ -973,6 +980,11 @@ export default {
|
|
const data = res.data;
|
|
const data = res.data;
|
|
this.formData.deliveryId = data.deliveryId;
|
|
this.formData.deliveryId = data.deliveryId;
|
|
this.formData.deliverStorageName = data.storageStockName;
|
|
this.formData.deliverStorageName = data.storageStockName;
|
|
|
|
+ data.orderDetailSendList.forEach(item => {
|
|
|
|
+ item.waitRefundNum = item.sendNum;
|
|
|
|
+ item.waitRefundPrice = item.price;
|
|
|
|
+ })
|
|
|
|
+ this.goodsList = data.orderDetailSendList;
|
|
})
|
|
})
|
|
getOrderDetail({ orderId: this.waitChooseOrder[0].orderId }).then((res) => {
|
|
getOrderDetail({ orderId: this.waitChooseOrder[0].orderId }).then((res) => {
|
|
const data = res.data;
|
|
const data = res.data;
|
|
@@ -985,11 +997,11 @@ export default {
|
|
this.formData.receUserName = data.receUserName;
|
|
this.formData.receUserName = data.receUserName;
|
|
this.formData.recePhone = data.recePhone;
|
|
this.formData.recePhone = data.recePhone;
|
|
this.formData.receAddress = data.receAddress;
|
|
this.formData.receAddress = data.receAddress;
|
|
- data.orderDetails.forEach(item => {
|
|
|
|
- item.waitRefundNum = item.num;
|
|
|
|
- item.waitRefundPrice = item.price;
|
|
|
|
- })
|
|
|
|
- this.goodsList = data.orderDetails;
|
|
|
|
|
|
+ // data.orderDetails.forEach(item => {
|
|
|
|
+ // item.waitRefundNum = item.num;
|
|
|
|
+ // item.waitRefundPrice = item.price;
|
|
|
|
+ // })
|
|
|
|
+ // this.goodsList = data.orderDetails;
|
|
this.oldList = data.orderOldProductDTOList;
|
|
this.oldList = data.orderOldProductDTOList;
|
|
|
|
|
|
getOrderCodeList({orderId: data.orderId}).then(res => {
|
|
getOrderCodeList({orderId: data.orderId}).then(res => {
|