From 5bf33c61c0b3a46c0486f365c83c5534c781f944 Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Tue, 2 Apr 2024 14:43:54 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E5=93=81=E9=80=81?=
=?UTF-8?q?=E8=B4=A7=E6=96=B9=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/product/addGood/addGood.vue | 15 ++++++++++-----
pages/product/addGood/addGood_one.vue | 15 ++++++++++-----
pages/product/addGood/addGood_supply.vue | 15 ++++++++++-----
3 files changed, 30 insertions(+), 15 deletions(-)
diff --git a/pages/product/addGood/addGood.vue b/pages/product/addGood/addGood.vue
index 3327286..327698f 100644
--- a/pages/product/addGood/addGood.vue
+++ b/pages/product/addGood/addGood.vue
@@ -156,18 +156,18 @@
-
+ -->
送货方式
-
+
- -->
+
@@ -246,7 +246,7 @@
specifica: '', // 商品规格名称
// setSpecificaValue: '', // 价格设置提示
// setSpecificaValue2: '',
- delivery_way: [1, 2], // 配送方式 1 到店核销 2 快递配送
+ delivery_way: ['1', '2'], // 配送方式 1 到店核销 2 快递配送
delivery_free: '1', // 是否包邮 0不包邮 1包邮
temp_id: '', // 运费模板ID
tempName: '' ,// 运费模板名称
@@ -364,6 +364,9 @@
}
},
methods: {
+ changeDelivery(e){
+ this.setFormData.delivery_way = e.detail.value;
+ },
// 查询详情数据
initDataEditData() {
this.setFormData = {
@@ -413,6 +416,7 @@
if (res.data.content && typeof res.data.content == 'string') res.data.content = JSON.parse(res.data
.content);
this.setFormData.once_min_count <= 0 ? this.setFormData.once_min_count = '' : null;
+ this.setFormData.delivery_way = res.data.delivery_way;
//向组件注入数据
this.$nextTick(() => {
this.$refs.commodityRef.setDatas({
@@ -615,6 +619,7 @@
if (this.setFormData.spec_type == 0) {
console.log('价格库存', this.$refs.priceRef.singleSpecification);
}
+ if(this.setFormData.delivery_way.length==0) return Toast('请至少选择一种送货方式');
let postData = {
...this.setFormData,
...this.$refs.commodityRef.addGoodsSecoundData,
diff --git a/pages/product/addGood/addGood_one.vue b/pages/product/addGood/addGood_one.vue
index 4396505..342b90c 100644
--- a/pages/product/addGood/addGood_one.vue
+++ b/pages/product/addGood/addGood_one.vue
@@ -156,18 +156,18 @@
-
+ -->
送货方式
-
+
- -->
+
@@ -246,7 +246,7 @@
specifica: '', // 商品规格名称
// setSpecificaValue: '', // 价格设置提示
// setSpecificaValue2: '',
- delivery_way: [1, 2], // 配送方式 1 到店核销 2 快递配送
+ delivery_way: ['1', '2'], // 配送方式 1 到店核销 2 快递配送, // 配送方式 1 到店核销 2 快递配送
delivery_free: '1', // 是否包邮 0不包邮 1包邮
temp_id: '', // 运费模板ID
tempName: '' ,// 运费模板名称
@@ -364,6 +364,9 @@
}
},
methods: {
+ changeDelivery(e){
+ this.setFormData.delivery_way = e.detail.value;
+ },
// 查询详情数据
initDataEditData() {
this.setFormData = {
@@ -413,6 +416,7 @@
if (res.data.content && typeof res.data.content == 'string') res.data.content = JSON.parse(res.data
.content);
this.setFormData.once_min_count <= 0 ? this.setFormData.once_min_count = '' : null;
+ this.setFormData.delivery_way = res.data.delivery_way;
//向组件注入数据
this.$nextTick(() => {
this.$refs.commodityRef.setDatas({
@@ -615,6 +619,7 @@
if (this.setFormData.spec_type == 0) {
console.log('价格库存', this.$refs.priceRef.singleSpecification);
}
+ if(this.setFormData.delivery_way.length==0) return Toast('请至少选择一种送货方式');
let postData = {
...this.setFormData,
...this.$refs.commodityRef.addGoodsSecoundData,
diff --git a/pages/product/addGood/addGood_supply.vue b/pages/product/addGood/addGood_supply.vue
index 72c4d3e..48fc31d 100644
--- a/pages/product/addGood/addGood_supply.vue
+++ b/pages/product/addGood/addGood_supply.vue
@@ -169,18 +169,18 @@
-
+ -->
送货方式
-
+
- -->
+
@@ -265,7 +265,7 @@
specifica: '', // 商品规格名称
// setSpecificaValue: '', // 价格设置提示
// setSpecificaValue2: '',
- delivery_way: [1, 2], // 配送方式 1 到店核销 2 快递配送
+ delivery_way: ['1', '2'], // 配送方式 1 到店核销 2 快递配送, // 配送方式 1 到店核销 2 快递配送
delivery_free: '1', // 是否包邮 0不包邮 1包邮
temp_id: '', // 运费模板ID
tempName: '' ,// 运费模板名称
@@ -399,6 +399,9 @@
this.setFormData.attrValue[this.deleteIndex].is_d_show = true;
this.showDelete = false;
},
+ changeDelivery(e){
+ this.setFormData.delivery_way = e.detail.value;
+ },
// 查询详情数据
initDataEditData() {
this.setFormData = {
@@ -451,6 +454,7 @@
if(res.data.attr.length==1&&res.data.attr[0].value=='规格'){ // 供应链默认规格时页面改成默认规格
this.setFormData.spec_type = 0;
}
+ this.setFormData.delivery_way = res.data.delivery_way;
//向组件注入数据
this.$nextTick(() => {
this.$refs.commodityRef.setDatas({
@@ -654,6 +658,7 @@
// if (this.setFormData.spec_type == 0) {
// console.log('价格库存', this.$refs.priceRef.singleSpecification);
// }
+ if(this.setFormData.delivery_way.length==0) return Toast('请至少选择一种送货方式');
let postData = {
...this.setFormData,
...this.$refs.commodityRef.addGoodsSecoundData,