Browse Source

123

branch_ccpg_220107
44673626 3 years ago
parent
commit
ead582d9e3
  1. 2
      vue/src/router/modules/vw_menu.js
  2. 63
      vue/src/views/ux/billManage/BomDiffPrice/index.vue
  3. 2
      vue/src/views/ux/billManage/WMSOutputDetailCancelDiff/index.vue
  4. 8
      vue/src/views/ux/billManage/WMSOutputDetailDiffReport/index.vue
  5. 217
      vue/src/views/ux/billManage/WMSOutputDetailWithCodeReport/index.vue
  6. 4
      vue/src/views/ux/billManage/WMSOutputSumReport/index.vue

2
vue/src/router/modules/vw_menu.js

@ -232,7 +232,7 @@ const vwMenudataRouter = {
component: () => import('@/views/ux/billManage/BomDiffPrice'), component: () => import('@/views/ux/billManage/BomDiffPrice'),
name: 'BomDiffPrice',//命名路由 name: 'BomDiffPrice',//命名路由
meta: { meta: {
title: 'Bom定价差异明细', title: 'Bom定价明细',
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色) roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '看板' icon: '看板'
} }

63
vue/src/views/ux/billManage/BomDiffPrice/index.vue

@ -4,18 +4,19 @@
<!--功能栏--> <!--功能栏-->
<div style="float: left"> <div style="float: left">
<flexbox class="content-header"> <flexbox class="content-header">
<JobSelectVerson <!-- <JobSelectVerson
:options="JobVersionList" :options="JobVersionList"
style="width: 150px; margin-left: -10px" style="width: 150px; margin-left: -10px"
class="search-container" class="search-container"
@value-change="JobVersionValue" @value-change="JobVersionValue"
></JobSelectVerson> ></JobSelectVerson> -->
<el-button <el-button
class="filter-item" class="filter-item"
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@click="handleCreate" v-loading="formLoading"
@click="save"
>统计 >统计
</el-button> </el-button>
<el-button <el-button
@ -232,11 +233,8 @@
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<!-- <el-button type="text" @click="dialogFormVisible = false"
>取消</el-button
> -->
<el-button @click="resetForm('formCount')">重置</el-button> <el-button @click="resetForm('formCount')">重置</el-button>
<el-button v-loading="formLoading" type="primary" @click="save" <el-button v-loading="formLoading" type="primary" @click="save1"
>确认</el-button >确认</el-button
> >
</div> </div>
@ -389,21 +387,13 @@ export default {
/* 主表头 */ /* 主表头 */
getDefaultField() { getDefaultField() {
var tempsTabs = []; var tempsTabs = [];
tempsTabs.push({
label: "版本号",
prop: "type",
width: 120,
});
tempsTabs.push({ tempsTabs.push({
label: "单据流水号", label: "单据流水号",
prop: "taskId", prop: "taskId",
width: 140, width: 140,
}); });
// tempsTabs.push({
// label: "",
// prop: "name",
// width: 170,
// });
tempsTabs.push({ tempsTabs.push({
label: "创建人", label: "创建人",
prop: "email", prop: "email",
@ -415,11 +405,7 @@ export default {
width: 150, width: 150,
}); });
tempsTabs.push({
label: "审批状态",
prop: "fileName",
width: 350,
});
return tempsTabs; return tempsTabs;
}, },
}, },
@ -617,14 +603,35 @@ export default {
this.formNoBill = {}; this.formNoBill = {};
}, },
save() { save() {
this.formLoading = true;
this.$axios
.gets(
"/api/settleaccount/ReportMakeService/BomDiffPrice-Make",
this.listExportQuery
)
.then((res) => {
let taskid = res;
if (Number.isInteger(taskid)) {
this.$notify({
title: "成功",
message: "任务生成成功!任务号:" + taskid,
type: "success",
duration: 2000,
});
}
this.getList();
this.formLoading = false;
this.dialogFormVisible = false;
})
.catch(() => {
this.formLoading = false;
this.dialogFormVisible = false;
});
},
save1() {
this.$refs.formCount.validate((valid) => { this.$refs.formCount.validate((valid) => {
if (valid) { if (valid) {
this.formLoading = true; this.formLoading = true;
this.listExportQuery.version = this.formCount.versionValue; //
console.log(
"Bom定价差异明细-导出条件:" + JSON.stringify(this.listExportQuery)
);
this.$axios this.$axios
.gets( .gets(
"/api/settleaccount/ReportMakeService/BomDiffPrice-Make", "/api/settleaccount/ReportMakeService/BomDiffPrice-Make",
@ -778,7 +785,7 @@ export default {
this.listLoading = true; this.listLoading = true;
// //
this.listQuery.name = "Bom定价差异明细"; this.listQuery.name = "Bom定价差异明细";
this.listQuery.type = this.JobversionValue; //this.listQuery.type = this.JobversionValue;
this.$axios this.$axios
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {

2
vue/src/views/ux/billManage/WMSOutputDetailCancelDiff/index.vue

@ -65,6 +65,8 @@
label="红旗一轿手工出库(备件)" label="红旗一轿手工出库(备件)"
value="红旗一轿手工出库(备件)" value="红旗一轿手工出库(备件)"
></el-option> ></el-option>
<el-option label="一次性销售" value="一次性销售"></el-option>
<el-option label="自定义发货出库" value="自定义发货出库"></el-option>
</el-select> </el-select>
<el-input <el-input

8
vue/src/views/ux/billManage/WMSOutputDetailDiffReport/index.vue

@ -1,4 +1,4 @@
<!--结算出库单--> <!--出库差异清-->
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
@ -65,6 +65,8 @@
label="红旗一轿手工出库(备件)" label="红旗一轿手工出库(备件)"
value="红旗一轿手工出库(备件)" value="红旗一轿手工出库(备件)"
></el-option> ></el-option>
<el-option label="一次性销售" value="一次性销售"></el-option>
<el-option label="自定义发货出库" value="自定义发货出库"></el-option>
</el-select> </el-select>
<el-input <el-input
@ -83,7 +85,7 @@
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> </el-button>
<el-button <!-- <el-button
class="filter-item" class="filter-item"
size="mini" size="mini"
type="warning" type="warning"
@ -91,7 +93,7 @@
v-loading="formLoading1" v-loading="formLoading1"
@click="handleContinueIssue()" @click="handleContinueIssue()"
>继续出库 >继续出库
</el-button> </el-button> -->
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"

217
vue/src/views/ux/billManage/WMSOutputDetailWithCodeReport/index.vue

@ -1,20 +1,14 @@
<!--结算出库单,有条码--> <!--已结算出库查询-->
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
<JobSelectVerson
:options="JobVersionList"
style="width: 150px; margin-left: -10px"
class="search-container"
@value-change="JobVersionValue"
></JobSelectVerson>
<el-button <el-button
class="filter-item" class="filter-item"
size="mini" size="mini"
type="warning" type="warning"
icon="el-icon-plus" icon="el-icon-plus"
@click="handleCreate" @click="handleCreate"
>生成数据 >统计查询
</el-button> </el-button>
<el-button <el-button
class="filter-item" class="filter-item"
@ -25,47 +19,6 @@
>导出Excel >导出Excel
</el-button> </el-button>
<el-select
v-model="selectClient"
clearable
@change="SelectClient"
placeholder="客户"
style="width: 100px; margin-left: 8px"
>
<el-option label="大众" value="大众"></el-option>
<el-option label="红旗" value="红旗"></el-option>
</el-select>
<el-select
v-model="selectType"
clearable
@change="SelectType"
placeholder="请选择"
style="width: 200px; margin-left: 8px"
>
<el-option label="大众准时化出库" value="大众准时化出库"></el-option>
<el-option label="大众看板出库" value="大众看板出库"></el-option>
<el-option
label="大众备件条码出库"
value="大众备件条码出库"
></el-option>
<el-option label="红旗看板出库" value="红旗看板出库"></el-option>
<el-option label="大众无看板出库" value="大众无看板出库"></el-option>
<el-option
label="大众备件汇总出库"
value="大众备件汇总出库"
></el-option>
<el-option
label="红旗一轿手工出库"
value="红旗一轿手工出库"
></el-option>
<el-option
label="红旗一轿手工出库(备件)"
value="红旗一轿手工出库(备件)"
></el-option>
</el-select>
<el-input <el-input
v-model="searchContent" v-model="searchContent"
clearable clearable
@ -95,7 +48,7 @@
<!--表格渲染--> <!--表格渲染-->
<el-table <el-table
ref="multipleTable" ref="multipleTable"
v-loading.fullscreen.lock="listLoading" v-loading="listLoading"
element-loading-text="拼命加载中..." element-loading-text="拼命加载中..."
element-loading-spinner="el-icon-loading" element-loading-spinner="el-icon-loading"
class="cr-table" class="cr-table"
@ -113,7 +66,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
> >
<!-- <el-table-column type="selection" width="44px"></el-table-column> --> <!-- <el-table-column type="selection" width="44px"></el-table-column> -->
<el-table-column <!-- <el-table-column
label="版本" label="版本"
prop="version" prop="version"
sortable="custom" sortable="custom"
@ -126,7 +79,7 @@
<span class="link-type">{{ scope.row.version }}</span> <span class="link-type">{{ scope.row.version }}</span>
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column <el-table-column
v-for="(item, index) in getDefaultField" v-for="(item, index) in getDefaultField"
:key="index" :key="index"
@ -178,24 +131,33 @@
> >
<el-row> <el-row>
<el-col :md="4" :xs="24"> <el-col :md="4" :xs="24">
<el-form-item label="选择版本" required /> <el-form-item label="通用代码号" />
</el-col> </el-col>
<el-col :md="20" :xs="24"> <el-col :md="20" :xs="24" style="margin-left: -35px">
<el-form-item prop="versionValue"> <el-form-item prop="sapCode">
<el-select <el-input
v-model="versionValue" v-model="formCount.cnumber"
size="medium" style="width: 450px"
clearable type="textarea"
style="width: 188px; margin-right: 15px" :rows="4"
placeholder="请选择" placeholder="必填!多个通用代码号,请以回车换行形式添加!"
> />
<el-option </el-form-item>
v-for="item in versionList" </el-col>
:key="item.value" </el-row>
:label="item.label" <el-row>
:value="item.value" <el-col :md="4" :xs="24">
></el-option> <el-form-item label="厂内零件号" />
</el-select> </el-col>
<el-col :md="20" :xs="24" style="margin-left: -35px">
<el-form-item prop="sapCode">
<el-input
v-model="formCount.materialCode"
style="width: 450px"
type="textarea"
:rows="4"
placeholder="选填!多个厂内零件号,请以回车换行形式添加!"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -204,7 +166,6 @@
<el-button type="text" @click="dialogFormVisible = false" <el-button type="text" @click="dialogFormVisible = false"
>取消</el-button >取消</el-button
> >
<!-- <el-button @click="resetForm('formCount')">重置</el-button> -->
<el-button v-loading="formLoading" type="primary" @click="save" <el-button v-loading="formLoading" type="primary" @click="save"
>确认</el-button >确认</el-button
> >
@ -221,11 +182,10 @@ import CRMTableHead from "../../components/CRMTableHead";
import moment from "moment"; import moment from "moment";
import Lockr from "lockr"; import Lockr from "lockr";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
export default { export default {
name: "WMSOutputDetailWithCodeReport", name: "WMSOutputDetailWithCodeReport",
components: { Pagination, CRMTableHead, importExcel, JobSelectVerson }, components: { Pagination, CRMTableHead, importExcel },
directives: { permission }, directives: { permission },
filters: { filters: {
IsCustomerSignFilter(status) { IsCustomerSignFilter(status) {
@ -251,8 +211,6 @@ export default {
versionValue: "", versionValue: "",
dataValue: "", dataValue: "",
versionList: [], // versionList: [], //
selectType: "", //
JobVersionList: [],
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -268,15 +226,14 @@ export default {
customerId: "", customerId: "",
projectId: "", projectId: "",
}, },
JobversionValue: "",
JobversionValueVerson: "", JobversionValueVerson: "",
list: null, list: null,
totalCount: 0, totalCount: 0,
listLoading: true, listLoading: true,
formLoading: false, formLoading: false,
formCount: { formCount: {
version: undefined, cnumber: undefined,
accountDate: undefined, materialCode: undefined,
}, },
// //
filterObj: { filterObj: {
@ -306,7 +263,6 @@ export default {
client: undefined, client: undefined,
type: undefined, type: undefined,
}, },
selectClient: "",
listExportQuery: { listExportQuery: {
Filters: [ Filters: [
{ {
@ -342,12 +298,7 @@ export default {
}; };
}, },
created() { created() {
//
this.getAllVersionList();
this.getJobVersionInfo();
if (this.versionList == []) {
this.getList(); this.getList();
}
}, },
computed: { computed: {
/** 列表字段 */ /** 列表字段 */
@ -413,103 +364,33 @@ export default {
}, },
}, },
methods: { methods: {
SelectType(params) {
this.listQuery.type = params;
this.getList();
},
SelectClient(params) {
this.listQuery.client = params;
this.getList();
},
//
JobVersionValue(params) {
//
this.JobversionValue = params.value;
this.getList();
},
//
getAllVersionList() {
this.$axios
.posts("/api/settleaccount/CentralizedControl/openlist")
.then((response) => {
this.versionList = [];
response.forEach((element) => {
let options = {};
options.value = element.version;
options.label = element.version;
this.versionList.push(options);
});
})
.catch(() => {
this.listLoading = false;
});
},
//
getJobVersionInfo() {
//this.listLoading = true;
this.listQuery.SkipCount = (this.page - 1) * 1000;
this.$axios
.posts("/api/settleaccount/Job/versionlist", this.listQuery)
.then((response) => {
let res = response.reverse(); //
this.JobVersionList = [];
res.forEach((element, index) => {
let options = {};
options.value = element;
options.label = element;
this.JobVersionList.push(options);
});
if (JSON.stringify(this.JobVersionList) != "[]") {
//
this.JobversionValue = this.JobVersionList[0].value;
this.JobversionValueVerson = this.JobVersionList[0].label;
this.getList();
}
})
.catch(() => {
//this.listLoading = false;
});
},
handleCreate() { handleCreate() {
// this.$nextTick(() => { if (this.$refs["formCount"] !== undefined) {
// this.$refs["formCount"].resetFields(); this.$refs["formCount"].resetFields();
// }); }
this.JobversionValue = ""; this.formCount = {};
this.formTitle = "生成数据"; this.formTitle = "统计数据";
this.isEdit = false; this.isEdit = false;
this.form = {};
this.dialogFormVisible = true; this.dialogFormVisible = true;
}, },
handleImportSap() { //
// this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
this.dataValue = "";
this.formTitle = "同步";
this.isEdit = false;
this.form = {};
this.dialogAccounDateVisible = true;
},
//
save() { save() {
this.$refs.formCount.validate((valid) => { this.$refs.formCount.validate((valid) => {
if (valid) { if (valid) {
this.formLoading = true; this.formLoading = true;
if (this.versionValue === "") { if (this.formCount.cnumber === "") {
this.$message.error("必需选择版本!"); this.$message.error("通用代码必须填写!");
this.formLoading = false; this.formLoading = false;
return; return;
} }
this.listExportQuery.version = this.versionValue; //
//this.listExportQuery.accountDate = this.dataValue; //
console.log( console.log(
"生成出库数据-保存条件:" + JSON.stringify(this.listExportQuery) "统计生成已出库数据-保存条件:" + JSON.stringify(this.formCount)
); );
this.$axios this.$axios
.gets( .posts(
"/api/settleaccount/WMSOutputDetailWithCodeReport/Make", "/api/settleaccount/WMSOutputDetailWithCodeReport/Make",
this.listExportQuery this.formCount
) )
.then((res) => { .then((res) => {
if (res == "Success") { if (res == "Success") {
@ -539,7 +420,7 @@ export default {
// //
async handleDownload() { async handleDownload() {
this.listLoading = true; //this.listLoading = true;
// if (this.versionValue === "") { // if (this.versionValue === "") {
// this.$message.error(""); // this.$message.error("");
// this.listLoading = false; // this.listLoading = false;
@ -633,15 +514,13 @@ export default {
}, },
getList(data) { getList(data) {
this.listLoading = true; //this.listLoading = true;
if (data != undefined) { if (data != undefined) {
this.listQuery.SkipCount = (this.page - 1) * data.limit; this.listQuery.SkipCount = (this.page - 1) * data.limit;
} else { } else {
this.listQuery.SkipCount = (this.page - 1) * 15; this.listQuery.SkipCount = (this.page - 1) * 15;
} }
if (this.JobversionValue != "") {
this.listQuery.version = this.JobversionValue;
}
console.log("列表查询条件:" + JSON.stringify(this.listQuery)); console.log("列表查询条件:" + JSON.stringify(this.listQuery));
this.$axios this.$axios
.posts( .posts(

4
vue/src/views/ux/billManage/WMSOutputSumReport/index.vue

@ -1,4 +1,4 @@
<!--结算出库SAP接口-->
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
@ -52,6 +52,8 @@
label="一轿手工出库(备件)" label="一轿手工出库(备件)"
value="一轿手工出库(备件)" value="一轿手工出库(备件)"
></el-option> ></el-option>
<el-option label="一次性销售" value="一次性销售"></el-option>
<el-option label="自定义发货出库" value="自定义发货出库"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>

Loading…
Cancel
Save