From 343bed9eaba18740b7e701f04a0deca0257d4ad2 Mon Sep 17 00:00:00 2001
From: xiaozhiyong
Date: Tue, 28 Feb 2023 11:17:55 +0800
Subject: [PATCH 1/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../companyManagement/components/bank.vue | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/views/customerManagement/companyManagement/components/bank.vue b/src/views/customerManagement/companyManagement/components/bank.vue
index f7401bb..8b31dfb 100644
--- a/src/views/customerManagement/companyManagement/components/bank.vue
+++ b/src/views/customerManagement/companyManagement/components/bank.vue
@@ -85,13 +85,15 @@
完成
- 删除
-
+ title="确定删除吗?"
+ @confirm="deleteRow($index, row)"
+ >
+ 删除
+
+
From 6fdc081c611c51075524a983cb476528aeb3b2e7 Mon Sep 17 00:00:00 2001
From: xiaozhiyong
Date: Tue, 28 Feb 2023 14:55:12 +0800
Subject: [PATCH 2/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/product/index.vue | 76 +++++++++++++++++++++++++------------
1 file changed, 52 insertions(+), 24 deletions(-)
diff --git a/src/views/product/index.vue b/src/views/product/index.vue
index 81420d5..ceaa831 100644
--- a/src/views/product/index.vue
+++ b/src/views/product/index.vue
@@ -99,17 +99,23 @@
- {{ row.floorPrice|toNumberFixed }}/{{ row.measurement|toNumberFixed }}
+ {{ row.floorPrice | toNumberFixed }}/{{
+ row.measurement | toNumberFixed
+ }}
- {{ row.salePrice2company|toNumberFixed }}/{{ row.measurement|toNumberFixed }}
+ {{ row.salePrice2company | toNumberFixed }}/{{
+ row.measurement | toNumberFixed
+ }}
- {{ row.salePrice2personal|toNumberFixed }}/{{ row.measurement|toNumberFixed }}
+ {{ row.salePrice2personal | toNumberFixed }}/{{
+ row.measurement | toNumberFixed
+ }}
@@ -142,7 +148,12 @@
调价记录
- 下单
+ 下单
{
@@ -232,12 +243,14 @@ export default {
autocomplete,
generalDetails,
},
- filters:{
- toNumberFixed(val){
- if(val){
- return Number(val).toFixed(2)
- }else{return '暂无'}
- }
+ filters: {
+ toNumberFixed(val) {
+ if (val) {
+ return Number(val).toFixed(2);
+ } else {
+ return "暂无";
+ }
+ },
},
data() {
return {
@@ -347,19 +360,19 @@ export default {
//下单
createOrder(row) {
- this.controlWindows.addInfo = {}
+ this.controlWindows.addInfo = {};
this.controlWindows.addInfo.title = "创建订单";
this.controlWindows.create = true;
- console.log(this.controlWindows,'新增')
+ console.log(this.controlWindows, "新增");
},
//修改订单
- updateCreate(row){
+ updateCreate(row) {
this.controlWindows.addInfo = {
- title: "创建订单",
- ...row,
- };
- this.controlWindows.create = true;
- console.log('修改')
+ title: "创建订单",
+ ...row,
+ };
+ this.controlWindows.create = true;
+ console.log("修改");
},
//详情
detail(row) {
@@ -390,17 +403,32 @@ export default {
},
//启用禁用
switchTrigger(val, row) {
- row.enableMark = row.enableMark;
+ row.enableMark = val === "ENABLE" ? "DISENABLE" : "ENABLE";
+ // return;
serve
- .update({
- id: row.id,
- enableMark: val,
- })
+ .updateBatchEnable([
+ {
+ id: row.id,
+ enableMark: val,
+ },
+ ])
.then((res) => {
if (res.code === 20000) {
this.getByPage();
- } else this.$message.error(res.msg);
+ }
+ // this.$message.success(res.msg);
+ // this.closeWindow();
});
+ // serve
+ // .update({
+ // id: row.id,
+ // enableMark: val,
+ // })
+ // .then((res) => {
+ // if (res.code === 20000) {
+ // this.getByPage();
+ // } else this.$message.error(res.msg);
+ // });
},
//批量启用禁用
batchHandler() {
From a9d14aedb464b192b54cb51ad873e3350ab52653 Mon Sep 17 00:00:00 2001
From: xiaozhiyong
Date: Wed, 1 Mar 2023 13:53:06 +0800
Subject: [PATCH 3/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/autocomplete/index.vue | 2 +-
.../companyManagement/index.vue | 24 ++++++++++++++++++-
.../enterpriseRecharge/index.vue | 8 +------
src/views/product/index.vue | 12 +++-------
4 files changed, 28 insertions(+), 18 deletions(-)
diff --git a/src/components/autocomplete/index.vue b/src/components/autocomplete/index.vue
index 9c9614f..b6cb1c7 100644
--- a/src/components/autocomplete/index.vue
+++ b/src/components/autocomplete/index.vue
@@ -30,7 +30,7 @@
diff --git a/src/views/customerManagement/companyManagement/index.vue b/src/views/customerManagement/companyManagement/index.vue
index 4ca305e..daff844 100644
--- a/src/views/customerManagement/companyManagement/index.vue
+++ b/src/views/customerManagement/companyManagement/index.vue
@@ -62,7 +62,7 @@
clearable
>
- {{ row.floorPrice | toNumberFixed }}/{{
- row.measurement | toNumberFixed
- }}
+ {{ row.floorPrice | toNumberFixed }}/{{ row.measurement }}
- {{ row.salePrice2company | toNumberFixed }}/{{
- row.measurement | toNumberFixed
- }}
+ {{ row.salePrice2company | toNumberFixed }}/{{ row.measurement }}
- {{ row.salePrice2personal | toNumberFixed }}/{{
- row.measurement | toNumberFixed
- }}
+ {{ row.salePrice2personal | toNumberFixed }}/{{ row.measurement }}
From 0b9076df675803282c5c99835989f978de00001b Mon Sep 17 00:00:00 2001
From: xiaozhiyong
Date: Wed, 1 Mar 2023 15:40:40 +0800
Subject: [PATCH 4/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/customerManagement/companyManagement/index.vue | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/views/customerManagement/companyManagement/index.vue b/src/views/customerManagement/companyManagement/index.vue
index daff844..a8b0eeb 100644
--- a/src/views/customerManagement/companyManagement/index.vue
+++ b/src/views/customerManagement/companyManagement/index.vue
@@ -56,7 +56,7 @@
/>
-
-
+ -->
-
+
@@ -693,6 +693,7 @@ export default {
this.getByPage();
},
getByPage() {
+ this.parameter.params.companyType = "4";
serve.getByPage(this.parameter).then((res) => {
this.tableData = res.data.list;
this.parameter.total = res.data.totalCount;
From 56cf799cfbee6a7e77dd507683b328096969ee44 Mon Sep 17 00:00:00 2001
From: xiaozhiyong
Date: Wed, 1 Mar 2023 16:42:36 +0800
Subject: [PATCH 5/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/autocomplete/index.vue | 3 ++-
.../companyManagement/index.vue | 3 ++-
src/views/product/components/add.vue | 7 ++++++-
src/views/product/components/adjust.vue | 18 ++++++++++++++++--
src/views/product/components/record.vue | 4 ++--
src/views/product/index.vue | 6 +++---
src/views/refineryAccount/components/add.vue | 7 ++++++-
7 files changed, 37 insertions(+), 11 deletions(-)
diff --git a/src/components/autocomplete/index.vue b/src/components/autocomplete/index.vue
index b6cb1c7..dcb7e64 100644
--- a/src/components/autocomplete/index.vue
+++ b/src/components/autocomplete/index.vue
@@ -66,7 +66,8 @@ export default {
handler(nval, oval) {
this.list = [];
// this.isDisabled = !!this.config.isDisabled;
- if (nval) {
+ let type = this.$utils.typeJudgment(this.config.echoName);
+ if (nval && ["String"].includes(type)) {
let resultName = this.config.echoName.replace(/\s*/g, "");
if (!resultName) return;
this.remoteMethod(resultName);
diff --git a/src/views/customerManagement/companyManagement/index.vue b/src/views/customerManagement/companyManagement/index.vue
index a8b0eeb..0b83595 100644
--- a/src/views/customerManagement/companyManagement/index.vue
+++ b/src/views/customerManagement/companyManagement/index.vue
@@ -501,7 +501,8 @@ export default {
querykey: "companyName",
},
configAutocompleteHead: {
- serveTarget: commonServe.getCompanyNames,
+ serveTarget: commonServe.getRefineryCompanyList,
+ autocompleteKey: "name",
labelKey: "name",
valueKey: "name",
placeholder: "总公司名称",
diff --git a/src/views/product/components/add.vue b/src/views/product/components/add.vue
index b3f6ba3..816b2f5 100644
--- a/src/views/product/components/add.vue
+++ b/src/views/product/components/add.vue
@@ -36,7 +36,11 @@
placeholder="请选择炼厂"
> -->
-
+
{
+ this.$refs.autocomplete.list = [];
this.$refs.form.clearValidate();
this.controlWindows.add = false;
});
diff --git a/src/views/product/components/adjust.vue b/src/views/product/components/adjust.vue
index 31d384e..0379c4f 100644
--- a/src/views/product/components/adjust.vue
+++ b/src/views/product/components/adjust.vue
@@ -41,14 +41,28 @@ export default {
controlWindows: Object,
},
data() {
+ let validatorFloorPrice = (rule, value, callback) => {
+ if (!value || !+value) return callback("成本价价不能为0或空");
+ callback();
+ };
+ let validatorSalePrice2company = (rule, value, callback) => {
+ if (!value || !+value) return callback("企业销售价不能为0或空");
+ if (value < this.form.floorPrice)
+ return callback("企业销售价不能低于成本价");
+ callback();
+ };
return {
form: {},
rules: {
floorPrice: [
- { required: true, message: "请输入成本价", trigger: "blur" },
+ { required: true, validator: validatorFloorPrice, trigger: "change" },
],
salePrice2company: [
- { required: true, message: "请输入企业销售价", trigger: "blur" },
+ {
+ required: true,
+ validator: validatorSalePrice2company,
+ trigger: "change",
+ },
],
},
};
diff --git a/src/views/product/components/record.vue b/src/views/product/components/record.vue
index 34f3d33..8e404e8 100644
--- a/src/views/product/components/record.vue
+++ b/src/views/product/components/record.vue
@@ -66,7 +66,7 @@
-
+
diff --git a/src/views/product/index.vue b/src/views/product/index.vue
index 3812962..7496156 100644
--- a/src/views/product/index.vue
+++ b/src/views/product/index.vue
@@ -97,17 +97,17 @@
-
+
{{ row.floorPrice | toNumberFixed }}/{{ row.measurement }}
-
+
{{ row.salePrice2company | toNumberFixed }}/{{ row.measurement }}
-
+
{{ row.salePrice2personal | toNumberFixed }}/{{ row.measurement }}
diff --git a/src/views/refineryAccount/components/add.vue b/src/views/refineryAccount/components/add.vue
index 1bae97d..7e5a9cb 100644
--- a/src/views/refineryAccount/components/add.vue
+++ b/src/views/refineryAccount/components/add.vue
@@ -27,7 +27,11 @@
-
+
@@ -104,6 +108,7 @@ export default {
this.form = {};
this.controlWindows.addInfo = {};
this.$nextTick(() => {
+ this.$refs.autocomplete.list = [];
this.$refs.form.clearValidate();
this.controlWindows.add = false;
});
From 9f1b7e7a9a66c41687bab92f38e467f0520384fb Mon Sep 17 00:00:00 2001
From: xiaozhiyong
Date: Wed, 1 Mar 2023 17:14:09 +0800
Subject: [PATCH 6/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../companyManagement/index.vue | 29 ++++++++++++-------
1 file changed, 19 insertions(+), 10 deletions(-)
diff --git a/src/views/customerManagement/companyManagement/index.vue b/src/views/customerManagement/companyManagement/index.vue
index 0b83595..ee9d64a 100644
--- a/src/views/customerManagement/companyManagement/index.vue
+++ b/src/views/customerManagement/companyManagement/index.vue
@@ -28,7 +28,7 @@
clearable
>
@@ -332,16 +332,17 @@
-
- {{
- companyNatureEnum.find(
+
+
-
+
+
{{
oilCompanyMatch[0].companyDockType == 0 ? "对接客户" : "平台客户"
}}
@@ -356,7 +357,7 @@
{{
auditMarkEnum.find(
- (item) => item.value == oilCompanyMatch[0].enableMark
+ (item) => item.value == oilCompanyMatch[0].auditMark
).label
}}
@@ -386,7 +387,7 @@
{{
- accountStatusEnum.find(
+ companyTypeEnum.find(
(item) => item.value === oilCompanyMatch[3].accountState
).label
}}
@@ -545,6 +546,10 @@ export default {
},
],
auditMarkEnum: [
+ {
+ value: null,
+ label: "",
+ },
{
label: "未提交",
value: "0",
@@ -567,6 +572,10 @@ export default {
},
],
companyNatureTypeEnum: [
+ {
+ value: null,
+ label: "",
+ },
{
label: "零售客户",
value: "0",