You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
52 lines
1.3 KiB
<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>
|