|
@@ -39,6 +39,7 @@
|
|
|
|
|
|
<el-button type="success" style="margin-left: 1%;" @click="firstLoadData">查询</el-button>
|
|
<el-button type="success" style="margin-left: 1%;" @click="firstLoadData">查询</el-button>
|
|
<el-button type="success" style="margin-left: 1%;" @click="updateStatus">更新状态</el-button>
|
|
<el-button type="success" style="margin-left: 1%;" @click="updateStatus">更新状态</el-button>
|
|
|
|
+ <el-button type="info" style="margin-left: 1%;" @click="dialogVisible = true">批量更新运单(注销机构)</el-button>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -200,6 +201,21 @@
|
|
:total="total">
|
|
:total="total">
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div>
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="确认操作"
|
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
|
+ width="30%"
|
|
|
|
+ :before-close="handleClose"
|
|
|
|
+ >
|
|
|
|
+ <span slot-scope="scope" style="color:red">操作后,无法还原,确定要执行这个操作吗?</span>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="dialogVisible = false">取消</el-button>
|
|
|
|
+ <el-button type="primary" @click="handleConfirm">确认</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
@@ -235,7 +251,8 @@ import XLSX from 'xlsx';
|
|
current: 1,
|
|
current: 1,
|
|
pagesize: 8,
|
|
pagesize: 8,
|
|
hightt: '0px',
|
|
hightt: '0px',
|
|
- total: ''
|
|
|
|
|
|
+ total: '',
|
|
|
|
+ dialogVisible: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -358,6 +375,34 @@ import XLSX from 'xlsx';
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ handleClose(done) {
|
|
|
|
+ // 处理模态框关闭前的逻辑,如点击遮罩层时触发
|
|
|
|
+ done(); // 关闭模态框
|
|
|
|
+ },
|
|
|
|
+ handleCancel() {
|
|
|
|
+ this.dialogVisible = false;
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ async handleConfirm(){
|
|
|
|
+ this.dialogVisible = true;
|
|
|
|
+ const formData = new FormData();
|
|
|
|
+ formData.append('noCarWayBillStr', JSON.stringify(this.multipleSelection));
|
|
|
|
+ const response = await this.$http.post(`noCar/updateStatusByCompany`, formData);
|
|
|
|
+ if(response.data.code == 0) {
|
|
|
|
+ this.loadData();
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: '更新成功'
|
|
|
|
+ });
|
|
|
|
+ }else {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: '更新失败'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ this.dialogVisible = false;
|
|
|
|
+ },
|
|
// 分页方法
|
|
// 分页方法
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
this.pagesize = val;
|
|
this.pagesize = val;
|