| | |
| | | <el-date-picker |
| | | v-model="form.lm_date" |
| | | style="width: 200px" |
| | | readonly |
| | | type="date" |
| | | placeholder="选择日期" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="单据编号" style=" display: flex;"> |
| | | <el-input v-model="form.OrgName" placeholder="请输入" style="width: 200px" /> |
| | | <el-input |
| | | v-model="form.hbillno" |
| | | readonly |
| | | placeholder="请输入" |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="入库仓库" style=" display: flex;"> |
| | |
| | | class="bodySearchReset" |
| | | :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}" |
| | | > |
| | | <el-button v-waves type="primary" icon="el-icon-s-promotion" @click="submit">入库提交</el-button> |
| | | <el-button |
| | | v-waves |
| | | type="primary" |
| | | icon="el-icon-s-promotion" |
| | | |
| | | @click="submit" |
| | | >入库提交</el-button> |
| | | <!-- <el-button v-waves type="info" icon="el-icon-refresh" @click="reset">重置</el-button>--> |
| | | </div> |
| | | </el-form> |
| | |
| | | orderdate: '', // 工单日期 |
| | | |
| | | saleOrderCode: '', // 销售订单 |
| | | lm_date: '', // 单据日期 |
| | | lm_date: new Date(), // 单据日期 |
| | | stockcode: '' // 入库仓库 |
| | | |
| | | }, |
| | |
| | | this.form.orderdate = '' |
| | | |
| | | this.tableDataDetail = [] |
| | | this.tableDataSummary = [] |
| | | this.multipleSelection = [] |
| | | }, |
| | | |
| | | // 表格单元格双击 |
| | |
| | | }, |
| | | |
| | | // 入库提交 |
| | | async submit() { |
| | | await this.tabClick() |
| | | submit() { |
| | | this.tabClick() |
| | | |
| | | this.$confirm('是否确认提交?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | if (this.multipleSelection.length === 0) { |
| | | return this.$message.error('未选择产品!') |
| | | } |
| | | if (this.multipleSelection.find(i => !i.stockcode)) { |
| | | return this.$message('明细里面有产品未填写仓库!') |
| | | return this.$message.error('明细里面有产品未填写仓库!') |
| | | } |
| | | this.multipleSelection.forEach(i => { |
| | | i.stockname = this.stockcodeArr.find(j => j.code === i.stockcode).name |
| | |
| | | head, sub: this.multipleSelection, subsum |
| | | } |
| | | |
| | | // console.log(JSON.stringify(data)) |
| | | |
| | | const res = await ProductInHouseOrderSeave(data) |
| | | ProductInHouseOrderSeave(data).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('入库提交成功!') |
| | | this.getProductInHouseOrderCodeSearch() |
| | | this.wkshopcodeChange(this.form.wkshopcode) |
| | | this.tableDataDetail = [] |
| | | this.tableDataSummary = [] |
| | | this.multipleSelection = [] |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | // 获取页面高度 |
| | | getHeight() { |