多规则生成问题

main
wangdong 3 months ago
commit b70702431f
  1. 2
      src/common/model/goods/MultiSpec.js
  2. 1
      src/views/goods/Index.vue
  3. 3
      src/views/goods/modules/MultiSpec.vue
  4. 30
      src/views/market/settle/modules/details.vue

@ -220,7 +220,6 @@ export default class MultiSpec {
if (!oldSkuList.length || !newSkuList.length) {
return newSkuList
}
console.log(oldSkuList, newSkuList)
for (const index in newSkuList) {
// 查找符合的旧记录
let oldSkuItem = {}
@ -262,7 +261,6 @@ export default class MultiSpec {
}
return newSkuList
}
// 生成sku表格字段名
buildSkuColumns (rowSpanArr) {
const specList = this.multiSpecData.specList

@ -236,7 +236,6 @@ const columns = [
width: '90px',
dataIndex: 'spec_type',
scopedSlots: { customRender: 'spec_type' },
sorter: true,
},
{
title: '商品价格',

@ -134,7 +134,7 @@
<!-- <router-link v-if="item.goods_id" :to="{ path: '/goods/update', query: { goodsId: item.goods_id } }"
>去修改</router-link
> -->
<a @click="handleEdit(index, item)" v-if="item.goods_id" style="margin-left: 10px">去修改</a>
<a @click="handleEdit(item)" v-if="item.goods_id" style="margin-left: 10px">去修改</a>
<a @click="handleCancel(index)" v-if="item.goods_id" style="margin-left: 10px">取消选择</a>
</template>
</a-table>
@ -194,7 +194,6 @@ export default {
created() {
// SKU
this.getData()
console.log(this.multiSpecData)
},
methods: {
handleEdit(item) {

@ -109,20 +109,23 @@
</a-form-item></a-col
> </a-row
><a-row>
<a-col :span="12" style="margin-bottom:50px">
<a-col :span="12" style="margin-bottom: 50px">
<a-form-item label="身份证信息" :labelCol="labelCol" :wrapperCol="wrapperCol">
<SelectImage
v-if="idCardShow"
ref="childComponent"
:type='1'
:type="1"
multiple
:source="1"
:maxNum="10"
:defaultList="record.idCardUrl"
/> </a-form-item
></a-col>
<a-col :span="12" style="margin-bottom:50px">
<a-col :span="12" style="margin-bottom: 50px">
<a-form-item label="营业执照信息" :labelCol="labelCol" :wrapperCol="wrapperCol">
<SelectImage :type='1'
<SelectImage
v-if="businesShow"
:type="1"
ref="childComponent"
multiple
:source="1"
@ -202,29 +205,32 @@ export default {
form: this.$form.createForm(this),
//
record: {},
idCardShow: false,
businesShow: false,
}
},
created() {},
methods: {
details(info) {
this.visible = true
this.idCardShow = false
this.businesShow = false
this.record = {}
this.record.idCardUrl = []
this.record.businessCareUrl = []
Api.detail({ id: info })
.then((result) => {
this.idCardShow = true
this.businesShow = true
this.record = result.data.detail
})
.finally(() => (this.isLoading = false))
},
//
show(record) {
//
this.visible = true
//
this.record = record
},
//
handleCancel() {
this.visible = false
this.idCardShow = false
this.businesShow = false
this.form.resetFields()
},
},

Loading…
Cancel
Save