| | |
| | | </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: { |
| | | // 通过条码明细中的内容 更新本单据条码数量 |
| | |
| | | }, |
| | | //删除物料码 |
| | | 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' |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | 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_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({ |