|
@@ -58,10 +58,10 @@
|
|
|
<el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="订单金额" prop="totalAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="返利类型" prop="walletRebateName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="返利钱包" prop="customerWalletName2" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="返利金额" prop="rebateAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="格力折扣" prop="deductAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="现金钱包" prop="walletRebateName2" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="现金钱包" prop="customerWalletName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="实付金额" prop="payAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="是否直调" prop="isDirectTransfer" min-width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
@@ -69,7 +69,12 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="直调数量" prop="directTransferQty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="原订单数量" prop="oldQty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="可退数量" prop="refundableQty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="退订数量" prop="tdQty" min-width="100" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-model="scope.row.tdQty" size="small" type="number"></el-input>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="税率" prop="tax" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
</el-table>
|
|
@@ -88,10 +93,10 @@
|
|
|
<div class="label">退订日期</div>
|
|
|
<div class="value">{{nowDate}}</div>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" class="item">
|
|
|
+ <!-- <el-col :span="24" class="item">
|
|
|
<div class="label">退订说明</div>
|
|
|
<div class="value"><el-input v-model="mainForm.remark" placeholder="请输入内容"></el-input></div>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
</el-row>
|
|
|
</div>
|
|
|
|
|
@@ -131,7 +136,6 @@ export default {
|
|
|
|
|
|
formLoading: false,
|
|
|
mainForm: {
|
|
|
- status: true,
|
|
|
remark: '',
|
|
|
}
|
|
|
}
|
|
@@ -181,13 +185,26 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- // 提交审批
|
|
|
+ // 提交
|
|
|
clickSubmitForm() {
|
|
|
+ for(let i=0; i<this.detailData.retailOrderItemList.length; i++) {
|
|
|
+ if(this.detailData.retailOrderItemList[i].tdQty === '' || this.detailData.retailOrderItemList[i].tdQty === null) {
|
|
|
+ this.$errorMsg('请填写退订数量');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(Number(this.detailData.retailOrderItemList[i].tdQty) < 0) {
|
|
|
+ this.$errorMsg('退订数量不可为负数');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
this.formLoading = true;
|
|
|
returnData({
|
|
|
id: this.listItem.id,
|
|
|
- examineStatus: this.mainForm.status ? 'OK' : 'FAIL',
|
|
|
- examineRemark: this.mainForm.remark,
|
|
|
+ type: 1, // 1:普通零售单,2:政策零售单
|
|
|
+ // examineRemark: this.mainForm.remark,
|
|
|
+ theTime: this.detailData.theTime,
|
|
|
+ retailOrderItemList: this.detailData.retailOrderItemList
|
|
|
}).then(res => {
|
|
|
this.$successMsg('退订成功');
|
|
|
this.goBack();
|