Browse Source

库存余额新增启用按钮

dev_web_online
陈薪名 2 years ago
parent
commit
cf23843694
  1. 13
      fe/PC/src/api/wms-api.js
  2. 8
      fe/PC/src/utils/detailsTableColumns/index.js
  3. 6
      fe/PC/src/utils/tableColumns/index.js
  4. 78
      fe/PC/src/views/inventoryManage/InventoryQuery/InventoryBalance.vue

13
fe/PC/src/api/wms-api.js

@ -410,10 +410,19 @@ export function notifyMessage(params, id) {
} }
// 库存-启用 | 库存余额 // 库存-启用 | 库存余额
export function inventoryBalanceActive(id) { // export function inventoryBalanceActive(id) {
// return request({
// url: baseURL + 'wms/inventory/inventory-balance/active?id=' + id,
// method: 'post',
// })
// }
// 库存-启用 | 库存余额 改
export function inventoryBalanceActive(params) {
return request({ return request({
url: baseURL + 'wms/inventory/inventory-balance/active?id=' + id, url: baseURL + 'wms/inventory/inventory-balance/' + params.id + '/active',
method: 'post', method: 'post',
params: params,
}) })
} }

8
fe/PC/src/utils/detailsTableColumns/index.js

@ -3078,7 +3078,6 @@ export const lineSideWarehouseAdjustmentSheetNote = [
{ label: "调整原因代码", prop:"reasonCode" }, { label: "调整原因代码", prop:"reasonCode" },
{ label: "调整原因说明", prop:"reasonCode", type: "filter", filters: "getDict" , dictType:"AdjustmentReason" }, { label: "调整原因说明", prop:"reasonCode", type: "filter", filters: "getDict" , dictType:"AdjustmentReason" },
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
{ label: "标包数量", prop: 'stdPackQty' },
{ label: "供应商批次", prop: "supplierBatch" }, { label: "供应商批次", prop: "supplierBatch" },
{ label: "到货时间", prop: "arriveDate",type: "dateTime" }, { label: "到货时间", prop: "arriveDate",type: "dateTime" },
{ label: "生产时间", prop: 'produceDate', type: "dateTime" }, { label: "生产时间", prop: 'produceDate', type: "dateTime" },
@ -3107,11 +3106,14 @@ export const lineSideWarehouseAdjustmentSheetNote = [
{ label: "目标仓库", prop: 'toWarehouseCode' }, { label: "目标仓库", prop: 'toWarehouseCode' },
{ label: "目标ERP库位", prop: 'toLocationErpCode' }, { label: "目标ERP库位", prop: 'toLocationErpCode' },
{ label: "原因", prop: 'reason' }, { label: "原因", prop: 'reason' },
{ label: "fromStatus", prop: 'fromStatus' },
{ label: "toStatus", prop: 'toStatus' },
{ label: "事务ID", prop: "tenantId" }, { label: "事务ID", prop: "tenantId" },
{ label: "主表ID", prop: "masterID" }, { label: "主表ID", prop: "masterID" },
{ label: "ID", prop: 'id' }, { label: "ID", prop: 'id' },
// ************** 临时隐藏 ************************
// { label: "标包数量", prop: 'stdPackQty' },
// { label: "fromStatus", prop: 'fromStatus' },
// { label: "toStatus", prop: 'toStatus' },
// ************** 临时隐藏 ************************
// { label: "仓库", prop: 'warehouseCode' }, // { label: "仓库", prop: 'warehouseCode' },
// { label: "盘点标签", prop: "containerCode" }, // { label: "盘点标签", prop: "containerCode" },
// { label: "盘点数量", prop: "countQty" }, // { label: "盘点数量", prop: "countQty" },

6
fe/PC/src/utils/tableColumns/index.js

@ -3461,11 +3461,13 @@ export const lineSideWarehouseAdjustmentSheetNote = [
{ label: "上次修改者ID", prop: "lastModifierId" }, { label: "上次修改者ID", prop: "lastModifierId" },
{ label: "调整单号", prop: "requestNumber",width: orderWidth }, { label: "调整单号", prop: "requestNumber",width: orderWidth },
{ label: "备注", prop: 'remark' }, { label: "备注", prop: 'remark' },
// { label: "是否确认", prop: "confirmed", type: "tagFilter", filters: "whetherOrNot" },
// { label: "确认时间", prop: "confirmTime",type:"dateTime" },
{ label: "任务ID", prop: 'jobNumber',width: orderWidth }, { label: "任务ID", prop: 'jobNumber',width: orderWidth },
{ label: "事务ID", prop: "tenantId" }, { label: "事务ID", prop: "tenantId" },
{ label: "类型", prop: 'type' }, { label: "类型", prop: 'type' },
// ************** 临时隐藏 ************************
// { label: "是否确认", prop: "confirmed", type: "tagFilter", filters: "whetherOrNot" },
// { label: "确认时间", prop: "confirmTime",type:"dateTime" },
// ************** 临时隐藏 ************************
// { label: "盘点记录单号", prop: 'countNoteNumber', width: orderWidth }, // { label: "盘点记录单号", prop: 'countNoteNumber', width: orderWidth },
// { label: "盘点计划单号", prop: "countPlanNumber",width: orderWidth }, // { label: "盘点计划单号", prop: "countPlanNumber",width: orderWidth },
// { label: "公司", prop: 'company' }, // { label: "公司", prop: 'company' },

78
fe/PC/src/views/inventoryManage/InventoryQuery/InventoryBalance.vue

@ -93,11 +93,11 @@ export default {
}, },
}, },
// //
// hideButton: function () { hideButton: function () {
// return function () { return function () {
// return this.propsData.isActive return this.propsData.isActive
// } }
// }, },
}, },
data () { data () {
return { return {
@ -111,14 +111,14 @@ export default {
this.defaultFilterBtn(),// this.defaultFilterBtn(),//
], ],
DrawerButtonData: [ DrawerButtonData: [
// { {
// type: 'success', type: 'success',
// icon: 'el-icon-check', icon: 'el-icon-check',
// label: '', label: '启用',
// hide: () => { return this.hideButton() }, hide: () => { return this.hideButton() },
// name: "active", name: "active",
// size: 'mini' size: 'mini'
// }, },
], ],
// //
// editFormData: { // editFormData: {
@ -172,32 +172,32 @@ export default {
this.paging(); this.paging();
}, },
methods: { methods: {
// drawerbutton(val){ drawerbutton(val){
// // //
// if(val == "active"){ if(val == "active"){
// this.$confirm(', ?', '', { this.$confirm('此操作将启用该数据, 是否继续?', '提示', {
// confirmButtonText: '', confirmButtonText: '确定',
// cancelButtonText: '', cancelButtonText: '取消',
// type: 'warning' type: 'warning'
// }).then(() => { }).then(() => {
// this.Loading.appMainLoading = true this.Loading.appMainLoading = true
// inventoryBalanceActive(this.propsData.id).then(res => { inventoryBalanceActive({id: this.propsData.id}).then(res => {
// this.$successMsg('!') this.$successMsg('启用成功!')
// this.Loading.appMainLoading = false this.Loading.appMainLoading = false
// this.displayDialog.detailsDialog = false this.displayDialog.detailsDialog = false
// this.paging() this.paging()
// // getDetailed(this.propsData.id, this.URL).then(res => { // getDetailed(this.propsData.id, this.URL).then(res => {
// // this.propsData = res // this.propsData = res
// // this.Loading.DrawerLoading = false // this.Loading.DrawerLoading = false
// // }) // })
// }).catch(err => { }).catch(err => {
// this.Loading.appMainLoading = false this.Loading.appMainLoading = false
// }) })
// }).catch((err) => { }).catch((err) => {
// console.log(err) console.log(err)
// }); });
// } }
// }, },
// 0 // 0
// drawerHandle(val) { // drawerHandle(val) {
// if (val == 'delete') { // if (val == 'delete') {

Loading…
Cancel
Save