|  |  |  | 
|---|
|  |  |  | <el-table :data="orders" v-if="orders.length > 0" class="order-table"> | 
|---|
|  |  |  | <el-table-column v-for="(item, dex) in Object.keys(orderStatus)" :prop="item" :label="orderStatus[item]" :key="dex" > | 
|---|
|  |  |  | <template slot-scope="scope"> | 
|---|
|  |  |  | <el-popover | 
|---|
|  |  |  | placement="right" | 
|---|
|  |  |  | trigger="manual" | 
|---|
|  |  |  | class="popover-order" | 
|---|
|  |  |  | v-model="visible" | 
|---|
|  |  |  | v-if="item === 'action'" > | 
|---|
|  |  |  | <template> | 
|---|
|  |  |  | <div> | 
|---|
|  |  |  | <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)"> | 
|---|
|  |  |  | <div class="platform" >{{palt.platformNo}}</div> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | <el-button slot="reference" type="text" @click.native.prevent="print(scope.$index, orders)" class="btnPrint">打印明细</el-button> | 
|---|
|  |  |  | </el-popover> | 
|---|
|  |  |  | <el-button slot="reference" type="text" @click.native.prevent="print(scope.$index, orders)" class="btnPrint" v-if="item === 'action'" >打印明细</el-button> | 
|---|
|  |  |  | <div v-else class="ship-order-list"> | 
|---|
|  |  |  | {{scope.row[item]}} | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | <el-empty description="暂无投放订单" class="empty-padding" v-else></el-empty> | 
|---|
|  |  |  | <el-popover | 
|---|
|  |  |  | placement="right" | 
|---|
|  |  |  | trigger="manual" | 
|---|
|  |  |  | class="popover-order" | 
|---|
|  |  |  | v-model="visible"> | 
|---|
|  |  |  | <template> | 
|---|
|  |  |  | <div> | 
|---|
|  |  |  | <span>选择目标发货区</span> | 
|---|
|  |  |  | <el-divider/> | 
|---|
|  |  |  | <el-row :gutter="15"> | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-popover> | 
|---|
|  |  |  | </dv-border-box-11> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | <el-row type="flex" align="center" id="datav"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--                    </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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <el-row> | 
|---|
|  |  |  | <el-col class="header-title">复核当前作业中数量</el-col> | 
|---|
|  |  |  | <el-col style="text-align: center"> | 
|---|
|  |  |  | <el-col :span="10" class="content">总需求数量:</el-col> | 
|---|
|  |  |  | <el-col :span="10" class="content">需求数量:</el-col> | 
|---|
|  |  |  | <el-col :span="8" class="content-value">{{ selected.anfme }}</el-col> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | <el-col> | 
|---|
|  |  |  | 
|---|
|  |  |  | <el-col> | 
|---|
|  |  |  | <div class="header-title">拣货数量:</div> | 
|---|
|  |  |  | <dv-border-box-10  class="box"> | 
|---|
|  |  |  | <el-input type="text" v-model="workQty"></el-input> | 
|---|
|  |  |  | <el-input type="text" v-model="selected.revQty" disabled></el-input> | 
|---|
|  |  |  | </dv-border-box-10> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | 
|---|
|  |  |  | return  'background: gainsboro;' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | getWorkQty() { | 
|---|
|  |  |  | return this.selected.anfme - this.selected.workQty | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | 
|---|
|  |  |  | 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) | 
|---|
|  |  |  | 
|---|
|  |  |  | for (let i = 0; i < this.mergeTaskDetl.length; i++) { | 
|---|
|  |  |  | if (this.mergeTaskDetl[i].matnr === this.selected.matnr && this.workQty > this.mergeTaskDetl[i].anfme) { | 
|---|
|  |  |  | this.$message({ | 
|---|
|  |  |  | message: '拣货数量不能大于任务数量!!', | 
|---|
|  |  |  | message: '拣货数量应等于任务数量!!', | 
|---|
|  |  |  | type: 'error' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | return | 
|---|
|  |  |  | 
|---|
|  |  |  | //隐藏弹框 | 
|---|
|  |  |  | this.show = false | 
|---|
|  |  |  | // eslint-disable-next-line no-undef | 
|---|
|  |  |  | $ajax.post('wave/sow/review', { waveSeedId: this.selected.id, reviewNum: this.workQty }).then(response => { | 
|---|
|  |  |  | $ajax.post('wave/sow/review', { waveSeedId: this.selected.id, reviewNum: this.selected.revQty }).then(response => { | 
|---|
|  |  |  | if (response.code === 200) { | 
|---|
|  |  |  | this.getWaves() | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | 
|---|
|  |  |  | 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 | 
|---|
|  |  |  | 
|---|
|  |  |  | .pick-order-detl { | 
|---|
|  |  |  | padding: 0 15px; | 
|---|
|  |  |  | .detl-box-border { | 
|---|
|  |  |  | height: 55vh; | 
|---|
|  |  |  | height: 45vh; | 
|---|
|  |  |  | .detl-box-padding { | 
|---|
|  |  |  | height: 65px | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | width: 74vh; | 
|---|
|  |  |  | padding-top: 65px; | 
|---|
|  |  |  | height: 275px; | 
|---|
|  |  |  | overflow: hidden; | 
|---|
|  |  |  | overflow-y: auto; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .popover-order { | 
|---|
|  |  |  | width: 300px; | 
|---|
|  |  |  | 
|---|
|  |  |  | .order-detl-list { | 
|---|
|  |  |  | overflow: hidden; | 
|---|
|  |  |  | overflow-y: scroll; | 
|---|
|  |  |  | height: 43vh; | 
|---|
|  |  |  | height: 38vh; | 
|---|
|  |  |  | padding: 0 15px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .table-matnr { | 
|---|
|  |  |  | height: 26vh; | 
|---|
|  |  |  | height: 16vh; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .el-table { | 
|---|
|  |  |  | 
|---|
|  |  |  | width: 74vh; | 
|---|
|  |  |  | padding-top: 65px; | 
|---|
|  |  |  | height: 275px; | 
|---|
|  |  |  | overflow: hidden; | 
|---|
|  |  |  | overflow-y: auto; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .btnPrint { | 
|---|
|  |  |  | font-size: 9px; | 
|---|