From ab306e452f9eac7e1af4b1b52f781aaed3d4b2ba Mon Sep 17 00:00:00 2001
From: wangchenguang <728837162@qq.com>
Date: Wed, 12 Apr 2023 14:38:42 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/order/AddOrder.vue | 38 ++++++++++++++++++++++++++----------
1 file changed, 28 insertions(+), 10 deletions(-)
diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue
index c9729f9..5e6a075 100644
--- a/src/views/order/AddOrder.vue
+++ b/src/views/order/AddOrder.vue
@@ -118,7 +118,8 @@
一键发货
- 取消全部发货
+ 取消全部发货
+
添加
@@ -237,7 +238,7 @@
3、处理中的订单显示发货,不显示禁用
-->
{
this.getDataJurisdiction();
}, 500);
- }
+ },
},
async created() {
this.getTeam()
@@ -1207,7 +1209,8 @@ export default {
if (this.coursePermissions.length) {
let courseVerify =
this.coursePermissions.some(e => {
- if (!e.periodOfUse || e.finalPrice === '') {
+ // if (!e.periodOfUse || e.finalPrice === '') {
+ if (!e.periodOfUse || e.finalPrice === '' || !e.startTime) {
return false;
} else {
const curPurchase = +e.settlementPrice + (e.settlementPrice * (this.rate / 100))
@@ -1292,6 +1295,7 @@ export default {
orderOther: tempArr//俩列表
};
this.loading = true;
+ console.log(param)
if (this.editDisabled) {
this.$post(this.api.orderUpdate, param).then(res => {
this.refreshCache()
@@ -1410,7 +1414,7 @@ export default {
discountRate: "",// 折扣率
accountNum: "",// 账号数
totalAmount: "",// 总价
- isEnable: 1, // 启用否:1启用,0禁用
+ isEnable: 0, // 启用否:1启用,0禁用
ship: 0,// 发货否(0未发货,1已发货,默认不发货)
authority: 1, // 区分权限 0为数据平台权限,1为课程权限
options: 1,
@@ -1647,16 +1651,28 @@ export default {
},
// 课程/数据平台-启用
handleEnable(e, row) {
-
+ console.log('1111=>',e)
+ console.log('row=>',row)
+ if (row.isEnable === 0 ) {
+ this.pageTypes = false
+ }else {
+ this.pageTypes = false
+ }
},
// 一键发货
batchDeliver(ship, data) {
+ this.pageTypes = !this.pageTypes
const list = data == 1 ?
this.dataPlatformPermissions :
data == 2 ?
this.valuePermissions :
this.coursePermissions
- list.map(e => e.ship = ship)
+ list.map(e => {
+ e.ship = ship
+ if(e.ship === 1) {
+ e.isEnable = 1
+ }
+ })
if (this.editDisabled) {
// this.refreshCache()
// this.$post(this.api.bulkShipping, {
@@ -1666,9 +1682,11 @@ export default {
},
// 课程/数据平台-发货
handleDeliver(e, row) {
- if (this.editDisabled) {
- // this.refreshCache()
- // this.$post(this.api.ship,row).then(res => {});
+ if(row.ship === 1) {
+ row.isEnable = 1
+ this.pageType = true
+ }else {
+ this.pageType = false
}
},
// 如果非数字,则返回0