|
@@ -273,6 +273,60 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="有无工差" prop="is_diff">
|
|
|
+ <el-select
|
|
|
+ v-model="ruleForm.is_diff"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ :disabled="
|
|
|
+ type === 'view' ||
|
|
|
+ type === 'editBase' ||
|
|
|
+ type === 'editCoin'
|
|
|
+ "
|
|
|
+ style="width: 100%"
|
|
|
+ placeholder="有无工差"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="group in options8"
|
|
|
+ :key="group.id"
|
|
|
+ :label="group.name"
|
|
|
+ :value="group.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="配置要求" prop="config">
|
|
|
+ <el-select
|
|
|
+ v-model="ruleForm.config"
|
|
|
+ multiple
|
|
|
+ collapse-tags
|
|
|
+ :disabled="type === 'view'"
|
|
|
+ style="width: 100%"
|
|
|
+ placeholder="配置要求"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in options9"
|
|
|
+ :key="item + index"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="其他要求" prop="other_config">
|
|
|
+ <el-input
|
|
|
+ placeholder="其他要求"
|
|
|
+ maxlength="100"
|
|
|
+ :disabled="type === 'view'"
|
|
|
+ v-model="ruleForm.other_config"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-col>
|
|
|
|
|
@@ -1020,6 +1074,8 @@ import {
|
|
|
options5,
|
|
|
options6,
|
|
|
options7,
|
|
|
+ options8,
|
|
|
+ options9,
|
|
|
rules,
|
|
|
} from "../columns";
|
|
|
export default {
|
|
@@ -1075,6 +1131,8 @@ export default {
|
|
|
options5: options5,
|
|
|
options6: options6,
|
|
|
options7: options7,
|
|
|
+ options8: options8,
|
|
|
+ options9: options9,
|
|
|
ruleForm: {},
|
|
|
spec_tableData: [],
|
|
|
old_spec_tableData: [],
|
|
@@ -1167,6 +1225,7 @@ export default {
|
|
|
model.unit = model.unit.toString();
|
|
|
model.speclist = JSON.parse(JSON.stringify(this.setResData(1)));
|
|
|
model.good_ladder = JSON.parse(JSON.stringify(this.setResData(2)));
|
|
|
+ model.config = model.config.toString();
|
|
|
let res = {};
|
|
|
delete model["id"];
|
|
|
if (this.type === "add") {
|
|
@@ -1418,8 +1477,12 @@ export default {
|
|
|
market_price: "0",
|
|
|
nake_price: "0",
|
|
|
is_step: "",
|
|
|
+ is_diff: "",
|
|
|
+ config: [],
|
|
|
+ other_config: "",
|
|
|
};
|
|
|
},
|
|
|
+
|
|
|
async resetForm() {
|
|
|
// 重置
|
|
|
await this.$nextTick(async () => {
|
|
@@ -1488,6 +1551,9 @@ export default {
|
|
|
nakelist, //階梯成本
|
|
|
speclist, //商品规格
|
|
|
brand_name,
|
|
|
+ config,
|
|
|
+ is_diff,
|
|
|
+ other_config,
|
|
|
} = this.sitem;
|
|
|
let cat_id_name = "";
|
|
|
let cat_id = [];
|
|
@@ -1591,8 +1657,11 @@ export default {
|
|
|
market_price: market_price || "",
|
|
|
nake_price: nake_price || "",
|
|
|
is_step: is_step || "",
|
|
|
+ is_diff: is_diff || "",
|
|
|
+ config: config ? config.split(",") : [],
|
|
|
+ other_config: other_config || "",
|
|
|
};
|
|
|
- console.log(this.ruleForm.noble_metal);
|
|
|
+ // console.log(this.ruleForm.noble_metal);
|
|
|
}
|
|
|
});
|
|
|
},
|