|
@@ -14,7 +14,7 @@
|
|
|
<a-button type="primary">导入</a-button>
|
|
|
</a-upload>
|
|
|
<a-button @click="handleCancel" style="margin-left: 8px;">取消</a-button>
|
|
|
- <a-button type="primary" @click="handleOk">保存</a-button>
|
|
|
+ <a-button type="primary" @click="handleOk" :disabled="buttonLoading">保存</a-button>
|
|
|
</template>
|
|
|
<div class="table-page-search-wrapper">
|
|
|
<a-form-model layout="inline" ref="form" :model="formState" :rules="validatorRules">
|
|
@@ -145,7 +145,7 @@
|
|
|
</span>
|
|
|
<!-- 计划员 -->
|
|
|
<span slot="jhyByData" slot-scope="text, record, index">
|
|
|
- <a-select v-model="record.jhyByData" style="width:100%" mode="multiple"
|
|
|
+ <a-select v-model="record.jhyNameData" style="width:100%" mode="multiple"
|
|
|
show-search :filterOption="filterOption" @change="handleChange(record)">
|
|
|
<a-select-option
|
|
|
v-for="(item,index) in jhyNameOption"
|
|
@@ -231,6 +231,7 @@
|
|
|
jhyNameOption:[],
|
|
|
dateFormat: 'YYYY-MM-DD',
|
|
|
passVerification:'yes',
|
|
|
+ buttonLoading:false,
|
|
|
validatorRules: {
|
|
|
name:[{required: true, message: '名称不能为空!'}],
|
|
|
code:[{required: true, message: '编号不能为空!'}],
|
|
@@ -557,14 +558,17 @@
|
|
|
})
|
|
|
obj.syCarryBList = this.syCarryBTable.dataSource
|
|
|
await this.judageTablez(obj.syCarryBList)
|
|
|
+ this.buttonLoading = true
|
|
|
if(this.defultMethods == 'add' && this.passVerification == 'yes'){
|
|
|
subimtList(obj).then(res => {
|
|
|
if (res.success) {
|
|
|
this.$message.success('新增成功')
|
|
|
this.handleCancel()
|
|
|
this.$emit('close')
|
|
|
+ this.buttonLoading = false
|
|
|
}else{
|
|
|
this.$message.error(res.message);
|
|
|
+ this.buttonLoading = false
|
|
|
}
|
|
|
})
|
|
|
}else if(this.passVerification == 'yes'){
|
|
@@ -573,8 +577,10 @@
|
|
|
this.$message.success('编辑成功')
|
|
|
this.handleCancel()
|
|
|
this.$emit('close')
|
|
|
+ this.buttonLoading = false
|
|
|
}else{
|
|
|
this.$message.warning(res.message)
|
|
|
+ this.buttonLoading = false
|
|
|
}
|
|
|
})
|
|
|
}
|