This commit is contained in:
parent
3226b3ce4f
commit
31b32f4f2f
|
|
@ -73,7 +73,7 @@ export function getUseringData(query) {
|
||||||
// 领用申请提交-新增
|
// 领用申请提交-新增
|
||||||
export function receiveSubmit(data) {
|
export function receiveSubmit(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/directRotation/submit',
|
url: '/material/directRotation/submitNew',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -232,7 +232,7 @@
|
||||||
@click="handleSave"
|
@click="handleSave"
|
||||||
v-if="!isDetail"
|
v-if="!isDetail"
|
||||||
>
|
>
|
||||||
{{ isEdit ? '保存' : '发起申请' }}
|
{{ isEdit ? '保存' : '发起提交' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
@ -1047,7 +1047,7 @@ export default {
|
||||||
if (this.selectedDataArray.length > 0) {
|
if (this.selectedDataArray.length > 0) {
|
||||||
this.$refs['maForm'].validate(valid => {
|
this.$refs['maForm'].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$modal.confirm('是否确认申请').then(async () => {
|
this.$modal.confirm('是否确认提交').then(async () => {
|
||||||
const isPass = this.multipleSelection.every(item => {
|
const isPass = this.multipleSelection.every(item => {
|
||||||
return item.directNum
|
return item.directNum
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -971,6 +971,7 @@ export default {
|
||||||
|
|
||||||
//同步
|
//同步
|
||||||
synchSubmit() {
|
synchSubmit() {
|
||||||
|
const loading = this.$loading({ text: '同步中...' })
|
||||||
const params = {
|
const params = {
|
||||||
checkTimeSynch: this.dataSynch.checkTimeSynch,
|
checkTimeSynch: this.dataSynch.checkTimeSynch,
|
||||||
nextCheckTimeSynch: this.dataSynch.nextCheckTimeSynch,
|
nextCheckTimeSynch: this.dataSynch.nextCheckTimeSynch,
|
||||||
|
|
@ -990,9 +991,15 @@ export default {
|
||||||
pdfName: ''
|
pdfName: ''
|
||||||
}
|
}
|
||||||
this.dataSynch = {}
|
this.dataSynch = {}
|
||||||
|
loading.close()
|
||||||
}
|
}
|
||||||
this.getList()
|
|
||||||
})
|
})
|
||||||
|
.finally(() => {
|
||||||
|
// 4. 无论成功或失败,最后都要关闭 loading
|
||||||
|
loading.close();
|
||||||
|
// 5. 刷新列表
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// handleExport() {
|
// handleExport() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue