Browse Source

标准价格单导入功能

branch_ccpg_220107
44673626 3 years ago
parent
commit
deed41cdec
  1. 10
      vue/src/components/ImportExcel-base/index.vue
  2. 2
      vue/src/views/role/index.vue
  3. 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;
},
getMoudleDisable() {
if (this.crmType == "prebatch") {
if (this.crmType == "priceList") {
//
this.isEditYearMont = true;
this.isEditFactory = true;
@ -298,6 +298,7 @@ export default {
return (
{
invoice: "大众发票汇总",
priceList: "标准价格单",
vWKanBan: "大众看板结算明细",
scrapClaims: "CP7报废和索赔",
sparePart: "大众备件结算明细",
@ -338,6 +339,7 @@ export default {
return (
{
invoice: "/api/settleaccount/Invoices/ExcelImport", //
priceList: "/api/settleaccount/PriceList/ExcelImport-Map", //
vWKanBan: "/api/settleaccount/VWKanBan/ExcelImport", //
scrapClaims: "/api/settleaccount/ScrapClaims/ExcelImport", //CP7
sparePart: "/api/settleaccount/SparePart/ExcelImport", //
@ -563,7 +565,11 @@ export default {
fd.append("period", "03");
fd.append("customerCode", "03");
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;
this.$axios
.posts(webapi, fd)

2
vue/src/views/role/index.vue

@ -321,7 +321,7 @@ export default {
if (this.isEdit) {
this.$axios
.puts("/api/identity/roles/" + this.form.id, this.form)
.then((response) => {
.then((response) => {
this.formLoading = false;
this.$notify({
title: "成功",

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

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

Loading…
Cancel
Save