抖音小店准备阶段
This commit is contained in:
1 parent
9e0a3fc10c
commit
17e4dc4a3c
61 files changed
+5154
-1505
No files matched your search
@@ -1,6 +1,7 @@
|
||||
using AllBase;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.Util.Extension;
|
||||
using NaiBa.Util.Winform.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -51,6 +52,8 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
|
||||
private void ProductSelectAddShopForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.dgvSelectShop.AddSelectorColumn("colSelect");
|
||||
|
||||
dgvSelectShop.Rows.Clear();
|
||||
lstShop.Clear();
|
||||
|
||||
|
||||
+13
-13
@@ -590,16 +590,16 @@
|
||||
this.chkDeleteLowPriceSku.Location = new System.Drawing.Point(567, 4);
|
||||
this.chkDeleteLowPriceSku.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkDeleteLowPriceSku.Name = "chkDeleteLowPriceSku";
|
||||
this.chkDeleteLowPriceSku.Size = new System.Drawing.Size(95, 21);
|
||||
this.chkDeleteLowPriceSku.Size = new System.Drawing.Size(99, 21);
|
||||
this.chkDeleteLowPriceSku.TabIndex = 472;
|
||||
this.chkDeleteLowPriceSku.Text = "删除低价sku";
|
||||
this.chkDeleteLowPriceSku.Text = "删除低价SKU";
|
||||
this.chkDeleteLowPriceSku.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkRandomSkuOrder
|
||||
//
|
||||
this.chkRandomSkuOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkRandomSkuOrder.AutoSize = true;
|
||||
this.chkRandomSkuOrder.Location = new System.Drawing.Point(662, 4);
|
||||
this.chkRandomSkuOrder.Location = new System.Drawing.Point(666, 4);
|
||||
this.chkRandomSkuOrder.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkRandomSkuOrder.Name = "chkRandomSkuOrder";
|
||||
this.chkRandomSkuOrder.Size = new System.Drawing.Size(95, 21);
|
||||
@@ -610,7 +610,7 @@
|
||||
// chkSkuRandomPrice
|
||||
//
|
||||
this.chkSkuRandomPrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkSkuRandomPrice.Location = new System.Drawing.Point(757, 4);
|
||||
this.chkSkuRandomPrice.Location = new System.Drawing.Point(761, 4);
|
||||
this.chkSkuRandomPrice.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkSkuRandomPrice.Name = "chkSkuRandomPrice";
|
||||
this.chkSkuRandomPrice.Size = new System.Drawing.Size(110, 21);
|
||||
@@ -626,7 +626,7 @@
|
||||
0,
|
||||
0,
|
||||
131072});
|
||||
this.numSkuRandomPrice.Location = new System.Drawing.Point(867, 3);
|
||||
this.numSkuRandomPrice.Location = new System.Drawing.Point(871, 3);
|
||||
this.numSkuRandomPrice.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numSkuRandomPrice.Name = "numSkuRandomPrice";
|
||||
this.numSkuRandomPrice.Size = new System.Drawing.Size(44, 23);
|
||||
@@ -641,7 +641,7 @@
|
||||
//
|
||||
this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(911, 6);
|
||||
this.label11.Location = new System.Drawing.Point(915, 6);
|
||||
this.label11.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(20, 17);
|
||||
@@ -907,7 +907,7 @@
|
||||
// label17
|
||||
//
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new System.Drawing.Point(933, 71);
|
||||
this.label17.Location = new System.Drawing.Point(952, 71);
|
||||
this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new System.Drawing.Size(20, 17);
|
||||
@@ -922,7 +922,7 @@
|
||||
0,
|
||||
0,
|
||||
131072});
|
||||
this.numAddPrice.Location = new System.Drawing.Point(889, 68);
|
||||
this.numAddPrice.Location = new System.Drawing.Point(908, 68);
|
||||
this.numAddPrice.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numAddPrice.Name = "numAddPrice";
|
||||
this.numAddPrice.Size = new System.Drawing.Size(44, 23);
|
||||
@@ -936,7 +936,7 @@
|
||||
// label16
|
||||
//
|
||||
this.label16.AutoSize = true;
|
||||
this.label16.Location = new System.Drawing.Point(843, 71);
|
||||
this.label16.Location = new System.Drawing.Point(862, 71);
|
||||
this.label16.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label16.Name = "label16";
|
||||
this.label16.Size = new System.Drawing.Size(48, 17);
|
||||
@@ -951,7 +951,7 @@
|
||||
0,
|
||||
0,
|
||||
131072});
|
||||
this.numAddPriceTimes.Location = new System.Drawing.Point(799, 68);
|
||||
this.numAddPriceTimes.Location = new System.Drawing.Point(818, 68);
|
||||
this.numAddPriceTimes.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numAddPriceTimes.Name = "numAddPriceTimes";
|
||||
this.numAddPriceTimes.Size = new System.Drawing.Size(44, 23);
|
||||
@@ -976,12 +976,12 @@
|
||||
// chkAddPrice
|
||||
//
|
||||
this.chkAddPrice.AutoSize = true;
|
||||
this.chkAddPrice.Location = new System.Drawing.Point(755, 69);
|
||||
this.chkAddPrice.Location = new System.Drawing.Point(750, 69);
|
||||
this.chkAddPrice.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.chkAddPrice.Name = "chkAddPrice";
|
||||
this.chkAddPrice.Size = new System.Drawing.Size(51, 21);
|
||||
this.chkAddPrice.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkAddPrice.TabIndex = 615;
|
||||
this.chkAddPrice.Text = "加价";
|
||||
this.chkAddPrice.Text = "额外加价";
|
||||
this.chkAddPrice.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnStop
|
||||
|
||||
@@ -36,13 +36,6 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
/// </summary>
|
||||
public partial class ProductThirdSelectListManageForm : LRBaseForm
|
||||
{
|
||||
public enum EnumClientMode
|
||||
{
|
||||
Admin,
|
||||
Client,
|
||||
ClientJit,
|
||||
}
|
||||
|
||||
public EnumClientMode ClientMode { get; set; } = EnumClientMode.Admin;
|
||||
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
|
||||
@@ -395,7 +388,9 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
}
|
||||
break;
|
||||
case "编辑备注":
|
||||
DbProductSelectEditNotesForm editForm = new DbProductSelectEditNotesForm(dbSelectProduct, SetProductSelectNotesType.ThirdProduct);
|
||||
DbProductSelectEditNotesForm editForm = new DbProductSelectEditNotesForm(dbSelectProduct, SetProductSelectType.ThirdProduct);
|
||||
editForm.ClientMode = this.ClientMode;
|
||||
editForm.shop = GetShop(shopId);
|
||||
editForm.ShowDialog();
|
||||
dgvSelectProduct.Rows[e.RowIndex].Cells["colNotes"].Value = dbSelectProduct.notes;
|
||||
dgvSelectProduct.Rows[e.RowIndex].Cells["colUserNotes"].Value = dbSelectProduct.user_notes;
|
||||
@@ -410,7 +405,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
case "商品类目":
|
||||
{
|
||||
var shop = GetShop(shopId);
|
||||
DbProductCategorySearch searchForm = new DbProductCategorySearch(shop, dbSelectProduct, SetProductSelectNotesType.ThirdProduct);
|
||||
DbProductCategorySearch searchForm = new DbProductCategorySearch(shop, dbSelectProduct, SetProductSelectType.ThirdProduct);
|
||||
searchForm.SaveComplete += SearchForm_SaveComplete;
|
||||
searchForm.ShowDialog();
|
||||
}
|
||||
@@ -899,6 +894,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
string opRst = prod.status == "已上传" ? "已成功上传" : "已上传草稿箱";
|
||||
row.Cells["colOpResult"].Value = opRst + "但保存到服务端失败:" + BaseRegex.GetStringJson(ref html, "msg") + (" " + error).Trim(' ');
|
||||
row.Cells["colStatus"].Value = prod.status;
|
||||
row.Cells["colSelect"].Value = false;
|
||||
}));
|
||||
}
|
||||
else
|
||||
@@ -908,6 +904,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
row.Cells["colDraftId"].Value = productDraftId; // 草稿箱id
|
||||
row.Cells["colOpResult"].Value = prod.status == "已上传" ? "已成功上传" : "已上传草稿箱" + (" " + error).TrimEnd(' ');
|
||||
row.Cells["colStatus"].Value = prod.status;
|
||||
row.Cells["colSelect"].Value = false;
|
||||
}));
|
||||
}
|
||||
}
|
||||
@@ -937,7 +934,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
return list.FirstOrDefault();
|
||||
}
|
||||
|
||||
public KJDDBProduct GetProductDetail(string prodDbId)
|
||||
public static KJDDBProduct GetProductDetail(string prodDbId)
|
||||
{
|
||||
if (string.IsNullOrEmpty(prodDbId))
|
||||
return new KJDDBProduct();
|
||||
@@ -1125,7 +1122,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
}
|
||||
|
||||
prodParam.carouselImageI18nReqs = prodInfo.carouselImageI18nVOList;
|
||||
prodParam.carouselImageUrls = prodInfo.carouselImageUrls;
|
||||
prodParam.carouselImageUrls = prodInfo.carouselImageUrls.Take(10).ToList();
|
||||
|
||||
prodParam.goodsAdvantageLabelTypes = prodInfo.goodsAdvantageLabelVOList != null ?
|
||||
prodInfo.goodsAdvantageLabelVOList : new List<object>();
|
||||
|
||||
@@ -406,7 +406,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
break;
|
||||
case "重上/已买":
|
||||
{
|
||||
DbProductUserSelectEditNotesForm userNotesForm = new DbProductUserSelectEditNotesForm(dbProduct, SetProductSelectNotesType.ThirdProduct);
|
||||
DbProductUserSelectEditNotesForm userNotesForm = new DbProductUserSelectEditNotesForm(dbProduct, SetProductSelectType.ThirdProduct);
|
||||
userNotesForm.ShowDialog();
|
||||
dgvSelectProduct.Rows[e.RowIndex].Cells["colUserNotes"].Value = (dbProduct.user_notes + " 编辑").Trim();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user