Browse Source

标准价格单导入功能

branch_ccpg_220107
44673626 3 years ago
parent
commit
deed41cdec
  1. 10
      vue/src/components/ImportExcel-base/index.vue
  2. 22
      vue/src/views/ux/basedata/priceList/index.vue

10
vue/src/components/ImportExcel-base/index.vue

@ -284,7 +284,7 @@ export default {
return this.stepsActive == 1; return this.stepsActive == 1;
}, },
getMoudleDisable() { getMoudleDisable() {
if (this.crmType == "prebatch") { if (this.crmType == "priceList") {
// //
this.isEditYearMont = true; this.isEditYearMont = true;
this.isEditFactory = true; this.isEditFactory = true;
@ -298,6 +298,7 @@ export default {
return ( return (
{ {
invoice: "大众发票汇总", invoice: "大众发票汇总",
priceList: "标准价格单",
vWKanBan: "大众看板结算明细", vWKanBan: "大众看板结算明细",
scrapClaims: "CP7报废和索赔", scrapClaims: "CP7报废和索赔",
sparePart: "大众备件结算明细", sparePart: "大众备件结算明细",
@ -338,6 +339,7 @@ export default {
return ( return (
{ {
invoice: "/api/settleaccount/Invoices/ExcelImport", // invoice: "/api/settleaccount/Invoices/ExcelImport", //
priceList: "/api/settleaccount/PriceList/ExcelImport-Map", //
vWKanBan: "/api/settleaccount/VWKanBan/ExcelImport", // vWKanBan: "/api/settleaccount/VWKanBan/ExcelImport", //
scrapClaims: "/api/settleaccount/ScrapClaims/ExcelImport", //CP7 scrapClaims: "/api/settleaccount/ScrapClaims/ExcelImport", //CP7
sparePart: "/api/settleaccount/SparePart/ExcelImport", // sparePart: "/api/settleaccount/SparePart/ExcelImport", //
@ -563,7 +565,11 @@ export default {
fd.append("period", "03"); fd.append("period", "03");
fd.append("customerCode", "03"); fd.append("customerCode", "03");
fd.append("factory", this.YearMonthValue); fd.append("factory", this.YearMonthValue);
fd.append("version", this.versionValue); if (this.crmType == "priceList") {
fd.append("version", "202110");
} else {
fd.append("version", this.versionValue);
}
const webapi = this.getWebApi; const webapi = this.getWebApi;
this.$axios this.$axios
.posts(webapi, fd) .posts(webapi, fd)

22
vue/src/views/ux/basedata/priceList/index.vue

@ -9,6 +9,15 @@
@value-change="selectValue" @value-change="selectValue"
></XhJSSelect> ></XhJSSelect>
<el-button
class="filter-item"
size="mini"
type="warning"
icon="el-icon-upload2"
@click="handleImportExcel()"
>导入文件Excel
</el-button>
<el-input <el-input
v-model="searchContent" v-model="searchContent"
clearable clearable
@ -119,22 +128,12 @@
import Pagination from "@/components/Pagination"; import Pagination from "@/components/Pagination";
import permission from "@/directive/permission/index.js"; import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../components/CRMTableHead"; import CRMTableHead from "../../components/CRMTableHead";
import importExcel from "@/components/ImportExcel-vw"; import importExcel from "@/components/ImportExcel-base";
import Lockr from "lockr"; import Lockr from "lockr";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import XhJSSelect from "@/components/CreateCom/Xh-JS-Select.vue"; import XhJSSelect from "@/components/CreateCom/Xh-JS-Select.vue";
import moment from "moment"; import moment from "moment";
//
const bomUnit = [
{ key: 0, display_name: "PC" },
{ key: 1, display_name: "TON" },
{ key: 2, display_name: "Other" },
];
const projectTypeKeyValue = bomUnit.reduce((acc, cur) => {
acc[cur.key] = cur.display_name;
return acc;
}, {});
export default { export default {
name: "PriceList", name: "PriceList",
@ -222,7 +221,6 @@ export default {
// userId: "00000000-0000-0000-0000-000000000000", // userId: "00000000-0000-0000-0000-000000000000",
// }, // },
page: 1, page: 1,
bomUnit,
multipleSelection: [], multipleSelection: [],
drawer: false, drawer: false,
tableHeight: document.documentElement.clientHeight - 260, tableHeight: document.documentElement.clientHeight - 260,

Loading…
Cancel
Save