修改了生产资料和销售出库的路径,及其路由配置,销售出库单的日期,分页组件
| | |
| | | pageSizes: { |
| | | type: Array, |
| | | default() { |
| | | return [10, 20, 30, 50] |
| | | return [50, 100, 500, 5000, 50000] |
| | | } |
| | | }, |
| | | // 移动端页码按钮的数量端默认值5 |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | // //登录跳转页 |
| | | // { |
| | | // path: "/indexPage", |
| | | // component: () => import("@/views/indexPage"), |
| | | // hidden: true, |
| | | // }, |
| | | //销售出库单 |
| | | // { |
| | | // path: "/sales/salesOUt/sellOutBill", |
| | | // component: () => import("@/views/sellOutBill/index"), |
| | | // hidden: true, |
| | | // }, |
| | | { |
| | | path: "/sales/salesOUt/sellOutBill", |
| | | path: "/sell/sellOut/sellOutBill", |
| | | component: Layout, |
| | | hidden: true, |
| | | // permissions: ["system:goods:add"], |
| | | redirect: "noredirect", |
| | | meta: { |
| | | breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示 |
| | | activeMenu: "/sales/salesOUt", // 当路由设置了该属性,则会高亮相对应的侧边栏。 |
| | | activeMenu: "/sell/sellOut", // 当路由设置了该属性,则会高亮相对应的侧边栏。 |
| | | }, |
| | | children: [ |
| | | { |
| | | path: "/sales/salesOUt/sellOutBill", |
| | | component: () => import("@/views/sell/sellOutBill"), |
| | | path: "/sell/sellOut/sellOutBill", |
| | | component: () => import("@/views/sell/sellOut/sellOutBill.vue"), |
| | | name: "SellOutBill", |
| | | meta: { title: "销售出库单", activeMenu: "sales/salesOUt" }, |
| | | meta: { title: "销售出库单", activeMenu: "sell/sellOUt" }, |
| | | }, |
| | | ], |
| | | }, |
| | | //销售出库单编辑页面 |
| | | // { |
| | | // path: "/sellOutBillEdit", |
| | | // component: () => import("@/views/sales/salesOUt/sellOutBill/edit/index"), |
| | | // hidden: true, |
| | | // }, |
| | | { |
| | | path: "/sales/salesOUt/sellOutBillEdit", |
| | | path: "/sell/sellOut/sellOutBillEdit", |
| | | component: Layout, |
| | | hidden: true, |
| | | redirect: "noredirect", |
| | | meta: { |
| | | breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示 |
| | | activeMenu: "/sales/salesOUt/sellOutBillEdit", // 当路由设置了该属性,则会高亮相对应的侧边栏。 |
| | | activeMenu: "/sell/sellOut/sellOutBillEdit", // 当路由设置了该属性,则会高亮相对应的侧边栏。 |
| | | }, |
| | | children: [ |
| | | { |
| | | path: "/sales/salesOUt/sellOutBillEdit", |
| | | component: () => import("@/views/sell/sellOutBill/edit"), |
| | | path: "/sell/sellOut/sellOutBillEdit", |
| | | component: () => import("@/views/sell/sellOut/sellOutBillEdit.vue"), |
| | | name: "SellOutBillEdit", |
| | | meta: { title: "销售出库单编辑", activeMenu: "sales/salesOUt" }, |
| | | meta: { title: "销售出库单编辑", activeMenu: "/sell/sellOut" }, |
| | | }, |
| | | ], |
| | | }, |
| | | //销售单 |
| | | // { |
| | | // path: "/sellBill", |
| | | // component: () => import("@/views/sellBill/index"), |
| | | // hidden: true, |
| | | // }, |
| | | |
| | | //生产资源 |
| | | { |
| | | path: "/basic/gy/gySource", |
| | | path: "/basic/production/gySource", |
| | | component: Layout, |
| | | hidden: true, |
| | | redirect: "noredirect", |
| | | meta: { |
| | | breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示 |
| | | activeMenu: "/basic/gy/gySource", // 当路由设置了该属性,则会高亮相对应的侧边栏。 |
| | | activeMenu: "/basic/production/gySource", // 当路由设置了该属性,则会高亮相对应的侧边栏。 |
| | | }, |
| | | children: [ |
| | | { |
| | | path: "/basic/gy/gySource", |
| | | component: () => import("@/views/basic/gySource"), |
| | | path: "/basic/production/gySource", |
| | | component: () => import("@/views/basic/production/gySource.vue"), |
| | | name: "GySource", |
| | | meta: { title: "生产资源列表", activeMenu: "basic/gy" }, |
| | | meta: { title: "生产资源列表", activeMenu: "basic/production" }, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | title: "销售管理", |
| | | }, |
| | | hidden: false, |
| | | name: "Sales", |
| | | path: "/sales", |
| | | name: "Sell", |
| | | path: "/sell", |
| | | redirect: "noRedirect", |
| | | children: [ |
| | | { |
| | |
| | | title: "销售出库单", |
| | | }, |
| | | hidden: false, |
| | | name: "SalesOUt", |
| | | path: "salesOUt", |
| | | name: "SellOut", |
| | | path: "sellOut", |
| | | redirect: "noRedirect", |
| | | component: "Layout", |
| | | children: [ |
| | |
| | | noCache: false, |
| | | title: "销售出库单维护", |
| | | }, |
| | | component: () => |
| | | import("@/views/sell/sellOutBill/index.vue"), |
| | | component: () =>import("@/views/sell/sellOut/sellOutBill.vue"), |
| | | hidden: false, |
| | | name: "SellOutBill", |
| | | path: "sellOutBill", |
| | |
| | | noCache: false, |
| | | title: "销售出库单", |
| | | }, |
| | | component: () => import('@/views/sell/sellOutBill/edit/index.vue'), |
| | | component: () => import('@/views/sell/sellOut/sellOutBillEdit.vue'), |
| | | hidden: false, |
| | | name: "SellOutBillEdit", |
| | | path: "sellOutBillEdit", |
| | |
| | | title: "生产资料", |
| | | }, |
| | | hidden: false, |
| | | name: "Gy", |
| | | path: "gy", |
| | | name: "Production", |
| | | path: "production", |
| | | redirect: "noRedirect", |
| | | component: "Layout", |
| | | children: [ |
| | |
| | | title: "生产资料列表", |
| | | }, |
| | | component: () => |
| | | import("@/views/basic/gySource/index.vue"), |
| | | import("@/views/basic/production/gySource.vue"), |
| | | hidden: false, |
| | | name: "GySource", |
| | | path: "gySource", |
| | | }, |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "生产仓库列表", |
| | | }, |
| | | component: () => import('@/views/basic/gyWarehouse/index.vue'), |
| | | hidden: false, |
| | | name: "GyWarehouse", |
| | | path: "gyWarehouse", |
| | | }, |
| | | // { |
| | | // meta: { |
| | | // icon: "build", |
| | | // link: null, |
| | | // noCache: false, |
| | | // title: "生产仓库列表", |
| | | // }, |
| | | // component: () => import('@/views/basic/gyWarehouse/index.vue'), |
| | | // hidden: false, |
| | | // name: "GyWarehouse", |
| | | // path: "gyWarehouse", |
| | | // }, |
| | | ], |
| | | }, |
| | | ], |
| | | }, |
| | | ]; |
| | | console.log(data) |
| | | const sdata = JSON.parse(JSON.stringify(data)); |
| | | const rdata = JSON.parse(JSON.stringify(data)); |
| | | const sidebarRoutes = filterAsyncRouter(sdata); |
| File was renamed from src/views/basic/gySource/index.vue |
| | |
| | | <script> |
| | | import axios from 'axios' |
| | | import RowSettings from '@/views/component/rowSettings' |
| | | import Edit from '@/views/basic/gySource/edit' |
| | | import Edit from '@/views/basic/production/gySourceEdit.vue' |
| | | |
| | | export default { |
| | | name: 'GySource', |
| | |
| | | titleData: ["HItemID", "Hprocid", "HUSEORGID", "HCREATEORGID", "HParentID"],//不需要显示的字段 可扩展 |
| | | pageSizes: [50, 100, 500, 5000, 50000], |
| | | page: 1, |
| | | pageSize: 50, |
| | | pageSize: 0, |
| | | total: 0, |
| | | // 表单参数 |
| | | form: {}, |
| | |
| | | }, |
| | | //列表数据 |
| | | getList() { |
| | | this.pageSize = 50 |
| | | this.tableShow = false |
| | | this.loading = true |
| | | if (this.pageSize == 0) { |
| | |
| | | import axios from "axios"; |
| | | import RowSettings from "@/views/component/rowSettings"; |
| | | import Edit from "@/views/gyEmployee/edit"; |
| | | import gySource from "@/views/basic/gySource"; |
| | | import { env } from "echarts"; |
| | | |
| | | export default { |
| | | name: "GySource", |
| | | components: { RowSettings, Edit, gySource }, |
| | | components: { RowSettings, Edit }, |
| | | props: { |
| | | openPage: { type: String }, |
| | | }, |
| File was renamed from src/views/sell/sellOutBill/index.vue |
| | |
| | | <template> |
| | | <div style="padding: 10px;"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="78px" class="searchBox"> |
| | | <el-form-item label="日期" style="margin-left: 100px;"> |
| | | <el-date-picker v-model="dateRange" value-format="yyyy-MM-dd" type="daterange" range-separator="-" |
| | | start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> |
| | | <el-form-item label="开始日期" style="margin-left: 100px;"> |
| | | <el-date-picker v-model="sTime" type="date" placeholder="开始日期" style="width: 150px;"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="结束日期"> |
| | | <el-date-picker v-model="eTime" type="date" placeholder="结束日期" style="width: 150px;"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="日期间隔"> |
| | | <el-select v-model="queryParams.HInitTimeCycle" placeholder="请选择" @change="riqiChange"> |
| | | <el-select v-model="queryParams.HInitTimeCycle" placeholder="请选择" @change="riqiChange" style="width: 150px;"> |
| | | <el-option v-for="(item, index) in rqsgList" :key="index" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | </el-table-column> |
| | | </template> |
| | | </el-table> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" :pageSizes="pageSizes" |
| | | @pagination="getList" /> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" @pagination="getList" /> |
| | | <el-dialog title="隐藏列设置" :visible.sync="openRowHide" width="816px" append-to-body> |
| | | <RowSettings :colName="btResList" HModName="Kf_SellOutBillList" @rowEditClose="rowSetClose" |
| | | v-if="rowHideShow" /> |
| | | </el-dialog> |
| | | <!-- 编辑 --> |
| | | <el-dialog title="编辑销售出库单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" |
| | | @close="close"> |
| | | <el-dialog title="编辑销售出库单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close"> |
| | | <edit :OperationType=OperationType :linterid=this.rowForm.hmainid :HSouceBillType=this.rowForm.HSourceBillType |
| | | :copyType="copyType" @editClose="editClose" v-if="editShow" /> |
| | | </el-dialog> |
| | |
| | | <script> |
| | | import axios from 'axios' |
| | | import RowSettings from '@/views/component/rowSettings' |
| | | import Edit from '@/views/sell/sellOutBill/edit' |
| | | import Edit from '@/views/sell/sellOut/sellOutBillEdit' |
| | | import PrintList from '@/views/component/printList' |
| | | import moment from 'moment'; |
| | | |
| | | export default { |
| | | name: 'SellOutBill', |
| | |
| | | lastSelectedRowIndex: null, // 用于记录上次点击的行索引 |
| | | lastSelectedRow: null, // 上一次选中的行 |
| | | selectedRow: null, // 当前选中的行 |
| | | rowForm: {}, |
| | | rowForm: {}, |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 日期范围 |
| | | dateRange: [], |
| | | // 查询参数 |
| | | queryParams: { |
| | | HBillNo: '', |
| | |
| | | tableData: [],//销售出库列表(分页显示) |
| | | dataList: [], |
| | | titleData: ["hmainid", "hsupid", "HEmpID", "hmanagerid", "hsecmanagerid", "发货人", "hkeeperid", "保管员", "HDeptID", "销售方式", "hsubid", "hmaterid", "hunitid", "HWHID"],//不需要显示的字段 可扩展 |
| | | pageSizes: [50, 100, 500, 5000, 50000], |
| | | page: 1, |
| | | pageSize: 50, |
| | | pageSize: 0, |
| | | total: 0, |
| | | }; |
| | | }, |
| | |
| | | const ddE = String(end.getDate()).padStart(2, '0'); |
| | | this.sTime = yyyyS + '-' + mmS + '-' + ddS |
| | | this.eTime = yyyyE + '-' + mmE + '-' + ddE |
| | | this.dateRange = [this.sTime, this.eTime] |
| | | }, |
| | | getList() { |
| | | this.pageSize = 50 |
| | | this.tableShow = false |
| | | this.loading = true |
| | | if (this.dateRange.length > 0) { |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.dateRange[0] + "'" |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.dateRange[1] + "'" |
| | | if (this.sTime) { |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.sTime + "'" |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'" |
| | | } |
| | | if (this.pageSize == 0) { |
| | | this.pageSize = 50 |
| | |
| | | let data1 = response.data |
| | | let option = [] |
| | | if (data1.code == 1) { |
| | | console.log(data1) |
| | | this.btResList = data1.list//销售出库单接口表头数据 |
| | | this.total = data1.count; |
| | | var data = [];//列字段数据 |
| | |
| | | } |
| | | this.sWhere += " and " + this.queryParams.ColName2 + " " + com2; |
| | | } |
| | | if (this.dateRange.length > 0) { |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.dateRange[0] + "'" + " and CONVERT(varchar(100),日期, 23) <= '" + this.dateRange[1] + "'"; |
| | | if (this.sTime) { |
| | | this.sTime = moment(this.sTime).format('YYYY-MM-DD') |
| | | this.eTime = moment(this.eTime).format('YYYY-MM-DD') |
| | | console.log(this.sTime, this.eTime) |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.sTime + "'" + " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'"; |
| | | } |
| | | if (this.queryParams.HBillNo) { |
| | | this.sWhere += " and 单据号 like '%" + this.queryParams.HBillNo + "%'"; |
| | |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.dateRange = [] |
| | | this.sWhere = '' |
| | | this.queryParams = { |
| | | HBillNo: '', |
| | |
| | | // this.reset() |
| | | this.tableShow = true |
| | | this.openEdit = false |
| | | this.editShow= false |
| | | this.editShow = false |
| | | this.getList() |
| | | }, |
| | | //打开新增组件弹窗 |
| | |
| | | }, |
| | | //打开修改组件弹窗 |
| | | handleEdit(row) { |
| | | this.rowForm=row |
| | | this.rowForm = row |
| | | this.editShow = true |
| | | this.openEdit = true |
| | | }, |
| | |
| | | } |
| | | // var content= ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=Kf_SellOutBillList', 'yes'] |
| | | }, |
| | | |
| | | |
| | | //#region 获取公司名,根据公司进行定制化开发 |
| | | defaintOperationByCompanyName() { |
| | | var result = false; |