|
@@ -113,14 +113,14 @@
|
|
|
<!-- <search-sort :value="ruleForm.cat_id" :placeholder="'分类'" :size="'mini'" :names="cat_id_name"
|
|
|
:disabled="type === 'view'" :isDetail="true" @searchChange="cat_id_change" /> -->
|
|
|
|
|
|
- <company-sort
|
|
|
+ <company-sort
|
|
|
:value="ruleForm.cat_id"
|
|
|
:placeholder="'商品分类'"
|
|
|
- :disabled="type === 'view' || type === 'editBase' || type === 'editCoin'"
|
|
|
+ :disabled="(type === 'view' || type === 'editBase' || type === 'editCoin') || !companyNo"
|
|
|
:size="'mini'"
|
|
|
:names="cat_id_name"
|
|
|
:isDetail="type !== 'add'"
|
|
|
- :company-no="currentCompany"
|
|
|
+ :companyNo="companyNo"
|
|
|
@searchChange="cat_id_change"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -577,6 +577,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
pid: "",
|
|
|
+ companyNo: "",
|
|
|
cat_id_name: "",
|
|
|
// supplierNo: "",
|
|
|
brand_name: "",
|
|
@@ -967,6 +968,9 @@ export default {
|
|
|
company_idsearchChange(e) {
|
|
|
const { id, code, label } = e;
|
|
|
this.ruleForm.customerCode = code || '';
|
|
|
+ this.companyNo = code || '';
|
|
|
+ this.cat_id_name = ""
|
|
|
+ this.ruleForm.cat_id = []
|
|
|
this.$refs.ruleForm.validateField('customerCode');
|
|
|
},
|
|
|
async submitForm() {
|
|
@@ -1152,7 +1156,7 @@ export default {
|
|
|
preservation_day: "1", //有效期
|
|
|
delivery_day: "0", //物流时间
|
|
|
make_day: "0", //生产工期
|
|
|
- brand_id: [],
|
|
|
+ brand_id: [],
|
|
|
// this.type === "add" && this.askItem.brand_id
|
|
|
// ? [this.askItem.brand_id]
|
|
|
// : [],
|