@@ -73,8 +79,8 @@ export default {
name: "generalDetails",
props: {
sourceData: {
- type: Object,
- default: () => null,
+ type: Array,
+ default: () => [],
},
mappingData: {
type: Array,
@@ -95,6 +101,7 @@ export default {
};
},
created() {
+ // return console.log("this.sourceData", this.sourceData);
this.sourceData !== null && this.mappingData.length !== 0 && this.init();
},
methods: {
@@ -108,18 +115,45 @@ export default {
this.$emit("close");
},
init() {
- this.dataPage = this.mappingData.map((item) => {
+ this.dataPage = this.mappingData.map(
+ (mappingDataItem, mappingDataIndex) => {
+ let shineData = this.sourceData[mappingDataIndex] || {};
+ return {
+ title: mappingDataItem.carTitle,
+ iconClass: mappingDataItem.iconClass || "iconjichuziliao",
+ isFold: mappingDataItem.isFold || true,
+ listData: mappingDataItem.carItems.map((carItem) => {
+ let value =
+ (typeof carItem.value == "function" &&
+ carItem.value(shineData)) ||
+ shineData[carItem.value] == 0
+ ? 0
+ : shineData[carItem.value] || carItem.fieldDefault || "";
+ return {
+ label: carItem.label,
+ value: value,
+ field: carItem.value,
+ remark: carItem.remark,
+ isCopy: carItem.isCopy || false,
+ };
+ }),
+ };
+ }
+ );
+ console.log("this.dataPage", this.dataPage);
+ return;
+ this.dataPage = this.mappingData.map((item, index) => {
return {
title: item.carTitle,
iconClass: item.iconClass || "iconjichuziliao",
isFold: item.isFold || true,
- listData: item.carItems.map((carItem, index) => {
+ listData: item.carItems.map((carItem) => {
return {
label: carItem.label,
value:
(typeof carItem.value == "function" &&
- carItem.value(this.sourceData)) ||
- this.sourceData[carItem.value] ||
+ carItem.value(this.sourceData[index])) ||
+ this.sourceData[index][carItem.value] ||
carItem.fieldDefault ||
"暂无数据",
field: carItem.value,
@@ -134,7 +168,7 @@ export default {
};
-
diff --git a/src/views/financialCenter/enterpriseRecharge/components/addTurn.vue b/src/views/financialCenter/enterpriseRecharge/components/addTurn.vue
new file mode 100644
index 0000000..6a363bf
--- /dev/null
+++ b/src/views/financialCenter/enterpriseRecharge/components/addTurn.vue
@@ -0,0 +1,233 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 公司名称
+
+ {{ companyInfo.companyName }}
+
+
+
+ {{
+ correspondTypeEnum.find(
+ (item) => item.value === form.turnType
+ ).label
+ }}
+
+ {{
+ companyInfo[
+ correspondTypeEnum.find(
+ (item) => item.value === form.turnType
+ ).valueKey
+ ]
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 提交
+
+
+
+
+
+
+
diff --git a/src/views/financialCenter/enterpriseRecharge/index.vue b/src/views/financialCenter/enterpriseRecharge/index.vue
new file mode 100644
index 0000000..0169707
--- /dev/null
+++ b/src/views/financialCenter/enterpriseRecharge/index.vue
@@ -0,0 +1,723 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+ 企业充值
+ 圈回
+
+
+ >
+
+
+
+ 急
+ {{ row.companyName }}
+
+
+
+
+
+
+ {{
+ row.transactionType === "TURN"
+ ? LoopBackTypeEnum.find((item) => item.value === row.turnType)
+ .label
+ : rechargeTypeEnum.find(
+ (item) => item.value === row.transactionType
+ ).label
+ }}
+
+
+ 结
+
+
+
+
+
+
+
+ {{
+ rechargeStatusEnum.find(
+ (item) => item.value === row.transactionState
+ ).label
+ }}
+
+
+
+
+
+
+
+
+ {{ row.rechargeRebate }}/{{ row.rechargeRebateAmount }}
+
+
+
+
+
+
+
收款公司账户:{{ row.internalCompanyName }}
+
收款开户行:{{ row.bankDeposit }}
+
收款银行卡号:{{ row.bankCardNo }}
+
+
+ 付
+ {{
+ row.offlinePaymentCompany ? row.offlinePaymentCompany : "暂无"
+ }}
+
+ 收
+ {{
+ row.internalCompanyName ? row.internalCompanyName : "暂无"
+ }}
+
+
+
+
+
+
+ {{
+ auditMarkEnum.find((item) => item.value === row.auditMark).label
+ }}
+
+
+
+
+
+
+
+ 详情
+ {
+ commandMore(val, row);
+ }
+ "
+ >
+
+ 更多
+
+
+
+ 圈回编辑
+
+
+ 编辑
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ oilCompanyMatch.transactionType === "TURN"
+ ? LoopBackTypeEnum.find(
+ (item) => item.value === oilCompanyMatch[0].turnType
+ ).label
+ : rechargeTypeEnum.find(
+ (item) => item.value === oilCompanyMatch[0].transactionType
+ ).label
+ }}
+
+
+
+
+ {{
+ rechargeStatusEnum.find(
+ (item) => item.value === oilCompanyMatch[0].transactionState
+ ).label
+ }}
+
+
+
+
+ {{
+ auditMarkEnum.find(
+ (item) => item.value === oilCompanyMatch[0].auditMark
+ ).label
+ }}
+
+
+
+
+ {{
+ accountStatusEnum.find(
+ (item) => item.value === oilCompanyMatch[1].accountState
+ ).label
+ }}
+
+
+
+
+ {{ oilCompanyMatch[1].accountType === "0" ? "基础账户" : "" }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 69a5020..7c02d4c 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -9,7 +9,7 @@
label-position="left"
>
-
Login Form
+ 油批客户管理平台
@@ -19,7 +19,7 @@
Login
-
-
- username: admin
- password: any
-
{
this.companyList = res.data;
this.companySelectDialog = true;
- return;
});
+ return;
}
+
localStorage.setItem("token", res.data.accessToken);
this.$router.replace("/");
})
diff --git a/src/views/product/components/create.vue b/src/views/product/components/create.vue
index c76a2a1..7ffd8c9 100644
--- a/src/views/product/components/create.vue
+++ b/src/views/product/components/create.vue
@@ -113,9 +113,7 @@ export default {
},
};
},
- created() {
- // this.findByEntity();
- },
+ created() {},
methods: {
openDrawer() {},
submit() {
diff --git a/src/views/product/index.vue b/src/views/product/index.vue
index ef05381..cf5a27c 100644
--- a/src/views/product/index.vue
+++ b/src/views/product/index.vue
@@ -7,7 +7,7 @@
placeholder="产品名称"
clearable
>
-
+ -->
+
+
+
+
+
+
+
+ {{ oilCompanyMatch[0].enableMark === "ENABLE" ? "启用" : "禁用" }}
+
+
@@ -130,9 +150,17 @@ import serve from "api/product.js";
import create from "./components/create.vue";
import pagination from "components/pagination/index.vue";
+import autocomplete from "components/autocomplete/index.vue";
import generalDetails from "components/generalDetails/index.vue";
export default {
+ components: {
+ create,
+
+ pagination,
+ autocomplete,
+ generalDetails,
+ },
data() {
return {
controlWindows: {
@@ -140,6 +168,31 @@ export default {
detail: false,
create: false,
},
+ productTypeList: [
+ {
+ label: "0#柴",
+ value: "0#",
+ },
+ {
+ label: "-10#柴",
+ value: "-10#",
+ },
+ {
+ label: "92#汽",
+ value: "92#",
+ },
+ {
+ label: "95#汽",
+ value: "95#",
+ },
+ ],
+ configAutocomplete: {
+ serveTarget: serve.findByEntity,
+ autocomplateKey: "refineryName",
+ valueKey: "refineryName",
+ placeholder: "炼厂名称",
+ querykey: "refineryId",
+ },
refineryList: [],
tableHeight: 0,
tableData: [],
@@ -149,7 +202,7 @@ export default {
total: 0,
params: {},
},
- oilCompanyMatch: {},
+ oilCompanyMatch: [],
mappingData: [
{
carTitle: "",
@@ -163,18 +216,13 @@ export default {
{ label: "启用/禁用", value: "enableMark" },
{ label: "所属炼厂库名", value: "belongLibrary" },
{ label: "创建时间", value: "createTime" },
- { label: "修改时间", value: "createSource" },
+ { label: "修改时间", value: "updateTime" },
],
},
],
};
},
- components: {
- create,
- pagination,
- generalDetails,
- },
mounted() {
this.$nextTick(() => {
this.heightHandle();
@@ -185,7 +233,6 @@ export default {
);
},
created() {
- this.findByEntity();
this.getByPage();
},
methods: {
@@ -200,30 +247,22 @@ export default {
this.parameter.total = res.data.totalPage;
});
},
- //炼厂list
- findByEntity() {
- serve.findByEntity().then((res) => {
- this.refineryList = res.data;
- });
- },
//下单
createOrder(row) {
this.controlWindows.create = true;
- console.log(this.controlWindows.create);
},
//详情
detail(row) {
- this.oilCompanyMatch = row;
+ this.oilCompanyMatch = [row];
this.controlWindows.detail = true;
},
//重置
reset() {
- this.parameter = {
+ Object.assign(this.parameter, {
currentPage: 1,
pageSize: 10,
- total: 0,
params: {},
- };
+ });
},
// table height
heightHandle() {