军泰伟业
1.已发货数量等于总数量时,状态为已发货。已发货数量小于总数量时,状态建议新增发货中
2.产品清除工艺路线点击确定后,仍然回显绑定的工艺路线
已修改2个文件
56 ■■■■■ 文件已修改
src/views/basicData/product/index.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/salesLedger/index.vue 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicData/product/index.vue
@@ -390,7 +390,13 @@
    modelForm.value = { ...data };
    modelForm.value.tempFileIds = data.tempFileIds || [];
    modelForm.value.salesLedgerFiles = data.salesLedgerFiles || [];
    if (data.drawingFile) {
    // 处理图纸文件反显
    if (data.salesLedgerFiles && data.salesLedgerFiles.length > 0) {
      drawingFileList.value = data.salesLedgerFiles.map(file => ({
        name: file.name,
        url: file.url
      }));
    } else if (data.drawingFile) {
      drawingFileList.value = [{
        name: data.drawingFile.split('/').pop(),
        url: data.drawingFile
@@ -402,7 +408,13 @@
const submitModelForm = () => {
  modelFormRef.value.validate((valid) => {
    if (valid) {
      addOrEditProductModel(modelForm.value).then((res) => {
      // 构建提交数据,确保 routeId 为空时传 null,同时清空 routeName
      const submitData = {
        ...modelForm.value,
        routeId: modelForm.value.routeId || 0,
        routeName: modelForm.value.routeId ? modelForm.value.routeName : null
      };
      addOrEditProductModel(submitData).then((res) => {
        proxy.$modal.msgSuccess("提交成功");
        closeModelDia();
        getModelList();
src/views/salesManagement/salesLedger/index.vue
@@ -1964,26 +1964,23 @@
    // 状态是字符串
    const statusStr = String(status).trim();
    
    // 如果状态是"已撤销",直接返回
    if (statusStr === '已撤销') {
        return '已撤销';
    }
    // 如果已发货(有发货日期或车牌号),显示"已发货"
    if (row.shippingDate || row.shippingCarNumber) {
        return '已发货';
    }
    const statusTextMap = {
        '待发货': '待发货',
        '待审核': '待审核',
        '审核中': '审核中',
        '发货中': '发货中',
        '审核拒绝': '审核拒绝',
        '审核通过': '审核通过',
        '已发货': '已发货',
        '已撤销': '已撤销'
    };
    return statusTextMap[statusStr] || '待发货';
    // 如果状态在映射表中,直接返回对应文本
    if (statusTextMap[statusStr]) {
        return statusTextMap[statusStr];
    }
    return '待发货';
};
/**
@@ -2002,16 +1999,6 @@
    // 状态是字符串
    const statusStr = String(status).trim();
    
    // 如果状态是"已撤销",显示橙色
    if (statusStr === '已撤销') {
        return 'warning';
    }
    // 如果已发货(有发货日期或车牌号),显示绿色
    if (row.shippingDate || row.shippingCarNumber) {
        return 'success';
    }
    const typeTextMap = {
        '待发货': 'info',
        '待审核': 'info',
@@ -2019,9 +2006,16 @@
        '审核拒绝': 'danger',
        '已撤销': 'warning',
        '审核通过': 'success',
        '已发货': 'success'
        '已发货': 'success',
        '发货中': 'warning'
    };
    return typeTextMap[statusStr] || 'info';
    // 如果状态在映射表中,直接返回对应类型
    if (typeTextMap[statusStr]) {
        return typeTextMap[statusStr];
    }
    return 'info';
};
/**