|
@@ -129,7 +129,6 @@ Page({
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
getApp().globalData.Language.getLanguagePackage(this, '编辑工单');
|
|
getApp().globalData.Language.getLanguagePackage(this, '编辑工单');
|
|
|
- this.getOptions();
|
|
|
|
|
let form = this.data.form,
|
|
let form = this.data.form,
|
|
|
data = getCurrentPages().find(v => v.__route__ == 'E-service/workOrder/detail').data.detail;
|
|
data = getCurrentPages().find(v => v.__route__ == 'E-service/workOrder/detail').data.detail;
|
|
|
data.region = data.province ? [data.province, data.city, data.county] : [];
|
|
data.region = data.province ? [data.province, data.city, data.county] : [];
|
|
@@ -148,6 +147,7 @@ Page({
|
|
|
form,
|
|
form,
|
|
|
sa_workorderid: data.sa_workorderid
|
|
sa_workorderid: data.sa_workorderid
|
|
|
})
|
|
})
|
|
|
|
|
+ this.getOptions();
|
|
|
},
|
|
},
|
|
|
submit() {
|
|
submit() {
|
|
|
this.setData({
|
|
this.setData({
|
|
@@ -191,39 +191,6 @@ Page({
|
|
|
},
|
|
},
|
|
|
getOptions() {
|
|
getOptions() {
|
|
|
let form = this.data.form;
|
|
let form = this.data.form;
|
|
|
- // 服务类型
|
|
|
|
|
- let servicetypes = _Http.servicetypes || [];
|
|
|
|
|
- if (!servicetypes.length) {
|
|
|
|
|
- _Http.basic({
|
|
|
|
|
- "id": 20230206112003,
|
|
|
|
|
- "content": {},
|
|
|
|
|
- }).then(res => {
|
|
|
|
|
- console.log("服务类型", res)
|
|
|
|
|
- if (res.code == 1) {
|
|
|
|
|
- servicetypes = res.data.map(v => {
|
|
|
|
|
- return {
|
|
|
|
|
- id: v.value,
|
|
|
|
|
- name: v.value,
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- let data = form.find(v => v.valueName == 'servicetype');
|
|
|
|
|
- data.radioList = servicetypes;
|
|
|
|
|
- data.value = data.value || servicetypes[0].id;
|
|
|
|
|
- _Http.servicetypes = servicetypes;
|
|
|
|
|
- this.setData({
|
|
|
|
|
- form
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- } else {
|
|
|
|
|
- let data = form.find(v => v.valueName == 'servicetype');
|
|
|
|
|
- data.radioList = servicetypes;
|
|
|
|
|
- data.value = data.value || servicetypes[0].id;
|
|
|
|
|
- this.setData({
|
|
|
|
|
- form
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
// 应用系统
|
|
// 应用系统
|
|
|
let class1s = _Http.class1s || [];
|
|
let class1s = _Http.class1s || [];
|
|
|
if (!class1s.length) {
|
|
if (!class1s.length) {
|