|
|
@@ -53,8 +53,8 @@
|
|
|
</radio-group>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false" v-if="form.flower == 1">
|
|
|
- <view class="tui-title">没有库存</view>
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">库存不足</view>
|
|
|
<radio-group class="tui-input" @change="stockSetChange">
|
|
|
<label class="list" for="stockCouldOrder">
|
|
|
<radio id="stockCouldOrder" value="1" :checked="form.stockSet == 1" style="transform: scale(0.8,0.8);" />
|
|
|
@@ -159,7 +159,7 @@ import { mapGetters } from "vuex";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import AppUploader from "@/components/app-uploader";
|
|
|
const form = require("@/utils/formValidation.js");
|
|
|
-import { getCategory } from "@/utils/config";
|
|
|
+import { getClass } from "@/api/category";
|
|
|
import { getDetailB, addB, updateB } from "@/api/goods";
|
|
|
//图片上传插件来源:https://ext.dcloud.net.cn/plugin?id=2922 已改造,不能再升级 shish 20211228
|
|
|
import htzImageUpload from './components/htz-image-upload/htz-image-upload.vue'
|
|
|
@@ -190,18 +190,14 @@ export default {
|
|
|
flower:1,
|
|
|
flowerNum:0,
|
|
|
stockSet:1
|
|
|
- }
|
|
|
+ },
|
|
|
+ categoryData:[]
|
|
|
};
|
|
|
},
|
|
|
- computed: {
|
|
|
- ...mapGetters({ categoryData: "getCategory" })
|
|
|
- },
|
|
|
onLoad() {
|
|
|
const token = uni.getStorageSync('token')
|
|
|
this.headers.token = token
|
|
|
},
|
|
|
- watch:{
|
|
|
- },
|
|
|
methods: {
|
|
|
imgDeleteFn(res){
|
|
|
const index = res.index
|
|
|
@@ -232,7 +228,13 @@ export default {
|
|
|
this.form.sold = res.data.sold
|
|
|
this.currentImgData = res.data.smallImgList
|
|
|
this.form.shopImg = res.data.shortImgList
|
|
|
- getCategory(res.data.flower,false)
|
|
|
+
|
|
|
+ getClass({flower:res.data.flower}).then(res => {
|
|
|
+ if(res.code && res.code == 1){
|
|
|
+ this.categoryData = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
formSubmit(e) {
|