diff --git a/pages/add-paper/index.vue b/pages/add-paper/index.vue
index 0700d46..bc26f31 100644
--- a/pages/add-paper/index.vue
+++ b/pages/add-paper/index.vue
@@ -57,12 +57,20 @@
纸种信息
+
-
+
@@ -285,7 +293,7 @@ import { back, go2, uploadFile } from '@/utils/hook.js'
import qnEasyinput from '@/components/qn-easyinput/qn-easyinput.vue'
import uGap from '@/components/u-gap/u-gap.vue'
import { getCategoryList, createProduct, getSupplierDteail, updateProduct } from '@/apis/add-paper.js'
-const validateFields = ['name', 'isMainProductRep', 'manufacturerName', 'brandName', 'categoryId']
+const validateFields = ['name', 'isMainProductRep', 'manufacturerName', 'brandName', 'categoryName']
const validatePriceFields = ['isPromoting', 'listPrice', 'minimum', 'stock', 'stockUnit', 'weight']
export default {
components: {
@@ -300,7 +308,7 @@ export default {
isMainProductRep: 0,
manufacturerName: null,
brandName: null,
- categoryId: null
+ categoryName: null
},
imageStyles: {
width: 100,
@@ -372,7 +380,7 @@ export default {
},
paperSelectChange(item) {
this.$set(this.form, 'categoryName', item.name)
- this.$set(this.form, 'categoryId', item.id)
+ // this.$set(this.form, 'categoryId', item.id)
this.$refs.paperpopup.close()
},
paperpopupShow() {
@@ -400,11 +408,11 @@ export default {
this.skuList[j].isPromoting = 1
}
}
- for(let x =0;x {
SupplierList({ ...this.orderPagination })
.then(res => {
- console.log('纸品列表', res)
if (res) {
if (res.records.length === 0) {
this.pageShow = false