diff --git a/api/app/service/dingdan.js b/api/app/service/dingdan.js index e35c135..d4675e2 100644 --- a/api/app/service/dingdan.js +++ b/api/app/service/dingdan.js @@ -40,7 +40,7 @@ class DingdanService extends Service { let chanpinItemB = await chanpinModel.find({ xiangtiaoxingma: updateItem.tiaoma }) let chanpinItemC = await chanpinModel.find({ zuidaxiangzhuangtiaoma: updateItem.tiaoma }) if (chanpinItemA.length || chanpinItemB.length || chanpinItemC.length) { - updateItem = { ...updateItem, isNotSale: false } + updateItem = { ...updateItem } let res = await modelLocal.updateOne({ _id: updateItem._id }, updateItem) returnData.hasError = false returnData.msg = "数据更新成功" @@ -186,8 +186,11 @@ class DingdanService extends Service { item["chanpindaima"] = _.get(chanpinItemC, [0, "daima"], "") item["zuixiaodanweitiaoma"] = _.get(chanpinItemC, [0, "tiaoxingma"], "") item["xiaoshoushuliang"] = item.xiaoshoushuliang - let zuidadanweixiangzhuangliang = Number((_.get(chanpinItemC, [0, "zuidadanweixiangzhuangliang"], 1) || 1)) - item["xiugaihouxiaoshoushuliang"] = item.xiaoshoushuliang * zuidadanweixiangzhuangliang + let guigexinghao = _.get(chanpinItemC, [0, "guigexinghao"], "") + let guigexinghaoArr = _.split(guigexinghao, "*") + let jishu = Number(guigexinghaoArr[2]) * Number(guigexinghaoArr[1]) + // let zuidadanweixiangzhuangliang = Number((_.get(chanpinItemC, [0, "zuidadanweixiangzhuangliang"], 1) || 1)) + item["xiugaihouxiaoshoushuliang"] = item.xiaoshoushuliang * Number(jishu) item["xiaoshoujine"] = item.xiaoshoujine item["zuigaocaigoujia"] = _.get(chanpinItemC, [0, "zuigaocaigoujia"], 0) item["xiangzhuangliang"] = _.get(chanpinItemC, [0, "xiangzhuangliang"], 0) diff --git a/front/src/main/index.js b/front/src/main/index.js index 2125b18..cecf359 100644 --- a/front/src/main/index.js +++ b/front/src/main/index.js @@ -10,7 +10,7 @@ function createWindow() { mainWindow = new BrowserWindow({ // fullscreen: true, // fullscreenable: true, - width: 1280, + width: 1580, height: 800, // width:1080, // height:1920, diff --git a/front/src/renderer/src/assets/json/dingdan.json b/front/src/renderer/src/assets/json/dingdan.json index b43933d..723ccd6 100644 --- a/front/src/renderer/src/assets/json/dingdan.json +++ b/front/src/renderer/src/assets/json/dingdan.json @@ -144,13 +144,6 @@ "formShow": true, "exportxiaoshou": true }, - { - "label": "条码", - "prop": "tiaoma", - "type": "text", - "formShow": true, - "tableShow": true - }, { "label": "品名", "prop": "pinming", @@ -197,10 +190,10 @@ "exportxiaoshou": true }, { - "label": "是否有售卖", + "label": "暂无此产品", "prop": "isNotSale", - "type": "number", - "formShow": false, + "type": "boolean", + "formShow": true, "tableShow": true } ] \ No newline at end of file diff --git a/front/src/renderer/src/components/dingdanformcomponent.vue b/front/src/renderer/src/components/dingdanformcomponent.vue index 8a8e3dd..e9b494a 100644 --- a/front/src/renderer/src/components/dingdanformcomponent.vue +++ b/front/src/renderer/src/components/dingdanformcomponent.vue @@ -6,7 +6,7 @@ diff --git a/front/src/renderer/src/views/dingdan.vue b/front/src/renderer/src/views/dingdan.vue index 54ea7b9..a4014c4 100644 --- a/front/src/renderer/src/views/dingdan.vue +++ b/front/src/renderer/src/views/dingdan.vue @@ -37,13 +37,13 @@ 刷新 - 蓝色 + 未售卖 - 红色 + 低于采购价 - 黄色 + 多个产品 diff --git a/模版/产品信息(模板).xls b/模版/产品信息(模板).xls index 1808242..99e1dce 100644 Binary files a/模版/产品信息(模板).xls and b/模版/产品信息(模板).xls differ diff --git a/模版/销售订单导入准备表.xlsx b/模版/销售订单导入准备表.xlsx index 363e94b..477bc2d 100644 Binary files a/模版/销售订单导入准备表.xlsx and b/模版/销售订单导入准备表.xlsx differ diff --git a/模版/销售订单导入准备表0.xlsx b/模版/销售订单导入准备表0.xlsx new file mode 100644 index 0000000..363e94b Binary files /dev/null and b/模版/销售订单导入准备表0.xlsx differ