自动化立体仓库 - WMS系统
#
lty
1 天以前 4efbf695ce0e0e6565e75305a57ea4c4bbc2c45d
src/main/webapp/views/orderCargoGrouping/orderCargoGroupingOperate.html
@@ -157,6 +157,18 @@
               <el-option label="重新下发" value="99"></el-option>
            </el-select>
         </div>
         <div class="search-item">
            <span class="search-label">创建日期:</span>
            <el-date-picker
                  v-model="selectedDate"
                  type="date"
                  value-format="yyyy-MM-dd"
                  placeholder="选择日期"
                  clearable
                  style="width: 150px;"
                  @change="handleDateChange"
            ></el-date-picker>
         </div>
         <div class="search-actions">
            <el-button type="primary" icon="el-icon-search" @click="handleSearch">搜索</el-button>
            <el-button icon="el-icon-refresh" @click="handleReset">重置</el-button>
@@ -178,11 +190,24 @@
<!--         <el-table-column prop="itemName" label="组货单号" width="120" align="center" sortable="custom"></el-table-column>-->
         <el-table-column prop="cstmrName" label="货主" min-width="120" align="center"></el-table-column>
         <el-table-column prop="settle$" label="状态" min-width="100" align="center" :formatter="formatStatus"></el-table-column>
         <el-table-column prop="issueComplete" label="下发完成" width="100" align="center">
            <template slot-scope="scope">
               <el-tag v-if="scope.row.issueComplete === 1" type="success">已全下发</el-tag>
               <el-tag v-else type="info">未完成</el-tag>
            </template>
         </el-table-column>
         <el-table-column prop="createTime" label="创建时间" min-width="100" align="center" :formatter="formatDateColumn"></el-table-column>
         <el-table-column prop="updateTime" label="更新日期" min-width="100" align="center" :formatter="formatDateColumn"></el-table-column>
         <el-table-column label="操作" width="150" align="center" fixed="right">
         <el-table-column label="操作" width="220" align="center" fixed="right">
            <template slot-scope="scope">
               <div class="operation-cell">
                  <el-button
                        type="warning"
                        size="mini"
                        :disabled="scope.row.issueComplete === 1"
                        @click="oneKeyIssue(scope.row)">
                     一键下发
                  </el-button>
                  <el-button
                        type="primary"
                        size="mini"
@@ -357,6 +382,7 @@
            cstmrName: '',
            settle: ''
         },
         selectedDate: '',
         detailSearch: {
            standby3: '',
            boxType3: ''
@@ -456,6 +482,10 @@
            if (that.orderByField) {
               params.orderByField = that.orderByField;
               params.orderByType = that.orderByType;
            }
            if (that.selectedDate) {
               params['create_time'] = that.selectedDate + ' 00:00:00 - ' + that.selectedDate + ' 23:59:59';
            }
            Object.keys(that.searchForm).forEach(key => {
@@ -956,6 +986,11 @@
            this.getTableDataA();
         },
         handleDateChange() {
            this.currentPage = 1;
            this.getTableDataA();
         },
         // 重置搜索条件
         handleReset() {
            this.searchForm = {
@@ -963,12 +998,66 @@
               cstmrName: '',
               settle: ''
            };
            this.selectedDate = '';
            this.orderByField = '';
            this.orderByType = 'asc';
            this.currentPage = 1;
            this.getTableDataA();
         },
         oneKeyIssue(row) {
            if (!row || !row.orderNo) {
               this.$message.error('订单号为空');
               return;
            }
            const orderNo = row.orderNo;
            this.$confirm(
                  `确认一键下发订单号 <strong style="color: #F56C6C; font-size: 16px;">${orderNo}</strong> 的全部明细吗?`,
                  '一键下发',
                  {
                     confirmButtonText: '确认下发',
                     cancelButtonText: '取消',
                     type: 'warning',
                     dangerouslyUseHTMLString: true
                  }
            ).then(() => {
               const loadingInstance = this.$loading({
                  lock: true,
                  text: '下发中...',
                  spinner: 'el-icon-loading',
                  background: 'rgba(0, 0, 0, 0.7)'
               });
               $.ajax({
                  url: baseUrl + "/order/pakin/order/oneKey/issue/auth",
                  headers: {'token': localStorage.getItem('token')},
                  data: { orderNo: orderNo },
                  method: 'POST',
                  success: (res) => {
                     loadingInstance.close();
                     if (res.code === 200 || res.success) {
                        this.$message({
                           message: `订单号 ${orderNo} 下发成功`,
                           type: 'success',
                           duration: 3000
                        });
                        this.getTableDataA();
                     } else {
                        this.$message.error(res.msg || '下发失败');
                     }
                  },
                  error: () => {
                     loadingInstance.close();
                     this.$message.error('下发失败,请检查网络连接');
                  }
               });
            }).catch(() => {
               this.$message({
                  type: 'info',
                  message: '已取消操作'
               });
            });
         },
         // 显示详情弹窗
         showDetail(row) {
            this.currentRow = row;