|
@@ -10,7 +10,75 @@
|
|
|
:size="'mini'"
|
|
|
>
|
|
|
<el-row>
|
|
|
- <el-col :span="24"
|
|
|
+
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-table
|
|
|
+ :data="ruleForm.good_ladder"
|
|
|
+ :size="'mini'"
|
|
|
+ border
|
|
|
+ stripe
|
|
|
+ style="width: 100%; margin: 0 0 20px 0"
|
|
|
+ >
|
|
|
+ <el-table-column prop="min_num" label="起订量(>=)" />
|
|
|
+ <el-table-column prop="sale_price" label="售价" />
|
|
|
+ <el-table-column prop="market_price" label="市场价" />
|
|
|
+ <el-table-column prop="market_platform" label="对比平台" />
|
|
|
+ <el-table-column prop="status" label="状态">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ :type="scope.row.status == '1' ? '' : 'warning'"
|
|
|
+ >{{ scope.row.status == "1" ? "启用" : "禁用" }}</el-tag
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="right">
|
|
|
+ <template slot="header" slot-scope="scope">
|
|
|
+ <span>操作</span>
|
|
|
+ <el-tooltip effect="dark" content="添加阶梯" placement="top">
|
|
|
+ <i
|
|
|
+ class="el-icon-circle-plus-outline tb-icon fr"
|
|
|
+ @click="openCostEdit(-1, {})"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tooltip effect="dark" content="修改" placement="top">
|
|
|
+ <i
|
|
|
+ class="el-icon-edit tb-icon"
|
|
|
+ @click="openCostEdit(scope.$index, scope.row)"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+
|
|
|
+ <el-tooltip effect="dark" content="删除" placement="top">
|
|
|
+ <i
|
|
|
+ class="el-icon-delete tb-icon"
|
|
|
+ @click="openCostEditDelete(scope.$index)"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <!-- 弹窗 新增/修改 -->
|
|
|
+ <cost-form-add-edit
|
|
|
+ :index="costmodelIndex"
|
|
|
+ :show-model="costshowModel"
|
|
|
+ :sitem="costsitem"
|
|
|
+ :spuCode="spuCode"
|
|
|
+ @refresh="costrefreshEdit"
|
|
|
+ @cancel="costshowModel = false"
|
|
|
+ />
|
|
|
+ <el-form-item class="fr">
|
|
|
+ <el-button
|
|
|
+ v-if="!isDetail"
|
|
|
+ :size="'mini'"
|
|
|
+ type="primary"
|
|
|
+ @click="submitForm"
|
|
|
+ >保 存
|
|
|
+ </el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24"
|
|
|
><el-form-item label="售价凭证类型" prop="proof_type">
|
|
|
<el-radio-group
|
|
|
v-model="ruleForm.proof_type"
|
|
@@ -143,73 +211,6 @@
|
|
|
</ul>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-table
|
|
|
- :data="ruleForm.good_ladder"
|
|
|
- :size="'mini'"
|
|
|
- border
|
|
|
- stripe
|
|
|
- style="width: 100%; margin: 0 0 20px 0"
|
|
|
- >
|
|
|
- <el-table-column prop="min_num" label="起订量(>=)" />
|
|
|
- <el-table-column prop="sale_price" label="售价" />
|
|
|
- <el-table-column prop="market_price" label="市场价" />
|
|
|
- <el-table-column prop="market_platform" label="对比平台" />
|
|
|
- <el-table-column prop="status" label="状态">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-tag
|
|
|
- :size="'mini'"
|
|
|
- :type="scope.row.status == '1' ? '' : 'warning'"
|
|
|
- >{{ scope.row.status == "1" ? "启用" : "禁用" }}</el-tag
|
|
|
- >
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column fixed="right">
|
|
|
- <template slot="header" slot-scope="scope">
|
|
|
- <span>操作</span>
|
|
|
- <el-tooltip effect="dark" content="添加阶梯" placement="top">
|
|
|
- <i
|
|
|
- class="el-icon-circle-plus-outline tb-icon fr"
|
|
|
- @click="openCostEdit(-1, {})"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-tooltip effect="dark" content="修改" placement="top">
|
|
|
- <i
|
|
|
- class="el-icon-edit tb-icon"
|
|
|
- @click="openCostEdit(scope.$index, scope.row)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
-
|
|
|
- <el-tooltip effect="dark" content="删除" placement="top">
|
|
|
- <i
|
|
|
- class="el-icon-delete tb-icon"
|
|
|
- @click="openCostEditDelete(scope.$index)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <!-- 弹窗 新增/修改 -->
|
|
|
- <cost-form-add-edit
|
|
|
- :index="costmodelIndex"
|
|
|
- :show-model="costshowModel"
|
|
|
- :sitem="costsitem"
|
|
|
- :spuCode="spuCode"
|
|
|
- @refresh="costrefreshEdit"
|
|
|
- @cancel="costshowModel = false"
|
|
|
- />
|
|
|
- <el-form-item class="fr">
|
|
|
- <el-button
|
|
|
- v-if="!isDetail"
|
|
|
- :size="'mini'"
|
|
|
- type="primary"
|
|
|
- @click="submitForm"
|
|
|
- >保 存
|
|
|
- </el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</template>
|