|
@@ -126,7 +126,17 @@ export default {
|
|
|
if (valid) {
|
|
|
try {
|
|
|
// try
|
|
|
- const params = { ...this.params };
|
|
|
+ this.loading = true;
|
|
|
+ const {
|
|
|
+ params,
|
|
|
+ params: { priceApplyOrgs, priceApplyItems },
|
|
|
+ } = this;
|
|
|
+ params.priceApplyOrgs = priceApplyOrgs.filter(
|
|
|
+ (item) => item.orgName
|
|
|
+ );
|
|
|
+ params.priceApplyItems = priceApplyItems.filter(
|
|
|
+ (item) => item.materialName
|
|
|
+ );
|
|
|
const { msg, code } = await SAVE(params);
|
|
|
if (code === 200) {
|
|
|
this.hide();
|
|
@@ -163,6 +173,7 @@ export default {
|
|
|
<span>
|
|
|
<el-button
|
|
|
:size="size"
|
|
|
+ :loading="loading"
|
|
|
circle
|
|
|
icon="el-icon-check"
|
|
|
@click="useSubmit('ruleForm')"
|