|
|
@@ -60,18 +60,9 @@
|
|
|
<template #table-header-inTurn>
|
|
|
<div class="set-sort">
|
|
|
<span>排序</span>
|
|
|
- <el-button
|
|
|
- v-if="!sort.status"
|
|
|
- icon="el-icon-edit-outline"
|
|
|
- size="small"
|
|
|
- type="text"
|
|
|
- @click="showSort"
|
|
|
- class="show"
|
|
|
- ></el-button>
|
|
|
-
|
|
|
- <el-button class="hide" v-else size="mini" @click="hideSort" type="primary"
|
|
|
- >完成</el-button
|
|
|
- >
|
|
|
+ <el-button v-if="!sort.status" icon="el-icon-edit-outline" size="small" type="text" @click="showSort" class="show" >
|
|
|
+ </el-button>
|
|
|
+ <el-button class="hide" v-else size="mini" @click="hideSort" type="primary" >完成</el-button >
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -174,6 +165,14 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <el-form-item label="排序" prop="inTurn">
|
|
|
+ <el-input
|
|
|
+ v-model="replaceForm.inTurn"
|
|
|
+ placeholder="请输入数值"
|
|
|
+ size="small"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
|
|
|
</el-form>
|
|
|
</div>
|
|
|
@@ -220,6 +219,7 @@ export default {
|
|
|
smallUnit: '',
|
|
|
stockWarning:'',
|
|
|
weight:'',
|
|
|
+ inTurn:100,
|
|
|
ratio:'',
|
|
|
ratioType:0,
|
|
|
ratioTypeName:''
|
|
|
@@ -256,6 +256,10 @@ export default {
|
|
|
weight: {
|
|
|
required: true,
|
|
|
message: '重量不能为空',
|
|
|
+ },
|
|
|
+ inTurn: {
|
|
|
+ required: true,
|
|
|
+ message: '排序不能为空',
|
|
|
}
|
|
|
},
|
|
|
//分类列表
|
|
|
@@ -321,6 +325,7 @@ export default {
|
|
|
stockWarning:'',
|
|
|
className:'',
|
|
|
weight:'',
|
|
|
+ inTurn:100,
|
|
|
ratio:'',
|
|
|
ratioType:0,
|
|
|
py:''
|
|
|
@@ -359,6 +364,10 @@ export default {
|
|
|
weight: {
|
|
|
required: true,
|
|
|
message: '重量不能为空',
|
|
|
+ },
|
|
|
+ inTurn:{
|
|
|
+ required:true,
|
|
|
+ message:'排序不能为空',
|
|
|
}
|
|
|
};
|
|
|
let index = this.itemClassList.findIndex((e) => e.id == res.classId)
|
|
|
@@ -370,6 +379,7 @@ export default {
|
|
|
this.replaceForm.smallUnit = res.smallUnit
|
|
|
this.replaceForm.stockWarning = res.stockWarning
|
|
|
this.replaceForm.weight = res.weight
|
|
|
+ this.replaceForm.inTurn = res.inTurn
|
|
|
this.replaceForm.ratio = res.ratio
|
|
|
this.replaceForm.ratioType = res.ratioType
|
|
|
if(res.ratioType == 0){
|