Browse Source

工单处理移动端代码

user5 7 months ago
parent
commit
5f412121ef

+ 2 - 1
config.js

@@ -5,7 +5,8 @@ if(process.env.NODE_ENV === 'development'){
     APP_SERVER_URL = '/api'
     APP_SERVER_URL = '/api'
 }else{
 }else{
     // 生产环境
     // 生产环境
-    APP_SERVER_URL = 'http://vue3.jeeplus.org/jeeplus-v3/api'
+    //APP_SERVER_URL = 'http://vue3.jeeplus.org/jeeplus-v3/api'
+    APP_SERVER_URL = 'http://dttz.xgccpm.cn/api'
 }
 }
 
 
 APP_SERVER_URL = APP_SERVER_URL + '/app'
 APP_SERVER_URL = APP_SERVER_URL + '/app'

+ 10 - 5
manifest.json

@@ -1,8 +1,8 @@
 {
 {
-    "name" : "jeeplus",
-    "appid" : "__UNI__8E0DC6F",
-    "description" : "jeeplus移动审批平台",
-    "versionName" : "jeeplus mobile 1.0",
+    "name" : "东台市头灶镇人民政府应用平台",
+    "appid" : "__UNI__8847EFE",
+    "description" : "东台市头灶镇人民政府应用平台",
+    "versionName" : "东台市头灶镇人民政府应用平台1.0",
     "versionCode" : 1,
     "versionCode" : 1,
     "transformPx" : false,
     "transformPx" : false,
     "app-plus" : {
     "app-plus" : {
@@ -54,10 +54,15 @@
         "setting" : {
         "setting" : {
             "urlCheck" : false,
             "urlCheck" : false,
             "es6" : true
             "es6" : true
+        },
+        "permission" : {
+            "scope.userLocation" : {
+                "desc" : "您当前的位置"
+            }
         }
         }
     },
     },
     "h5" : {
     "h5" : {
-        "title" : "jeeplus",
+        "title" : "东台市头灶镇人民政府应用平台",
         "domain" : "demo1.jeeplus.org",
         "domain" : "demo1.jeeplus.org",
         "devServer" : {
         "devServer" : {
             "port" : 8000,
             "port" : 8000,

+ 1 - 1
pages.json

@@ -594,7 +594,7 @@
 				"ly-tree-node": "/components/ly-tree/ly-tree-node"
 				"ly-tree-node": "/components/ly-tree/ly-tree-node"
 			},
 			},
 		"navigationBarBackgroundColor": "#0081ff",
 		"navigationBarBackgroundColor": "#0081ff",
-		"navigationBarTitleText": "Jeeplus 移动审批",
+		"navigationBarTitleText": "头灶镇移动平台",
 		// "navigationStyle": "custom",
 		// "navigationStyle": "custom",
 		"navigationBarTextStyle": "white"
 		"navigationBarTextStyle": "white"
 	},
 	},

+ 11 - 5
pages/edt/DisposeRubbishForm.vue

@@ -47,8 +47,10 @@
                                 :required="true"
                                 :required="true"
                                 :prop="'workOverNoList[' + index_workOver + '].no'"
                                 :prop="'workOverNoList[' + index_workOver + '].no'"
                         >
                         >
-                            <div style="width: 100%">
-                                <u--input v-model="inputForm.workOverNoList[index_workOver].no"  placeholder="请选择巡视工单编号" @focus="showWorkOver(index_workOver)" clearable></u--input>
+                            <div style="width: 100%" @click="showWorkOver(index_workOver)">
+                                <u--input v-model="inputForm.workOverNoList[index_workOver].no" readonly
+                                          style="pointer-events: none;"
+                                          placeholder="请选择巡视工单编号" @focus="showWorkOver(index_workOver)" clearable></u--input>
 
 
                                 <view >
                                 <view >
                                     <text class="u-demo-block__title">{{inputForm.workOverNoList[index_workOver].no}}清理前照片</text>
                                     <text class="u-demo-block__title">{{inputForm.workOverNoList[index_workOver].no}}清理前照片</text>
@@ -72,7 +74,7 @@
                 </template>
                 </template>
 
 
                 <u-form-item label="" >
                 <u-form-item label="" >
-                    <u-button style="width: 100%" type="primary"  @click="addRow()" plain>新增基本信息</u-button>
+                    <u-button style="width: 100%" type="primary"  @click="addRow()" plain>新增巡视工单</u-button>
                 </u-form-item>
                 </u-form-item>
 
 
 
 
@@ -376,7 +378,11 @@
             },
             },
         },
         },
         methods: {
         methods: {
-
+            handleMouseDown(event) {
+                console.log('21312312')
+                event.preventDefault(); // 防止选择文本
+                this.$refs.input.focus(); // 使 input 获得焦点
+            },
             getFileList(index_workOver) {
             getFileList(index_workOver) {
                 // 返回当前行的文件列表
                 // 返回当前行的文件列表
                 return this.inputForm.workOverNoList[index_workOver].photos || [];
                 return this.inputForm.workOverNoList[index_workOver].photos || [];
@@ -797,7 +803,7 @@
             uploadFilePromise(url, index) {
             uploadFilePromise(url, index) {
                 return new Promise((resolve, reject) => {
                 return new Promise((resolve, reject) => {
                     let a = uni.uploadFile({
                     let a = uni.uploadFile({
-                        url: 'http://localhost:8000/app/file/webUpload/fileUpload', // 仅为示例,非真实的接口地址
+                        url: 'http://dttz.xgccpm.cn/api/app/file/webUpload/fileUpload', // 仅为示例,非真实的接口地址
                         filePath: url,
                         filePath: url,
                         name: 'file',
                         name: 'file',
                         formData: {
                         formData: {

+ 1 - 1
pages/edt/PatrolWorkOrderDisposeForm.vue

@@ -369,7 +369,7 @@
             uploadFilePromise(url, index) {
             uploadFilePromise(url, index) {
                 return new Promise((resolve, reject) => {
                 return new Promise((resolve, reject) => {
                     let a = uni.uploadFile({
                     let a = uni.uploadFile({
-                        url: 'http://localhost:8000/app/file/webUpload/fileUpload', // 仅为示例,非真实的接口地址
+                        url: 'http://dttz.xgccpm.cn/api/app/file/webUpload/fileUpload', // 仅为示例,非真实的接口地址
                         filePath: url,
                         filePath: url,
                         name: 'file',
                         name: 'file',
                         formData: {
                         formData: {

+ 1 - 1
pages/edt/PatrolWorkOrderForm.vue

@@ -611,7 +611,7 @@
             uploadFilePromise(url, index) {
             uploadFilePromise(url, index) {
                 return new Promise((resolve, reject) => {
                 return new Promise((resolve, reject) => {
                     let a = uni.uploadFile({
                     let a = uni.uploadFile({
-                        url: 'http://localhost:8000/app/file/webUpload/fileUpload', // 仅为示例,非真实的接口地址
+                        url: 'http://dttz.xgccpm.cn/api/app/file/webUpload/fileUpload', // 仅为示例,非真实的接口地址
                         filePath: url,
                         filePath: url,
                         name: 'file',
                         name: 'file',
                         formData: {
                         formData: {

+ 6 - 1
pages/login/login.vue

@@ -282,7 +282,12 @@
 							}*/
 							}*/
 
 
 						} else {
 						} else {
-							this.$message.error(data.message)
+							//this.$message.error(data.message)
+							uni.showToast({
+								title: data.message,
+								icon: "none",
+								duration: 2000  // 提示持续时间为1秒(1000毫秒)
+							});
 						}
 						}
 					})
 					})
 				} else {
 				} else {