From f1b51a78dae4c1f6d393324fdffeb6df8af165d6 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Tue, 24 Dec 2024 13:02:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BE=E8=BD=A6=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.js | 8 +- pages.json | 17 +- pages/components/Navbar.vue | 2 +- pages/inspectionEntry/index.vue | 18 +- pages/returnInventory/index.vue | 2 +- .../sendACarSystem/components/AuditRecord.vue | 25 ++ .../sendACarSystem/components/PlanDetails.vue | 25 ++ .../components/SendCarDetails.vue | 25 ++ pages/sendACarSystem/details.vue | 374 ++++++++++++++++++ pages/sendACarSystem/index.vue | 26 +- pages/stockTaking/index.vue | 7 +- 11 files changed, 509 insertions(+), 20 deletions(-) create mode 100644 pages/sendACarSystem/components/AuditRecord.vue create mode 100644 pages/sendACarSystem/components/PlanDetails.vue create mode 100644 pages/sendACarSystem/components/SendCarDetails.vue create mode 100644 pages/sendACarSystem/details.vue diff --git a/config.js b/config.js index 9e97c76..89c5b34 100644 --- a/config.js +++ b/config.js @@ -1,12 +1,12 @@ // 应用全局配置 module.exports = { // baseUrl: 'https://vue.ruoyi.vip/prod-api', - baseUrl: 'http://192.168.0.39:21995', - // baseUrl: 'http://192.168.2.160:21995', + // baseUrl: 'http://192.168.0.39:21995', + baseUrl: 'http://192.168.0.14:21520', // baseUrl: 'http://localhost:8080', uploadFileUrl: '/app/common/appUploadFile', - fileUrl: 'http://192.168.0.39:21995/statics', // 图片预览 - // fileUrl: 'http://127.0.0.1:21995/statics', // 图片预览 + // fileUrl: 'http://192.168.0.39:21995/statics', // 图片预览 + fileUrl: 'http://192.168.0.14:21520/statics', // 图片预览 // 应用信息 appInfo: { // 应用名称 diff --git a/pages.json b/pages.json index 9cdd56e..bfe5672 100644 --- a/pages.json +++ b/pages.json @@ -133,7 +133,7 @@ { "path": "pages/stockTaking/takingRecord", "style": { - "navigationStyle": "custom" + "navigationBarTitleText": "盘点记录" } }, { @@ -143,11 +143,16 @@ } }, { - "path" : "pages/sendACarSystem/index", - "style" : - { - "navigationBarTitleText" : "派车管理" - } + "path": "pages/sendACarSystem/index", + "style": { + "navigationBarTitleText": "派车管理" + } + }, + { + "path": "pages/sendACarSystem/details", + "style": { + "navigationStyle": "custom" + } } ], "tabBar": { diff --git a/pages/components/Navbar.vue b/pages/components/Navbar.vue index b9dea10..8587bcd 100644 --- a/pages/components/Navbar.vue +++ b/pages/components/Navbar.vue @@ -60,7 +60,7 @@ export default { url: this.goTo }) } else { - uni.reLaunch({ + uni.switchTab({ url: '/pages/index' }) } diff --git a/pages/inspectionEntry/index.vue b/pages/inspectionEntry/index.vue index 960cb02..2859c11 100644 --- a/pages/inspectionEntry/index.vue +++ b/pages/inspectionEntry/index.vue @@ -79,9 +79,9 @@ inputAlign="right" > - + this.pop.backNum) { + this.$modal.msg('可继续使用量、待报废量总数不能超过退回量') + return + } // 校验表单 this.$refs.uForm.validate().then(res => { console.log('🚀 ~ submit ~ 提交-校验通过') @@ -324,6 +329,7 @@ export default { try { const params = { ...this.formData, + backNum: this.pop.backNum, modelId: this.pop.id } delete params.fileList diff --git a/pages/returnInventory/index.vue b/pages/returnInventory/index.vue index b98efa5..693cd4a 100644 --- a/pages/returnInventory/index.vue +++ b/pages/returnInventory/index.vue @@ -159,7 +159,7 @@ v-if="showPickerTime" :show="showPickerTime" v-model="dataTime" - :max-date="new Date()" + :max-date="Number(new Date())" mode="date" @cancel="showPickerTime = false" @confirm="confirmTime" diff --git a/pages/sendACarSystem/components/AuditRecord.vue b/pages/sendACarSystem/components/AuditRecord.vue new file mode 100644 index 0000000..b1e4ea8 --- /dev/null +++ b/pages/sendACarSystem/components/AuditRecord.vue @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/pages/sendACarSystem/components/PlanDetails.vue b/pages/sendACarSystem/components/PlanDetails.vue new file mode 100644 index 0000000..93040bd --- /dev/null +++ b/pages/sendACarSystem/components/PlanDetails.vue @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/pages/sendACarSystem/components/SendCarDetails.vue b/pages/sendACarSystem/components/SendCarDetails.vue new file mode 100644 index 0000000..5f11906 --- /dev/null +++ b/pages/sendACarSystem/components/SendCarDetails.vue @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/pages/sendACarSystem/details.vue b/pages/sendACarSystem/details.vue new file mode 100644 index 0000000..401e6c6 --- /dev/null +++ b/pages/sendACarSystem/details.vue @@ -0,0 +1,374 @@ + + + + + diff --git a/pages/sendACarSystem/index.vue b/pages/sendACarSystem/index.vue index 3c245e7..9a409af 100644 --- a/pages/sendACarSystem/index.vue +++ b/pages/sendACarSystem/index.vue @@ -27,7 +27,7 @@ > -
+
{{ item.code }}
@@ -268,6 +268,30 @@ export default { groupChange() { console.log('🚀 ~ radioValue', this.radioValue) }, + // 查看详情 + handleDetail(item) { + console.log('查看详情', item) + let isPlan = false + let isSendCar = false + let isDetail = false + if (this.active == 1 && item.isSend) { + isPlan = true + } else if (this.active == 1 && item.status == 0) { + isSendCar = true + } else if (!item.isSend || item.status == 1) { + isDetail = true + } + const params = { + ...item, + isPlan, + isSendCar, + isDetail, + } + uni.navigateTo({ + url: `/pages/sendACarSystem/details?params=${JSON.stringify(params)}` + }) + }, + // 提交 submit() { console.log('提交') if (this.active == 1) { diff --git a/pages/stockTaking/index.vue b/pages/stockTaking/index.vue index b3c7375..52b8b4c 100644 --- a/pages/stockTaking/index.vue +++ b/pages/stockTaking/index.vue @@ -120,7 +120,7 @@ v-if="showPickerTime" :show="showPickerTime" v-model="dataTime" - :max-date="new Date()" + :max-date="Number(new Date())" mode="date" @cancel="showPickerTime = false" @confirm="confirmTime" @@ -332,6 +332,11 @@ export default { submit() { console.log('🚀 ~ submit ~ ') console.log('🚀 ~ submit ~ this.formData:', this.formData) + // 盘亏量不能大于库存量 + if (this.formData.pkNum > this.pop.kcNum) { + this.$modal.msg('盘亏量不能大于库存量') + return + } // 校验表单 this.$refs.uForm.validate().then(res => { console.log('🚀 ~ submit ~ 提交-校验通过')