比例
This commit is contained in:
parent
8852b93fd8
commit
1adf886a4a
@ -80,7 +80,7 @@
|
||||
<el-input v-model="form.code" placeholder="请输入编码" />
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<!-- <el-row>
|
||||
<el-form-item label="是否分配手续费">
|
||||
<DictRadio v-model="form.divideFeeFlag" :radioList="userYesOrNoMap" radioData="sys_common_yesno" /> </el-form-item
|
||||
></el-row>
|
||||
@ -88,14 +88,33 @@
|
||||
<el-row>
|
||||
<el-form-item label="手续费分配方式">
|
||||
<DictRadio v-model="form.feeType" :radioList="userDivideFeeMap" radioData="trans_divide_feetype" /> </el-form-item
|
||||
></el-row>
|
||||
></el-row> -->
|
||||
<el-row>
|
||||
<el-form-item label="状态"> <DictRadio v-model="form.status" :radioList="userStatusMap" radioData="sys_normal_disable" /> </el-form-item
|
||||
></el-row>
|
||||
<el-row>
|
||||
<el-form-item label="适用订单类型">
|
||||
<DictRadio v-model="form.type" :radioList="userDivideRuleMap" radioData="trans_divide_order_type" /> </el-form-item
|
||||
></el-row>
|
||||
<!-- <el-form-item label="适用订单类型">
|
||||
<DictRadio v-model="form.type" :radioList="userDivideRuleMap" radioData="trans_divide_order_type" />
|
||||
</el-form-item> -->
|
||||
<el-form-item label="适用商品分类" prop="categoryId">
|
||||
<el-cascader
|
||||
style="width: 100%"
|
||||
v-model="form.type"
|
||||
:options="categoryOptions"
|
||||
:disabled="form.id != null"
|
||||
:props="{
|
||||
value: 'id',
|
||||
label: 'name',
|
||||
children: 'children',
|
||||
checkStrictly: false,
|
||||
emitPath: false
|
||||
}"
|
||||
placeholder="请选择分类"
|
||||
clearable
|
||||
filterable
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
|
||||
<el-form-item label="规则详情">
|
||||
<el-row :gutter="10" class="mb8">
|
||||
@ -117,18 +136,18 @@
|
||||
<el-col><el-input type="number" v-model="item.moneyPercent" placeholder="请输入编码" style="width: 150px" /></el-col>
|
||||
</el-row>
|
||||
</el-col>
|
||||
<el-col :span="7">
|
||||
<!-- <el-col :span="7">
|
||||
<el-row>
|
||||
<el-col>手续费分配比例</el-col>
|
||||
<el-col><el-input type="number" v-model="item.feePercent" placeholder="请输入编码" style="width: 150px" /></el-col>
|
||||
</el-row>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
<el-col :span="6">
|
||||
<el-row>
|
||||
<el-col>账户类型</el-col>
|
||||
<el-col>
|
||||
<el-select v-model="item.type" clearable placeholder="请选择" style="width: 150px">
|
||||
<el-option v-for="item in userDivideAccountMap" :key="item.value" :label="item.label" :value="Number(item.value)" />
|
||||
<el-option v-for="item in signList" :key="item.value" :label="item.label" :value="Number(item.value)" />
|
||||
</el-select>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -156,7 +175,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import { getUserDivideRuleDetail, getUserDivideRuleList, editUserDivideRule, addUserDivideRule, deleteUserDivideRule } from '@/api/trade/index';
|
||||
|
||||
import { listPmsProductCategory } from '@/api/pms/productCategory';
|
||||
export default {
|
||||
name: 'DivideRuleManage',
|
||||
data() {
|
||||
@ -202,7 +221,9 @@ export default {
|
||||
userDivideFeeMap: [],
|
||||
userDivideRuleMap: [],
|
||||
userStatusMap: [],
|
||||
userDivideAccountMap: []
|
||||
userDivideAccountMap: [],
|
||||
categoryOptions: [],
|
||||
signList: []
|
||||
};
|
||||
},
|
||||
async created() {
|
||||
@ -210,6 +231,12 @@ export default {
|
||||
await this.getPageEmu();
|
||||
},
|
||||
methods: {
|
||||
getSkuList() {
|
||||
listPmsProductCategory({ id: null }).then((response) => {
|
||||
this.categoryOptions = response.data;
|
||||
});
|
||||
},
|
||||
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
@ -253,6 +280,7 @@ export default {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = '添加分账规则';
|
||||
this.getSkuList();
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
@ -347,7 +375,13 @@ export default {
|
||||
const userDivideRuleMap = await this.getDictionaryByKey('trans_divide_order_type');
|
||||
const userStatusMap = await this.getDictionaryByKey('sys_normal_disable');
|
||||
const userDivideAccountMap = await this.getDictionaryByKey('trans_divide_account_type');
|
||||
|
||||
const listm = await this.getDictionaryByKey('sys_tenant_type');
|
||||
console.log(listm);
|
||||
listm.forEach((item) => {
|
||||
if (item.label != '商家') {
|
||||
this.signList.push(item);
|
||||
}
|
||||
});
|
||||
this.userYesOrNoMap = userYesOrNoMap;
|
||||
this.userDivideFeeMap = userDivideFeeMap;
|
||||
this.userDivideRuleMap = userDivideRuleMap;
|
||||
|
Loading…
x
Reference in New Issue
Block a user