订单相关

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, // settlementPriceUnit: e.settlementPrice || 0, //
serviceFee: 0, // serviceFee: 0, //
mallNonAssociatedLinks: e.mallNonAssociatedLinks, // mallNonAssociatedLinks: e.mallNonAssociatedLinks, //
typeId: e.typeId,
typeName: e.typeName, typeName: e.typeName,
classificationId: e.classificationId, classificationId: e.classificationId,
} }

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

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

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

Loading…
Cancel
Save