在生产入库,销售出库,分布式调出单,分布式调入单,直接调拨单,采购入库,委外入库,生产领料,生产领料校验添加条码明细
| | |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/tiaomamingxi/tiaomamingxi", |
| | | "style": { |
| | | "navigationBarTitleText": "条码明细" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/fenbushidiaochudan/table_out", |
| | | "style": { |
| | | "navigationBarTitleText": "分步式调出单缓存列表" |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | uni.$on('refreshList', () => { |
| | | console.log('收到刷新指令!') |
| | | this.DisBillEntryList() // 你的刷新方法 |
| | | }) |
| | | this.getHSupList() |
| | | this.getHEmpList() |
| | | this.getHDeptList() |
| | |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | this.$refs.billList.exit() |
| | | }, |
| | | methods: { |
| | | toScanBillCode() { |
| | |
| | | if (event && event.target.classList && event.target.classList.contains('link-text')) { |
| | | return; // 如果是链接点击,不执行删除 |
| | | } |
| | | uni.navigateTo({ |
| | | url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType |
| | | }) |
| | | |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认要删除 "' + item.物料名称 + '" 所有扫码记录?删除后将不可恢复!', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.request({ |
| | | url: this.serverUrl + |
| | | '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HMaterID: item.HMaterID, |
| | | HAuxPropID: item.HAuxPropID, |
| | | HMTONo: item.HMTONo, |
| | | HSourceInterID: item.HSourceInterID, |
| | | HSourceEntryID: item.HSourceEntryID, |
| | | HBillType: this.hform.HBillType |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.DisBillEntryList() |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确认要删除 "' + item.物料名称 + '" 所有扫码记录?删除后将不可恢复!', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.request({ |
| | | // url: this.serverUrl + |
| | | // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | // data: { |
| | | // HInterID: this.hform.HInterID, |
| | | // HMaterID: item.HMaterID, |
| | | // HAuxPropID: item.HAuxPropID, |
| | | // HMTONo: item.HMTONo, |
| | | // HSourceInterID: item.HSourceInterID, |
| | | // HSourceEntryID: item.HSourceEntryID, |
| | | // HBillType: this.hform.HBillType |
| | | // }, |
| | | // success: (res) => { |
| | | // if (res.data.count == 1) { |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | | // title: '接口请求失败', |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | //新增 |
| | | getNewData() { |
| | |
| | | this.HSourcebillNoFocus = true |
| | | this.getNewData() |
| | | } |
| | | this.getHSupList() |
| | | uni.$on('refreshList', () => { |
| | | console.log('收到刷新指令!') |
| | | this.DisBillEntryList() // 你的刷新方法 |
| | | }) |
| | | |
| | | this.getHWarehouseInList() |
| | | // this.getHBaseList() |
| | |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | this.$refs.billList.exit() |
| | | }, |
| | | computed: { |
| | | HIsStockInner: { |
| | |
| | | }, |
| | | //删除物料码 |
| | | delMater(item) { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.request({ |
| | | url: this.serverUrl + |
| | | '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HMaterID: item.HMaterID, |
| | | HAuxPropID: item.HAuxPropID, |
| | | HMTONo: item.HMTONo, |
| | | HSourceInterID: item.HSourceInterID, |
| | | HSourceEntryID: item.HSourceEntryID, |
| | | HBillType: this.hform.HBillType |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.DisBillEntryList() |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | uni.navigateTo({ |
| | | url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.request({ |
| | | // url: this.serverUrl + |
| | | // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | // data: { |
| | | // HInterID: this.hform.HInterID, |
| | | // HMaterID: item.HMaterID, |
| | | // HAuxPropID: item.HAuxPropID, |
| | | // HMTONo: item.HMTONo, |
| | | // HSourceInterID: item.HSourceInterID, |
| | | // HSourceEntryID: item.HSourceEntryID, |
| | | // HBillType: this.hform.HBillType |
| | | // }, |
| | | // success: (res) => { |
| | | // if (res.data.count == 1) { |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | | // title: '接口请求失败', |
| | | // icon: 'none' |
| | | // }) |
| | | // }, |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | //新增 |
| | | getNewData() { |
| | |
| | | this.HSourcebillNoFocus = true |
| | | this.getNewData() |
| | | } |
| | | |
| | | this.getHSupList() |
| | | uni.$on('refreshList', () => { |
| | | console.log('收到刷新指令!') |
| | | this.DisBillEntryList() // 你的刷新方法 |
| | | }) |
| | | this.getHWarehouseInList() |
| | | // this.getHBaseList() |
| | | this.getHSupList() |
| | |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | this.$refs.billList.exit() |
| | | }, |
| | | computed: { |
| | | HIsStockInner: { |
| | |
| | | }, |
| | | //删除物料码 |
| | | delMater(item) { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.request({ |
| | | url: this.serverUrl + |
| | | '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HMaterID: item.HMaterID, |
| | | HAuxPropID: item.HAuxPropID, |
| | | HMTONo: item.HMTONo, |
| | | HSourceInterID: item.HSourceInterID, |
| | | HSourceEntryID: item.HSourceEntryID, |
| | | HBillType: this.hform.HBillType |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.DisBillEntryList() |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | uni.navigateTo({ |
| | | url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.request({ |
| | | // url: this.serverUrl + |
| | | // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | // data: { |
| | | // HInterID: this.hform.HInterID, |
| | | // HMaterID: item.HMaterID, |
| | | // HAuxPropID: item.HAuxPropID, |
| | | // HMTONo: item.HMTONo, |
| | | // HSourceInterID: item.HSourceInterID, |
| | | // HSourceEntryID: item.HSourceEntryID, |
| | | // HBillType: this.hform.HBillType |
| | | // }, |
| | | // success: (res) => { |
| | | // if (res.data.count == 1) { |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | | // title: '接口请求失败', |
| | | // icon: 'none' |
| | | // }) |
| | | // }, |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | //新增 |
| | | getNewData() { |
| | |
| | | this.HSourcebillNoFocus = true |
| | | this.getNewData() |
| | | } |
| | | uni.$on('refreshList', () => { |
| | | console.log('收到刷新指令!') |
| | | this.DisBillEntryList() // 你的刷新方法 |
| | | }) |
| | | |
| | | this.getHBaseList() |
| | | this.getHDeptList() |
| | |
| | | uni.$off('WarehouseSelectComplete') |
| | | uni.$off('StockPlaceSelectComplete') |
| | | uni.$off('DepartmentSelectComplete') |
| | | this.$refs.billList.exit() |
| | | }, |
| | | computed: { |
| | | arrayHStockPlaceNameComputed: { |
| | |
| | | methods: { |
| | | //删除物料码 |
| | | delMater(item) { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.request({ |
| | | url: this.serverUrl + |
| | | '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HMaterID: item.HMaterID, |
| | | HAuxPropID: item.HAuxPropID, |
| | | HMTONo: item.HMTONo, |
| | | HSourceInterID: item.HSourceInterID, |
| | | HSourceEntryID: item.HSourceEntryID, |
| | | HBillType: this.hform.HBillType |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.DisBillEntryList() |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | uni.navigateTo({ |
| | | url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.request({ |
| | | // url: this.serverUrl + |
| | | // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | // data: { |
| | | // HInterID: this.hform.HInterID, |
| | | // HMaterID: item.HMaterID, |
| | | // HAuxPropID: item.HAuxPropID, |
| | | // HMTONo: item.HMTONo, |
| | | // HSourceInterID: item.HSourceInterID, |
| | | // HSourceEntryID: item.HSourceEntryID, |
| | | // HBillType: this.hform.HBillType |
| | | // }, |
| | | // success: (res) => { |
| | | // if (res.data.count == 1) { |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | | // title: '接口请求失败', |
| | | // icon: 'none' |
| | | // }) |
| | | // }, |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | // 用户模块权限判断 |
| | | async checkModRight() { |
| | |
| | | "陈镐哲本地测试2": 'http://192.168.88.82:81/API/', |
| | | "张瑞广本地测试": 'http://localhost:8082/API/', |
| | | "余思杰本地测试": 'http://localhost:8082/LuBaoAPI/', |
| | | "杨权鑫本地测试": 'http://172.20.10.5:8082/API/', |
| | | "杨权鑫本地测试": 'http://172.20.10.2:8082/API/', |
| | | "王仪本地测试": 'http://192.168.0.74:8080/API/', |
| | | // 小卫内外网 |
| | | "苏州卫智科技-外网": 'http://221.224.60.42:8082/API_WW/', |
| | |
| | | </label> |
| | | </view> |
| | | <view v-if="tabs == 2"> |
| | | <view class="list" v-for="(item,index) in Materlist" :key="index" @tap.stop="cmdDelete(item)"> |
| | | <view class="list" v-for="(item,index) in Materlist" :key="index" @tap.stop="delMater(item)"> |
| | | <uni-card :title="item.物料名称" :extra="'数量:'+item.数量" style="margin: 10px;"> |
| | | <view class="card-detail"> |
| | | <view class="detail"> |
| | |
| | | BillListPopupVue, |
| | | FIFOListComponentVue |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | onLoad(e) { |
| | | console.log(e, this.userInfo) |
| | | this.OperationType = e.OperationType |
| | |
| | | this.refreshHBillNoFocus() |
| | | } |
| | | this.getHBaseList() |
| | | uni.$on('refreshList', () => { |
| | | console.log('收到刷新指令!') |
| | | this.DisBillEntryList() // 你的刷新方法 |
| | | }) |
| | | uni.$on('BillSelectComplete', async (e) => { |
| | | console.log("接收到的消息: ", e) |
| | | console.log("是否应用多源单: ", e.enableMultiSourceBill) |
| | |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | this.$refs.billList.exit() |
| | | }, |
| | | methods: { |
| | | async changeQty() { |
| | |
| | | }, |
| | | //删除物料码 |
| | | delMater(item) { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.request({ |
| | | url: this.serverUrl + |
| | | '/WEBSController/set_DeleteBarCodeByEntryID_BillCheck_New_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HBillType: this.hform.HBillType, |
| | | HSourceInterID: item.HSourceInterID, |
| | | HSourceEntryID: item.HSourceEntryID, |
| | | HSourceBarCodeCtl: this.hform.HSourceBarCodeCtl |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.DisBillEntryList() |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | uni.navigateTo({ |
| | | url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.request({ |
| | | // url: this.serverUrl + |
| | | // '/WEBSController/set_DeleteBarCodeByEntryID_BillCheck_New_Json', |
| | | // data: { |
| | | // HInterID: this.hform.HInterID, |
| | | // HBillType: this.hform.HBillType, |
| | | // HSourceInterID: item.HSourceInterID, |
| | | // HSourceEntryID: item.HSourceEntryID, |
| | | // HSourceBarCodeCtl: this.hform.HSourceBarCodeCtl |
| | | // }, |
| | | // success: (res) => { |
| | | // if (res.data.count == 1) { |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | | // title: '接口请求失败', |
| | | // icon: 'none' |
| | | // }) |
| | | // }, |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | addNew() { |
| | | uni.redirectTo({ |
| | |
| | | }, |
| | | onLoad(e) { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.$t("Kf_MateOutBill_PDA.title") == 'Kf_MateOutBill_PDA.title' ? '生产补料单' : this.$t("Kf_MateOutBill_PDA.title") |
| | | title: this.$t("Kf_MateOutBill_PDA.title") == 'Kf_MateOutBill_PDA.title' ? '生产领料单' : this.$t("Kf_MateOutBill_PDA.title") |
| | | }) |
| | | console.log(e, this.userInfo) |
| | | this.OperationType = e.OperationType |
| | |
| | | this.getHSupList() |
| | | this.getHEmpList() |
| | | this.getHDeptList() |
| | | uni.$on('refreshList', () => { |
| | | console.log('收到刷新指令!') |
| | | this.DisBillEntryList() // 你的刷新方法 |
| | | }) |
| | | |
| | | this.getRelationStore() |
| | | |
| | |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | this.$refs.billList.exit() |
| | | }, |
| | | computed: { |
| | | enableMultiSourceBill: { |
| | |
| | | }, |
| | | //删除物料码 |
| | | delMater(item) { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.request({ |
| | | url: this.serverUrl + |
| | | '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HMaterID: item.HMaterID, |
| | | HAuxPropID: item.HAuxPropID, |
| | | HMTONo: item.HMTONo, |
| | | HSourceInterID: item.HSourceInterID, |
| | | HSourceEntryID: item.HSourceEntryID, |
| | | HBillType: this.hform.HBillType |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.DisBillEntryList() |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | uni.navigateTo({ |
| | | url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.request({ |
| | | // url: this.serverUrl + |
| | | // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | // data: { |
| | | // HInterID: this.hform.HInterID, |
| | | // HMaterID: item.HMaterID, |
| | | // HAuxPropID: item.HAuxPropID, |
| | | // HMTONo: item.HMTONo, |
| | | // HSourceInterID: item.HSourceInterID, |
| | | // HSourceEntryID: item.HSourceEntryID, |
| | | // HBillType: this.hform.HBillType |
| | | // }, |
| | | // success: (res) => { |
| | | // if (res.data.count == 1) { |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | | // title: '接口请求失败', |
| | | // icon: 'none' |
| | | // }) |
| | | // }, |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | //新增 |
| | | getNewData() { |
| | |
| | | } |
| | | // this.getHBaseList() |
| | | this.getHSupList() |
| | | uni.$on('refreshList', () => { |
| | | console.log('收到刷新指令!') |
| | | this.DisBillEntryList() // 你的刷新方法 |
| | | }) |
| | | this.getHEmpList() |
| | | this.getHDeptList() |
| | | await this.getRelationStore() |
| | |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | uni.$off('refreshList') |
| | | }, |
| | | methods: { |
| | | toScanBillCode() { |
| | |
| | | }, |
| | | //删除物料码 |
| | | delMater(item) { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.request({ |
| | | url: this.serverUrl + |
| | | '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HMaterID: item.HMaterID, |
| | | HAuxPropID: item.HAuxPropID, |
| | | HMTONo: item.HMTONo, |
| | | HSourceInterID: item.HSourceInterID, |
| | | HSourceEntryID: item.HSourceEntryID, |
| | | HBillType: this.hform.HBillType |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.DisBillEntryList() |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | uni.navigateTo({ |
| | | url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.request({ |
| | | // url: this.serverUrl + |
| | | // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | // data: { |
| | | // HInterID: this.hform.HInterID, |
| | | // HMaterID: item.HMaterID, |
| | | // HAuxPropID: item.HAuxPropID, |
| | | // HMTONo: item.HMTONo, |
| | | // HSourceInterID: item.HSourceInterID, |
| | | // HSourceEntryID: item.HSourceEntryID, |
| | | // HBillType: this.hform.HBillType |
| | | // }, |
| | | // success: (res) => { |
| | | // if (res.data.count == 1) { |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | | // title: '接口请求失败', |
| | | // icon: 'none' |
| | | // }) |
| | | // }, |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | //新增 |
| | | getNewData() { |
| | |
| | | this.getHSupList() |
| | | this.getHEmpList() |
| | | this.getHDeptList() |
| | | uni.$on('refreshList', () => { |
| | | console.log('收到刷新指令!') |
| | | this.DisBillEntryList() // 你的刷新方法 |
| | | }) |
| | | |
| | | this.getRelationStore() |
| | | |
| | |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | this.$refs.billList.exit() |
| | | }, |
| | | methods: { |
| | | async HWHNameScan(e) { |
| | |
| | | }, |
| | | //删除物料码 |
| | | delMater(item) { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.request({ |
| | | url: this.serverUrl + |
| | | '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HMaterID: item.HMaterID, |
| | | HAuxPropID: item.HAuxPropID, |
| | | HMTONo: item.HMTONo, |
| | | HSourceInterID: item.HSourceInterID, |
| | | HSourceEntryID: item.HSourceEntryID, |
| | | HBillType: this.hform.HBillType |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.DisBillEntryList() |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | uni.navigateTo({ |
| | | url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.request({ |
| | | // url: this.serverUrl + |
| | | // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | // data: { |
| | | // HInterID: this.hform.HInterID, |
| | | // HMaterID: item.HMaterID, |
| | | // HAuxPropID: item.HAuxPropID, |
| | | // HMTONo: item.HMTONo, |
| | | // HSourceInterID: item.HSourceInterID, |
| | | // HSourceEntryID: item.HSourceEntryID, |
| | | // HBillType: this.hform.HBillType |
| | | // }, |
| | | // success: (res) => { |
| | | // if (res.data.count == 1) { |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | | // title: '接口请求失败', |
| | | // icon: 'none' |
| | | // }) |
| | | // }, |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | //新增 |
| | | getNewData() { |
| | |
| | | this.refreshHSourceBillState() |
| | | this.getNewData() |
| | | } |
| | | this.getHSupList() |
| | | uni.$on('refreshList', () => { |
| | | console.log('收到刷新指令!') |
| | | this.DisBillEntryList() // 你的刷新方法 |
| | | }) |
| | | // this.getHBaseList() |
| | | this.getHSupList() |
| | | this.getHEmpList() |
| | |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | this.$refs.billList.exit() |
| | | }, |
| | | methods: { |
| | | toScanBillCode() { |
| | |
| | | }, |
| | | //删除物料码 |
| | | delMater(item) { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.request({ |
| | | url: this.serverUrl + |
| | | '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HMaterID: item.HMaterID, |
| | | HAuxPropID: item.HAuxPropID, |
| | | HMTONo: item.HMTONo, |
| | | HSourceInterID: item.HSourceInterID, |
| | | HSourceEntryID: item.HSourceEntryID, |
| | | HBillType: this.hform.HBillType |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.DisBillEntryList() |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | uni.navigateTo({ |
| | | url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.request({ |
| | | // url: this.serverUrl + |
| | | // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | // data: { |
| | | // HInterID: this.hform.HInterID, |
| | | // HMaterID: item.HMaterID, |
| | | // HAuxPropID: item.HAuxPropID, |
| | | // HMTONo: item.HMTONo, |
| | | // HSourceInterID: item.HSourceInterID, |
| | | // HSourceEntryID: item.HSourceEntryID, |
| | | // HBillType: this.hform.HBillType |
| | | // }, |
| | | // success: (res) => { |
| | | // if (res.data.count == 1) { |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | | // title: '接口请求失败', |
| | | // icon: 'none' |
| | | // }) |
| | | // }, |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | //新增 |
| | | getNewData() { |
| | |
| | | await this.GetSourceBillType() |
| | | this.InitTransferDirect() |
| | | this.InitShipType() |
| | | |
| | | uni.$on('refreshList', () => { |
| | | console.log('收到刷新指令!') |
| | | this.DisBillEntryList() // 你的刷新方法 |
| | | }) |
| | | // this.getHSupList() // 初始化 客户 |
| | | this.getHCusList() // 初始化 供应商 |
| | | |
| | |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | this.$refs.billList.exit() |
| | | }, |
| | | computed: { |
| | | HIsStockInner: { |
| | |
| | | }, |
| | | //删除物料码 |
| | | delMater(item) { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.request({ |
| | | url: this.serverUrl + |
| | | '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HMaterID: item.HMaterID, |
| | | HAuxPropID: item.HAuxPropID, |
| | | HMTONo: item.HMTONo, |
| | | HSourceInterID: item.HSourceInterID, |
| | | HSourceEntryID: item.HSourceEntryID, |
| | | HBillType: this.hform.HBillType |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.DisBillEntryList() |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | uni.navigateTo({ |
| | | url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.request({ |
| | | // url: this.serverUrl + |
| | | // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | // data: { |
| | | // HInterID: this.hform.HInterID, |
| | | // HMaterID: item.HMaterID, |
| | | // HAuxPropID: item.HAuxPropID, |
| | | // HMTONo: item.HMTONo, |
| | | // HSourceInterID: item.HSourceInterID, |
| | | // HSourceEntryID: item.HSourceEntryID, |
| | | // HBillType: this.hform.HBillType |
| | | // }, |
| | | // success: (res) => { |
| | | // if (res.data.count == 1) { |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | | // title: '接口请求失败', |
| | | // icon: 'none' |
| | | // }) |
| | | // }, |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | //新增 |
| | | getNewData() { |