订单相关

master
yujialong 4 months ago
parent 05a9bc94bc
commit 88a91b011a
  1. 1
      order/addCourse/addCourse.vue
  2. 12
      order/editCourse/editCourse.vue
  3. 14
      order/orderDetail/orderDetail.vue
  4. 10
      order/productDetail/productDetail.vue

@ -233,6 +233,7 @@
settlementPriceUnit: e.settlementPrice || 0, //
serviceFee: 0, //
mallNonAssociatedLinks: e.mallNonAssociatedLinks, //
typeId: e.typeId,
typeName: e.typeName,
classificationId: e.classificationId,
}

@ -85,7 +85,7 @@
<script>
import { getOrderOtherTime, queryCitySettlementPrice, renew } from '@/apis/modules/order.js'
import { getPartnerTeamRates } from '@/apis/modules/parner.js'
import { productCategoryList } from '@/apis/modules/product.js'
import { productTypeList } from '@/apis/modules/product.js'
export default {
data() {
return {
@ -132,11 +132,11 @@
let courses = {}
//
productCategoryList().then(res => {
res.classificationList.forEach(e => {
courses['list' + e.classificationId] = {
productTypeList().then(res => {
res.typeList.forEach(e => {
courses['list' + e.typeId] = {
shrink: false,
name: e.classificationName,
name: e.typeName,
deadline: '',
unit: '',
list: []
@ -168,7 +168,7 @@
if (isTrial) {
this.calcDate(e, !e.authority)
}
courses['list' + e.classificationId].list.push(e)
courses['list' + e.typeId].list.push(e)
})
this.courses = courses
}).catch(e => {})

@ -198,7 +198,7 @@
</template>
<script>
import { productCategoryList, delCart } from '@/apis/modules/product.js'
import { productTypeList, delCart } from '@/apis/modules/product.js'
import { queryCustomer, queryCustomerDetails } from '@/apis/modules/client.js'
import { add, getDetail, renew, queryCitySettlementPrice, getOrderOtherTime } from '@/apis/modules/order.js'
import { getPartnerTeamRates } from '@/apis/modules/parner.js'
@ -378,11 +378,11 @@
handleProduct(list) {
let courses = {}
//
productCategoryList().then(res => {
res.classificationList.forEach(e => {
courses['list' + this.$util.getOrderType(e.classificationId)] = {
productTypeList().then(res => {
res.typeList.forEach(e => {
courses['list' + e.typeId] = {
shrink: false,
name: e.classificationName,
name: e.typeName,
deadline: '',
unit: 2,
list: []
@ -407,7 +407,7 @@
e.options = 1
this.calcDate(e, !e.authority)
}
courses['list' + e.authority].list.push(e)
courses['list' + e.typeId].list.push(e)
})
this.courseList = courses
}).catch(e => {})
@ -829,7 +829,7 @@
//
publicNotice() {
uni.requestSubscribeMessage({
tmplIds: ['8pDVfWYqh9c-nn3CeA1NXJtBxdd1FYiCtrl5BeLvbgU'],
tmplIds: ['8pDVfWYqh9c-nn3CeA1NXJtBxdd1FYiCtrl5BeLvbgU', 'mg3RiI8tDNaChVQKjImXzYK63C5Il3BENfBwF0NDzDM'],
success: (res) => {
uni.switchTab({
url: '/pages/orders/orders'

@ -109,7 +109,7 @@
</template>
<script>
import { detailsOfGoods, addToShoppingCart, shoppingCartList, productCategoryList } from '@/apis/modules/product.js'
import { detailsOfGoods, addToShoppingCart, shoppingCartList } from '@/apis/modules/product.js'
export default {
data() {
return {
@ -139,7 +139,6 @@
mallAnnex: []
},
shopCartTotal: 0,
types: [],
dotsStyles: {
backgroundColor: 'rgba(83, 200, 249,0.3)',
border: '1px rgba(83, 200, 249,0.3) solid',
@ -159,7 +158,6 @@
this.id = options.id
this.getInfo()
this.getShopCart()
this.getTypes()
//
try {
uni.removeStorageSync('orderForm')
@ -203,12 +201,6 @@
this.shopCartTotal = data.total
}).catch(e => {})
},
//
getTypes() {
productCategoryList().then(res => {
this.types = res.classificationList
}).catch(e => {})
},
// tab
tabChange(id) {
if ((id === 1 && !this.form.interfaceDiagram) || (id === 2 && (!form.mallAnnex || !form.mallAnnex.length))) return false

Loading…
Cancel
Save