From c6d41668b3f7d39bb3c5946bc7f2ff37ea2de57c Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期日, 22 六月 2025 14:23:49 +0800 Subject: [PATCH] 选择集货区优化 --- construction-data/src/components/datav/index.vue | 103 +++++++++++++++++++++++++++------------------------ 1 files changed, 54 insertions(+), 49 deletions(-) diff --git a/construction-data/src/components/datav/index.vue b/construction-data/src/components/datav/index.vue index 0ac35a5..54f6449 100644 --- a/construction-data/src/components/datav/index.vue +++ b/construction-data/src/components/datav/index.vue @@ -45,46 +45,47 @@ <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> <div v-else class="ship-order-list"> {{scope.row[item]}} </div> </template> </el-table-column> </el-table> + <el-popover + placement="right" + trigger="manual" + :key="dex + 231" + 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-empty description="鏆傛棤鎶曟斁璁㈠崟" class="empty-padding" v-else></el-empty> </dv-border-box-11> </el-row> <el-row type="flex" align="center" id="datav"> <dv-border-box-11 title="鎾澧�" class="pick-wall" > - <el-row type="flex" align="center" justify="center" class="pick-wall-circle" > - <el-col :span="1"> - <p class="pick-wall-tip"></p> - </el-col> - <el-col :span="22"> - <p>缁胯壊锛氫换鍔″凡瀹屾垚 榛勮壊锛氱瓑寰呬腑 绾㈣壊锛氭挱绉嶄腑</p> - </el-col> - </el-row> +<!-- <el-row type="flex" align="center" justify="center" class="pick-wall-circle" >--> +<!-- <el-col :span="1">--> +<!-- <p class="pick-wall-tip"></p>--> +<!-- </el-col>--> +<!-- <el-col :span="22">--> +<!-- <p>缁胯壊锛氫换鍔″凡瀹屾垚 榛勮壊锛氱瓑寰呬腑 绾㈣壊锛氭挱绉嶄腑</p>--> +<!-- </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> @@ -189,13 +190,12 @@ } }, created () { - //鑾峰彇褰撳墠鎵ц浠诲姟 - this.getWaves() - //鑾峰彇褰撳墠鎾澧欏簱浣嶄俊鎭� - this.getSeedLoc() - //鑾峰彇鎵�鏈夊彂璐ф殏瀛樺尯 - this.getAllPlatforms() + let that = this + setInterval(() => { + that.refreshData() + }, 10000) }, + computed: { getLightStatus() { return (item)=> { @@ -208,6 +208,14 @@ } }, methods: { + refreshData() { + //鑾峰彇褰撳墠鎵ц浠诲姟 + this.getWaves() + //鑾峰彇褰撳墠鎾澧欏簱浣嶄俊鎭� + this.getSeedLoc() + //鑾峰彇鎵�鏈夊彂璐ф殏瀛樺尯 + this.getAllPlatforms() + }, printPage() { // let element = document.querySelector('#datav'); // let el = this.$refs.datav @@ -246,6 +254,7 @@ // 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() //闅愯棌鍙戣揣鍖�,鎵ц鎵撳嵃 } else { this.$message.error(response.msg) @@ -412,8 +421,6 @@ </script> <style lang="less"> - - @media screen and (max-width: 1920px){ #data-view { width: 100%; @@ -433,14 +440,10 @@ margin: 5px 0; } - - .pick-order-detl { padding: 0 15px; - .detl-box-border { - height: 59vh; - + height: 55vh; .detl-box-padding { height: 65px } @@ -451,10 +454,8 @@ text-align: center; color: white; margin: 20vh; - .container { padding: 45px 60px; - .btn { width: 30vh;height: 7vh;font-size: 23px; } @@ -484,7 +485,7 @@ .pick-wall { padding: 60px 10px 10px 10px; - height: 68vh; + height: 47vh; .pick-wall-box { .seed-bracket { @@ -504,6 +505,10 @@ width: 1px; background: #03d3ec; border-left: 5px solid #50bfff + } + + span { + margin: 2px; } } } @@ -547,7 +552,7 @@ .order-box-row { width: 84vh; - height: 38vh; + height: 33vh; .order-box { padding:0px 30px; @@ -571,16 +576,16 @@ } } - - - .ship-order-list { font-size: 18px; color: white; } } } .empty-padding { - padding-top: 65px; + padding-top: 105px; + .el-empty__image { + height: 100px; + } } } .order-detl-list { -- Gitblit v1.9.1