|
@@ -10,7 +10,7 @@
|
|
|
>
|
|
|
<el-row class="ddiv">
|
|
|
<el-col :span="1" class="dtitle">
|
|
|
- <ul style="padding: 140px 0 0 0">
|
|
|
+ <ul style="padding: 90px 0 0 0">
|
|
|
<li>基</li>
|
|
|
<li>础</li>
|
|
|
<li>信</li>
|
|
@@ -20,6 +20,28 @@
|
|
|
<el-col :span="23" class="dmain">
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
+ <el-form-item label="商品名称" prop="good_name">
|
|
|
+ <el-input
|
|
|
+ placeholder="商品名称"
|
|
|
+ maxlength="100"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ v-model="ruleForm.good_name"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="税点" prop="tax" label-width="60px">
|
|
|
+ <search-tax
|
|
|
+ :value="ruleForm.tax"
|
|
|
+ :disabled="type === 'view' || type === 'editBase' || type === 'editCoin'"
|
|
|
+ :size="'mini'"
|
|
|
+ :isDetail="type !== 'add'"
|
|
|
+ :placeholder="'税点'"
|
|
|
+ @searchChange="taxsearchChange"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="商品分类" prop="cat_id">
|
|
|
<search-sort
|
|
|
:value="ruleForm.cat_id"
|
|
@@ -32,16 +54,8 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="商品名称" prop="good_name">
|
|
|
- <el-input
|
|
|
- placeholder="商品名称"
|
|
|
- maxlength="100"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- v-model="ruleForm.good_name"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="业务公司" prop="company_id">
|
|
|
<search-work-company
|
|
@@ -54,7 +68,20 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="单位" prop="unit" label-width="60px">
|
|
|
+ <search-unit
|
|
|
+ :value="ruleForm.unit"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ :size="'mini'"
|
|
|
+ :isDetail="type !== 'add'"
|
|
|
+ :names="unit_name"
|
|
|
+ :placeholder="'单位'"
|
|
|
+ @searchChange="unitsearchChange"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <!-- <el-col :span="12">
|
|
|
<el-form-item label="供应商" prop="supplierNo">
|
|
|
<search-supplier
|
|
|
:value="ruleForm.supplierNo"
|
|
@@ -66,7 +93,7 @@
|
|
|
@searchChange="supplierNosearchChange"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="商品品牌" prop="brandid">
|
|
|
<search-brand
|
|
@@ -80,7 +107,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <!-- <el-col :span="8">
|
|
|
<el-form-item label="销售权限" prop="is_auth">
|
|
|
<el-select
|
|
|
v-model="ruleForm.is_auth"
|
|
@@ -98,33 +125,8 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
|
|
|
- <el-col :span="4">
|
|
|
- <el-form-item label="单位" prop="unit" label-width="60px">
|
|
|
- <search-unit
|
|
|
- :value="ruleForm.unit"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- :size="'mini'"
|
|
|
- :isDetail="type !== 'add'"
|
|
|
- :names="unit_name"
|
|
|
- :placeholder="'单位'"
|
|
|
- @searchChange="unitsearchChange"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="4">
|
|
|
- <el-form-item label="税点" prop="tax" label-width="60px">
|
|
|
- <search-tax
|
|
|
- :value="ruleForm.tax"
|
|
|
- :disabled="type === 'view' || type === 'editBase' || type === 'editCoin'"
|
|
|
- :size="'mini'"
|
|
|
- :isDetail="type !== 'add'"
|
|
|
- :placeholder="'税点'"
|
|
|
- @searchChange="taxsearchChange"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="专属类型" prop="is_exclusive">
|
|
|
<search-exclusive
|
|
@@ -158,6 +160,27 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
+ <el-form-item label="是否定制" prop="good_type">
|
|
|
+ <el-select
|
|
|
+ v-model="ruleForm.good_type"
|
|
|
+ filterable
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ clearable
|
|
|
+ style="width: 100%"
|
|
|
+ placeholder="是否定制"
|
|
|
+ @change="good_type_change"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="group in options1"
|
|
|
+ :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="is_stock" label-width="95px">
|
|
|
<el-select
|
|
|
v-model="ruleForm.is_stock"
|
|
@@ -176,10 +199,93 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" v-show="is_noble">
|
|
|
+ </el-col> -->
|
|
|
+
|
|
|
+ <el-col :span="24">
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
+ <el-form-item label="售后说明" prop="after_sales">
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ :rows="4"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ placeholder="售后说明"
|
|
|
+ v-model="ruleForm.after_sales"
|
|
|
+ show-word-limit
|
|
|
+ maxlength="250"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="商品备注" prop="good_remark">
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ :rows="4"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ placeholder="商品备注"
|
|
|
+ show-word-limit
|
|
|
+ maxlength="250"
|
|
|
+ v-model="ruleForm.good_remark"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="工艺说明" prop="craft_desc">
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ :rows="4"
|
|
|
+ placeholder="工艺说明"
|
|
|
+ show-word-limit
|
|
|
+ maxlength="250"
|
|
|
+ v-model="ruleForm.craft_desc"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" v-show="is_noble || ruleForm.good_type === '1'">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8" v-show="ruleForm.good_type === '1'">
|
|
|
+ <el-form-item label="定制起订量" prop="moq" label-width="95px">
|
|
|
+ <digital-input
|
|
|
+ :values="ruleForm.moq"
|
|
|
+ :placeholder="'定制起订量'"
|
|
|
+ :name="'ruleForm.moq'"
|
|
|
+ :min="0"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ :max="100000000000"
|
|
|
+ :position="'right'"
|
|
|
+ :precision="0"
|
|
|
+ :size="'mini'"
|
|
|
+ :controls="false"
|
|
|
+ :append="''"
|
|
|
+ @reschange="number_change($event, 'moq')"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8" v-show="ruleForm.good_type === '1'">
|
|
|
+ <el-form-item label="定制工期" prop="customized">
|
|
|
+ <digital-input
|
|
|
+ :values="ruleForm.customized"
|
|
|
+ :placeholder="'定制工期'"
|
|
|
+ :name="'ruleForm.customized'"
|
|
|
+ :min="0"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ :max="100000000000"
|
|
|
+ :position="'right'"
|
|
|
+ :precision="0"
|
|
|
+ :size="'mini'"
|
|
|
+ :controls="false"
|
|
|
+ :append="'天'"
|
|
|
+ @reschange="number_change($event, 'customized')"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8" v-show="is_noble">
|
|
|
<el-form-item label="贵金属重量" prop="noble_weight" label-width="95px">
|
|
|
<digital-input
|
|
|
:values="ruleForm.noble_weight"
|
|
@@ -199,7 +305,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="6" v-show="is_noble">
|
|
|
<el-form-item label="贵金属种类" prop="noble_metal" label-width="95px">
|
|
|
<search-metal-kind
|
|
|
:value="ruleForm.noble_metal"
|
|
@@ -213,7 +319,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <!-- <el-col :span="8">
|
|
|
<el-form-item
|
|
|
label="启用实时金价"
|
|
|
prop="is_gold_price"
|
|
@@ -259,8 +365,8 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="10">
|
|
|
+ </el-col> -->
|
|
|
+ <el-col :span="10" v-show="is_noble">
|
|
|
<el-form-item label="配置要求" prop="config" label-width="85px">
|
|
|
<el-select
|
|
|
v-model="ruleForm.config"
|
|
@@ -279,7 +385,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="8" v-show="is_noble">
|
|
|
<el-form-item
|
|
|
label="其他配置要求"
|
|
|
prop="other_config"
|
|
@@ -297,105 +403,7 @@
|
|
|
</el-row>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="售后说明" prop="after_sales">
|
|
|
- <el-input
|
|
|
- type="textarea"
|
|
|
- :rows="4"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- placeholder="售后说明"
|
|
|
- v-model="ruleForm.after_sales"
|
|
|
- show-word-limit
|
|
|
- maxlength="250"
|
|
|
- >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="商品备注" prop="good_remark">
|
|
|
- <el-input
|
|
|
- type="textarea"
|
|
|
- :rows="4"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- placeholder="商品备注"
|
|
|
- show-word-limit
|
|
|
- maxlength="250"
|
|
|
- v-model="ruleForm.good_remark"
|
|
|
- >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="工艺说明" prop="craft_desc">
|
|
|
- <el-input
|
|
|
- type="textarea"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- :rows="4"
|
|
|
- placeholder="工艺说明"
|
|
|
- show-word-limit
|
|
|
- maxlength="250"
|
|
|
- v-model="ruleForm.craft_desc"
|
|
|
- >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="是否定制" prop="good_type">
|
|
|
- <el-select
|
|
|
- v-model="ruleForm.good_type"
|
|
|
- filterable
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- clearable
|
|
|
- style="width: 100%"
|
|
|
- placeholder="是否定制"
|
|
|
- @change="good_type_change"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="group in options1"
|
|
|
- :key="group.id"
|
|
|
- :label="group.name"
|
|
|
- :value="group.id"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" v-show="ruleForm.good_type === '1'">
|
|
|
- <el-form-item label="定制起订量" prop="moq" label-width="95px">
|
|
|
- <digital-input
|
|
|
- :values="ruleForm.moq"
|
|
|
- :placeholder="'定制起订量'"
|
|
|
- :name="'ruleForm.moq'"
|
|
|
- :min="0"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- :max="100000000000"
|
|
|
- :position="'right'"
|
|
|
- :precision="0"
|
|
|
- :size="'mini'"
|
|
|
- :controls="false"
|
|
|
- :append="''"
|
|
|
- @reschange="number_change($event, 'moq')"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" v-show="ruleForm.good_type === '1'">
|
|
|
- <el-form-item label="定制工期" prop="customized">
|
|
|
- <digital-input
|
|
|
- :values="ruleForm.customized"
|
|
|
- :placeholder="'定制工期'"
|
|
|
- :name="'ruleForm.customized'"
|
|
|
- :min="0"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- :max="100000000000"
|
|
|
- :position="'right'"
|
|
|
- :precision="0"
|
|
|
- :size="'mini'"
|
|
|
- :controls="false"
|
|
|
- :append="'天'"
|
|
|
- @reschange="number_change($event, 'customized')"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" v-show="ruleForm.is_stock === '1'">
|
|
|
+ <!-- <el-col :span="8" v-show="ruleForm.is_stock === '1'">
|
|
|
<el-form-item label="备库起订量" prop="stock_moq" label-width="95px">
|
|
|
<digital-input
|
|
|
:values="ruleForm.stock_moq"
|
|
@@ -411,179 +419,208 @@
|
|
|
@reschange="number_change($event, 'stock_moq')"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
</el-row>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-row class="ddiv">
|
|
|
- <el-col :span="1" class="dtitle">
|
|
|
- <ul>
|
|
|
- <li>规</li>
|
|
|
- <li>格</li>
|
|
|
- <li>信</li>
|
|
|
- <li>息</li>
|
|
|
- </ul>
|
|
|
- </el-col>
|
|
|
- <el-col :span="23" class="dmain" style="padding: 20px 0 20px 18px">
|
|
|
- <el-table :data="spec_tableData" :size="'mini'" border style="width: 100%">
|
|
|
- <el-table-column prop="spec_value" label="规格类型" />
|
|
|
- <el-table-column prop="spec_value_value" label="规格值" />
|
|
|
- <el-table-column
|
|
|
- fixed="right"
|
|
|
- v-if="type === 'add' || type === 'editBase' || type === 'edit'"
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-row class="ddiv">
|
|
|
+ <el-col :span="1" class="dtitle">
|
|
|
+ <ul style="padding: 65px 0 0 0">
|
|
|
+ <li>包</li>
|
|
|
+ <li>装</li>
|
|
|
+ <li>信</li>
|
|
|
+ <li>息</li>
|
|
|
+ </ul></el-col
|
|
|
>
|
|
|
- <template slot="header" slot-scope="scope">
|
|
|
- <span>操作</span>
|
|
|
- <el-tooltip
|
|
|
- class="item"
|
|
|
- effect="dark"
|
|
|
- content="添加规格类型"
|
|
|
- placement="top"
|
|
|
+ <el-col :span="23" class="dmain">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="包装方式" prop="packing_way">
|
|
|
+ <el-input
|
|
|
+ placeholder="包装方式"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ v-model="ruleForm.packing_way"
|
|
|
+ maxlength="250"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="装箱规格" prop="packing_spec">
|
|
|
+ <el-input
|
|
|
+ placeholder="装箱规格"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ v-model="ruleForm.packing_spec"
|
|
|
+ maxlength="250"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="装箱重量" prop="packing_weight">
|
|
|
+ <digital-input
|
|
|
+ :values="ruleForm.packing_weight"
|
|
|
+ :placeholder="'装箱重量'"
|
|
|
+ :min="0"
|
|
|
+ :name="'ruleForm.packing_weight'"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ :max="100000000000"
|
|
|
+ :position="'right'"
|
|
|
+ :precision="3"
|
|
|
+ :size="'mini'"
|
|
|
+ :controls="false"
|
|
|
+ :append="'g'"
|
|
|
+ @reschange="number_change($event, 'packing_weight')"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="装箱尺寸" prop="packing_size">
|
|
|
+ <el-input
|
|
|
+ placeholder="装箱尺寸"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ v-model="ruleForm.packing_size"
|
|
|
+ maxlength="250"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="商品尺寸" prop="good_size">
|
|
|
+ <el-input
|
|
|
+ placeholder="商品尺寸"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ v-model="ruleForm.good_size"
|
|
|
+ maxlength="250"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="商品条形码" prop="good_bar">
|
|
|
+ <el-input
|
|
|
+ placeholder="商品条形码"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ v-model="ruleForm.good_bar"
|
|
|
+ type="number"
|
|
|
+ :min="0"
|
|
|
+ :max="9999999999999"
|
|
|
+ :step="0"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="包装清单" prop="packing_list">
|
|
|
+ <el-input
|
|
|
+ placeholder="包装清单"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ v-model="ruleForm.packing_list"
|
|
|
+ maxlength="250"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-row class="ddiv ltitle">
|
|
|
+ <el-col :span="1" class="dtitle">
|
|
|
+ <ul style="padding: 65px 0 0 0">
|
|
|
+ <li>规</li>
|
|
|
+ <li>格</li>
|
|
|
+ <li>信</li>
|
|
|
+ <li>息</li>
|
|
|
+ </ul>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="23" class="dmain" style="padding: 20px 0 20px 18px">
|
|
|
+ <el-table
|
|
|
+ :data="spec_tableData"
|
|
|
+ :size="'mini'"
|
|
|
+ border
|
|
|
+ style="width: 100%"
|
|
|
+ height="164px"
|
|
|
+ >
|
|
|
+ <el-table-column prop="spec_value" label="规格类型" />
|
|
|
+ <el-table-column prop="spec_value_value" label="规格值" />
|
|
|
+ <el-table-column
|
|
|
+ fixed="right"
|
|
|
+ v-if="type === 'add' || type === 'editBase' || type === 'edit'"
|
|
|
>
|
|
|
- <i
|
|
|
- class="el-icon-circle-plus-outline fr"
|
|
|
- style="font-size: 18px; margin-top: 2px"
|
|
|
- @click="openEdit('-1', {})"
|
|
|
- />
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-tooltip effect="dark" content="修改" placement="top">
|
|
|
- <i
|
|
|
- class="el-icon-edit tb-icon"
|
|
|
- @click="openEdit(scope.$index, scope.row)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
+ <template slot="header" slot-scope="scope">
|
|
|
+ <span>操作</span>
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="dark"
|
|
|
+ content="添加规格类型"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="el-icon-circle-plus-outline fr"
|
|
|
+ style="font-size: 18px; margin-top: 2px"
|
|
|
+ @click="openEdit('-1', {})"
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tooltip effect="dark" content="修改" placement="top">
|
|
|
+ <i
|
|
|
+ class="el-icon-edit tb-icon"
|
|
|
+ @click="openEdit(scope.$index, scope.row)"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
|
|
|
- <el-tooltip
|
|
|
- v-if="!scope.row.isMust"
|
|
|
- effect="dark"
|
|
|
- content="删除"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i class="el-icon-delete tb-icon" @click="openDelete(scope.$index)"></i>
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <!-- 弹窗 新增/修改 -->
|
|
|
- <base-form-add-edit
|
|
|
- :index="modelIndex"
|
|
|
- :show-model="showModel"
|
|
|
- :sitem="sitem"
|
|
|
- @refresh="refreshEdit"
|
|
|
- @cancel="showModel = false"
|
|
|
- />
|
|
|
+ <el-tooltip
|
|
|
+ v-if="!scope.row.isMust"
|
|
|
+ effect="dark"
|
|
|
+ content="删除"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="el-icon-delete tb-icon"
|
|
|
+ @click="openDelete(scope.$index)"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <!-- 弹窗 新增/修改 -->
|
|
|
+ <base-form-add-edit
|
|
|
+ :index="modelIndex"
|
|
|
+ :show-model="showModel"
|
|
|
+ :sitem="sitem"
|
|
|
+ @refresh="refreshEdit"
|
|
|
+ @cancel="showModel = false"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+
|
|
|
<el-row class="ddiv">
|
|
|
<el-col :span="1" class="dtitle">
|
|
|
- <ul>
|
|
|
- <li>包</li>
|
|
|
- <li>装</li>
|
|
|
+ <ul style="padding: 20px 0 0 0">
|
|
|
+ <li>发</li>
|
|
|
+ <li>货</li>
|
|
|
<li>信</li>
|
|
|
<li>息</li>
|
|
|
</ul></el-col
|
|
|
>
|
|
|
<el-col :span="23" class="dmain">
|
|
|
<el-row>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="包装方式" prop="packing_way">
|
|
|
- <el-input
|
|
|
- placeholder="包装方式"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- v-model="ruleForm.packing_way"
|
|
|
- maxlength="250"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="装箱规格" prop="packing_spec">
|
|
|
- <el-input
|
|
|
- placeholder="装箱规格"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- v-model="ruleForm.packing_spec"
|
|
|
- maxlength="250"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="装箱重量" prop="packing_weight">
|
|
|
- <digital-input
|
|
|
- :values="ruleForm.packing_weight"
|
|
|
- :placeholder="'装箱重量'"
|
|
|
- :min="0"
|
|
|
- :name="'ruleForm.packing_weight'"
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="发货地" prop="delivery_place">
|
|
|
+ <select-area
|
|
|
+ :placeholder="'发货地'"
|
|
|
+ :value="ruleForm.delivery_place"
|
|
|
+ :is-detail="id !== 'add'"
|
|
|
:disabled="type === 'view' || type === 'editCoin'"
|
|
|
- :max="100000000000"
|
|
|
- :position="'right'"
|
|
|
- :precision="3"
|
|
|
:size="'mini'"
|
|
|
- :controls="false"
|
|
|
- :append="'g'"
|
|
|
- @reschange="number_change($event, 'packing_weight')"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="装箱尺寸" prop="packing_size">
|
|
|
- <el-input
|
|
|
- placeholder="装箱尺寸"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- v-model="ruleForm.packing_size"
|
|
|
- maxlength="250"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="商品尺寸" prop="good_size">
|
|
|
- <el-input
|
|
|
- placeholder="商品尺寸"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- v-model="ruleForm.good_size"
|
|
|
- maxlength="250"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="商品条形码" prop="good_bar">
|
|
|
- <el-input
|
|
|
- placeholder="商品条形码"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- v-model="ruleForm.good_bar"
|
|
|
- type="number"
|
|
|
- :min="0"
|
|
|
- :max="9999999999999"
|
|
|
- :step="0"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="包装清单" prop="packing_list">
|
|
|
- <el-input
|
|
|
- placeholder="包装清单"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- v-model="ruleForm.packing_list"
|
|
|
- maxlength="250"
|
|
|
+ @selectChange="selectAreaChange($event, 'delivery_place')"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row class="ddiv">
|
|
|
- <el-col :span="1" class="dtitle">
|
|
|
- <ul>
|
|
|
- <li>发</li>
|
|
|
- <li>货</li>
|
|
|
- <li>信</li>
|
|
|
- <li>息</li>
|
|
|
- </ul></el-col
|
|
|
- >
|
|
|
- <el-col :span="23" class="dmain">
|
|
|
- <el-row>
|
|
|
- <el-col :span="6">
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="供货区域" prop="supply_area">
|
|
|
<el-select
|
|
|
v-model="ruleForm.supply_area"
|
|
@@ -603,7 +640,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="6">
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="物流时间" prop="delivery_day">
|
|
|
<digital-input
|
|
|
:values="ruleForm.delivery_day"
|
|
@@ -621,7 +658,19 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="6">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="产地" prop="origin_place">
|
|
|
+ <select-area
|
|
|
+ :placeholder="'产地'"
|
|
|
+ :value="ruleForm.origin_place"
|
|
|
+ :size="'mini'"
|
|
|
+ :is-detail="id !== 'add'"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
+ @selectChange="selectAreaChange($event, 'origin_place')"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="供货周期" prop="lead_time">
|
|
|
<digital-input
|
|
|
:values="ruleForm.lead_time"
|
|
@@ -639,7 +688,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="6">
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="调样周期" prop="sample_day">
|
|
|
<digital-input
|
|
|
:values="ruleForm.sample_day"
|
|
@@ -657,36 +706,12 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="发货地" prop="delivery_place">
|
|
|
- <select-area
|
|
|
- :placeholder="'发货地'"
|
|
|
- :value="ruleForm.delivery_place"
|
|
|
- :is-detail="id !== 'add'"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- :size="'mini'"
|
|
|
- @selectChange="selectAreaChange($event, 'delivery_place')"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="产地" prop="origin_place">
|
|
|
- <select-area
|
|
|
- :placeholder="'产地'"
|
|
|
- :value="ruleForm.origin_place"
|
|
|
- :size="'mini'"
|
|
|
- :is-detail="id !== 'add'"
|
|
|
- :disabled="type === 'view' || type === 'editCoin'"
|
|
|
- @selectChange="selectAreaChange($event, 'origin_place')"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
</el-row>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row class="ddiv">
|
|
|
<el-col :span="1" class="dtitle">
|
|
|
- <ul>
|
|
|
+ <ul style="padding: 25px 0 0 0">
|
|
|
<li>图</li>
|
|
|
<li>片</li>
|
|
|
<li>信</li>
|
|
@@ -827,7 +852,7 @@
|
|
|
</el-row>
|
|
|
<el-row class="ddiv">
|
|
|
<el-col :span="1" class="dtitle">
|
|
|
- <ul style="padding: 0">
|
|
|
+ <ul style="padding: 25px 0 0 0">
|
|
|
<li>固</li>
|
|
|
<li>定</li>
|
|
|
<li>与</li>
|
|
@@ -1211,13 +1236,13 @@ export default {
|
|
|
stock_moq,
|
|
|
is_stock,
|
|
|
} = this.ruleForm;
|
|
|
+ let min = parseInt(this.ladder_tableData[0].min_num),
|
|
|
+ smoq = parseInt(stock_moq);
|
|
|
+ this.ladder_tableData.forEach((si) => {
|
|
|
+ let n = parseInt(si.min_num);
|
|
|
+ min = n < min ? n : min;
|
|
|
+ });
|
|
|
if (is_stock === "1") {
|
|
|
- let min = parseInt(this.ladder_tableData[0].min_num),
|
|
|
- smoq = parseInt(stock_moq);
|
|
|
- this.ladder_tableData.forEach((si) => {
|
|
|
- let n = parseInt(si.min_num);
|
|
|
- min = n < min ? n : min;
|
|
|
- });
|
|
|
// console.log(smoq, min, smoq < min);
|
|
|
if (smoq < min) {
|
|
|
this.$message.warning("备库起订量不能低于成本最低起订量!");
|
|
@@ -1225,6 +1250,10 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+ if (min !== 1) {
|
|
|
+ this.$message.warning("要求填写一件起订量的成本!");
|
|
|
+ this.loading = false;
|
|
|
+ }
|
|
|
// if (is_step === "0" && this.ladder_tableData.length > 1) {
|
|
|
// this.$message.warning("不启用阶梯成本,只能录入一条阶梯成本信息!");
|
|
|
// this.loading = false;
|
|
@@ -1268,7 +1297,11 @@ export default {
|
|
|
let model = JSON.parse(JSON.stringify(this.ruleForm));
|
|
|
model.cat_id = model.cat_id.toString();
|
|
|
model.brandid = model.brandid.toString();
|
|
|
- model.supplierNo = model.supplierNo.toString();
|
|
|
+ // model.supplierNo = model.supplierNo.toString();
|
|
|
+ model.is_auth = "1";
|
|
|
+ model.is_gold_price = "0";
|
|
|
+ model.is_stock = "0";
|
|
|
+ model.is_diff = "0";
|
|
|
model.delivery_place = model.delivery_place.toString();
|
|
|
model.origin_place = model.origin_place.toString();
|
|
|
model.good_info_img = model.good_info_img.toString();
|
|
@@ -1277,6 +1310,7 @@ export default {
|
|
|
model.speclist = JSON.parse(JSON.stringify(this.setResData(1)));
|
|
|
model.good_ladder = JSON.parse(JSON.stringify(this.setResData(2)));
|
|
|
model.config = model.config.toString();
|
|
|
+
|
|
|
model.is_exclusive =
|
|
|
model.is_exclusive.length > 0
|
|
|
? model.is_exclusive[model.is_exclusive.length - 1]
|
|
@@ -1639,15 +1673,15 @@ export default {
|
|
|
weight: "0",
|
|
|
good_type: "0",
|
|
|
is_stock: "0",
|
|
|
- supplierNo: [],
|
|
|
+ // supplierNo: [],
|
|
|
company_id: this.business_companyNo || "",
|
|
|
- is_auth: "",
|
|
|
+ is_auth: "1",
|
|
|
tax: "",
|
|
|
good_name: "",
|
|
|
unit: [],
|
|
|
is_exclusive: [],
|
|
|
noble_metal: "",
|
|
|
- is_gold_price: "",
|
|
|
+ is_gold_price: "0",
|
|
|
moq: "",
|
|
|
customized: "",
|
|
|
after_sales: "",
|
|
@@ -1678,7 +1712,7 @@ export default {
|
|
|
cgd_gold_price: "0",
|
|
|
noble_price: "0",
|
|
|
// is_step: "0",
|
|
|
- is_diff: "",
|
|
|
+ is_diff: "0",
|
|
|
config: [],
|
|
|
other_config: "",
|
|
|
stock_moq: "0",
|
|
@@ -1712,7 +1746,7 @@ export default {
|
|
|
is_exclusive, // string 是否是专属
|
|
|
customized, // string 定制工期
|
|
|
tax, //string 税率
|
|
|
- supplierNo, // string 供应商
|
|
|
+ // supplierNo, // string 供应商
|
|
|
is_auth, //string 是否有销售权限0 否1 是
|
|
|
auth_img, // string 无
|
|
|
exclusive,
|
|
@@ -1813,9 +1847,9 @@ export default {
|
|
|
weight: weight || "",
|
|
|
good_type: good_type || "0",
|
|
|
is_stock: is_stock || "0",
|
|
|
- supplierNo: supplierNo ? [supplierNo] : [],
|
|
|
+ // supplierNo: supplierNo ? [supplierNo] : [],
|
|
|
company_id: companyNo || "",
|
|
|
- is_auth: is_auth || "",
|
|
|
+ is_auth: is_auth || "1",
|
|
|
tax: tax ? tax + "%" : "",
|
|
|
good_name: good_name || "",
|
|
|
unit: good_unit ? [good_unit] : [],
|
|
@@ -1861,7 +1895,7 @@ export default {
|
|
|
cgd_gold_price: cgd_gold_price || "",
|
|
|
noble_price: noble_price || "0",
|
|
|
// is_step: is_step || "0",
|
|
|
- is_diff: is_diff || "",
|
|
|
+ is_diff: is_diff || "0",
|
|
|
config: config ? config.split(",") : [],
|
|
|
other_config: other_config || "",
|
|
|
stock_moq: stock_moq || "0",
|
|
@@ -1923,7 +1957,7 @@ export default {
|
|
|
open_fee: open_fee || "",
|
|
|
noble_metal: noble_metal || "",
|
|
|
noble_weight: noble_weight || "",
|
|
|
- is_gold_price: is_gold_price || "",
|
|
|
+ is_gold_price: is_gold_price || "0",
|
|
|
market_price: market_price || "",
|
|
|
cgd_gold_price: cgd_gold_price || "",
|
|
|
// is_step: is_step || "",
|
|
@@ -1936,11 +1970,20 @@ export default {
|
|
|
//商品分类选择
|
|
|
async goods_class_change(e) {
|
|
|
const { code, pid, id, label, cat_desc } = e;
|
|
|
- this.ruleForm.cat_id = id ? [id] : [];
|
|
|
+ if (pid === "6") {
|
|
|
+ this.$message.warning("不允许创建贵金属商品!");
|
|
|
+ this.ruleForm.cat_id = [];
|
|
|
+ this.ruleForm.after_sales = "";
|
|
|
+ } else {
|
|
|
+ this.ruleForm.cat_id = id ? [id] : [];
|
|
|
+ this.ruleForm.after_sales = cat_desc || "";
|
|
|
+ }
|
|
|
+ // this.is_noble = pid === "6";
|
|
|
+ this.is_noble = false;
|
|
|
this.$refs.ruleForm.validateField("cat_id");
|
|
|
- this.ruleForm.after_sales = cat_desc || "";
|
|
|
+
|
|
|
this.$refs.ruleForm.validateField("after_sales");
|
|
|
- this.is_noble = pid === "6";
|
|
|
+
|
|
|
this.sch_is_noble();
|
|
|
await this.set_must_spec();
|
|
|
await this.get_all_fee();
|
|
@@ -2021,12 +2064,12 @@ export default {
|
|
|
this.ruleForm.brandid = id ? [id] : [];
|
|
|
this.$refs.ruleForm.validateField("brandid");
|
|
|
},
|
|
|
- //供应商选择
|
|
|
- supplierNosearchChange(e) {
|
|
|
- const { id, code, label } = e;
|
|
|
- this.ruleForm.supplierNo = code ? [code] : [];
|
|
|
- this.$refs.ruleForm.validateField("supplierNo");
|
|
|
- },
|
|
|
+ // //供应商选择
|
|
|
+ // supplierNosearchChange(e) {
|
|
|
+ // const { id, code, label } = e;
|
|
|
+ // this.ruleForm.supplierNo = code ? [code] : [];
|
|
|
+ // this.$refs.ruleForm.validateField("supplierNo");
|
|
|
+ // },
|
|
|
//业务企业选择
|
|
|
company_idsearchChange(e) {
|
|
|
const { id, code, label } = e;
|