Browse Source
Merge branch 'devlop' of http://git.qniao.cn/dengxiongfei/paper-shopkeeper-app into devlop
devlop
Merge branch 'devlop' of http://git.qniao.cn/dengxiongfei/paper-shopkeeper-app into devlop
devlop
9 changed files with 168 additions and 77 deletions
Split View
Diff Options
-
16apis/creditManagementApi.js
-
71pages.json
-
4pages/add-record/index.vue
-
3pages/client-detail/equipment-information.vue
-
52pages/credit-management/index.vue
-
2pages/mine/index.vue
-
93pages/trade/quotationList.vue
-
4static/icon/iconfont.css
-
BINstatic/icon/iconfont.ttf
@ -0,0 +1,16 @@ |
|||
import http from '../utils/http/index.js' |
|||
|
|||
// 添加纸品
|
|||
export function addPaper(data) { |
|||
return http.post({ |
|||
url: '/base-paper-trading/create/product', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function getPaperCategory(data) { |
|||
return http.get({ |
|||
url: '/base-paper-trading/get/product/category-list', |
|||
data |
|||
}) |
|||
} |
|||
@ -0,0 +1,52 @@ |
|||
<template> |
|||
<view> |
|||
<uni-nav-bar left-icon="back" @clickLeft="back" statusBar fixed title="征信管理"></uni-nav-bar> |
|||
<view @click="getPaperCategory">category</view> |
|||
<view @click="add">add</view> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
import { go2, back } from '@/utils/hook.js' |
|||
import { addPaper, getPaperCategory } from '@/apis/creditManagementApi.js' |
|||
export default { |
|||
data() { |
|||
return {} |
|||
}, |
|||
methods: { |
|||
go2, |
|||
back, |
|||
getPaperCategory, |
|||
add() { |
|||
let form = { |
|||
brandName: '博汇', |
|||
categoryId: 1, |
|||
description: '156企业测试纸品', |
|||
imgList: ['https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/13390214088425427.jpg'], |
|||
isMainProduct: true, |
|||
manufacturerName: '156纸厂', |
|||
name: '156白卡', |
|||
otherNote: '没有说明', |
|||
sellingProposition: '没有卖点', |
|||
shippingNote: '没有送货说明', |
|||
skuList: [ |
|||
{ |
|||
isPromoting: false, |
|||
listPrice: 10000, |
|||
minimum: 1, |
|||
stock: 100, |
|||
stockUnit: 2, |
|||
weight: 200 |
|||
} |
|||
], |
|||
supplierId: '678289470268772352' |
|||
} |
|||
addPaper(form).then((res) => { |
|||
console.log(res) |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped></style> |
|||
Write
Preview
Loading…
Cancel
Save