|
|
@ -1072,7 +1072,32 @@ export default {
|
|
|
|
this.$store.commit("generator/UPDATE_RELATION_DATA", {});
|
|
|
|
this.$store.commit("generator/UPDATE_RELATION_DATA", {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//初始化默认数据
|
|
|
|
//初始化默认数据
|
|
|
|
initDefaultData() {},
|
|
|
|
initDefaultData() {
|
|
|
|
|
|
|
|
request({
|
|
|
|
|
|
|
|
url: `/api/scm/RecycleDeviceConfig`,
|
|
|
|
|
|
|
|
method: "GET"
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
this.priceDesc = res.data.deliveryPrice;
|
|
|
|
|
|
|
|
this.useUnifiedConfig = true;
|
|
|
|
|
|
|
|
if (res.data.fullSet == 0) {
|
|
|
|
|
|
|
|
this.fullSetDesc = "关闭";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.fullSetDesc = "开启";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.usefullSetConfig = true;
|
|
|
|
|
|
|
|
if (res.data.smogSet == 0) {
|
|
|
|
|
|
|
|
this.smogSetDesc = "关闭";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.smogSetDesc = "开启";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.useSmogSetConfig = true;
|
|
|
|
|
|
|
|
this.closeDelayDesc = res.data.closeDelay;
|
|
|
|
|
|
|
|
this.closeDelayConfig = true;
|
|
|
|
|
|
|
|
res.data.closeDelay = null;
|
|
|
|
|
|
|
|
this.warningWeightDesc = res.data.warningWeight;
|
|
|
|
|
|
|
|
this.warningWeightConfig = true;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
// 表单提交
|
|
|
|
// 表单提交
|
|
|
|
dataFormSubmit(type) {
|
|
|
|
dataFormSubmit(type) {
|
|
|
|
if (this.dataForm.price == null && !this.useUnifiedConfig) {
|
|
|
|
if (this.dataForm.price == null && !this.useUnifiedConfig) {
|
|
|
|