Ver código fonte

更新商户列表功能

zhuxiuping 2 anos atrás
pai
commit
36f944fc3a

BIN
dist.zip


+ 46 - 40
src/views/selfShop/shopAmend.vue

@@ -26,7 +26,7 @@
 						</el-select>
 					</el-col>
 					<el-col :span="8">
-						<span>商品原价:</span>
+						<span>商品原价(选填):</span>
 						<el-input style="width:200px;" class="margin15" placeholder="请输入商品原价" type="number" :min="0"
 							:controls="false" v-model="originalMoney" autosize></el-input>
 					</el-col>
@@ -36,12 +36,12 @@
 							:controls="false" v-model="goodsMoney" autosize></el-input>
 					</el-col>
 					<el-col :span="8">
-						<span>打包费:</span>
+						<span>打包费(选填):</span>
 						<el-input style="width:200px;" class="margin15" placeholder="请输入打包费" type="number" :min="0"
 							:controls="false" v-model="packMoney" autosize></el-input>
 					</el-col>
 					<el-col :span="8">
-						<span>商品销量:</span>
+						<span>商品销量(选填):</span>
 						<el-input style="width:200px;" class="margin15" placeholder="请输入商品销量" type="number" :min="0"
 							:controls="false" v-model="sales" autosize></el-input>
 					</el-col>
@@ -59,7 +59,7 @@
 						</el-select>
 					</el-col>
 					<el-col :span="8">
-						<span>商品简介:</span>
+						<span>商品简介(选填):</span>
 						<el-input style="width:200px;" class="margin15" placeholder="请输入商品简介" type="text"
 							:controls="false" v-model="goodsDescribe" autosize></el-input>
 					</el-col>
@@ -315,7 +315,7 @@
 				</div>
 			</div>
 			<div class="tinymce-content" style="display: flex;padding-top: 30px;">
-				<div style="width:90px;">商品详情:</div>
+				<div style="width:90px;">商品详情(选填):</div>
 				<!-- <quill-editor ref="myTextEditor" v-model="goodsSynopsis" :options="quillOption"
         	style="padding-bottom: 50px;height: 300px;width: 72%;display: inline-table;margin-bottom: 60px;">
         </quill-editor> -->
@@ -757,13 +757,14 @@
 					return
 				}
 				if (this.originalMoney === '') {
-					this.$notify({
-						title: '提示',
-						duration: 1800,
-						message: '请输入商品原价',
-						type: 'warning'
-					});
-					return
+					this.originalMoney =this.goodsMoney
+					// this.$notify({
+					// 	title: '提示',
+					// 	duration: 1800,
+					// 	message: '请输入商品原价',
+					// 	type: 'warning'
+					// });
+					// return
 				}
 				if (this.goodsMoney === '') {
 					this.$notify({
@@ -775,23 +776,25 @@
 					return
 				}
 				if (this.packMoney === '') {
-					this.$notify({
-						title: '提示',
-						duration: 1800,
-						message: '请输入打包费',
-						type: 'warning'
-					});
-					return
+					this.packMoney ='0'
+					// this.$notify({
+					// 	title: '提示',
+					// 	duration: 1800,
+					// 	message: '请输入打包费',
+					// 	type: 'warning'
+					// });
+					// return
 				}
 
 				if (this.sales === '') {
-					this.$notify({
-						title: '提示',
-						duration: 1800,
-						message: '请输入商品销量',
-						type: 'warning'
-					});
-					return
+					this.sales =0
+					// this.$notify({
+					// 	title: '提示',
+					// 	duration: 1800,
+					// 	message: '请输入商品销量',
+					// 	type: 'warning'
+					// });
+					// return
 				}
 				if (this.inventory === '') {
 					this.$notify({
@@ -821,13 +824,14 @@
 					return
 				}
 				if (this.goodsDescribe == '') {
-					this.$notify({
-						title: '提示',
-						duration: 1800,
-						message: '请输入商品详情',
-						type: 'warning'
-					});
-					return
+					this.goodsDescribe ='无'
+					// this.$notify({
+					// 	title: '提示',
+					// 	duration: 1800,
+					// 	message: '请输入商品详情',
+					// 	type: 'warning'
+					// });
+					// return
 				}
 				// if (this.sku.length == 0) {
 				//   this.$notify({
@@ -839,13 +843,15 @@
 				//   return
 				// }
 				if (this.goodsParticularsPicture.length == 0) {
-					this.$notify({
-						title: '提示',
-						duration: 1800,
-						message: '请上传商品详情图',
-						type: 'warning'
-					});
-					return
+					this.goodsParticularsPicture=['https://moxuanyunshang.oss-cn-beijing.aliyuncs.com/xiangqing/12ecc56005731327e02f42f0d851848.png']
+					console.log(this.goodsParticularsPicture,'详情图')
+					// this.$notify({
+					// 	title: '提示',
+					// 	duration: 1800,
+					// 	message: '请上传商品详情图',
+					// 	type: 'warning'
+					// });
+					// return
 				}
 
 				

+ 60 - 46
src/views/selfShop/shopPublish.vue

@@ -31,7 +31,7 @@
 				<el-input style="width:200px;" class="margin15" placeholder="请输入商户号"  v-model="merchants" autosize></el-input>
 			</el-col> -->
 					<el-col :span="8">
-						<span>商品原价:</span>
+						<span>商品原价(选填):</span>
 						<el-input style="width:200px;" class="margin15" placeholder="请输入商品原价" type="number" :min="0"
 							:controls="false" v-model="originalMoney" autosize></el-input>
 					</el-col>
@@ -41,12 +41,12 @@
 							:controls="false" v-model="goodsMoney" autosize></el-input>
 					</el-col>
 					<el-col :span="8">
-						<span>打包费:</span>
+						<span>打包费(选填):</span>
 						<el-input style="width:200px;" class="margin15" placeholder="请输入打包费" type="number" :min="0"
 							:controls="false" v-model="packMoney" autosize></el-input>
 					</el-col>
 					<el-col :span="8">
-						<span>商品销量:</span>
+						<span>商品销量(选填):</span>
 						<el-input style="width:200px;" class="margin15" placeholder="请输入商品销量" type="number" :min="0"
 							:controls="false" v-model="sales" autosize></el-input>
 					</el-col>
@@ -64,7 +64,7 @@
 						</el-select>
 					</el-col> -->
 					<el-col :span="8">
-						<span>商品简介:</span>
+						<span>商品简介(选填):</span>
 						<el-input style="width:200px;" class="margin15" placeholder="请输入商品简介" type="text"
 							:controls="false" v-model="goodsDescribe" autosize></el-input>
 					</el-col>
@@ -409,7 +409,7 @@
       </div> -->
 			</div>
 			<div class="tinymce-content" style="display: flex;">
-				<div style="width:90px;">商品详情:</div>
+				<div style="width:90px;">商品详情(选填):</div>
 				<!-- <textarea id="tinymceId" :value="goodsDescribe" class="tinymce-textarea" /> -->
 				<!-- <quill-editor ref="myTextEditor" v-model="goodsSynopsis" :options="quillOption"
           style="padding-bottom: 50px;height: 300px;width: 72%;display: inline-table;margin-bottom: 60px;">
@@ -505,7 +505,7 @@
 				},
 				sku: [],
 				img: '',
-				sales:'',
+				sales:0,
 				salesVolume: '',
 				status: 0,
 				goodsPicture: '',
@@ -628,7 +628,7 @@
 					this.originalMoney = '0'
 				}
 				if (this.goodsMoney == '') {
-					this.goodsMoney = '0'
+					this.goodsMoney = this.goodsMoney
 				}
 				this.$http({
 					url: this.$http.adornUrl('admin/goods/onlyFormatAttr'),
@@ -726,13 +726,14 @@
 					return
 				}
 				if (this.originalMoney == '') {
-					this.$notify({
-						title: '提示',
-						duration: 1800,
-						message: '请输入商品原价',
-						type: 'warning'
-					});
-					return
+					this.originalMoney=this.goodsMoney
+					// this.$notify({
+					// 	title: '提示',
+					// 	duration: 1800,
+					// 	message: '请输入商品原价',
+					// 	type: 'warning'
+					// });
+					// return
 				}
 				// if (this.originalMoney < 1) {
 				//   this.$notify({
@@ -743,32 +744,34 @@
 				//   });
 				//   return
 				// }
-				// if (this.goodsMoney == '') {
-				//   this.$notify({
-				//     title: '提示',
-				//     duration: 1800,
-				//     message: '请输入折扣价格',
-				//     type: 'warning'
-				//   });
-				//   return
-				// }
+				if (this.goodsMoney === '') {
+				  this.$notify({
+				    title: '提示',
+				    duration: 1800,
+				    message: '请输入折扣价格',
+				    type: 'warning'
+				  });
+				  return
+				}
 				if (this.packMoney == '') {
-					this.$notify({
-						title: '提示',
-						duration: 1800,
-						message: '请输入打包费',
-						type: 'warning'
-					});
-					return
+					this.packMoney ='0'
+					// this.$notify({
+					// 	title: '提示',
+					// 	duration: 1800,
+					// 	message: '请输入打包费',
+					// 	type: 'warning'
+					// });
+					// return
 				}
 				if (this.goodsDescribe == '') {
-					this.$notify({
-						title: '提示',
-						duration: 1800,
-						message: '请输入简介',
-						type: 'warning'
-					});
-					return
+					this.goodsDescribe ='无'
+					// this.$notify({
+					// 	title: '提示',
+					// 	duration: 1800,
+					// 	message: '请输入简介',
+					// 	type: 'warning'
+					// });
+					// return
 				}
 
 
@@ -792,15 +795,24 @@
 					});
 					return
 				}
-				if (this.goodsDescribe == '') {
+				if (this.potost.length == 0) {
 					this.$notify({
 						title: '提示',
 						duration: 1800,
-						message: '请输入商品详情',
+						message: '请选择商品轮播图',
 						type: 'warning'
 					});
 					return
 				}
+				// if (this.goodsDescribe == '') {
+				// 	this.$notify({
+				// 		title: '提示',
+				// 		duration: 1800,
+				// 		message: '请输入商品详情',
+				// 		type: 'warning'
+				// 	});
+				// 	return
+				// }
 				// if (this.inventory == '') {
 				//   this.$notify({
 				//     title: '提示',
@@ -829,13 +841,15 @@
 					return
 				}
 				if (this.goodsParticularsPicture.length == 0) {
-					this.$notify({
-						title: '提示',
-						duration: 1800,
-						message: '请上传商品详情图',
-						type: 'warning'
-					});
-					return
+					this.goodsParticularsPicture=['https://moxuanyunshang.oss-cn-beijing.aliyuncs.com/xiangqing/12ecc56005731327e02f42f0d851848.png']
+					console.log(this.goodsParticularsPicture,'详情图')
+					// this.$notify({
+					// 	title: '提示',
+					// 	duration: 1800,
+					// 	message: '请上传商品详情图',
+					// 	type: 'warning'
+					// });
+					// return
 				}
 				
 				if (this.guige == 0) {

+ 1 - 0
src/views/selfShop/specification.vue

@@ -96,6 +96,7 @@
     </el-dialog>
     <!-- 修改规格 -->
     <el-dialog title="修改规格" customClass="customWidth" :visible.sync="dialogFormVisible1">
+      <div style="color:red;">此处修改的规格不会改变已生成的商品,如想更改商品信息请去商品列表更新商品</div>
       <el-form :model="form">
         <el-form-item label="规格标题:">
           <el-input v-model="form.ruleName" style="width:200px;" placeholder="请输入分类名称"></el-input>

+ 1 - 1
src/views/vueMchat/vueMchatKf.vue

@@ -448,7 +448,7 @@
           url: this.$http.adornUrlMsg("app/chats/save"),
           method: "post",
           data: this.$http.adornData({
-            storeHead: '码兄外卖',
+            storeHead: '墨轩云商',
             storeId: 0,
 			storeName:'',
 			userId:userId,