| | |
| | | |
| | | //其他出库单列表 |
| | | { |
| | | path: "/purchase/OtherOutBill/OtherOutBillList", |
| | | path: "/purchase", |
| | | component: Layout, |
| | | hidden: true, |
| | | redirect: "noredirect", |
| | |
| | | activeMenu: "/views/KCGL/OtherOutBill", |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | //其他出库单 |
| | | { |
| | | path: "/purchase/OtherOutBill/OtherOutBillEdit", |
| | | component: Layout, |
| | | hidden: true, |
| | | redirect: "noredirect", |
| | | meta: { |
| | | breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示 |
| | | activeMenu: "/purchase/OtherOutBill", // 当路由设置了该属性,则会高亮相对应的侧边栏。 |
| | | }, |
| | | children: [ |
| | | { |
| | | path: "/purchase/OtherOutBill/OtherOutBillEdit", |
| | | component: () => |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | // 生产汇报单维护 |
| | | { |
| | | path: "/icmo/scICMOReportBill/scICMOReportBillList", |
| | |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | axios |
| | | .get(this.baseURL + "Web/GetUser", { |
| | | params: { |
| | | UserName: sessionStorage.getItem("UserName") || "admin", |
| | | PassWord: "123456", |
| | | HOrgName: sessionStorage.getItem("OrganizationID") || "100038" |
| | | } |
| | | }) |
| | | .then((response) => { |
| | | let data = response.data.data[0]; |
| | | this.user = data.Czymc; |
| | | |
| | | this.user = sessionStorage["HUserName"]; |
| | | this.getTreeData(); |
| | | this.getList(); |
| | | this.getDefaultFilterScheme(); |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | |
| | | }, |
| | | |
| | | getTreeData() { |
| | |
| | | user: this.user, |
| | | page: 1, |
| | | size: this.pageSize, |
| | | Organization: '' |
| | | Organization: sessionStorage["Organization"] |
| | | }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.fetchData() //加载组织下拉列表数据 |
| | | this.riqiChange() |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | | mounted() { // 对于需要加载组件完成后才需要渲染的数据,需要放在mounted钩子函数中 |
| | | this.fetchData() //加载组织下拉列表数据 |
| | | }, |
| | | methods: { |
| | | //#region 设置表头 |
| | | renderHeader(h, { column, $index }) {// 新建一个 span |
| | |
| | | ) |
| | | } |
| | | |
| | | if (data.状态 != '创建' && this.copyType != 1) { |
| | | this.$modal.msgError("此条数据不是创建状态,不能修改"); |
| | | if (data["审核人"]) { |
| | | this.$modal.msgError("单据已被审核,不能修改"); |
| | | this.subDisabled = true |
| | | } |
| | | this.formShow = true |
| | |
| | | }, |
| | | fetchData() { |
| | | //登录用户信息 |
| | | axios |
| | | .get( |
| | | "http://47.96.97.237/API/Web/GetUser?UserName=001&PassWord=123456&HOrgName=100038" |
| | | ) |
| | | .then((response) => { |
| | | let data = response.data.data[0]; |
| | | this.zuzhiId = data.HUSEORGID; //根据登录用户获取默认的组织ID |
| | | this.user = data.Czymc; |
| | | |
| | | this.zuzhiId = sessionStorage["OrganizationID"]; //根据登录用户获取默认的组织ID |
| | | this.user = sessionStorage["HUserName"]; |
| | | axios |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |
| | | .then((response) => { |
| | |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }, |
| | | AddALine() { |
| | | this.PostDataCache.push({ |
| | |
| | | }, |
| | | //选中行高亮样式 |
| | | rowStyle({ row, rowIndex }) { |
| | | if (this.ids.includes(row.HItemID)) { |
| | | if (this.ids.includes(row.hmainid)) { |
| | | return { background: "#ecf5ff" }; |
| | | } |
| | | }, |
| | |
| | | v-for="(item, index) in organizationList" |
| | | :key="index" |
| | | :label="item.Name" |
| | | :value="item.ID" |
| | | :value="item.ID.toString()" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | |
| | | CheckBillDisabled: true, |
| | | // OperationType: this.$route.query.OperationType,//保存类型(新增1修改3) |
| | | HInterID: null, |
| | | baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/", |
| | | baseURL: process.env.VUE_APP_BASE_API , |
| | | user: "admin", |
| | | currentRow: [], |
| | | lastSelectedRowIndex: null, // 用于记录上次点击的行索引 |
| | |
| | | methods: { |
| | | fetchData() { |
| | | //登录用户信息 |
| | | axios |
| | | .get( |
| | | "http://47.96.97.237/API/Web/GetUser?UserName=001&PassWord=123456&HOrgName=100038" |
| | | ) |
| | | .then((response) => { |
| | | let data = response.data.data[0]; |
| | | this.zuzhiId = data.HUSEORGID; //根据登录用户获取默认的组织ID |
| | | this.user = data.Czymc; |
| | | this.zuzhiId = sessionStorage["OrganizationID"]; //根据登录用户获取默认的组织ID |
| | | this.user = sessionStorage["HUserName"]; |
| | | axios |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |
| | | .then((response) => { |
| | |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | |
| | | }, |
| | | getdata() { |
| | | this.reset(); |
| | |
| | | HHelpCode: data.助记码, |
| | | HRemark: data.备注, |
| | | HSPGroupID: data.HSPGroupID, |
| | | HSPGroupName: data.所属仓位, |
| | | HSPGroupName: data.所属仓库, |
| | | HStopflag: data.禁用标记 == "Y" ? true : false, |
| | | HStandard: data.默认仓位 == "Y" ? true : false, |
| | | }, |
| | |
| | | v-for="(item, index) in organizationList" |
| | | :key="index" |
| | | :label="item.Name" |
| | | :value="item.ID" |
| | | :value="item.ID.toString()" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | |
| | | CheckBillDisabled: true, |
| | | // OperationType: this.$route.query.OperationType,//保存类型(新增1修改3) |
| | | HInterID: null, |
| | | baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/", |
| | | baseURL: process.env.VUE_APP_BASE_API, |
| | | user: "admin", |
| | | currentRow: [], |
| | | lastSelectedRowIndex: null, // 用于记录上次点击的行索引 |
| | |
| | | methods: { |
| | | fetchData() { |
| | | //登录用户信息 |
| | | axios |
| | | .get( |
| | | "http://47.96.97.237/API/Web/GetUser?UserName=001&PassWord=123456&HOrgName=100038" |
| | | ) |
| | | .then((response) => { |
| | | let data = response.data.data[0]; |
| | | this.zuzhiId = data.HUSEORGID; //根据登录用户获取默认的组织ID |
| | | this.user = data.Czymc; |
| | | this.zuzhiId = sessionStorage["OrganizationID"]; //根据登录用户获取默认的组织ID |
| | | this.user = sessionStorage["HUserName"]; |
| | | axios |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |
| | | .then((response) => { |
| | |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }, |
| | | getdata() { |
| | | this.reset(); |
| | |
| | | uploadData: [], |
| | | uploadTableLoading: false, |
| | | |
| | | baseURL: process.env.VUE_APP_BASE_URL || "http://47.96.97.237/API/", |
| | | baseURL: process.env.VUE_APP_BASE_API, |
| | | user: "admin", |
| | | }; |
| | | }, |
| | |
| | | methods: { |
| | | getHSourceBillType() { |
| | | axios.get(this.baseURL + "/Web/GetHSourceBillType", { |
| | | "HName": '采购退料单', "Num": 2 |
| | | params: { |
| | | "HName": '采购退料单', "Num": 2 |
| | | } |
| | | }).then(response => { |
| | | console.log(response) |
| | | var HSourceBillTypes = ""; |
| | |
| | | </template> |
| | | </el-table> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" |
| | | :pageSizes="pageSizes" @pagination="getList" /> |
| | | :pageSizes="pageSizes" @pagination="handleQuery" /> |
| | | <el-dialog title="隐藏列设置" :visible.sync="openRowHide" width="816px" append-to-body> |
| | | <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" /> |
| | | </el-dialog> |
| | |
| | | created() { |
| | | // this.fetchData() |
| | | this.riqiChange(); |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | this.rowHideShow = false; |
| | | this.tableShow = true; |
| | | this.openRowHide = val; |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | riqiChange() { |
| | | const end = new Date(); |
| | |
| | | this.pageSize = 50; |
| | | this.tableShow = false; |
| | | this.loading = true; |
| | | 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; |
| | | } |
| | |
| | | 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 + |
| | |
| | | }; |
| | | this.riqiChange(); |
| | | this.resetForm("queryForm"); |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | | //退出 |
| | |
| | | this.tableShow = true; |
| | | this.openEdit = false; |
| | | this.editShow = false; |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | //打开新增组件弹窗 |
| | | handleAddEdit() { |
| | |
| | | this.open = val; |
| | | this.editShow = false; |
| | | this.openEdit = val; |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete() { |
| | |
| | | }, |
| | | }).then((response) => { |
| | | if (response.data.count == 1) { |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | } else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message); |
| | |
| | | this.pageSize = 50; |
| | | this.tableShow = false; |
| | | this.loading = true; |
| | | if (this.sTime) { |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.sTime + "'"; |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'"; |
| | | } |
| | | // 重复叠加会导致 uri字符串累加,多次搜索可能会导致get请求超出最大程度导致请求失败 |
| | | // 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; |
| | | } |
| | |
| | | axios.get(this.baseURL + '/Xs_CusRatingChangeBill/getCustomerBalance', { |
| | | params: { "HCusID": HCusID, 'CurUserName': sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | if(response.data.count == 0) { |
| | | this.$modal.msgWarning(response.data.Message); |
| | | return |
| | | } |
| | | var data = response.data.data[0]; |
| | | this.form.HCusBalance = data.HCusBalance |
| | | this.form.HCreditRating_Now = data.HCreditRating_Now |
| | | this.form.HAvailableBalance = data.HAvailableBalance |
| | | }).catch(error => { |
| | | console.error(error) |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }, |
| | |
| | | HCusID: HCusID |
| | | } |
| | | }).then(response => { |
| | | if(response.data.count == 0) { |
| | | this.$modal.msgWarning(response.data.Message); |
| | | return |
| | | } |
| | | this.form.联系人 = response.data.data[0].HLinkMan |
| | | this.form.联系电话 = response.data.data[0].HLinkPhone |
| | | // this.form = response.data.data[0] |
| | |
| | | axios.get(this.baseURL + '/Xs_CusRatingChangeBill/getCustomerBalance', { |
| | | params: { "HCusID": HCusID, 'CurUserName': sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | var data = response.data.data[0]; |
| | | |
| | | let count = response.data.count |
| | | if(count == 0){ |
| | | this.$modal.msgWarning(response.data.Message) |
| | | return |
| | | } |
| | | let data = response.data.data[0]; |
| | | this.form.HCusBalance = data.HCusBalance |
| | | this.form.HCreditRating_Now = data.HCreditRating_Now |
| | | this.form.HAvailableBalance = data.HAvailableBalance |
| | |
| | | HCusID: HCusID |
| | | } |
| | | }).then(response => { |
| | | console.log(response) |
| | | if(response.data.count == 0){ |
| | | this.$modal.msgError(response.data.Message); |
| | | return |
| | | } |
| | | |
| | | this.form.联系人 = response.data.data[0].HLinkMan |
| | | this.form.联系电话 = response.data.data[0].HLinkPhone |
| | | // this.form = response.data.data[0] |
| | | |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | this.$modal.msgError("接口请求失败111!"); |
| | | }); |
| | | }, |
| | | /** 销售出库子表明细序号 */ |
| | |
| | | </template> |
| | | </el-table> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" :pageSizes="pageSizes" |
| | | @pagination="getList" /> |
| | | @pagination="handleQuery" /> |
| | | <el-dialog title="隐藏列设置" :visible.sync="openRowHide" width="816px" append-to-body> |
| | | <RowSettings :colName="btResList" HModName="Kf_SellOutBillList" @rowEditClose="rowSetClose" |
| | | v-if="rowHideShow" /> |
| | |
| | | created() { |
| | | // this.fetchData() |
| | | this.riqiChange() |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | this.rowHideShow = false |
| | | this.tableShow = true |
| | | this.openRowHide = val |
| | | this.getList() |
| | | this.handleQuery() |
| | | }, |
| | | riqiChange() { |
| | | const end = new Date(); |
| | |
| | | getList() { |
| | | 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.pageSize == 0) { |
| | | this.pageSize = 50 |
| | | } |
| | |
| | | if (this.queryParams.HMaterName) { |
| | | this.sWhere += " and 物料名称 like '%" + this.queryParams.HMaterName + "%'"; |
| | | } |
| | | |
| | | 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] + "'" |
| | | } |
| | | this.getList() |
| | | }, |
| | | /** 重置按钮操作 */ |
| | |
| | | } |
| | | this.riqiChange() |
| | | this.resetForm("queryForm") |
| | | this.getList() |
| | | this.handleQuery() |
| | | }, |
| | | |
| | | //退出 |
| | |
| | | this.tableShow = true |
| | | this.openEdit = false |
| | | this.editShow= false |
| | | this.getList() |
| | | this.handleQuery() |
| | | }, |
| | | //打开新增组件弹窗 |
| | | handleAddEdit() { |
| | |
| | | this.open = val |
| | | this.editShow = false |
| | | this.openEdit = val |
| | | this.getList() |
| | | this.handleQuery() |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete() { |
| | |
| | | params: { 'HInterID': this.rowForm.hmainid.toString(), 'user': sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.getList() |
| | | this.handleQuery() |
| | | this.$modal.msgSuccess("删除成功") |
| | | } else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message); |
| | |
| | | let result = response.data |
| | | if (result.code == 1) { |
| | | this.$modal.msgSuccess('操作成功'); |
| | | this.getList(); |
| | | this.handleQuery(); |
| | | } |
| | | else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message,); |
| | |
| | | }, |
| | | }) |
| | | .then((response) => { |
| | | if (response.data.count == 1) { |
| | | this.form.联系人 = response.data.data[0].HLinkMan; |
| | | this.form.联系电话 = response.data.data[0].HLinkPhone; |
| | | if (response.data.count == 0) { |
| | | this.$modal.msgWarning(response.data.Message); |
| | | return |
| | | } |
| | | this.$modal.msg(`警告: ${response.data.Message}`); |
| | | this.form.联系人 = response.data.data[0].HLinkMan; |
| | | this.form.联系电话 = response.data.data[0].HLinkPhone; |
| | | // this.form = response.data.data[0] |
| | | }) |
| | | .catch((error) => { |