| | |
| | | <el-button v-waves @click="dialogVisibleBackPreview">返 回</el-button> |
| | | <!-- <el-button v-waves v-if="operation==='add'" type="primary" @click="dialogVisibleConfirm">确 定</el-button>--> |
| | | <!-- <el-button v-waves type="primary" @click="dialogVisibleConfirm">确 定/打 印</el-button>--> |
| | | <el-button v-waves v-print="printObj" type="primary">打 印</el-button> |
| | | <el-button v-waves v-print="printObj" type="primary" @click="sendMesOrderDistribution">打 印</el-button> |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | console.log('执行了打印') |
| | | } |
| | | }, |
| | | |
| | | sendMesOrderWoCode: '', |
| | | formApprove: { |
| | | m_po: '', // 源单单号 |
| | | mesordercode: '', |
| | |
| | | // }) |
| | | }, |
| | | methods: { |
| | | // 打印的时候执行派发事件 |
| | | sendMesOrderDistribution() { |
| | | MesOrderDistribution([this.sendMesOrderWoCode]).then(res => { |
| | | if (res.code === '200') { |
| | | this.$notify.success('派发成功!') |
| | | this.getMesOrderSearch() |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | setSort() { |
| | | const el = this.$refs.stepTableDataRef.$el.querySelectorAll('.el-table__body-wrapper > table > tbody')[0] |
| | | this.sortable = Sortable.create(el, { |
| | |
| | | // const number = Math.random() * Math.random() |
| | | // this.number = number === 0 ? (10 + Math.random()) : number |
| | | // console.log(number) |
| | | |
| | | this.formApprove.saleOrderCode = this.formApprove.saleOrderCode !== '' ? this.formApprove.saleOrderCode : saleOrderCode |
| | | |
| | | const data2 = { |
| | | mesordercode: wo_code || this.dialogForm.mesordercode |
| | | } |
| | | this.sendMesOrderWoCode = wo_code || this.dialogForm.mesordercode |
| | | MesOrderPrintSearch(data2).then(res2 => { |
| | | if (res2.code === '200') { |
| | | const res3 = res2.data.recordset |