1
wankeda
2025-04-11 91b610a8cf7ad7a4e52486d3ff904df229873b23
1
已修改2个文件
79 ■■■■■ 文件已修改
代码管理/NEWCode/WIDESEAWCS_PDA/pages/叫料/负极叫料.vue 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
代码管理/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
´úÂë¹ÜÀí/NEWCode/WIDESEAWCS_PDA/pages/½ÐÁÏ/¸º¼«½ÐÁÏ.vue
@@ -36,6 +36,8 @@
                    <u-gap height="10"></u-gap>
                    <!-- è¾“入框,使用 v-model ç»‘定输入值 -->
                    <uni-easyinput v-model="inputValue" placeholder="请输入叫料的烘烤设备" />
                    <u-gap height="10"></u-gap>
                    <uni-easyinput type="number" v-model="numberValue" placeholder="请输入叫料数量" />
                </view>
            </u-modal>
            <!-- ä½¿ç”¨ uni-popup ç»„件,设置为对话框类型 -->
@@ -47,6 +49,8 @@
                    <view class="popup-content">{{ content }}</view>
                    <!-- è¾“入框,使用 v-model ç»‘定输入值 -->
                    <uni-easyinput v-model="inputValue" placeholder="请输入内容" />
                    <u-gap height="10"></u-gap>
                    <uni-easyinput type="number" v-model="numberValue" placeholder="请输入叫料数量" />
                    <!-- æŒ‰é’®ç»„ -->
                    <view class="button-group">
                        <!-- å…³é—­æŒ‰é’® -->
@@ -79,7 +83,9 @@
                content: '欢迎使用 uni-popup!',
                msgType: 'success',
                value: '',
                inputValue: ''
                inputValue: '',
                numberValue: '',
                currentAvailableQuantity: 0
            };
        },
        onLoad() {
@@ -137,38 +143,45 @@
                console.log(this.$refs);
                // this.$refs.popup.open();
                this.Modalshow = true;
                this.content = `工单:${orderNo}\n型号:${productCode}\n可叫数量:${number}\n请确认是否叫任务(默认4个)`;
                this.content = `工单:${orderNo}\n型号:${productCode}\n可叫数量:${number}\n请确认是否叫任务`;
                this.currentAvailableQuantity = number;
                // this.numberValue = number > 4 ? 4 : number; // è®¾ç½®é»˜è®¤å€¼ä¸º4或可用数量
            },
            confirmInput() {
                this.$t.message.loading();
                // æå–输入框的值
                const inputValue = this.inputValue;
                const numberValue = parseInt(this.numberValue);
                // æå–工单编号
                const orderNo = this.content.match(/工单:(.*)\n/)[1];
                // æå–型号
                const productCode = this.content.match(/型号:(.*)\n/)[1];
                // æå–可叫数量
                const availableQuantity = this.content.match(/可叫数量:(.*)\n/)[1];
                if (inputValue == "") {
                    this.$t.message.toast('请输入烘烤设备');
                    return;
                }
                if (availableQuantity <= 0) {
                    this.$t.message.toast('可叫数量为0,无法叫任务');
                if (numberValue <= 0) {
                    this.$t.message.toast('叫料数量必须大于0');
                    return;
                }
                if (numberValue > this.currentAvailableQuantity) {
                    this.$t.message.toast('叫料数量不能超过可叫数量');
                    return;
                }
                let formDataParam = {
                    dTaskId: this.generateUUID(),
                    productCode: productCode,
                    orderNo: orderNo,
                    taskNo:2,
                    number: availableQuantity > 4 ? 4 : availableQuantity,
                    number: numberValue,
                    inputValue: inputValue,
                    DTaskId: this.generateUUID(),
                    ProductCode: productCode,
                    OrderNo: orderNo,
                    Number: availableQuantity > 4 ? 4 : availableQuantity,
                    Number: numberValue,
                    InputValue: inputValue,
                    TaskType: "负极"
                    // ...其他需要传递的参数
@@ -275,44 +288,4 @@
    .uni-ellipsis-1 {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .uni-ellipsis-2 {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .popup-container {
        padding: 20px;
        text-align: center;
    }
    .popup-content {
        margin-bottom: 15px;
        font-size: 16px;
    }
    .custom-button {
        border: none;
        border-radius: 5px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .confirm-button:hover {
        background-color: #0056b3;
    }
    .slot-content {
        font-size: 28rpx;
        color: $u-content-color;
        padding-left: 30rpx;
    }
</style>
        white-space
´úÂë¹ÜÀí/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
@@ -52,9 +52,9 @@
        }
        public Task Execute(IJobExecutionContext context)
        {
            try
            {
@@ -115,7 +115,7 @@
                string taskType = request.Value.Contains("ZJXL") ? "正极" : "负极";
                // æŸ¥è¯¢æ˜¯å¦å­˜åœ¨å·²ç”Ÿæˆçš„æ–°ä»»åŠ¡
                var task = _taskRepository.QueryFirst(x => x.SourceAddress == fromAdd && x.TaskState == (int)TaskInStatusEnum.InNew);
                var task = _taskRepository.QueryFirst(x => x.SourceAddress == fromAdd);//&& x.TaskState == (int)TaskInStatusEnum.InNew
                if (task != null)
                {
                    ConsoleHelper.WriteInfoLine($"{nameof(CommonConveyorLineJob)}: {taskType}{requestType},任务已生成存在,稍后重试......");