From 9cb409453888c15d507d6611202c9d2f83f270a3 Mon Sep 17 00:00:00 2001 From: JIAL <2287346125@qq.com> Date: Thu, 20 Jun 2024 16:26:44 +0800 Subject: [PATCH] mobile --- .../src/views/mobile/quoteMobile/index.vue | 18 +++++------ .../mobile/quoteMobile/operation/add.vue | 32 +++---------------- 2 files changed, 14 insertions(+), 36 deletions(-) diff --git a/ruoyi-ui/src/views/mobile/quoteMobile/index.vue b/ruoyi-ui/src/views/mobile/quoteMobile/index.vue index 042d186..40705bc 100644 --- a/ruoyi-ui/src/views/mobile/quoteMobile/index.vue +++ b/ruoyi-ui/src/views/mobile/quoteMobile/index.vue @@ -35,8 +35,7 @@ -
内容为空
-
+
@@ -80,7 +79,7 @@ export default { dicts: ['quot_approval_status'], data() { return { - loading: true, + loading: false, quoteList: [], total: 0, queryParams: { @@ -94,14 +93,13 @@ export default { }; }, computed: { - noMore () { - return this.quoteList.length >= this.total - }, - disabled () { - return this.loading || this.noMore - } + }, created() { + + this.queryParams.orderByColumn = "a.create_time";//查询字段是表格中字段名字 + this.queryParams.isAsc = "desc";//动态取值排序顺序 + this.handleSearch(); }, mounted() { @@ -112,9 +110,11 @@ export default { methods: { handleSearch() { try { + this.loading = true; listQuot(this.queryParams).then(response => { this.quoteList = response.rows; this.total = response.total; + this.loading = false; }); } catch (error) { console.error(error); diff --git a/ruoyi-ui/src/views/mobile/quoteMobile/operation/add.vue b/ruoyi-ui/src/views/mobile/quoteMobile/operation/add.vue index 1e2ebb7..bc7a907 100644 --- a/ruoyi-ui/src/views/mobile/quoteMobile/operation/add.vue +++ b/ruoyi-ui/src/views/mobile/quoteMobile/operation/add.vue @@ -32,8 +32,8 @@ - - + + @@ -122,7 +122,7 @@ 保存 提交 - 取消 + @@ -192,26 +192,7 @@ export default { quotPrintUserName: '', }, rules: { - quotProject: [{ - required: true, - message: '请输入项目名称', - trigger: 'blur' - }], - quotQuotationRequire: [{ - required: true, - message: '请输入报价要求', - trigger: 'blur' - }], - quotPhone: [{ - required: true, - message: '请输入联系电话', - trigger: 'blur' - }], - quotQuotationFrom: [{ - required: true, - message: '请输入报价来源', - trigger: 'blur' - }], + }, } }, @@ -327,10 +308,7 @@ export default { this.$store.dispatch('tagsView/delView',this.$route) this.$router.go(-1) }, - closeForm() { - this.$store.dispatch('tagsView/delView',this.$route) - this.$router.go(-1) - }, + /*********************************附件列表数据展示、上传*****************************************/ //获取报价单-询价附件列表 getQuotXjFileList(){