Browse Source

Merge remote-tracking branch 'origin/dev' into dev

wfg 2 months ago
parent
commit
054a4915d5

+ 7 - 0
src/lang/index.js

@@ -1,9 +1,11 @@
 import Vue from 'vue'
 import VueI18n from 'vue-i18n' // 下载的组建引入
 import elementEnLocale from 'element-ui/lib/locale/lang/en' // element-ui lang
+import elementViLocale from 'element-ui/lib/locale/lang/vi' // element-ui lang
 import elementZhLocale from 'element-ui/lib/locale/lang/zh-CN'// element-ui lang
 import enLocale from './en' // 英文包数据
 import zhLocale from './zh' // 中文包数据 用于 使用 $t 切换中英文
+import viLocale from './vi' // 中文包数据 用于 使用 $t 切换中英文
 import { getStore } from '@/util/store'
 Vue.use(VueI18n)
 const Avue = window.AVUE;
@@ -17,6 +19,11 @@ const messages = {
     ...zhLocale,
     ...elementZhLocale,
     ...Avue.locale.zh,
+  },
+  vi: {
+    ...viLocale,
+    ...elementViLocale,
+    ...Avue.locale.vi,
   }
 }
 

+ 443 - 0
src/lang/vi.js

@@ -0,0 +1,443 @@
+export default {
+    tip: 'gợi ý',
+    title: 'Nền tảng phát triển DN VN',
+    logoutTip: 'Đăng xuất, Tiếp tục?',
+    submitText: 'Chắc chắn',
+    cancelText: 'Hủy bỏ',
+    search: 'Vui lòng nhập điều khoản tìm kiếm',
+    menuTip: 'Không tìm thấy menu',
+    wel: {
+        info: 'Chào buổi sáng,Smallwei,Avuex一khuôn khổ vượt xa trí tưởng tượng của bạn!',
+        dept: 'Tôi là avue Một phòng trực thuộc nhóm - Phòng ban Hạnh phúc - Vị trí Hạnh phúc',
+        team: 'Xếp hạng trong nhóm',
+        project: 'Tham quan dự án',
+        count: 'Số lượng dự án',
+        data: {
+            subtitle: 'thời gian thực',
+            column1: 'Thống kê phân loại',
+            column2: 'Thống kê tệp đính kèm',
+            column3: 'Thống kê bài viết',
+            key1: 'phút',
+            key2: 'Đính kèm',
+            key3: 'Bình luận',
+            text1: 'Tổng số bản ghi trong danh mục hiện tại',
+            text2: 'Số lượng tệp đính kèm hiện được tải lên',
+            text3: 'Số lượng bình luận'
+        },
+        data2: {
+            column1: 'Đăng ký hôm nay',
+            column2: 'Đăng nhập hôm nay',
+            column3: 'Đăng ký hôm nay',
+            column4: 'Bình luận hôm nay'
+        },
+        data3: {
+            column1: 'Tỷ lệ chuyển đổi(So hôm nay 28%)',
+            column2: 'Tỷ lệ đăng nhập(So hôm nay 11%)',
+            column3: 'Tỷ lệ đăng nhập(So hôm nay 11%)'
+        },
+        data4: {
+            column1: 'Nhật ký lỗi',
+            column2: 'Hiển thị dữ liệu',
+            column3: 'Quản lý quyền',
+            column4: 'Quản lý người dùng'
+        },
+        table: {
+            rw: 'Nhiệm vụ công việc',
+            nr: 'Nội dung công việc',
+            sj: 'Giờ làm việc'
+        }
+    },
+    route: {
+        info: 'thông tin cá nhân',
+        website: 'bladex Trang web chính thức',
+        avuexwebsite: 'avuex Trang web chính thức',
+        dashboard: 'trang nhất',
+        more: 'Nhiều Hơn',
+        tags: 'Nhãn',
+        store: 'Lưu trữ cục bộ',
+        api: 'Các hàm toàn cục',
+        logs: 'Giám sát nhật ký',
+        table: 'tờ giấy',
+        form: 'Hình thức',
+        top: 'Trở lại đầu trang',
+        data: 'Hiển thị dữ liệu',
+        permission: 'Quyền',
+        error: 'Trang bị lỗi',
+        test: 'Trang kiểm tra',
+        saleOrderL: 'Đơn đặt hàng(L)',
+        entrust: 'Khách hàng',
+        dispatch: 'Lên lịch',
+        dispatchVehicle: 'Điều động xe',
+        track: 'theo dõi',
+        bulkCargo: 'hàng rời',
+        antiepidemic:'chống dịch bệnh',
+        bulkCargoLedger: 'Sổ cái hàng rời',
+        landTransportLedger: 'Sổ cái vận tải đường bộ',
+    },
+    login: {
+        title: 'Đăng nhập Việt Nam',
+        info: 'Nền tảng phát triển doanh nghiệp Việt Nam',
+        tenantId: 'nhập công ty của bạn ID',
+        username: 'nhập số tài khoản của bạn',
+        password: 'nhập mật khẩu của bạn',
+        wechat: 'WeChat',
+        qq: 'QQ',
+        github: 'github',
+        gitee: 'Đám mây',
+        phone: 'nhập số điện thoại di động của bạn',
+        code: 'Vui lòng nhập mã xác minh',
+        submit: 'Đăng nhập',
+        userLogin: 'Đăng nhập bằng TK và MK',
+        phoneLogin: 'Đăng nhập bằng số ĐTDĐ',
+        thirdLogin: 'Đăng nhập hệ thống của bên thứ ba',
+        msgText: 'Gửi mã xác minh',
+        msgSuccess: 'Gửi lại sau vài giây',
+    },
+    navbar: {
+        logOut: 'Đăng xuất',
+        userinfo: 'thông tin cá nhân',
+        dashboard: 'trang nhất',
+        lock: 'Màn hình khóa',
+        bug: 'Nhật ký lỗi',
+        bugs: 'Nhật ký lỗi',
+        screenfullF: 'Thoát toàn màn hình',
+        screenfull: 'toàn màn hình',
+        language: 'Tiếng Trung và tiếng Anh',
+        notice: 'Thông báo tin nhắn',
+        theme: 'chủ đề',
+        color: 'Thay đổi màu sắc'
+    },
+    tagsView: {
+        search: 'tìm kiếm',
+        menu: 'Nhiều Hơn',
+        clearCache: 'Xóa bộ nhớ đệm',
+        closeOthers: 'Đóng Khác',
+        closeAll: 'Đóng tất cả'
+    },
+    land118n: {
+        corpName: 'khách hàng',
+        branchName: 'Công ty',
+        mblno: 'Số vận đơn',
+        shippingCost: 'vận chuyển hàng hóa',
+        freightReceivable: 'Tiền cước phải thu',
+        extraAmountD: 'Phí phải thu khác nhau',
+        extraAmountC: 'Chi phí lặt vặt phải trả',
+        hblno: 'HB/L NO ',
+        billType: 'Loại Bill',
+        localStatus: 'Tình trạng hậu cần',
+        logisticsTransportation: 'Hậu cần và vận tải',
+        transportationScheduling: 'Lịch trình vận chuyển',
+        caseNumber: 'Số cont',
+        sealNumber: 'Số seal',
+        freightLocation: 'Địa điểm giao hàng',
+        pickupDate: 'Ngày nhận hàng',
+        contact: 'Liên hệ',
+        transferOrderStatus: 'Trạng thái chuyển khoản',
+        billNo: 'Số Bill',
+        salesperson: 'Nhân viên bán hàng',
+        billDate: 'Ngày Bill',
+        documentNumber: 'Số hóa đơn',
+        contactNumber: 'Số ĐT liên lạc',
+        vessel: 'Tên tàu',
+        voy: 'số chuyến',
+        address: 'địa chỉ',
+        status: 'tình trạng',
+        operation: 'vận hành',
+        op: 'Người vận hành',
+        etd: 'Ngày khởi hành',
+        eta: 'Ngày đến cảng',
+        carrier: 'người vận chuyển',
+        pol: 'Cảng khởi hành',
+        pod: 'Cảng đích',
+        acceptDate: 'Ngày chấp nhận',
+        arrivalTime: 'Thời gian đến thực tế',
+        motorcade: 'đội xe',
+        vehicleNumber: 'Số xe',
+        driver: 'tài xế',
+        goods: 'hàng hóa',
+        loadingAndUnloading: 'tải và dỡ hàng',
+        bicycleFreight: 'Vận chuyển xe đạp',
+        placeDelivery: 'Nơi giao hàng',
+        lane: 'tuyến đường',
+        CY: 'bãi cont',
+        businessSource: 'Nguồn kinh doanh',
+        businessName: 'Chi tiết nguồn',
+        scndesc: 'Người giao tiếp',
+        feeStatus: 'Trạng thái phí',
+        cost: 'trị giá',
+        sourceBillNo: 'Số thứ tự nguồn',
+        debitStatus: 'Trạng thái nợ',
+        creditStatus: 'Trạng thái thanh toán',
+        createBy: 'Người sáng lập',
+        orderBy: 'sắp xếp theo',
+        processing: 'Chưa giải quyết',
+        waitApply: 'Đang chờ xác minh',
+        completed: 'Hoàn thành',
+        all: 'tất cả',
+        enteringStatus: 'Trạng thái đơn hàng',
+        entering: 'Chấp nhận đơn hàng',
+        generateNo: 'Con số',
+        onBoard: 'trên tàu',
+        onArrival: 'Tới cảng',
+        masteNo: 'số hiệu chính',
+        hblCount: 'Số ít',
+        customerService: 'dịch vụ khách hàng',
+        ctnrTypeQty: 'Loại cont và số lượng',
+        boxType: 'Loại cont',
+        payableLandFreight: 'Cước phí đường bộ phải trả',
+        completionDate: 'Ngày hoàn thành',
+        singleContainerFreight: 'VC bằng container đơn',
+        cargoType: 'Loại hàng hóa',
+        bookingAgent: 'Đại lý BOOKING',
+        freightDate: 'Ngày giao hàng',
+        marks: 'Đánh dấu',
+        descOfGoods: 'Mô tả hàng hóa',
+        QTY: 'Số lượng',
+        package: 'Đóng gói',
+        GW: 'Tổng trọng lượng',
+        NETGW: 'trọng lượng tịnh',
+        CBM: 'CBM',
+        TEU: 'TEU',
+        hblTeu: 'Tách đơn TEU',
+        ttlDebit: 'Tổng nợ',
+        auditStatus: 'Trạng thái đánh giá',
+        applyStatus: 'Trạng thái ứng dụng đã thanh toán',
+        checkStatus: 'Trạng thái đối chiếu',
+        debitStlStatus: 'Trạng thái nợ',
+        creditStlStatus: 'Trạng thái thanh toán',
+        invoiceStatus: 'Trạng thái hóa đơn',
+        createTime: 'Thời gian sáng tạo',
+        billStatus: 'Tình trạng kinh doanh',
+        bookStatus: 'Tình trạng booking',
+        financeStatus: 'Tình hình tài chính',
+        remarks: 'Ghi chú',
+        orderInfo: 'Thông tin order',
+        otherInformation: 'Thông tin khác',
+        boxInformation: 'Thông tin cont',
+        addressInformation: 'Thông tin địa chỉ',
+        vehicleInformation: 'Thông tin xe',
+        incidentalExpenses: 'Phí khác nhau',
+        receivableCharges: 'các khoản phải thu',
+        accruedExpenses: 'Phí phải trả',
+        uploadAttachment: 'Tải lên tệp đính kèm',
+        info: 'thông tin',
+        billInfo: 'Thông tin bill',
+        feeInfo: 'Thông tin về lệ phí',
+        docCenter: 'Trung tâm tài liệu',
+        ctnrList: 'Thông tin cont',
+        masterBill: 'MB/L',
+        reportManage: 'Quản lý báo cáo',
+        fileCerter: 'Trung tâm tài liệu',
+        fileName: 'Tên tập tin',
+        filePath: 'Địa chỉ tập tin',
+        fileProperties: 'Thuộc tính tệp',
+        hblnolist: 'Danh sách đơn hàng',
+        shipper: 'Người giao hàng',
+        cnee: 'người nhận hàng',
+        notify: 'Người thông báo',
+        agent: 'Đại lý nước ngoài',
+        issueDate: 'Ngày ký kết',
+        issueType: 'Phương pháp ký kết',
+        issuePlace: 'Địa điểm ký kết',
+        bookRemarks: 'Ghi chú booking',
+        siRemarks: 'Nhận xét SI',
+        SOCORCOC: 'Chi Cont',
+        ctnrType: 'Loại Cont',
+        ctnrQty: 'SL Cont',
+        bookingDate: 'Ngày đặt booking',
+        polFreeTime: 'Miễm phí POL',
+        podTreeTime: 'Miễm phí POD',
+        noOfCopy: 'Số lượng bản sao',
+        businessType: 'Loại hình doanh nghiệp',
+        transportationMode: 'Phương thức vận chuyển',
+        limitWeight: 'Giới hạn trọng lượng',
+        limitSpace: 'Không gian hạn chế',
+        shippingTerms: 'Phương thức dịch vụ',
+        payment: 'Phương thức thanh toán',
+        docCutofftime: 'Thời gian cắt máng SI',
+        portCutofftime: 'Thời gian cắt máng cảng',
+        shippingAgent: 'Đại lý hãng tàu',
+        spaceType: 'Loại cabin',
+        spaceQty: 'Số lượng cabin',
+        bookCanceldate: 'Ngày hủy Book',
+        loadingType: 'Phương pháp đóng hàng',
+        noOfForiginal: 'Số lượng bản gốc',
+        hblPaymentPlace: 'Địa điểm thanh toán HBL',
+        mblPaymentPlace: 'Địa điểm thanh toán MBL',
+        modifier: 'Được sửa đổi bởi',
+        modifiedDate: 'Ngày sửa đổi',
+        debit: 'ghi nợ',
+        credit: 'Trả nợ',
+        amount: 'Số lượng',
+        settlementAmount: '	Số tiền thanh toán',
+        settlementTime: 'Thời gian thanh toán',
+        entrustmentRemarks: 'Ghi chú',
+        fleetRemarks: 'Ghi chú về đội xe',
+        sRemarks: 'Ghi chú của tài xế',
+        taxRate: 'mức thuế',
+        corpType: 'Danh mục khách hàng',
+        chargeCorp: 'Đối tưởng thu phí',
+        payCorp: 'Đối tượng thanh toán',
+        unitNo: 'Đơn vị định giá',
+        currency: 'Tiền tệ',
+        exrate: 'tỷ giá hối đoái',
+        price: 'đơn giá',
+        quantity: 'Số lượng',
+        localCurrency: 'nội tệ',
+        foreignCurrency: 'ngoại tệ',
+        reportNo: 'số báo cáo',
+        ctnDetail: 'Số lượng cont dự kiến',
+        dispatchCtnDetail: 'Số lượng cont đã gửi đi',
+        sendCtnDetail: 'Số lượng cont chấp nhận',
+        corpShortName: 'Tên công ty',
+        orderNo: 'Số đơn hàng',
+        factory: 'Tên tàu chuyến đi',
+        size: 'kích cỡ',
+        landWeight: 'cân nặng(tấn)',
+        tel: 'Điện thoại',
+        datetime: 'Thời gian lấy cont',
+        plateNo: 'biển số xe',
+        ctnOne: 'Cont số 1',
+        ctnTwo: 'Cont số 2',
+        fleetVolum: 'Kiểu xe',
+        addressDetail: 'Đang tải vị trí',
+        unloadingPlace: 'Vị trí dỡ hàng',
+        dispatchNumber: 'Số điều phối xe',
+        freightPay: 'Cước phí phải trả',
+        freightCollect: 'Tiền cước phải thu',
+        salesmanDept: 'phòng kinh doanh',
+        expectCtnQty: 'Số lượng cont được phân bổ trước',
+        etc: 'Ngày cắt máng cảng',
+        siCutoffDate: 'Ngày hết hạn SI',
+        content: 'Thay đổi nội dung',
+        changeUserName: 'Thay đổi người',
+        changeTime: 'Thay đổi thời gian',
+        reconciliationAmount: 'Số tiền đối chiếu',
+        reconciliationDate: 'Thời gian đối chiếu',
+        contractNo: 'Số hợp đồng',
+        extraAmountItemD: 'Chi tiết khoản phí khác phải thu',
+        extraAmountItemC: 'Chi tiết khoản phí khác phải trả',
+        pickUpGoodsUserName: 'Người bốc hàng hóa',
+        rise: 'tăng lên',
+        stop: 'Ngưng',
+        way: 'đường',
+        index: 'Số seri',
+        volume: 'Khối lượng hàng hóa',
+        packingType: 'Loại bao bì',
+        enterDetails: 'Nhập thông tin chi tiết',
+        total: 'tổng cộng',
+    },
+    landbtn118n: {
+        newDD: 'Tạo đơn hàng trực tiếp',
+        newMM: 'Tạo một lệnh chính',
+        newMH: 'Tạo lệnh chia tách',
+        copy: 'sao chép',
+        new: 'Mới',
+        importTemplate: 'Nhập mẫu',
+        preview: 'Xem trước',
+        save: 'Lưu lại',
+        mdBillType: 'loại Bill',
+        mhAddmm: 'Tách đơn hàng->Đơn hàng chính',
+        offLoad: 'Trả cont',
+        cancelOffLoad: 'Hủy trả cont',
+        deleted: 'xóa bỏ',
+        edit: 'chỉnh sửa',
+        toDebit: 'Tạo các khoản phải thu',
+        toCredit: 'Tạo khoản phải trả',
+        exportData: 'Xuất dữ liệu',
+        debitTemplate: 'Mẫu trả phí',
+        creditTemplate: 'Mẫu tín dụng',
+        costTemplate: 'Mẫu chi phí',
+        submitDebit: 'Nộp phí',
+        submitCredit: 'Gửi thanh toán',
+        printBill: 'In hóa đơn',
+        toList: 'Trở lại danh sách',
+        previous: 'Phiếu bầu trước đó',
+        next: 'Vé tiếp theo',
+        localApply: 'Nộp hồ sơ hậu cần',
+        unlocalApply: 'Hủy bỏ việc gửi hậu cần',
+        transferApply: 'Lệnh chuyển nhượng',
+        unltransferApply: 'Hủy lệnh chuyển tiền',
+        setInfoMMToMH: 'Đồng bộ hóa lệnh chính với lệnh phụ',
+        getInfoMMToMH: 'Đồng bộ hóa các lệnh chia nhỏ với các lệnh chính',
+        apply: 'Yêu cầu khóa đơn hàng',
+        unapply: 'Mở khóa',
+        checked: 'Kiểm toán',
+        applyFee: 'Vui lòng kiểm tra chi phí',
+        unApplyFee: 'Hủy yêu cầu',
+        applyModify: 'xin sửa đổi',
+        applyDelete: 'Yêu cầu xóa',
+        unAplly: 'Hủy đơn đăng ký',
+        applyInvoice: 'Yêu cầu hóa đơn',
+        applyPay: 'xin trả phí',
+        SIInfoImport: 'Nhập dữ liệu SI',
+        allShort: 'Hoàn thành',
+        all: 'tất cả',
+        submitShort: 'mang',
+        notSubmitted: 'Chưa xác nhận',
+        scheduledShort: 'lịch trình ngắn',
+        noScheduled: 'Không theo lịch trình',
+        noDispatched: 'chưa điều động xe',
+        dispatchedShort: 'nhóm',
+        noAcceptanced: 'chưa chấp nhận',
+        acceptanceShort: 'qua',
+        noCompleted: 'Chưa xong',
+        completedShort: 'xong',
+        completed: 'Hoàn thành',
+        closed: 'Đã đóng',
+        closedShort: 'đóng',
+        quickLaunch: 'Khởi chạy nhanh',
+        entrust: 'Ủy thác Việt Nam',
+        dispatch: 'Phái đoàn Việt Nam',
+        dispatchVehicle: 'Điều động xe',
+        noDispatchVehicle: 'Hủy điều động xe',
+        track: 'theo dõi',
+        bulkCargo: 'hàng rời',
+        ledger: 'Sổ cái',
+        expirationReminder: 'Nhắc nhở hết hạn',
+        smartScreen: 'Màn hình lớn thông minh',
+        TotalBusinessVolumeToday: 'Tổng khối lượng kd trong ngày',
+        container: 'container',
+        specialTransport: 'Vận chuyển đặc biệt',
+        detailsTodayBusiness: 'Chi tiết kinh doanh trong ngày',
+        annex: 'phụ lục',
+        change: 'thay đổi',
+        changeLog: 'Nhật ký thay đổi',
+        dispatchNotice: 'Thông báo điều động xe',
+        acceptance: 'Sự chấp nhận',
+        noAcceptance: 'Hủy chấp nhận',
+        confirmFactory: 'Xác nhận đến nhà máy',
+        confirmCompletion: 'Xác nhận hoàn thành',
+        suitcase: 'lấy cont',
+        enterDetails: 'Nhập thông tin chi tiết',
+        upload: 'Tải lên',
+        cancel: 'Hủy bỏ',
+        submit: 'nộp',
+        revoke: 'Thu hồi',
+        view: 'Kiểm tra',
+        businessType: 'Loại hình doanh nghiệp',
+        orderInfo: 'thông tin đặt hàng',
+        otherInformation: 'thông tin đặt hàng',
+        boxInformation: 'Thông tin cont',
+        addressInformation: 'Thông tin địa chỉ',
+        vehicleInformation: 'Thông tin xe',
+        incidentalExpenses: 'Phí khác',
+        receivableCharges: 'các khoản phải thu',
+        accruedExpenses: 'phải trả',
+        uploadAttachment: 'Tải lên tệp đính kèm',
+        backHome: 'Trở về trang chủ',
+        backLedger: 'Quay lại sổ cái',
+        generateBill: 'Tạo hóa đơn',
+        changeSave: 'Lưu thay đổi',
+        changeBill: 'Đổi hóa đơn',
+        changeCar: 'Đổi xe',
+        updateBill: 'Cập nhật hóa đơn',
+        cancelScheduling: 'Hủy lịch trình',
+        cancelDispatch: 'Hủy điều động xe',
+        cancelAcceptance: 'Hủy chấp nhận',
+        unknownState: 'Trạng thái không xác định',
+        bulkCargoLedger: 'Sổ cái hàng rời',
+        landTransportLedger: 'Sổ cái vận tải đường bộ',
+        antiepidemic:'Chống lại dịch bệnh'
+    }
+}

+ 3 - 0
src/page/index/top/top-lang.vue

@@ -9,6 +9,9 @@
       <el-dropdown-item :disabled="language==='en'"
                         command="en">English
       </el-dropdown-item>
+      <el-dropdown-item :disabled="language==='vi'"
+                        command="vi">Tiếng Việt
+      </el-dropdown-item>
     </el-dropdown-menu>
   </el-dropdown>
 </template>

+ 4 - 1
src/views/storehouse/inStockManage/inStockPlan/detailsPage.vue

@@ -1230,7 +1230,7 @@ export default {
       // 循环获取库存数量
       for (let item of this.tableData) {
         this.form.planItemsList.push({
-          price: item.price,
+          price: item.price ? item.price : 0,
           goodsId: item.id,
           goodsName: item.cname,
           dot: item.dot,
@@ -1328,6 +1328,9 @@ export default {
       if (Array.isArray(res)) {
         if (res instanceof Array) {
           this.form.planItemsList = this.form.planItemsList.concat(res);
+          for (let item of this.form.planItemsList) {
+              item.price = item.price ? item.price : 0;
+          }
           res.forEach(item => {
             dotList({
               storageId: this.form.storageId,

+ 9 - 0
src/views/system/menu.vue

@@ -82,6 +82,7 @@
           viewBtn: true,
           menuWidth: 300,
           dialogClickModal: false,
+          labelWidth:100,
           column: [
             {
               label: "菜单名称",
@@ -186,6 +187,14 @@
               ]
             },
             {
+              label: "菜单别名越南语",
+              prop: "aliasVi",
+            },
+            {
+              label: "菜单别名德语",
+              prop: "aliasDe",
+            },
+            {
               label: "新窗口",
               prop: "isOpen",
               type: "radio",

+ 1 - 0
src/views/tirePartsMall/basicData/customerInformation/detailsPage.vue

@@ -520,6 +520,7 @@ export default {
                         prop: "priceSystem",
                         span: 6,
                         filterable: true,
+                        display: this.$store.getters.userInfo.tenant_id != 147149,
                         type: "select",
                         dicUrl: "/api/blade-system/dict-biz/dictionary?code=mall_price",
                         props: {

+ 4 - 13
src/views/tirePartsMall/financingManagement/balanceRecharge/index.vue

@@ -88,16 +88,7 @@ export default {
             label: '确认人',
             prop: "confirmingPersonName",
             search: true,
-            overHidden: true,
-            type: 'select',
-            filterable: true,
-            remote: true,
-            props: {
-              label: 'cname',
-              value: 'cname',
-              res: 'data.records'
-            },
-            dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=GYS&cname={{key}}',
+            overHidden: true
           },
           {
             label: '单号',
@@ -138,10 +129,10 @@ export default {
           {
             label: "制单人",
             prop: "createUserName",
-            searchProp: "createUser",
+            searchProp: "createUserName",
             search: true,
             overHidden: true,
-            filterable: true,
+/*            filterable: true,
             remote: true,
             type: "select",
             dicUrl: "/api/blade-user/page?size=20&current=1&account={{key}}",
@@ -149,7 +140,7 @@ export default {
               label: "account",
               value: "id",
               res: 'data.records'
-            }
+            }*/
           },
           {
             label: "制单日期",

+ 35 - 0
src/views/tirePartsMall/purchaseService/outStorage/detailsPage.vue

@@ -496,6 +496,18 @@ export default {
             ...this.form,
             bizTypeName: "TKFHGD"
           }).then(res => {
+              if (res.data.code === 601) {
+                  if (this.onLoad.id) {
+                      console.log(2);
+                      this.refresh(this.onLoad.id, true)
+                  }
+                  this.$message({
+                      type: "error",
+                      message: res.data.msg
+                  });
+                  loading.close();
+                  return true
+              }
             this.$message.success("撤销成功");
             this.refresh(res.data.data.id)
             loading.close();
@@ -552,6 +564,17 @@ export default {
             ...this.form,
             bizTypeName: "TKFHGD"
           }).then(res => {
+              if (res.data.code === 601) {
+                  if (this.onLoad.id) {
+                      console.log(2);
+                      this.refresh(this.onLoad.id, true)
+                  }
+                  this.$message({
+                      type: "error",
+                      message: res.data.msg
+                  });
+                  return true
+              }
             warehousingComplete({
               ...this.form,
               bizTypeName: "TKFHGD"
@@ -598,6 +621,18 @@ export default {
             bizTypeName: "TKFHGD",
             filesList: this.filesList
           }).then(res => {
+              if (res.data.code === 601) {
+                  if (this.onLoad.id) {
+                      console.log(2);
+                      this.refresh(this.onLoad.id, true)
+                  }
+                  this.$message({
+                      type: "error",
+                      message: res.data.msg
+                  });
+                  loading.close();
+                  return true
+              }
             this.$message.success("保存成功");
             this.refresh(res.data.data.id)
             loading.close();

+ 62 - 2
src/views/tirePartsMall/purchaseService/returns/detailsPage.vue

@@ -730,6 +730,17 @@ export default {
                         bsType: "TKCG",
                         ...this.form
                     }).then(res => {
+                        if (res.data.code === 601) {
+                            if (this.onLoad.id) {
+                                console.log(2);
+                                this.refresh(this.onLoad.id, true)
+                            }
+                            this.$message({
+                                type: "error",
+                                message: res.data.msg
+                            });
+                            return true
+                        }
                         this.$message.success("保存成功");
                         this.getDetail(res.data.data.id)
                         this.editButton = true
@@ -781,7 +792,19 @@ export default {
                     spinner: 'el-icon-loading',
                     background: 'rgba(255,255,255,0.7)'
                 });
-                generateShipTask({ id: this.form.id }).then((res) => {
+                generateShipTask({ id: this.form.id, version: this.form.version }).then((res) => {
+                    if (res.data.code === 601) {
+                        if (this.onLoad.id) {
+                            console.log(2);
+                            this.getDetail(this.onLoad.id, true)
+                        }
+                        this.$message({
+                            type: "error",
+                            message: res.data.msg
+                        });
+                        loading.close()
+                        return true
+                    }
                     loading.close()
                     this.$message.success('生成成功');
                     this.getDetail(this.form.id)
@@ -800,7 +823,19 @@ export default {
                     spinner: 'el-icon-loading',
                     background: 'rgba(255,255,255,0.7)'
                 });
-                revokeGenerateShipTask({ id: this.form.id }).then((res) => {
+                revokeGenerateShipTask({ id: this.form.id, version: this.form.version }).then((res) => {
+                    if (res.data.code === 601) {
+                        if (this.onLoad.id) {
+                            console.log(2);
+                            this.getDetail(this.onLoad.id, true)
+                        }
+                        this.$message({
+                            type: "error",
+                            message: res.data.msg
+                        });
+                        loading.close()
+                        return true
+                    }
                     loading.close()
                     this.$message.success('撤销成功');
                     this.getDetail(this.form.id)
@@ -822,6 +857,7 @@ export default {
                             url: '/tirePartsMall/purchaseService/returns/index',
                             pageStatus: "this.$store.getters.cgthStatus",
                             pageLabel: "采购退货(L)",
+                            version: this.form.version
                         }
                         const loading = this.$loading({
                             lock: true,
@@ -830,6 +866,18 @@ export default {
                             background: 'rgba(255,255,255,0.7)'
                         });
                         checkOrder({ ...data }).then((res) => {
+                            if (res.data.code === 601) {
+                                if (this.onLoad.id) {
+                                    console.log(2);
+                                    this.getDetail(this.onLoad.id, true)
+                                }
+                                this.$message({
+                                    type: "error",
+                                    message: res.data.msg
+                                });
+                                loading.close()
+                                return true
+                            }
                             this.getDetail(res.data.data.id)
                             this.$message.success('申请退货成功');
                             this.isApplySettlement = !this.isApplySettlement
@@ -889,6 +937,18 @@ export default {
                     background: 'rgba(255,255,255,0.7)'
                 });
                 revokeCheckOrder({ ...this.form }).then(res => {
+                    if (res.data.code === 601) {
+                        if (this.onLoad.id) {
+                            console.log(2);
+                            this.getDetail(this.onLoad.id, true)
+                        }
+                        this.$message({
+                            type: "error",
+                            message: res.data.msg
+                        });
+                        loading.close()
+                        return true
+                    }
                     this.isRevocationRequest = !this.isRevocationRequest
                     this.getDetail(res.data.data.id)
                     this.$message.success('撤回成功')

+ 30 - 2
src/views/tirePartsMall/purchasingManagement/financingProcurement/detailsPage.vue

@@ -7,7 +7,7 @@
                 </el-button>
             </div>
             <div class="add-customer-btn">
-                
+
                 <el-button class="el-button&#45;&#45;small-yh" style="margin-left: 6px;" type="primary" size="small"
                     v-if="editButton" @click="confirmEditing">编 辑
                 </el-button>
@@ -2058,6 +2058,17 @@ export default {
                         bsType: "RZCG",
                         ...this.form
                     }).then(res => {
+                        if (res.data.code === 601) {
+                            if (this.onLoad.id) {
+                                console.log(2);
+                                this.refresh(this.onLoad.id, true)
+                            }
+                            this.$message({
+                                type: "error",
+                                message: res.data.msg
+                            });
+                            return true
+                        }
                         this.$message.success("保存成功");
                         this.refresh(res.data.data.id)
                         this.isDisabledTask = false
@@ -2238,6 +2249,7 @@ export default {
                             url: '/tirePartsMall/purchasingManagement/financingProcurement/index',
                             pageStatus: "this.$store.getters.financingStatus",
                             pageLabel: "融资采购(L)",
+                            version: this.form.version,
                         }
                         const loading = this.$loading({
                             lock: true,
@@ -2246,6 +2258,14 @@ export default {
                             background: 'rgba(255,255,255,0.7)'
                         });
                         checkOrderCG({ ...data }).then((res) => {
+                            if (res.data.code === 601) {
+                                this.refresh(this.form.id)
+                                this.$message({
+                                    type: "error",
+                                    message: res.data.msg
+                                });
+                                return true
+                            }
                             this.refresh(res.data.data.id)
                             this.$message.success('请核成功');
                             this.isApplySettlement = !this.isApplySettlement
@@ -2319,11 +2339,19 @@ export default {
 
                 // })
                 revokeCheckOrderCG({ ...this.form }).then(res => {
+                    if (res.data.code === 601) {
+                        this.refresh(this.form.id)
+                        this.$message({
+                            type: "error",
+                            message: res.data.msg
+                        });
+                        return true
+                    }
                     this.isRevocationRequest = !this.isRevocationRequest
                     this.refresh(res.data.data.id)
                     this.$message.success('撤回成功')
                     loading.close();
-                })
+                }).catch(() => { loading.close(); })
             })
         },
         rowDelBox(row, index, type) {

+ 32 - 0
src/views/tirePartsMall/purchasingManagement/financingProcurement/index.vue

@@ -697,6 +697,14 @@ export default {
             dangerouslyUseHTMLString: true,
           }).then(() => {
             confirmWarehouse(row).then(res => {
+                if (res.data.code === 601) {
+                    this.onLoad(this.page, this.search)
+                    this.$message({
+                        type: "error",
+                        message: res.data.msg
+                    });
+                    return true
+                }
               this.$message.success("确认成功");
               this.onLoad(this.page, this.search)
             })
@@ -709,6 +717,14 @@ export default {
             type: 'warning'
           }).then(() => {
             revokeWarehouse(row).then(res => {
+                if (res.data.code === 601) {
+                    this.onLoad(this.page, this.search)
+                    this.$message({
+                        type: "error",
+                        message: res.data.msg
+                    });
+                    return true
+                }
               this.$message.success("撤销成功");
               this.onLoad(this.page, this.search)
             })
@@ -725,6 +741,14 @@ export default {
             type: 'warning'
           }).then(() => {
             confirmRedeem(row).then(res => {
+                if (res.data.code === 601) {
+                    this.onLoad(this.page, this.search)
+                    this.$message({
+                        type: "error",
+                        message: res.data.msg
+                    });
+                    return true
+                }
               this.$message.success("确认成功");
               this.onLoad(this.page, this.search)
             })
@@ -738,6 +762,14 @@ export default {
             type: 'warning'
           }).then(() => {
             revokeRedeem(row).then(res => {
+                if (res.data.code === 601) {
+                    this.onLoad(this.page, this.search)
+                    this.$message({
+                        type: "error",
+                        message: res.data.msg
+                    });
+                    return true
+                }
               this.$message.success("撤销成功");
               this.onLoad(this.page, this.search)
             })

+ 34 - 1
src/views/tirePartsMall/purchasingManagement/warehouseEntryOrder/detailsPage.vue

@@ -373,7 +373,7 @@ export default {
                     //     value: 'id'
                     // },
                     // dicUrl: '/api/blade-sales-part/goodsDesc/list?current=1&size=10&cname={{key}}&enableOrNot=1'
-                }, 
+                },
                 {
                     label: '商品名称',
                     prop: 'goodsName',
@@ -772,6 +772,17 @@ export default {
                         ...this.form,
                         bizTypeName: this.form.id ? this.form.bizTypeName : "SHGD"
                     }).then(res => {
+                        if (res.data.code === 601) {
+                            if (this.onLoad.id) {
+                                console.log(2);
+                                this.refresh(this.onLoad.id, true)
+                            }
+                            this.$message({
+                                type: "error",
+                                message: res.data.msg
+                            });
+                            return true
+                        }
                         this.$message.success("撤销成功");
                         this.refresh(res.data.data.id)
                         loading.close();
@@ -866,6 +877,17 @@ export default {
                         ...this.form,
                         bizTypeName: this.form.id ? this.form.bizTypeName : "SHGD"
                     }).then(res => {
+                        if (res.data.code === 601) {
+                            if (this.onLoad.id) {
+                                console.log(2);
+                                this.refresh(this.onLoad.id, true)
+                            }
+                            this.$message({
+                                type: "error",
+                                message: res.data.msg
+                            });
+                            return true
+                        }
                         warehousingComplete({
                             ...this.form,
                             bizTypeName: this.form.id ? this.form.bizTypeName : "SHGD"
@@ -908,6 +930,17 @@ export default {
                         bizTypeName: this.form.id ? this.form.bizTypeName : "SHGD",
                         filesList: this.filesList
                     }).then(res => {
+                        if (res.data.code === 601) {
+                            if (this.onLoad.id) {
+                                console.log(2);
+                                this.refresh(this.onLoad.id, true)
+                            }
+                            this.$message({
+                                type: "error",
+                                message: res.data.msg
+                            });
+                            return true
+                        }
                         this.$message.success("保存成功");
                         this.refresh(res.data.data.id);
                         loading.close();

+ 30 - 0
src/views/tirePartsMall/salesManagement/outboundWorkOrder/detailsPage.vue

@@ -560,6 +560,21 @@ export default {
             ...this.form,
             bizTypeName: "FHGD"
           }).then(res => {
+              if (res.data.code === 601) {
+                  if (this.onLoad.id && this.detailData.id) {
+                      console.log(1);
+                      this.refresh(this.onLoad.id, true)
+                      this.$set(this.optionForm, 'disabled', true)
+                  } else if (this.onLoad.id) {
+                      console.log(2);
+                      this.refresh(this.onLoad.id, true)
+                  }
+                  this.$message({
+                      type: "error",
+                      message: res.data.msg
+                  });
+                  return true
+              }
             this.$message.success("撤销成功");
             this.refresh(res.data.data.id)
             loading.close();
@@ -616,6 +631,21 @@ export default {
             ...this.form,
             bizTypeName: "FHGD"
           }).then(res => {
+              if (res.data.code === 601) {
+                  if (this.onLoad.id && this.detailData.id) {
+                      console.log(1);
+                      this.refresh(this.onLoad.id, true)
+                      this.$set(this.optionForm, 'disabled', true)
+                  } else if (this.onLoad.id) {
+                      console.log(2);
+                      this.refresh(this.onLoad.id, true)
+                  }
+                  this.$message({
+                      type: "error",
+                      message: res.data.msg
+                  });
+                  return true
+              }
             warehousingComplete({
               ...this.form,
               bizTypeName: "FHGD"

+ 17 - 1
src/views/tirePartsMall/salesManagement/purchaseOrder/detailsPage.vue

@@ -1260,6 +1260,10 @@ export default {
         })
     },
     methods: {
+        rowSum(row){
+            row.subTotalMoney = (row.goodsNum * row.price)
+            return row.subTotalMoney
+        },
         //生成退货单
         getReturns() {
             this.$confirm("您确定要退货吗?", {
@@ -1674,6 +1678,7 @@ export default {
                 this.isDisabled = false
                 this.viewDisabled = false;
                 // this.isDisabled = true
+                this.buttonText = '生成任务'
                 loading.close()
             }
             if (this.form.status == '待收货') {
@@ -1874,6 +1879,17 @@ export default {
                         bsType: "CG",
                         ...this.form
                     }).then(res => {
+                        if (res.data.code === 601) {
+                            if (this.onLoad.id) {
+                                console.log(2);
+                                this.refresh(this.onLoad.id, true)
+                            }
+                            this.$message({
+                                type: "error",
+                                message: res.data.msg
+                            });
+                            return true
+                        }
                         this.$message.success("保存成功");
                         this.refresh(res.data.data.id)
                         this.isDisabledTask = false
@@ -2137,7 +2153,7 @@ export default {
                     this.refresh(res.data.data.id)
                     this.$message.success('撤回成功')
                     loading.close();
-                })
+                }).catch(() => { loading.close(); })
             })
         },
         rowDelBox(row, index, type) {

+ 11 - 0
src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

@@ -2506,6 +2506,17 @@ export default {
                         bsType: "XS",
                         ...this.form
                     }).then(res => {
+                        if (res.data.code === 601) {
+                            if (this.onLoad.id) {
+                                console.log(2);
+                                this.refresh(this.onLoad.id, true)
+                            }
+                            this.$message({
+                                type: "error",
+                                message: res.data.msg
+                            });
+                            return true
+                        }
                         this.$message.success("保存成功");
                         this.refresh(res.data.data.id)
                         this.isDisabledTask = false

+ 33 - 0
src/views/tirePartsMall/salesService/inStorage/detailsPage.vue

@@ -765,6 +765,17 @@ export default {
                         ...this.form,
                         bizTypeName: "THSHGD"
                     }).then(res => {
+                        if (res.data.code === 601) {
+                            if (this.onLoad.id) {
+                                console.log(2);
+                                this.refresh(this.onLoad.id, true)
+                            }
+                            this.$message({
+                                type: "error",
+                                message: res.data.msg
+                            });
+                            return true
+                        }
                         this.$message.success("撤销成功");
                         this.refresh(res.data.data.id)
                         loading.close();
@@ -859,6 +870,17 @@ export default {
                         ...this.form,
                         bizTypeName: "THSHGD"
                     }).then(res => {
+                        if (res.data.code === 601) {
+                            if (this.onLoad.id) {
+                                console.log(2);
+                                this.refresh(this.onLoad.id, true)
+                            }
+                            this.$message({
+                                type: "error",
+                                message: res.data.msg
+                            });
+                            return true
+                        }
                         warehousingComplete({
                             ...this.form,
                             bizTypeName: "THSHGD"
@@ -899,6 +921,17 @@ export default {
                         bizTypeName: "THSHGD",
                         filesList: this.filesList
                     }).then(res => {
+                        if (res.data.code === 601) {
+                            if (this.onLoad.id) {
+                                console.log(2);
+                                this.refresh(this.onLoad.id, true)
+                            }
+                            this.$message({
+                                type: "error",
+                                message: res.data.msg
+                            });
+                            return true
+                        }
                         this.$message.success("保存成功");
                         this.refresh(res.data.data.id);
                         loading.close();

+ 51 - 3
src/views/tirePartsMall/salesService/returns/detailsPage.vue

@@ -740,6 +740,17 @@ export default {
                         bsType: "TKXS",
                         ...this.form
                     }).then(res => {
+                        if (res.data.code === 601) {
+                            if (this.onLoad.id) {
+                                console.log(2);
+                                this.getDetail(this.onLoad.id, true)
+                            }
+                            this.$message({
+                                type: "error",
+                                message: res.data.msg
+                            });
+                            return true
+                        }
                         this.$message.success("保存成功");
                         this.getDetail(res.data.data.id)
                         this.editButton = true
@@ -793,7 +804,16 @@ export default {
                 });
                 this.form.salerName = this.form.$salerId ? this.form.$salerId : ''
                 this.form.storageName = this.form.$storageId ? this.form.$storageId : ''
-                generateShipTask({ id: this.form.id }).then((res) => {
+                generateShipTask({ id: this.form.id, version: this.form.version }).then((res) => {
+                    if (res.data.code === 601) {
+                        this.getDetail(this.form.id)
+                        this.$message({
+                            type: "error",
+                            message: res.data.msg
+                        });
+                        loading.close();
+                        return true
+                    }
                     loading.close()
                     this.$message.success('生成成功');
                     this.getDetail(this.form.id)
@@ -812,7 +832,16 @@ export default {
                     spinner: 'el-icon-loading',
                     background: 'rgba(255,255,255,0.7)'
                 });
-                revokeGenerateShipTask({ id: this.form.id }).then((res) => {
+                revokeGenerateShipTask({ id: this.form.id, version: this.form.version }).then((res) => {
+                    if (res.data.code === 601) {
+                        this.getDetail(this.form.id)
+                        this.$message({
+                            type: "error",
+                            message: res.data.msg
+                        });
+                        loading.close();
+                        return true
+                    }
                     loading.close()
                     this.$message.success('撤销成功');
                     this.getDetail(this.form.id)
@@ -834,6 +863,7 @@ export default {
                             url: '/tirePartsMall/salesService/returns/index',
                             pageStatus: "this.$store.getters.xsthStatus",
                             pageLabel: "销售退货(L)",
+                            version: this.form.version
                         }
                         const loading = this.$loading({
                             lock: true,
@@ -842,6 +872,15 @@ export default {
                             background: 'rgba(255,255,255,0.7)'
                         });
                         checkOrder({ ...data }).then((res) => {
+                            if (res.data.code === 601) {
+                                this.getDetail(this.form.id)
+                                this.$message({
+                                    type: "error",
+                                    message: res.data.msg
+                                });
+                                loading.close();
+                                return true
+                            }
                             this.getDetail(res.data.data.id)
                             this.$message.success('申请退货成功');
                             this.isApplySettlement = !this.isApplySettlement
@@ -901,11 +940,20 @@ export default {
                     background: 'rgba(255,255,255,0.7)'
                 });
                 revokeCheckOrder({ ...this.form }).then(res => {
+                    if (res.data.code === 601) {
+                        this.getDetail(this.form.id)
+                        this.$message({
+                            type: "error",
+                            message: res.data.msg
+                        });
+                        loading.close();
+                        return true
+                    }
                     this.isRevocationRequest = !this.isRevocationRequest
                     this.getDetail(res.data.data.id)
                     this.$message.success('撤回成功')
                     loading.close();
-                })
+                }).catch(() => { loading.close(); })
             })
         },
         rowDelBox(row, index, type) {