|
@@ -1159,7 +1159,7 @@ import { replaceTextWrapAndSpace } from "@/utils";
|
|
import ProductModal from "./productModal.vue";
|
|
import ProductModal from "./productModal.vue";
|
|
import ProductListModal from "./productListModal.vue";
|
|
import ProductListModal from "./productListModal.vue";
|
|
import { isStockOptions } from "@/assets/js/statusList";
|
|
import { isStockOptions } from "@/assets/js/statusList";
|
|
-
|
|
|
|
|
|
+import { isArray } from "@/utils/validate";
|
|
import {
|
|
import {
|
|
options1,
|
|
options1,
|
|
options2,
|
|
options2,
|
|
@@ -2192,18 +2192,8 @@ export default {
|
|
lead_time: lead_time || "",
|
|
lead_time: lead_time || "",
|
|
sample_day: sample_day || "",
|
|
sample_day: sample_day || "",
|
|
good_thumb_img: good_thumb_img || "",
|
|
good_thumb_img: good_thumb_img || "",
|
|
- good_img: good_img
|
|
|
|
- ? Object.prototype.toString.call(good_img) === "[object Array]"
|
|
|
|
- ? []
|
|
|
|
- : (good_img || "").split(",")
|
|
|
|
- : [],
|
|
|
|
- good_info_img: good_info_img
|
|
|
|
- ? (Object.prototype.toString.call(good_info_img) ===
|
|
|
|
- "[object Array]"
|
|
|
|
- ? []
|
|
|
|
- : good_info_img || ""
|
|
|
|
- ).split(",")
|
|
|
|
- : [],
|
|
|
|
|
|
+ good_img: good_img ?!isArray(good_img || "") ? good_img.split(",") : []:[],
|
|
|
|
+ good_info_img: good_info_img?!isArray(good_info_img || "") ? good_info_img.split(",") : []:[],
|
|
//固定阶梯成本
|
|
//固定阶梯成本
|
|
demo_fee: demo_fee || "",
|
|
demo_fee: demo_fee || "",
|
|
open_fee: open_fee || "",
|
|
open_fee: open_fee || "",
|
|
@@ -2446,7 +2436,7 @@ export default {
|
|
async noble_metalsearchChange(e) {
|
|
async noble_metalsearchChange(e) {
|
|
const { id, code, label } = e;
|
|
const { id, code, label } = e;
|
|
this.ruleForm.noble_metal = id || "";
|
|
this.ruleForm.noble_metal = id || "";
|
|
- tthis.$refs.ruleForm && his.$refs.ruleForm.validateField("noble_metal");
|
|
|
|
|
|
+ this.$refs.ruleForm && this.$refs.ruleForm.validateField("noble_metal");
|
|
await this.get_all_fee();
|
|
await this.get_all_fee();
|
|
},
|
|
},
|
|
async areaChange(e, key) {
|
|
async areaChange(e, key) {
|