liuyifan 4 年之前
父節點
當前提交
fef58d006a

+ 0 - 6
anyangWebAPP/pages.json

@@ -52,12 +52,6 @@
52 52
       "style": {
53 53
         "navigationBarTitleText": "编辑工单"
54 54
       }
55
-    },
56
-    {
57
-      "path": "pages/transferWorkOrder/transferWorkOrder",
58
-      "style": {
59
-        "navigationBarTitleText": "转派工单"
60
-      }
61 55
     }
62 56
   ],
63 57
   "globalStyle": {

+ 0 - 315
anyangWebAPP/pages/transferWorkOrder/transferWorkOrder.vue

@@ -1,315 +0,0 @@
1
-<template>
2
-  <view class="wrapper">
3
-    <view class="detailContent">
4
-      <view class="contentTable">
5
-        <text class="contentTitle">工单编号:</text>
6
-        <text class="contentText">{{ detailContentData.F_WorkOrderId }}</text>
7
-      </view>
8
-      <view class="contentTable">
9
-        <text class="contentTitle">受理时间:</text>
10
-        <text class="contentText">{{ detailContentData.F_CreateTime }}</text>
11
-      </view>
12
-      <view class="contentTable">
13
-        <text class="contentTitle">来电人:</text>
14
-        <text class="contentText">{{ detailContentData.F_CusName }}</text>
15
-      </view>
16
-      <view class="contentTable">
17
-        <text class="contentTitle">来电号码:</text>
18
-        <text class="contentText">{{ detailContentData.F_CusPhone }}</text>
19
-      </view>
20
-      <view class="contentTable">
21
-        <text class="contentTitle">保密等级:</text>
22
-        <text class="contentText">{{ String(detailContentData.F_IsProtect) === "0" ? "普通" : "保密" }}</text>
23
-      </view>
24
-      <view class="contentTable">
25
-        <text class="contentTitle">地址:</text>
26
-        <text class="contentText">{{ detailContentData.AreaName + detailContentData.F_SourceAddress }}</text>
27
-      </view>
28
-      <view class="contentTable">
29
-        <text class="contentTitle">工单内容:</text>
30
-        <text class="contentText">{{ detailContentData.F_Content == null ? detailContentData.F_ComContent : detailContentData.F_Content }}</text>
31
-      </view>
32
-      <view class="contentTable">
33
-        <text class="contentTitle">来源:</text>
34
-        <text class="contentText">{{ detailContentData.SourceName }}</text>
35
-      </view>
36
-    </view>
37
-    <view class="form">
38
-      <form @submit="formSubmit" @reset="formReset">
39
-        <view class="uni-form-item uni-column">
40
-          <view class="title">承办单位:</view>
41
-          <view>
42
-            <bjx-inputs the-style="" :value="formData.deptName" item-key="F_DeptName" placeholder="请输入内容" @list="getDeptData" @select="selectDept" overflow="hide"> </bjx-inputs>
43
-          </view>
44
-        </view>
45
-        <view class="uni-form-item uni-column" v-if="isDisplay.urgentOrOrdinary">
46
-          <view class="uni-title uni-common-pl">办理时限:</view>
47
-          <view class="uni-list">
48
-            <view class="uni-list-cell">
49
-              <view class="uni-list-cell-db">
50
-                <picker @change="bindPickerChangeProcessingTimeLimit" :value="pickerIndex.indexProcessingTimeLimit" :range="processingTimeLimitListData" :range-key="'text'">
51
-                  <view class="uni-input">{{ processingTimeLimitListData[pickerIndex.indexProcessingTimeLimit].text }}</view>
52
-                </picker>
53
-              </view>
54
-            </view>
55
-          </view>
56
-        </view>
57
-        <view class="uni-form-item uni-column" v-if="!isDisplay.urgentOrOrdinary">
58
-          <view class="uni-title uni-common-pl">紧急时限:</view>
59
-          <view class="uni-list">
60
-            <view class="test">
61
-              <input class="uni-input" @click="DatePicker('datetime')" name="emergencyTimeFrame" :value="formData.emergencyTimeFrame" placeholder="紧急时限" />
62
-              <!-- <text @click="DatePicker('datetime')">{{ formData.emergencyTimeFrame }}</text> -->
63
-            </view>
64
-            <mx-date-picker :show="showPicker" type="datetime" :value="formData.emergencyTimeFrame" :show-tips="true" :begin-text="'开始'" :end-text="'结束'" :show-seconds="true" @confirm="ed" @cancel="ed" />
65
-          </view>
66
-        </view>
67
-        <view class="uni-form-item uni-column">
68
-          <view class="title">调度意见:</view>
69
-          <view class="uni-textarea">
70
-            <textarea name="schedulingOpinions" :value="formData.schedulingOpinions" auto-height />
71
-          </view>
72
-        </view>
73
-        <view class="uni-btn-v">
74
-          <button form-type="submit" class="mini-btn" size="mini" type="default">保存</button>
75
-        </view>
76
-      </form>
77
-      <!-- <view>
78
-        <button form-type="submit" class="mini-btn" size="mini" type="default" @click="returnPage">返回</button>
79
-      </view> -->
80
-    </view>
81
-  </view>
82
-</template>
83
-
84
-<script>
85
-import BjxInputs from "@/components/bjx-inputs/bjx-inputs.vue"
86
-import MxDatePicker from "@/components/mx-datepicker/mx-datepicker.vue"
87
-// import bjxList from './list.vue' // 若要查看微信小程序 自定义组件嵌套产生的问题 可打开
88
-
89
-export default {
90
-  components: {
91
-    BjxInputs,
92
-    MxDatePicker,
93
-  },
94
-  data() {
95
-    return {
96
-      wid: "", // 工单编号
97
-      detailContentData: {}, // 详情内容
98
-      deptListData: [],
99
-      formData: {
100
-        deptName: "", // 部门名称
101
-        deptId: "", // 部门id
102
-        processingTimeLimit: "1", // 普通时限
103
-        schedulingOpinions: "请于1小时内与来电人取得联系(匿名除外),并于7个工作日内将办理情况反馈来电人,并将办理结果报市长便民公开电话受理中心,同时做好来电人信息保密工作。(若超期将进行通报;若无故不回复,将转交市委市政府督查局。)", // 调度意见
104
-        emergencyTimeFrame: "", // 紧急时限
105
-      },
106
-      pickerIndex: {
107
-        indexProcessingTimeLimit: 0, // 来源index
108
-      },
109
-      processingTimeLimitListData: [
110
-        {
111
-          value: "1",
112
-          text: "一天",
113
-        },
114
-        {
115
-          value: "3",
116
-          text: "三天",
117
-        },
118
-        {
119
-          value: "5",
120
-          text: "五天",
121
-        },
122
-        {
123
-          value: "7",
124
-          text: "七天",
125
-        },
126
-      ],
127
-      isDisplay: {
128
-        urgentOrOrdinary: true,
129
-      },
130
-      showPicker: false,
131
-    }
132
-  },
133
-  onLoad(option) {
134
-    this.wid = option.wid
135
-    // 获取详情
136
-    this.getDetail("0")
137
-    // 获取交办信息
138
-    // this.getDetail("1")
139
-    //获取部门
140
-    this.getDeptList()
141
-  },
142
-  methods: {
143
-    formSubmit: function (e) {
144
-      this.formData.schedulingOpinions = e.detail.value.schedulingOpinions
145
-      console.log("form发生了submit事件,携带数据为:" + JSON.stringify(e.detail.value))
146
-      this.saveData()
147
-    },
148
-    // 保存
149
-    saveData() {
150
-      const params = {
151
-        workorderid: this.wid,
152
-        state: 1, // 保存并交办
153
-        maindeptid: String(this.formData.deptId), // 承办单位
154
-        limittime: this.formData.processingTimeLimit, // 办理时限
155
-        limittimes: this.formData.emergencyTimeFrame, // 紧急办理时限
156
-        assignedopinion: this.formData.schedulingOpinions, //调度意见
157
-        // assignid: "",
158
-        token: uni.getStorageSync("token"),
159
-      }
160
-      this.$http
161
-        .post("/WorkOrder/AssignWorkOrderNew", params)
162
-        .then((response) => {
163
-          if (response.state.toLowerCase() === "success") {
164
-            this.returnPage()
165
-          }
166
-        })
167
-        .catch((e) => {
168
-          console.log(e)
169
-        })
170
-    },
171
-    // 返回列表页
172
-    returnPage() {
173
-      uni.$emit("updateList",{});
174
-      uni.navigateBack({
175
-        delta: 2,
176
-      })
177
-    },
178
-
179
-    //获取详情
180
-    getDetail(type) {
181
-      let params = {
182
-        type: type,
183
-        workorderid: this.wid,
184
-        token: uni.getStorageSync("token"),
185
-      }
186
-      this.$http
187
-        .get("/WorkOrder/GetWorkOrderNew", params)
188
-        .then((response) => {
189
-          if (response.state.toLowerCase() === "success") {
190
-            let data = response.data
191
-            if (type === "0") {
192
-              this.detailContentData = data.data[0]
193
-              this.isDisplay.urgentOrOrdinary = String(this.detailContentData.F_Level) === "2" ? false : true
194
-            } 
195
-          }
196
-        })
197
-        .catch((e) => {
198
-          console.log(e)
199
-        })
200
-    },
201
-
202
-    getDeptList() {
203
-      let params = {
204
-        iscbdw: 2,
205
-        token: uni.getStorageSync("token"),
206
-      }
207
-      this.$http
208
-        .get("/Department/GetDeptList", params)
209
-        .then((response) => {
210
-          if (response.state.toLowerCase() === "success") {
211
-            let data = response.data
212
-            this.deptListData = data
213
-          }
214
-        })
215
-        .catch((e) => {
216
-          console.log(e)
217
-        })
218
-    },
219
-
220
-    // 远程加载数据 返回一个对象,{value: 输入框值, callback: 回调函数}
221
-    getDeptData(e) {
222
-      console.log("e", e)
223
-      this.formData.deptName = e.value
224
-      if (!e.value) {
225
-        e.callback(this.deptListData)
226
-      } else {
227
-        let data = []
228
-        this.deptListData.forEach((item) => {
229
-          if (item.F_DeptName.indexOf(e.value) > -1) {
230
-            data.push(item)
231
-          }
232
-        })
233
-        e.callback(data)
234
-      }
235
-    },
236
-    
237
-    selectDept(value) {
238
-      this.formData.deptName = value.F_DeptName
239
-      this.formData.deptId = value.F_DeptId
240
-    },
241
-
242
-    //办理时限change
243
-    bindPickerChangeProcessingTimeLimit: function (e) {
244
-      this.pickerIndex.indexProcessingTimeLimit = e.target.value
245
-      this.formData.processingTimeLimit = this.processingTimeLimitListData[e.target.value].value
246
-    },
247
-
248
-    DatePicker(type) {
249
-      //显示
250
-      this.type = type
251
-      this.showPicker = true
252
-      this.formData.emergencyTimeFrame = this[type]
253
-    },
254
-    ed(e) {
255
-      //选择
256
-      this.showPicker = false
257
-      if (e) {
258
-        //选择的值
259
-        console.log("value => " + e.value)
260
-        //原始的Date对象
261
-        console.log("date => " + e.date)
262
-        this.timeFormat(e.date)
263
-      }
264
-    },
265
-    timeFormat(date) {
266
-      let year = date.getFullYear()
267
-      let month = date.getMonth() + 1
268
-      month = month < 10 ? "0" + month : month
269
-      let day = date.getDate()
270
-      day = day < 10 ? "0" + day : day
271
-      let hours = date.getHours()
272
-      hours = hours < 10 ? "0" + hours : hours
273
-      let minute = date.getMinutes()
274
-      minute = minute < 10 ? "0" + minute : minute
275
-      let seconds = date.getSeconds()
276
-      seconds = seconds < 10 ? "0" + seconds : seconds
277
-      let time = `${year}-${month}-${day} ${hours}:${minute}:${seconds}`
278
-      this.formData.emergencyTimeFrame = time
279
-    },
280
-  },
281
-}
282
-</script>
283
-
284
-<style lang="scss">
285
-.wrapper {
286
-  padding: 10px 10px 0 10px;
287
-  .detailContent {
288
-    margin: 0 0 15px 0;
289
-    .contentTable {
290
-      margin: 0 0 5px 0;
291
-      .contentTitle {
292
-        font-weight: 700;
293
-      }
294
-      .contentText {
295
-        color: #525252;
296
-      }
297
-    }
298
-  }
299
-  .form {
300
-    .uni-form-item {
301
-      margin: 10px 0 0 0;
302
-      padding: 0 0 5px 0;
303
-      border-bottom: 1px solid #bfbfbf;
304
-    }
305
-    .uni-btn-v {
306
-      margin: 15px 0 0 0;
307
-      text-align: center;
308
-      button {
309
-        background: #1e90ff;
310
-        color: #eee;
311
-      }
312
-    }
313
-  }
314
-}
315
-</style>

+ 0 - 6
anyangWebAPP/pages/workOrderDetail/workOrderDetail.vue

@@ -40,7 +40,6 @@
40 40
           <button class="mini-btn" type="default" size="mini" v-for="item in workOrderButton" @click="callBtnMethods(item.eventName)" :key="item.id">{{ item.text }}</button>
41 41
           <!-- <button class="mini-btn" type="default" size="mini"  @click="editBtn">查看</button>
42 42
           <button class="mini-btn" type="default" size="mini" @click="editBtn">编辑</button> -->
43
-          <!-- <button class="mini-btn" type="default" size="mini" @click="transferBtn">转派</button> -->
44 43
         </view>
45 44
       </view>
46 45
     </view>
@@ -138,11 +137,6 @@ export default {
138 137
         url: "/pages/editWorkOrder/editWorkOrder?wid=" + this.wid,
139 138
       })
140 139
     },
141
-    transferBtn() {
142
-      uni.navigateTo({
143
-        url: "/pages/transferWorkOrder/transferWorkOrder?wid=" + this.wid,
144
-      })
145
-    },
146 140
   },
147 141
 }
148 142
 </script>