|  |  |  | 
|---|
|  |  |  | <span>选择目标发货区</span> | 
|---|
|  |  |  | <el-divider/> | 
|---|
|  |  |  | <el-row :gutter="15"> | 
|---|
|  |  |  | <el-col v-for="(palt, index) in platforms" :key="index" :span="7" @click.native="bindShipping(palt, scope)"> | 
|---|
|  |  |  | <el-col v-for="(palt, index) in platforms" :key="index" :span="7" @click.native="bindShipping(palt)"> | 
|---|
|  |  |  | <div class="platform" >{{palt.platformNo}}</div> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--                    </el-col>--> | 
|---|
|  |  |  | <!--                  </el-row>--> | 
|---|
|  |  |  | <div class="pick-wall-box"> | 
|---|
|  |  |  | <el-col :span="6" v-for="(item, index) in seedBracket" :key="index" @click.native="lightClick(item)"> | 
|---|
|  |  |  | <el-col :span="6" v-for="(item, index) in seedBracket" :key="index"> | 
|---|
|  |  |  | <div class="seed-bracket" :style="getLightStatus(item)" /> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | this.slapLight(item) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //订单入库集货区,并打印单据 | 
|---|
|  |  |  | bindShipping(plat, item) { | 
|---|
|  |  |  | bindShipping(plat) { | 
|---|
|  |  |  | this.visible = false | 
|---|
|  |  |  | let order = item.row | 
|---|
|  |  |  | let order = this.selectOrder | 
|---|
|  |  |  | if (order == null) { | 
|---|
|  |  |  | this.$message.error("当前订单信息不存在,请联系管理员!!") | 
|---|
|  |  |  | return | 
|---|
|  |  |  | 
|---|
|  |  |  | // eslint-disable-next-line no-undef | 
|---|
|  |  |  | $ajax.post('/api/bind/shipping/platform', {orderId: order.id, waveId: order.waveId, platformId: plat.id}).then(response => { | 
|---|
|  |  |  | if (response.code === 200) { | 
|---|
|  |  |  | that.fetch() | 
|---|
|  |  |  | that.refreshData() | 
|---|
|  |  |  | //隐藏发货区,执行打印 | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.$message.error(response.msg) | 
|---|
|  |  |  | 
|---|
|  |  |  | getTaskDetl (data) { | 
|---|
|  |  |  | let that = this | 
|---|
|  |  |  | // eslint-disable-next-line no-undef | 
|---|
|  |  |  | $ajax.post('wave/task/detl/qutify/', { taskNo: data.taskNo, matnr: data.matnr }).then(response => { | 
|---|
|  |  |  | $ajax.post('wave/task/detl/qutify/', { taskNo: data.taskNo, matnr: data.matnr, waveNo: data.waveNo }).then(response => { | 
|---|
|  |  |  | if (response.code === 200) { | 
|---|
|  |  |  | that.taskDetls = [] | 
|---|
|  |  |  | // this.show = false | 
|---|