Commit 9a1c598a authored by 黄奎's avatar 黄奎

11

parent 1317b643
......@@ -2006,7 +2006,6 @@
},
SaveQuota() {
let leaderGetPrice = 0;
//leadr.LeaderGetPriceT
if (this.msgCompanyAlipay.QuotaCreateList && this.msgCompanyAlipay.QuotaCreateList.length > 0) {
this.msgCompanyAlipay.QuotaCreateList.forEach((x, index) => {
leaderGetPrice += Number(x.QuotaValue);
......
......@@ -152,6 +152,7 @@
</template>
&nbsp;
<el-button v-if="subItem.CarIsPush!=1" type="text" @click="setBusOrder(subItem)">同步</el-button>
<el-button v-else type="text" @click="cancelBusOrder(subItem)" style="color:red;">取消</el-button>
</td>
</template>
<template v-else>
......@@ -212,6 +213,28 @@
})
});
},
//取消车订单
cancelBusOrder(item) {
var that = this;
var tipMsg = "是否要取消【" + (item.DMCNum ? item.DMCNum : item.TCNUM) + "】此车订单?"
that.Confirm(tipMsg, function () {
var orderMsg = {
MainId: item.MainId,
CancelRemark: 'ERP取消车订单'
};
that.loading = true;
that.loadingText = "正在取消数据...";
that.apipost('JapanCar_get_CancelJapanOrderMain', orderMsg, res => {
that.loading = false;
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
} else {
this.Error(res.data.message);
}
})
});
},
//跳转到车订单
goToBus(mainOrderId) {
let carUrl = this.domainManager().CarUrl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment