| | |
| | | <el-radio |
| | | v-model="radioSelectedId" |
| | | :label="row.id" |
| | | style="color: transparent;padding-left: 15px; margin-right: -25px;" |
| | | style="color: transparent;padding-left: 10px;" |
| | | @change.native="getCurrentRow(row.id)" |
| | | /> |
| | | </template> |
| | |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <!-- <el-form-item label="交付时间" prop="">--> |
| | | <!-- <el-date-picker--> |
| | | <!-- v-model="dialogForm.markqty"--> |
| | | <!-- type="date"--> |
| | | <!-- style="width: 200px"--> |
| | | <!-- placeholder="选择日期"--> |
| | | <!-- />--> |
| | | <!-- <el-input v-model="dialogForm.OrgName" style="width: 200px" />--> |
| | | <!-- </el-form-item>--> |
| | | |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button @click="dialogVisibleCancel">取 消</el-button> |
| | | <el-button type="primary" @click="dialogVisibleConfirm">下 达</el-button> |
| | | <el-button type="primary" :disabled="sendButtonIsDisabled" @click="dialogVisibleConfirm">下 达</el-button> |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | { code: 'CLOSED', name: '已关闭' } |
| | | ], |
| | | total: 10, |
| | | radioSelected: '', |
| | | radioSelectedId: '', |
| | | tableData: [], |
| | | dialogVisible: false, |
| | |
| | | }, |
| | | // 单选框选中获取当前行信息 |
| | | getCurrentRow(id) { |
| | | // console.log(row, 2) |
| | | // this.radioSelected = row.wo |
| | | this.radioSelectedId = id |
| | | }, |
| | | // 订单关闭 |
| | |
| | | if (res.code === '200') { |
| | | this.$message.success('订单关闭成功!') |
| | | this.getErpOrderSearch() |
| | | // this.radioSelected = '' |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | |
| | | this.dialogForm.markqty = '' |
| | | this.dialogForm.ordernum = '' |
| | | this.dialogForm.relse_qty = '' |
| | | |
| | | this.sendButtonIsDisabled = false |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | | // 对话框取消 |
| | |
| | | }, |
| | | // 对话框确认 |
| | | dialogVisibleConfirm() { |
| | | this.dialogForm.markqty = parseFloat(this.dialogForm.markqty) |
| | | this.dialogForm.erpqty = parseFloat(this.dialogForm.erpqty) |
| | | this.dialogForm.relse_qty = parseFloat(this.dialogForm.relse_qty) |
| | | this.dialogForm.ordernum = parseFloat(this.dialogForm.ordernum) |
| | | if (this.dialogForm.markqty < 1 || this.dialogForm.markqty > this.dialogForm.erpqty - this.dialogForm.relse_qty) { |
| | | return this.$message.info('下单数量超出可下单数的范围!') |
| | | } |
| | | |
| | | console.log(this.dialogForm.ordernum < this.dialogForm.markqty) |
| | | if (this.dialogForm.ordernum < 1 || this.dialogForm.ordernum > this.dialogForm.markqty) { |
| | | return this.$message.info('下单单数超出可下单单数的范围!') |
| | | } |
| | |
| | | 'ordernum': this.dialogForm.ordernum, |
| | | 'relse_qty': this.dialogForm.relse_qty |
| | | } |
| | | console.log(data) |
| | | this.sendButtonIsDisabled = true |
| | | MarkSaveErpOrder(data).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('下达成功!') |
| | |
| | | margin-bottom: 0; |
| | | } |
| | | |
| | | .elTableDiv { |
| | | ::v-deep .el-radio__label { |
| | | display: none; |
| | | } |
| | | } |
| | | </style> |
| | | <style> |
| | | .el-table .custom-row { |