|
@@ -112,7 +112,7 @@
|
|
|
|
|
|
|
|
|
|
<SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
|
|
<SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
|
|
- titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
|
|
|
|
|
|
+ titleKey="dictLabel" subtitleKey="dictValue" v-model="name"></SelectPicker>
|
|
</view>
|
|
</view>
|
|
<view class="background">
|
|
<view class="background">
|
|
<input class="uni-input" type="idcard" v-model="idCard" maxlength="18" placeholder="请输入身份证号码"
|
|
<input class="uni-input" type="idcard" v-model="idCard" maxlength="18" placeholder="请输入身份证号码"
|
|
@@ -190,13 +190,13 @@
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
|
|
|
<text>厂 家</text>
|
|
<text>厂 家</text>
|
|
- <view v-if="this.isEmpty(this.brandValue.dictValue)" style="margin-top: 10;"
|
|
|
|
|
|
+ <view v-if="this.isEmpty(this.brandValue.id)" style="margin-top: 10;"
|
|
@click="pickerShow('brand')">
|
|
@click="pickerShow('brand')">
|
|
<span style="color: darkgray;">请选择厂家</span>
|
|
<span style="color: darkgray;">请选择厂家</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('brand')">
|
|
<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('brand')">
|
|
- <span style="color: black;">{{brandValue.dictLabel}}</span>
|
|
|
|
|
|
+ <span style="color: black;">{{brandValue.name}}</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -220,13 +220,13 @@
|
|
<view>
|
|
<view>
|
|
腐蚀等级
|
|
腐蚀等级
|
|
</view>
|
|
</view>
|
|
- <view v-if="this.isEmpty(this.LevelValue.dictValue)" style="margin-top: 10;"
|
|
|
|
|
|
+ <view v-if="this.isEmpty(this.LevelValue.id)" style="margin-top: 10;"
|
|
@click="pickerShow('fsdj')">
|
|
@click="pickerShow('fsdj')">
|
|
<span style="color: darkgray;">请选择腐蚀等级</span>
|
|
<span style="color: darkgray;">请选择腐蚀等级</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('fsdj')">
|
|
<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('fsdj')">
|
|
- <span style="color: black;">{{LevelValue.dictLabel}}</span>
|
|
|
|
|
|
+ <span style="color: black;">{{LevelValue.name}}</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -248,13 +248,13 @@
|
|
<view>
|
|
<view>
|
|
孔距
|
|
孔距
|
|
</view>
|
|
</view>
|
|
- <view v-if="this.isEmpty(this.LevelValue.dictValue)" style="margin-top: 10;"
|
|
|
|
|
|
+ <view v-if="this.isEmpty(this.LevelValue.id)" style="margin-top: 10;"
|
|
@click="pickerShow('kj')">
|
|
@click="pickerShow('kj')">
|
|
<span style="color: darkgray;">请选择孔距</span>
|
|
<span style="color: darkgray;">请选择孔距</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('kj')">
|
|
<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('kj')">
|
|
- <span style="color: black;">{{LevelValue.dictLabel}}</span>
|
|
|
|
|
|
+ <span style="color: black;">{{LevelValue.name}}</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -332,13 +332,13 @@
|
|
<view>
|
|
<view>
|
|
品 牌
|
|
品 牌
|
|
</view>
|
|
</view>
|
|
- <view v-if="this.isEmpty(this.brandValue.dictValue)" style="margin-top: 10;"
|
|
|
|
|
|
+ <view v-if="this.isEmpty(this.brandValue.id)" style="margin-top: 10;"
|
|
@click="pickerShow('brand')">
|
|
@click="pickerShow('brand')">
|
|
<span style="color: darkgray;">请选择品牌</span>
|
|
<span style="color: darkgray;">请选择品牌</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('brand')">
|
|
<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('brand')">
|
|
- <span style="color: black;">{{brandValue.dictLabel}}</span>
|
|
|
|
|
|
+ <span style="color: black;">{{brandValue.name}}</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -431,13 +431,13 @@
|
|
<view>
|
|
<view>
|
|
自闭阀厂家
|
|
自闭阀厂家
|
|
</view>
|
|
</view>
|
|
- <view v-if="this.isEmpty(this.SelfClosValve.dictValue)" style="margin-top: 10;"
|
|
|
|
|
|
+ <view v-if="this.isEmpty(this.SelfClosValve.id)" style="margin-top: 10;"
|
|
@click="pickerShow('zbf')">
|
|
@click="pickerShow('zbf')">
|
|
<span style="color: darkgray;">请选择自闭阀厂家</span>
|
|
<span style="color: darkgray;">请选择自闭阀厂家</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('zbf')">
|
|
<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('zbf')">
|
|
- <span style="color: black;">{{SelfClosValve.dictLabel}}</span>
|
|
|
|
|
|
+ <span style="color: black;">{{SelfClosValve.name}}</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -802,23 +802,34 @@
|
|
this.dictOptions = response.data;
|
|
this.dictOptions = response.data;
|
|
});
|
|
});
|
|
} else if (e == 'zbf') { //自闭阀类型
|
|
} else if (e == 'zbf') { //自闭阀类型
|
|
- this.openDict = true;
|
|
|
|
- getDicts("self_closing_valve_type").then(response => {
|
|
|
|
- this.dictOptions = response.data;
|
|
|
|
|
|
+ this.open = true;
|
|
|
|
+ getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
|
|
|
|
+ .objValue.enginClassValue, '自闭阀厂家').then(response => {
|
|
|
|
+ this.selectList = response.data;
|
|
});
|
|
});
|
|
} else if (e == 'brand') { //品牌
|
|
} else if (e == 'brand') { //品牌
|
|
- this.openDict = true;
|
|
|
|
- getDicts("brand").then(response => {
|
|
|
|
- this.dictOptions = response.data;
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- } else if (e == 'cz') { //材质
|
|
|
|
this.open = true;
|
|
this.open = true;
|
|
getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
|
|
getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
|
|
.objValue.enginClassValue).then(response => {
|
|
.objValue.enginClassValue).then(response => {
|
|
this.selectList = response.data;
|
|
this.selectList = response.data;
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ } else if (e == 'cz') { //材质
|
|
|
|
+ this.open = true;
|
|
|
|
+ if (this.objValue.enginClassValue == '阀管') {
|
|
|
|
+ getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification,
|
|
|
|
+ this
|
|
|
|
+ .objValue.enginClassValue, "灶具管厂家").then(response => {
|
|
|
|
+ this.selectList = response.data;
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification,
|
|
|
|
+ this
|
|
|
|
+ .objValue.enginClassValue).then(response => {
|
|
|
|
+ this.selectList = response.data;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
} else if (e == 'gg') { //规格
|
|
} else if (e == 'gg') { //规格
|
|
if (this.isEmpty(this.materialValue.id)) {
|
|
if (this.isEmpty(this.materialValue.id)) {
|
|
if (this.objValue.enginClassValue == '阀管') {
|
|
if (this.objValue.enginClassValue == '阀管') {
|
|
@@ -833,18 +844,18 @@
|
|
}
|
|
}
|
|
|
|
|
|
} else if (e == 'fsdj') {
|
|
} else if (e == 'fsdj') {
|
|
- //腐蚀等级
|
|
|
|
- this.openDict = true;
|
|
|
|
- //腐蚀等级
|
|
|
|
- getDicts("corrosion_level").then(response => {
|
|
|
|
- this.dictOptions = response.data;
|
|
|
|
|
|
+ this.open = true;
|
|
|
|
+ getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
|
|
|
|
+ .objValue.enginClassValue).then(response => {
|
|
|
|
+ this.selectList = response.data;
|
|
});
|
|
});
|
|
|
|
|
|
} else if (e == 'kj') {
|
|
} else if (e == 'kj') {
|
|
//孔距
|
|
//孔距
|
|
- this.openDict = true;
|
|
|
|
- getDicts("perforated_pipe_diameter").then(response => {
|
|
|
|
- this.dictOptions = response.data;
|
|
|
|
|
|
+ this.open = true;
|
|
|
|
+ getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
|
|
|
|
+ .objValue.enginClassValue).then(response => {
|
|
|
|
+ this.selectList = response.data;
|
|
});
|
|
});
|
|
|
|
|
|
} else if (e == 'gczq') { //工程周期
|
|
} else if (e == 'gczq') { //工程周期
|
|
@@ -914,12 +925,6 @@
|
|
if (this.type == 'door') {
|
|
if (this.type == 'door') {
|
|
this.doorValue = item
|
|
this.doorValue = item
|
|
|
|
|
|
- } else if (this.type == 'zbf') {
|
|
|
|
- this.SelfClosValve = item
|
|
|
|
-
|
|
|
|
- } else if (this.type == 'brand') {
|
|
|
|
- this.brandValue = item
|
|
|
|
-
|
|
|
|
} else if (this.type == 'gczq') {
|
|
} else if (this.type == 'gczq') {
|
|
this.projectValue = item
|
|
this.projectValue = item
|
|
if (!this.isEmpty(this.FJValue.id)) {
|
|
if (!this.isEmpty(this.FJValue.id)) {
|
|
@@ -939,8 +944,6 @@
|
|
getAreaList(item.dictValue).then(res => {
|
|
getAreaList(item.dictValue).then(res => {
|
|
this.XQList = res.data;
|
|
this.XQList = res.data;
|
|
})
|
|
})
|
|
- } else {
|
|
|
|
- this.LevelValue = item;
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
changeSelect(item, index) {
|
|
changeSelect(item, index) {
|
|
@@ -957,9 +960,7 @@
|
|
})
|
|
})
|
|
} else if (this.type == 'gg') {
|
|
} else if (this.type == 'gg') {
|
|
this.specificationValue = item;
|
|
this.specificationValue = item;
|
|
- var onlyNumbers = item.name.replace(/[^\d.]/g, '');
|
|
|
|
|
|
|
|
- console.log(onlyNumbers); // 输出: "123456"
|
|
|
|
|
|
|
|
} else if (this.type == 'xq') {
|
|
} else if (this.type == 'xq') {
|
|
this.XQValue = item;
|
|
this.XQValue = item;
|
|
@@ -987,10 +988,20 @@
|
|
})
|
|
})
|
|
} else if (this.type == 'fj') {
|
|
} else if (this.type == 'fj') {
|
|
this.FJValue = item;
|
|
this.FJValue = item;
|
|
- this.houseHeadName = 'dda';
|
|
|
|
- this.houseHeadPhone = '125';
|
|
|
|
- this.houseHeadIDcardNumber = '335';
|
|
|
|
- if (!this.isEmpty(this.projectValue.dictValue)) {
|
|
|
|
|
|
+ this.houseHeadName = item.houseUserName;
|
|
|
|
+ this.houseHeadPhone = item.phone;
|
|
|
|
+ this.houseHeadIDcardNumber = item.idCard;
|
|
|
|
+ if (!this.isEmpty(item.newPhone)) {
|
|
|
|
+ this.currentResidentsPhoe = [];
|
|
|
|
+ let str = item.newPhone;
|
|
|
|
+ var array = str.split(",");
|
|
|
|
+ array.forEach((list) => {
|
|
|
|
+ this.currentResidentsPhoe.push({
|
|
|
|
+ phone: list
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (!this.isEmpty(this.projectValue.id)) {
|
|
|
|
|
|
//房间选完 判断 工程周期
|
|
//房间选完 判断 工程周期
|
|
this.getStatus();
|
|
this.getStatus();
|
|
@@ -998,6 +1009,14 @@
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ } else if (this.type == 'zbf') {
|
|
|
|
+ this.SelfClosValve = item
|
|
|
|
+
|
|
|
|
+ } else if (this.type == 'brand') {
|
|
|
|
+ this.brandValue = item
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ this.LevelValue = item;
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
@@ -1015,7 +1034,7 @@
|
|
buildingId: this.LDValue.id, // 楼宇id
|
|
buildingId: this.LDValue.id, // 楼宇id
|
|
unitId: this.DYValue.id, // 单元id
|
|
unitId: this.DYValue.id, // 单元id
|
|
houseId: this.FJValue.id, // 房间id
|
|
houseId: this.FJValue.id, // 房间id
|
|
- enginCycle: this.projectValue.dictValue, // 工程周期
|
|
|
|
|
|
+ enginCycle: this.projectValue.id, // 工程周期
|
|
enginType: this.objValue.enginType, //写死 上一页面传过来的
|
|
enginType: this.objValue.enginType, //写死 上一页面传过来的
|
|
enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
|
|
enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
|
|
}
|
|
}
|
|
@@ -1076,8 +1095,8 @@
|
|
this.houseHeadIDcardNumber = res.data.idCard;
|
|
this.houseHeadIDcardNumber = res.data.idCard;
|
|
this.houseHeadPhone = res.data.phone;
|
|
this.houseHeadPhone = res.data.phone;
|
|
this.XZQValue = {
|
|
this.XZQValue = {
|
|
- dictValue: res.data.district,
|
|
|
|
- dictLabel: res.data.districtName
|
|
|
|
|
|
+ id: res.data.district,
|
|
|
|
+ name: res.data.districtName
|
|
};
|
|
};
|
|
|
|
|
|
this.XQValue = {
|
|
this.XQValue = {
|
|
@@ -1098,7 +1117,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- getAreaList(this.XZQValue.dictValue).then(res => {
|
|
|
|
|
|
+ getAreaList(this.XZQValue.id).then(res => {
|
|
this.XQList = res.data;
|
|
this.XQList = res.data;
|
|
})
|
|
})
|
|
getBuildingList(this.XQValue.id).then(res => {
|
|
getBuildingList(this.XQValue.id).then(res => {
|
|
@@ -1158,21 +1177,21 @@
|
|
if (e.message === 'End Loop') throw e
|
|
if (e.message === 'End Loop') throw e
|
|
}
|
|
}
|
|
if (this.objValue.enginClassValue == '报警器' || this.objValue.enginClassValue == '切断阀') {
|
|
if (this.objValue.enginClassValue == '报警器' || this.objValue.enginClassValue == '切断阀') {
|
|
- if (this.isEmpty(this.brandValue.dictValue)) {
|
|
|
|
|
|
+ if (this.isEmpty(this.brandValue.id)) {
|
|
this.$modal.msg("请选择厂家")
|
|
this.$modal.msg("请选择厂家")
|
|
} else {
|
|
} else {
|
|
this.onsubmit();
|
|
this.onsubmit();
|
|
}
|
|
}
|
|
|
|
|
|
} else if (this.objValue.enginClassValue == '打孔') {
|
|
} else if (this.objValue.enginClassValue == '打孔') {
|
|
- if (this.isEmpty(this.LevelValue.dictValue)) {
|
|
|
|
|
|
+ if (this.isEmpty(this.LevelValue.id)) {
|
|
this.$modal.msg("请选择孔距") //打孔 判断孔距
|
|
this.$modal.msg("请选择孔距") //打孔 判断孔距
|
|
} else {
|
|
} else {
|
|
this.onsubmit();
|
|
this.onsubmit();
|
|
}
|
|
}
|
|
} else if (this.objValue.enginClassValue == '拆旧管') {
|
|
} else if (this.objValue.enginClassValue == '拆旧管') {
|
|
|
|
|
|
- if (this.isEmpty(this.LevelValue.dictValue)) {
|
|
|
|
|
|
+ if (this.isEmpty(this.LevelValue.id)) {
|
|
this.$modal.msg("请选择腐蚀等级") //拆旧管 判断腐蚀等级
|
|
this.$modal.msg("请选择腐蚀等级") //拆旧管 判断腐蚀等级
|
|
} else {
|
|
} else {
|
|
this.onsubmit();
|
|
this.onsubmit();
|
|
@@ -1196,7 +1215,7 @@
|
|
}
|
|
}
|
|
} else if (this.objValue.enginClassValue == '挂表') {
|
|
} else if (this.objValue.enginClassValue == '挂表') {
|
|
//挂表 判断 品牌
|
|
//挂表 判断 品牌
|
|
- if (this.isEmpty(this.brandValue.dictValue)) {
|
|
|
|
|
|
+ if (this.isEmpty(this.brandValue.id)) {
|
|
this.$modal.msg("请选择品牌")
|
|
this.$modal.msg("请选择品牌")
|
|
} else {
|
|
} else {
|
|
this.onsubmit();
|
|
this.onsubmit();
|
|
@@ -1291,15 +1310,17 @@
|
|
//阀管 判断 材质 规格 米数
|
|
//阀管 判断 材质 规格 米数
|
|
if (this.isEmpty(this.doorValue.dictValue)) {
|
|
if (this.isEmpty(this.doorValue.dictValue)) {
|
|
this.$modal.msg("请选择上门类型")
|
|
this.$modal.msg("请选择上门类型")
|
|
- } else if (this.isEmpty(this.SelfClosValve.dictValue)) {
|
|
|
|
|
|
+ } else if (this.isEmpty(this.SelfClosValve.id)) {
|
|
this.$modal.msg("请选择自闭阀厂家")
|
|
this.$modal.msg("请选择自闭阀厂家")
|
|
} else if (this.isEmpty(this.materialValue.id)) {
|
|
} else if (this.isEmpty(this.materialValue.id)) {
|
|
this.$modal.msg("请选择材质")
|
|
this.$modal.msg("请选择材质")
|
|
} else if (this.isEmpty(this.specificationValue.id)) {
|
|
} else if (this.isEmpty(this.specificationValue.id)) {
|
|
this.$modal.msg("请选择规格")
|
|
this.$modal.msg("请选择规格")
|
|
- } else if (this.isEmpty(this.inputIntegerNumberValue)) {
|
|
|
|
- this.$modal.msg("请输入米数")
|
|
|
|
- } else {
|
|
|
|
|
|
+ }
|
|
|
|
+ // else if (this.isEmpty(this.inputIntegerNumberValue)) {
|
|
|
|
+ // this.$modal.msg("请输入米数")
|
|
|
|
+ // }
|
|
|
|
+ else {
|
|
|
|
|
|
if (this.isEmpty(this.inputDecimalNumberValue)) {
|
|
if (this.isEmpty(this.inputDecimalNumberValue)) {
|
|
this.inputNumberValue = this.inputIntegerNumberValue;
|
|
this.inputNumberValue = this.inputIntegerNumberValue;
|
|
@@ -1358,7 +1379,7 @@
|
|
zEngiineeringPhotoBoList: this.imgArr, //照片集合
|
|
zEngiineeringPhotoBoList: this.imgArr, //照片集合
|
|
|
|
|
|
zEngineeringMaterialBo: [{
|
|
zEngineeringMaterialBo: [{
|
|
- corrosionLevel: this.LevelValue.dictValue //腐蚀等级 //孔距
|
|
|
|
|
|
+ corrosionLevel: this.LevelValue.id //腐蚀等级 //孔距
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1384,7 +1405,7 @@
|
|
zEngiineeringPhotoBoList: this.imgArr, //照片集合
|
|
zEngiineeringPhotoBoList: this.imgArr, //照片集合
|
|
|
|
|
|
zEngineeringMaterialBo: [{
|
|
zEngineeringMaterialBo: [{
|
|
- brand: this.brandValue.dictValue, //品牌
|
|
|
|
|
|
+ brand: this.brandValue.id, //品牌
|
|
// number: this.inputNumberValue //米数
|
|
// number: this.inputNumberValue //米数
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
@@ -1438,7 +1459,7 @@
|
|
zEngiineeringPhotoBoList: this.imgArr, //照片集合
|
|
zEngiineeringPhotoBoList: this.imgArr, //照片集合
|
|
|
|
|
|
zEngineeringMaterialBo: [{
|
|
zEngineeringMaterialBo: [{
|
|
- brand: this.brandValue.dictValue, //品牌
|
|
|
|
|
|
+ brand: this.brandValue.id, //品牌
|
|
//number: this.inputNumberValue //米数
|
|
//number: this.inputNumberValue //米数
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
@@ -1446,6 +1467,9 @@
|
|
|
|
|
|
}
|
|
}
|
|
} else if (this.objValue.enginClassValue == '阀管') { //自闭阀
|
|
} else if (this.objValue.enginClassValue == '阀管') { //自闭阀
|
|
|
|
+ var onlyNumbers = this.specificationValue.name.replace(/[^\d.]/g, '');
|
|
|
|
+
|
|
|
|
+ console.log(onlyNumbers); // 输出: "123456"
|
|
param = {
|
|
param = {
|
|
district: this.XZQValue.dictValue,
|
|
district: this.XZQValue.dictValue,
|
|
areaId: this.XQValue.id,
|
|
areaId: this.XQValue.id,
|
|
@@ -1464,10 +1488,10 @@
|
|
|
|
|
|
zEngineeringMaterialBo: [{
|
|
zEngineeringMaterialBo: [{
|
|
visitType: this.doorValue.dictValue, //上门类型
|
|
visitType: this.doorValue.dictValue, //上门类型
|
|
- selfClosingValveType: this.SelfClosValve.dictValue, //自闭阀类型
|
|
|
|
|
|
+ selfClosingValveType: this.SelfClosValve.id, //自闭阀类型
|
|
materialQuality: this.materialValue.id, //材质
|
|
materialQuality: this.materialValue.id, //材质
|
|
specifications: this.specificationValue.id, //规格
|
|
specifications: this.specificationValue.id, //规格
|
|
- number: this.inputNumberValue //米数
|
|
|
|
|
|
+ number: onlyNumbers //米数
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1494,7 +1518,7 @@
|
|
|
|
|
|
},
|
|
},
|
|
history() {
|
|
history() {
|
|
- if (this.isEmpty(this.projectValue.dictValue)) {
|
|
|
|
|
|
+ if (this.isEmpty(this.projectValue.id)) {
|
|
this.$modal.msg("请选择工程周期")
|
|
this.$modal.msg("请选择工程周期")
|
|
return
|
|
return
|
|
}
|
|
}
|