From 63e1ee997a5318e628b992f969bdac2fec6dbf14 Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期四, 04 十二月 2025 14:39:00 +0800
Subject: [PATCH] 1
---
项目代码/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/taskinfo/Dt_Task.jsx | 53 +++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 39 insertions(+), 14 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/taskinfo/Dt_Task.jsx" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/taskinfo/Dt_Task.jsx"
index 372279c..c403392 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/taskinfo/Dt_Task.jsx"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/taskinfo/Dt_Task.jsx"
@@ -24,23 +24,48 @@
//涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄�
onInit() {
- this.columns.forEach(x => {
- if (x.field == "errorMessage") {
- x.cellStyle = (row, rowIndex, columnIndex) => {
- if (row.errorMessage == null||row.errorMessage=="") {
- return { background: "White", color: "Black" }
- }
- else{
- return { background: "#FF4500", color: "Black" }
- }
- }
+ // this.columns.forEach(x => {
+ // if (x.field == "errorMessage") {
+ // x.cellStyle = (row, rowIndex, columnIndex) => {
+ // if (row.errorMessage == null||row.errorMessage=="") {
+ // return { background: "White", color: "Black" }
+ // }
+ // else{
+ // return { background: "#FF4500", color: "Black" }
+ // }
+ // }
+ // }
+ // })
+ var DoubleTrayBtn = this.buttons.find(x => x.value == "InitializationElevator");
+ if (DoubleTrayBtn != null) {
+ DoubleTrayBtn.onClick = () => {
+ this.$confirm('纭畾瑕佸垵濮嬪寲鎻愬崌鏈哄悧锛�', '鎿嶄綔纭', {
+ confirmButtonText: '纭',
+ cancelButtonText: '鍙栨秷',
+ type: 'warning' // 璀﹀憡绫诲瀷锛屾樉绀洪粍鑹插浘鏍�
+ }).then(() => {
+ this.http.post(`/api/Task/elevator`).then((x) => {
+ console.log(x)
+ console.log(x.status)
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.refresh();
+ } else {
+ return this.$error(x.message);
+ }
+ });
+ }).catch(() => {
+ // 鐢ㄦ埛鐐瑰嚮"鍙栨秷"鍚庢墽琛岀殑閫昏緫锛堥�氬父鏄彁绀哄彇娑堟搷浣滐級
+ this.$message.info('宸插彇娑堟搷浣�');
+ })
}
- })
+ }
+
//妗嗘灦鍒濆鍖栭厤缃墠锛�
- let TaskHandCompleteBtn=this.buttons.find(x=>x.value=='TaskHandComplete');
- if(TaskHandCompleteBtn){
- TaskHandCompleteBtn.onClick=function(){
+ let TaskHandCompleteBtn = this.buttons.find(x => x.value == 'TaskHandComplete');
+ if (TaskHandCompleteBtn) {
+ TaskHandCompleteBtn.onClick = function () {
let row = this.$refs.table.getSelected() //鑾峰彇閫変腑鐨勮
if (row <= 0) {
//濡傛灉娌℃湁閫変腑琛�
--
Gitblit v1.9.3