|
@@ -28,6 +28,13 @@
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <template #priceBillingStandardId>
|
|
|
+ <div style="width: 100%">
|
|
|
+ <el-select v-model="formData.data.priceBillingStandardIdArr" placeholder="请选择加工计费标准" multiple style="width: 100%">
|
|
|
+ <el-option v-for="item in priceBillingStandardList" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" />
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</byForm>
|
|
|
<template #footer>
|
|
|
<el-button @click="openDialog = false" size="large">取 消</el-button>
|
|
@@ -334,10 +341,10 @@ const formConfig = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
|
- prop: "priceBillingStandardId",
|
|
|
- label: "加工计费标准",
|
|
|
+ label: "佣金规则",
|
|
|
+ prop: "commissionRule",
|
|
|
+ data: proxy.useUserStore().allDict["department_commissionRule"],
|
|
|
itemWidth: 50,
|
|
|
- data: priceBillingStandardList.value,
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
@@ -347,11 +354,9 @@ const formConfig = computed(() => {
|
|
|
itemWidth: 50,
|
|
|
},
|
|
|
{
|
|
|
- type: "select",
|
|
|
- label: "佣金规则",
|
|
|
- prop: "commissionRule",
|
|
|
- data: proxy.useUserStore().allDict["department_commissionRule"],
|
|
|
- itemWidth: 50,
|
|
|
+ type: "slot",
|
|
|
+ slotName: "priceBillingStandardId",
|
|
|
+ label: "加工计费标准",
|
|
|
},
|
|
|
{
|
|
|
type: "slot",
|
|
@@ -420,6 +425,7 @@ const clickModal = () => {
|
|
|
status: 1,
|
|
|
wlnWarehouseCodeArr: [],
|
|
|
wlnBrandArr: [],
|
|
|
+ priceBillingStandardIdArr: [],
|
|
|
};
|
|
|
openDialog.value = true;
|
|
|
};
|
|
@@ -435,6 +441,11 @@ const submitForm = () => {
|
|
|
} else {
|
|
|
formData.data.wlnWarehouseCode = "";
|
|
|
}
|
|
|
+ if (formData.data.priceBillingStandardIdArr && formData.data.priceBillingStandardIdArr.length > 0) {
|
|
|
+ formData.data.priceBillingStandardId = formData.data.priceBillingStandardIdArr.join(",");
|
|
|
+ } else {
|
|
|
+ formData.data.priceBillingStandardId = "";
|
|
|
+ }
|
|
|
proxy.post("/department/" + modalType.value, formData.data).then(() => {
|
|
|
ElMessage({
|
|
|
message: modalType.value == "add" ? "添加成功" : "编辑成功",
|
|
@@ -459,6 +470,11 @@ const clickUpdate = (row) => {
|
|
|
} else {
|
|
|
formData.data.wlnWarehouseCodeArr = [];
|
|
|
}
|
|
|
+ if (formData.data.priceBillingStandardId) {
|
|
|
+ formData.data.priceBillingStandardIdArr = formData.data.priceBillingStandardId.split(",");
|
|
|
+ } else {
|
|
|
+ formData.data.priceBillingStandardIdArr = [];
|
|
|
+ }
|
|
|
openDialog.value = true;
|
|
|
});
|
|
|
};
|