| | |
| | | },{ |
| | | img:'../../static/icon/icon_a17.png', |
| | | text:'其他入库暂存列表', |
| | | url:'/pages/qitaruku/qitaruku', |
| | | url:'/pages/qitaruku_v2/table', |
| | | id:3, |
| | | },{ |
| | | img:'../../static/icon/icon_a18.png', |
| | | text:'其他出库暂存列表', |
| | | url:'/pages/qitachuku/qitachuku', |
| | | url:'/pages/qitachuku_v2/table', |
| | | id:4, |
| | | },{ |
| | | img:'../../static/icon/icon_a32.png', |
| | |
| | | },{ |
| | | img:'../../static/icon/icon_a31.png', |
| | | text:'生产补料暂存列表', |
| | | url:'', |
| | | url: '/pages/shengchanbuliao/table' , |
| | | // url: '', |
| | | id:7, |
| | | },{ |
| | | img:'../../static/icon/icon_a17.png', |
| | | text:'生产入库暂存列表', |
| | | url:'', |
| | | url:'/pages/shengchanrukushengdan/table', |
| | | // url:'', |
| | | id:8, |
| | | },{ |
| | | img:'../../static/icon/icon_a30.png', |
| | | text:'委外领料暂存列表', |
| | | url:'', |
| | | // url:'', |
| | | url:'/pages/weiwailingliao/table', |
| | | id:9, |
| | | },{ |
| | | img:'../../static/icon/icon_a18.png', |
| | |
| | | } |
| | | }, |
| | | onLoad() { |
| | | |
| | | |
| | | }, |
| | | methods: { |
| | | toUrl(item){ |
| | |
| | | <view class="picker-overlay"></view> |
| | | </picker> |
| | | </view> |
| | | <!-- <view class="righton" v-show="!showHMainSourceBillType"> |
| | | <input name="HMainSourceBillType" disabled v-model="HMainSourceBillType" |
| | | placeholder="请选择源单类型" /> |
| | | </view> --> |
| | | </view> |
| | | |
| | | <view class="form-item"> |
| | |
| | | |
| | | tabs: 0, |
| | | HMainSourceBillType: '手工录入', |
| | | arrayHMainSourceBillType: ['出口申请单', '手工录入'], |
| | | arrayHMainSourceBillType: ['出库申请单', '手工录入'], |
| | | |
| | | linterid: '', |
| | | HBillNo: '', |
| | |
| | | innerAudioContext.play(); // 播放音频 |
| | | }, |
| | | HBillSubTypeChange(e) { |
| | | console.log(e) |
| | | let index = e.target.value |
| | | this.HBillSubType = this.arrayHBillSubType[index] |
| | | this.hform.HBillSubType = this.arrayHBillSubTypeValue[index] |
| | | }, |
| | | //扫码 |
| | | toScanCode() { |
| | |
| | | this.hform.HFIFOWHID = 0 |
| | | } |
| | | uni.request({ |
| | | url: this.serverUrl + '/WEBSController/Get_SourceBarCode_OtherIn_Json', |
| | | url: this.serverUrl + '/WEBSController/get_SourceBarCode_OtherOut_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HBillNo: this.hform.HBillNo, |
| | |
| | | HSourceBillNo: HBarCode, |
| | | HSourceBillType: this.hform.HMainSourceBillType, |
| | | HMaker: this.hform.HMaker, |
| | | HStockOrgID: this.hform.HStockOrgID, |
| | | HOWNERID: this.hform.HStockOrgID, |
| | | HFIFOWHID: this.hform.HFIFOWHID, |
| | | HPTQty: this.hform.HPTQty || 0, |
| | | HPlanMode: this.hform.HPlanMode || 0 |
| | | // HPTQty: this.hform.HPTQty || 0, |
| | | // HPlanMode: this.hform.HPlanMode || 0 |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | |
| | | }) |
| | | var sMainStr = JSON.stringify(this.hform); |
| | | uni.request({ |
| | | url: this.serverUrl + '/WEBSController/set_SaveOtherInBill_Json', |
| | | url: this.serverUrl + '/WEBSController/set_SaveOtherOutBill_Json', |
| | | method: 'POST', |
| | | dataType: "json", |
| | | data: { |
| | |
| | | <input name="HSourceBillNo" disabled v-model="hform.HSourceBillNo" placeholder="请输入源单单号" /> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="form-item"> |
| | | <view class="title">单据子类型:</view> |
| | | <view class="right"> |
| | | <picker :range="arrayHBillSubType" v-model="hform.HBillSubType" @change="HBillSubTypeChange"> |
| | | |
| | | <input disabled name="HMainSourceBillType" v-model="HBillSubType" placeholder="请选择单据子类型" /> |
| | | <view class="picker-overlay"></view> |
| | | </picker> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="form-item"> |
| | | <view class="title">先进先出仓:</view> |
| | | <view class="right"> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">客户:</view> |
| | | <view class="title">供应商:</view> |
| | | <view class="right" v-show="showHSupName"> |
| | | <uni-combox :candidates="arrayHSupName" placeholder="请选择客户" v-model="hform.HSupName" |
| | | <uni-combox :candidates="arrayHSupName" placeholder="请选择供应商" v-model="hform.HSupName" |
| | | @input="HSupNameChange"></uni-combox> |
| | | </view> |
| | | <view class="righton" v-show="!showHSupName"> |
| | | <input name="HSupName" disabled v-model="hform.HSupName" placeholder="请选择客户" /> |
| | | <input name="HSupName" disabled v-model="hform.HSupName" placeholder="请选择供应商" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | |
| | | import { |
| | | getUserInfo |
| | | } from "@/utils/auth.js"; |
| | | import { CommonUtils } from '../../utils/common'; |
| | | import BillListPopupVue from '../../components/BillListPopup/BillListPopup.vue'; |
| | | export default { |
| | | data() { |
| | |
| | | HStockPlaceNameList: [], |
| | | arrayHSourceBillNo: [], //源单单号 |
| | | HSourceBillNoList: [], |
| | | |
| | | arrayHBillSubType: [], |
| | | arrayHBillSubTypeValue: [], |
| | | HBillSubType: '', |
| | | |
| | | arrayHEmpName: [], //操作员 |
| | | HEmpNameList: [], |
| | | arrayHDeptName: [], //部门 |
| | | HDeptNameList: [], |
| | | arrayHSupName: [], //客户 |
| | | arrayHSupName: [], //供应商 |
| | | HSupNameList: [], |
| | | |
| | | Materlist: [], |
| | | FIFOlist: [], |
| | | hform: { |
| | | HBillType: 1203, |
| | | HBillSubType: '', |
| | | HBillerID: uni.getStorageSync('HBillerID'), |
| | | HRedBlueFlag: false, |
| | | |
| | |
| | | this.getHSupList() |
| | | this.getHEmpList() |
| | | this.getHDeptList() |
| | | this.set_InitBillSubType(); |
| | | |
| | | uni.$on('BillSelectComplete', (e) => { |
| | | console.log("接收到的消息: ", e.HBillNo) |
| | |
| | | innerAudioContext.src = '/static/jingbao.wav'; |
| | | } |
| | | innerAudioContext.play(); // 播放音频 |
| | | }, |
| | | set_InitBillSubType(){ |
| | | this.arrayHBillSubType = [] |
| | | this.arrayHBillSubTypeValue = [] |
| | | CommonUtils.doRequest( |
| | | "/WEBSController/GetBillSubType_Json", { |
| | | HBillType: this.hform.HBillType, |
| | | HStockOrgID: this.hform.HStockOrgID |
| | | }, |
| | | (res) => { |
| | | let { |
| | | data, |
| | | count, |
| | | Message |
| | | } = res.data |
| | | if (count == 1) { |
| | | Array.from(data).forEach(item => { |
| | | this.arrayHBillSubType.push(item['HName']) |
| | | this.arrayHBillSubTypeValue.push(item['HNumber']) |
| | | }) |
| | | |
| | | this.HBillSubType = this.arrayHBillSubType[0] |
| | | this.hform.HBillSubType = this.arrayHBillSubTypeValue[0] |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: Message |
| | | }) |
| | | } |
| | | } |
| | | ) |
| | | }, |
| | | //扫码 |
| | | toScanCode() { |
| | |
| | | // } |
| | | // }); |
| | | // }, |
| | | HBillSubTypeChange(e) { |
| | | let index = e.target.value |
| | | this.HBillSubType = this.arrayHBillSubType[index] |
| | | this.hform.HBillSubType = this.arrayHBillSubTypeValue[index] |
| | | }, |
| | | //日期 |
| | | HDateChange(e) { |
| | | console.log(e.detail.value) |
| | |
| | | //获取客户数据 |
| | | getHSupList() { |
| | | uni.request({ |
| | | url: this.serverUrl + '/Gy_Customer/list', |
| | | url: this.serverUrl + '/WEBSController/GetSupplierList_Json', |
| | | data: { |
| | | sWhere: "", |
| | | user: uni.getStorageSync('HUserName'), |
| | | Organization: uni.getStorageSync('Organization') |
| | | Supplier: '', |
| | | HStockOrgID: this.hform.HStockOrgID |
| | | }, |
| | | success: (res) => { |
| | | console.log(res.data) |
| | | if (res.data.count == 1) { |
| | | this.HSupNameList = res.data.data |
| | | for (var i = 0; i < res.data.data.length; i++) { |
| | | this.arrayHSupName[i] = res.data.data[i].客户名称 |
| | | this.arrayHSupName[i] = res.data.data[i]['HName'] |
| | | } |
| | | this.$forceUpdate(); |
| | | } else { |
| | |
| | | //选择客户 |
| | | HSupNameChange(e) { |
| | | for (var i = 0; i < this.HSupNameList.length; i++) { |
| | | if (this.HSupNameList[i].客户名称 == e) { |
| | | if (this.HSupNameList[i]['HName'] == e) { |
| | | this.hform.HSupID = this.HSupNameList[i].HItemID |
| | | this.hform.HSupName = this.HSupNameList[i].客户名称 |
| | | this.hform.HSupName = this.HSupNameList[i]['HName'] |
| | | } |
| | | } |
| | | }, |
| | |
| | | @input="HDeptNameChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <!-- <view class="form-item"> |
| | | <view class="title">客户:</view> |
| | | <view class="right" v-show="showHSupName"> |
| | | <uni-combox :candidates="arrayHSupName" placeholder="请选择客户" v-model="hform.HSupName" |
| | |
| | | <view class="righton" v-show="!showHSupName"> |
| | | <input name="HSupName" disabled v-model="hform.HSupName" placeholder="请选择客户" /> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="form-item"> |
| | | <view class="title">组织:</view> |
| | | <view class="righton"> |
| | |
| | | @input="HDeptNameChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <!-- <view class="form-item"> |
| | | <view class="title">客户:</view> |
| | | <view class="right" v-show="showHSupName"> |
| | | <uni-combox :candidates="arrayHSupName" placeholder="请选择客户" v-model="hform.HSupName" |
| | |
| | | <view class="righton" v-show="!showHSupName"> |
| | | <input name="HSupName" disabled v-model="hform.HSupName" placeholder="请选择客户" /> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="form-item"> |
| | | <view class="title">组织:</view> |
| | | <view class="righton"> |
| | |
| | | <input name="HSourceBillNo" disabled v-model="hform.HSourceBillNo" placeholder="请输入源单单号" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <!-- <view class="form-item"> |
| | | <view class="title">先进先出仓:</view> |
| | | <view class="right"> |
| | | <uni-combox :candidates="arrayHWHName" placeholder="请选择" v-model="hform.HFIFOWHName" |
| | | @input="HFIFOWHNameChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="form-item"> |
| | | <view class="title">日期:</view> |
| | | <view class="right"> |
| | |
| | | @input="HDeptNameChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <!-- <view class="form-item"> |
| | | <view class="title">客户:</view> |
| | | <view class="right" v-show="showHSupName"> |
| | | <uni-combox :candidates="arrayHSupName" placeholder="请选择客户" v-model="hform.HSupName" |
| | |
| | | <view class="righton" v-show="!showHSupName"> |
| | | <input name="HSupName" disabled v-model="hform.HSupName" placeholder="请选择客户" /> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="form-item"> |
| | | <view class="title">组织:</view> |
| | | <view class="righton"> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">客户:</view> |
| | | <view class="title">供应商:</view> |
| | | <view class="right" v-show="showHSupName"> |
| | | <uni-combox :candidates="arrayHSupName" placeholder="请选择客户" v-model="hform.HSupName" |
| | | <uni-combox :candidates="arrayHSupName" placeholder="请选择供应商" v-model="hform.HSupName" |
| | | @input="HSupNameChange"></uni-combox> |
| | | </view> |
| | | <view class="righton" v-show="!showHSupName"> |
| | | <input name="HSupName" disabled v-model="hform.HSupName" placeholder="请选择客户" /> |
| | | <input name="HSupName" disabled v-model="hform.HSupName" placeholder="请选择供应商" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | |
| | | //获取客户数据 |
| | | getHSupList() { |
| | | uni.request({ |
| | | url: this.serverUrl + '/Gy_Customer/list', |
| | | url: this.serverUrl + '/WEBSController/GetSupplierList_Json', |
| | | data: { |
| | | sWhere: "", |
| | | user: uni.getStorageSync('HUserName'), |
| | | Organization: uni.getStorageSync('Organization') |
| | | Supplier: '', |
| | | HStockOrgID: this.hform.HStockOrgID |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.HSupNameList = res.data.data |
| | | for (var i = 0; i < res.data.data.length; i++) { |
| | | this.arrayHSupName[i] = res.data.data[i].客户名称 |
| | | this.arrayHSupName[i] = res.data.data[i]['HName'] |
| | | } |
| | | this.$forceUpdate(); |
| | | } else { |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | //选择客户 |
| | | //选择 |
| | | HSupNameChange(e) { |
| | | for (var i = 0; i < this.HSupNameList.length; i++) { |
| | | if (this.HSupNameList[i].客户名称 == e) { |
| | | if (this.HSupNameList[i]['HName'] == e) { |
| | | this.hform.HSupID = this.HSupNameList[i].HItemID |
| | | this.hform.HSupName = this.HSupNameList[i].客户名称 |
| | | this.hform.HSupName = this.HSupNameList[i]['HName'] |
| | | } |
| | | } |
| | | }, |