|
@@ -233,28 +233,71 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="7">
|
|
|
- <el-form-item label="数量" prop="num" label-width="60px">
|
|
|
- <digital-input
|
|
|
- :values="ruleForm.num"
|
|
|
- :placeholder="'数量'"
|
|
|
- :min="0"
|
|
|
+
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="产地" prop="origin_place">
|
|
|
+ <search-area
|
|
|
+ :value="ruleForm.origin_place"
|
|
|
+ :names="origin_place_cn"
|
|
|
+ :is-detail="true"
|
|
|
:disabled="type === 'view'"
|
|
|
- :max="100000000000"
|
|
|
- :position="'right'"
|
|
|
- :precision="0"
|
|
|
- :size="'mini'"
|
|
|
- :controls="false"
|
|
|
- :append="''"
|
|
|
- @reschange="number_change($event, 'num')"
|
|
|
+ size="mini"
|
|
|
+ :placeholder="'产地'"
|
|
|
+ :level="3"
|
|
|
+ @searchChange="selectAreaoriginChange($event)"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="17">
|
|
|
- <el-form-item label="订单总金额" label-width="100px">
|
|
|
- <el-input :disabled="true" v-model="ruleForm.total" :placeholder="'订单总金额'" />
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="发货地" prop="delivery_place">
|
|
|
+ <search-area
|
|
|
+ :value="ruleForm.delivery_place"
|
|
|
+ :names="delivery_place_cn"
|
|
|
+ :is-detail="true"
|
|
|
+ :disabled="type === 'view'"
|
|
|
+ size="mini"
|
|
|
+ :placeholder="'发货地'"
|
|
|
+ :level="3"
|
|
|
+ @searchChange="selectAreadeliveryChange($event)"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="供货区域" prop="supply_area">
|
|
|
+ <el-select
|
|
|
+ v-model="ruleForm.supply_area"
|
|
|
+ filterable
|
|
|
+ :disabled="type === 'view'"
|
|
|
+ clearable
|
|
|
+ style="width: 100%"
|
|
|
+ placeholder="供货区域"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="group in options6"
|
|
|
+ :key="group.id"
|
|
|
+ :label="group.name"
|
|
|
+ :value="group.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="付款方式" prop="pay_way" class="clear">
|
|
|
+ <el-select
|
|
|
+ v-model="ruleForm.pay_way"
|
|
|
+ filterable
|
|
|
+ :disabled="type === 'view'"
|
|
|
+ clearable
|
|
|
+ style="width: 100%"
|
|
|
+ placeholder="付款方式"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="group in options10"
|
|
|
+ :key="group.id"
|
|
|
+ :label="group.name"
|
|
|
+ :value="group.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -399,70 +442,23 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="产地" prop="origin_place">
|
|
|
- <search-area
|
|
|
- :value="ruleForm.origin_place"
|
|
|
- :names="origin_place_cn"
|
|
|
- :is-detail="true"
|
|
|
- :disabled="type === 'view'"
|
|
|
- size="mini"
|
|
|
- :placeholder="'产地'"
|
|
|
- :level="3"
|
|
|
- @searchChange="selectAreaoriginChange($event)"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="发货地" prop="delivery_place">
|
|
|
- <search-area
|
|
|
- :value="ruleForm.delivery_place"
|
|
|
- :names="delivery_place_cn"
|
|
|
- :is-detail="true"
|
|
|
- :disabled="type === 'view'"
|
|
|
- size="mini"
|
|
|
- :placeholder="'发货地'"
|
|
|
- :level="3"
|
|
|
- @searchChange="selectAreadeliveryChange($event)"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="供货区域" prop="supply_area">
|
|
|
- <el-select
|
|
|
- v-model="ruleForm.supply_area"
|
|
|
- filterable
|
|
|
+
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="采购备注" prop="remark">
|
|
|
+ <el-input
|
|
|
+ placeholder="采购备注"
|
|
|
+ maxlength="500"
|
|
|
:disabled="type === 'view'"
|
|
|
- clearable
|
|
|
- style="width: 100%"
|
|
|
- placeholder="供货区域"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="group in options6"
|
|
|
- :key="group.id"
|
|
|
- :label="group.name"
|
|
|
- :value="group.id"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ v-model="ruleForm.remark"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="付款方式" prop="pay_way" class="clear">
|
|
|
- <el-select
|
|
|
- v-model="ruleForm.pay_way"
|
|
|
- filterable
|
|
|
+ <el-form-item label="工艺说明" prop="cost_desc">
|
|
|
+ <el-input
|
|
|
+ placeholder="工艺说明"
|
|
|
+ maxlength="500"
|
|
|
:disabled="type === 'view'"
|
|
|
- clearable
|
|
|
- style="width: 100%"
|
|
|
- placeholder="付款方式"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="group in options10"
|
|
|
- :key="group.id"
|
|
|
- :label="group.name"
|
|
|
- :value="group.id"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ v-model="ruleForm.cost_desc"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -510,131 +506,108 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-col>
|
|
|
+ </el-row>
|
|
|
|
|
|
- <el-col :span="24" v-if="is_noble">
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="金属重量" prop="gold_weight">
|
|
|
- <digital-input
|
|
|
- :values="ruleForm.gold_weight"
|
|
|
- :placeholder="'金属重量'"
|
|
|
- :min="0"
|
|
|
- :disabled="type === 'view'"
|
|
|
- :max="100000000000"
|
|
|
- :position="'right'"
|
|
|
- :precision="3"
|
|
|
- :size="'mini'"
|
|
|
- :controls="false"
|
|
|
- :append="'g'"
|
|
|
- @reschange="number_change($event, 'gold_weight')"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="金属种类" prop="noble_metal">
|
|
|
- <search-metal-kind
|
|
|
- :value="ruleForm.noble_metal"
|
|
|
- :size="'mini'"
|
|
|
- :disabled="type === 'view'"
|
|
|
- :isDetail="true"
|
|
|
- :placeholder="'金属种类'"
|
|
|
- @searchChange="noble_metalsearchChange"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="配置要求" prop="config">
|
|
|
- <el-select
|
|
|
- v-model="ruleForm.config"
|
|
|
- multiple
|
|
|
- :disabled="type === 'view'"
|
|
|
- style="width: 100%"
|
|
|
- placeholder="配置要求"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in options9"
|
|
|
- :key="item + index"
|
|
|
- :label="item"
|
|
|
- :value="item"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="其他配置要求" prop="other_config" label-width="120px">
|
|
|
- <el-input
|
|
|
- placeholder="其他要求"
|
|
|
- maxlength="100"
|
|
|
- :disabled="type === 'view'"
|
|
|
- v-model="ruleForm.other_config"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-col>
|
|
|
+ <el-row v-if="is_noble">
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="金属重量" prop="gold_weight">
|
|
|
+ <digital-input
|
|
|
+ :values="ruleForm.gold_weight"
|
|
|
+ :placeholder="'金属重量'"
|
|
|
+ :min="0"
|
|
|
+ :disabled="type === 'view'"
|
|
|
+ :max="100000000000"
|
|
|
+ :position="'right'"
|
|
|
+ :precision="3"
|
|
|
+ :size="'mini'"
|
|
|
+ :controls="false"
|
|
|
+ :append="'g'"
|
|
|
+ @reschange="number_change($event, 'gold_weight')"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="金属种类" prop="noble_metal">
|
|
|
+ <search-metal-kind
|
|
|
+ :value="ruleForm.noble_metal"
|
|
|
+ :size="'mini'"
|
|
|
+ :disabled="type === 'view'"
|
|
|
+ :isDetail="true"
|
|
|
+ :placeholder="'金属种类'"
|
|
|
+ @searchChange="noble_metalsearchChange"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="采购备注" prop="remark">
|
|
|
- <el-input
|
|
|
- placeholder="采购备注"
|
|
|
- maxlength="500"
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="配置要求" prop="config">
|
|
|
+ <el-select
|
|
|
+ v-model="ruleForm.config"
|
|
|
+ multiple
|
|
|
:disabled="type === 'view'"
|
|
|
- v-model="ruleForm.remark"
|
|
|
- ></el-input>
|
|
|
+ style="width: 100%"
|
|
|
+ placeholder="配置要求"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in options9"
|
|
|
+ :key="item + index"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="工艺说明" prop="cost_desc">
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="其他配置要求" prop="other_config" label-width="120px">
|
|
|
<el-input
|
|
|
- placeholder="工艺说明"
|
|
|
- maxlength="500"
|
|
|
+ placeholder="其他要求"
|
|
|
+ maxlength="100"
|
|
|
:disabled="type === 'view'"
|
|
|
- v-model="ruleForm.cost_desc"
|
|
|
+ v-model="ruleForm.other_config"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ </el-row>
|
|
|
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item
|
|
|
- label="商品图片(<1mb)"
|
|
|
- prop="good_img"
|
|
|
- v-if="ruleForm.good_img"
|
|
|
- class="activity-upload"
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item
|
|
|
+ label="商品图片(<1mb)"
|
|
|
+ prop="good_img"
|
|
|
+ v-if="ruleForm.good_img"
|
|
|
+ class="activity-upload"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="btnupload"
|
|
|
+ style="position: relative; margin-left: 10px"
|
|
|
+ v-for="(item, index) in ruleForm.good_img"
|
|
|
+ :key="index"
|
|
|
>
|
|
|
- <div
|
|
|
- class="btnupload"
|
|
|
- style="position: relative; margin-left: 10px"
|
|
|
- v-for="(item, index) in ruleForm.good_img"
|
|
|
- :key="index"
|
|
|
+ <img :src="ruleForm.good_img[index]" class="avatar" />
|
|
|
+ <i
|
|
|
+ v-if="type == 'add' || type === 'editBase' || type === 'edit'"
|
|
|
+ class="el-icon-close"
|
|
|
+ @click="closeImg(index, 'good_img')"
|
|
|
+ ></i>
|
|
|
+ </div>
|
|
|
+ <div v-if="type == 'view' ? false : true">
|
|
|
+ <i
|
|
|
+ class="el-icon-plus avatar-uploader-icon"
|
|
|
+ style="position: relative; width: 50px; height: 50px"
|
|
|
>
|
|
|
- <img :src="ruleForm.good_img[index]" class="avatar" />
|
|
|
- <i
|
|
|
- v-if="type == 'add' || type === 'editBase' || type === 'edit'"
|
|
|
- class="el-icon-close"
|
|
|
- @click="closeImg(index, 'good_img')"
|
|
|
- ></i>
|
|
|
- </div>
|
|
|
- <div v-if="type == 'view' ? false : true">
|
|
|
- <i
|
|
|
- class="el-icon-plus avatar-uploader-icon"
|
|
|
- style="position: relative; width: 50px; height: 50px"
|
|
|
- >
|
|
|
- <file-upload
|
|
|
- class="Upload"
|
|
|
- :accept="'.jpg,.png,.jpeg'"
|
|
|
- :multiple="true"
|
|
|
- :disabled="type === 'view'"
|
|
|
- :uploadcondition="beforeAvatarUpload"
|
|
|
- @UploadErrorEvent="UploadErrorEventgood_img"
|
|
|
- @UploadSuccessEvent="UploadSuccessEventgood_img"
|
|
|
- ></file-upload>
|
|
|
- </i>
|
|
|
- </div>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <file-upload
|
|
|
+ class="Upload"
|
|
|
+ :accept="'.jpg,.png,.jpeg'"
|
|
|
+ :multiple="true"
|
|
|
+ :disabled="type === 'view'"
|
|
|
+ :uploadcondition="beforeAvatarUpload"
|
|
|
+ @UploadErrorEvent="UploadErrorEventgood_img"
|
|
|
+ @UploadSuccessEvent="UploadSuccessEventgood_img"
|
|
|
+ ></file-upload>
|
|
|
+ </i>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
<el-form-item v-if="type !== 'view'">
|
|
|
<div style="width: 100%; display: flex; justify-content: flex-end">
|