add:增加单据手动同步功能
This commit is contained in:
@@ -8,6 +8,14 @@ export function add(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function syncFeedBack(data) {
|
||||||
|
return request({
|
||||||
|
url: 'api/pmFormData/syncFeedBack',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function del(ids) {
|
export function del(ids) {
|
||||||
return request({
|
return request({
|
||||||
url: 'api/pmFormData',
|
url: 'api/pmFormData',
|
||||||
@@ -37,6 +45,7 @@ export function getParentFormTypes(desc) {
|
|||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getParentFormTypesByDesc(desc) {
|
export function getParentFormTypesByDesc(desc) {
|
||||||
return request({
|
return request({
|
||||||
url: 'api/bmFormStruc/getParentFormTypes/' + desc,
|
url: 'api/bmFormStruc/getParentFormTypes/' + desc,
|
||||||
@@ -51,4 +60,4 @@ export function getSonFormData(id) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default { add, edit, del, getFormType, getParentFormTypes, getParentFormTypesByDesc, getSonFormData }
|
export default { add, edit, del, getFormType, getParentFormTypes, getParentFormTypesByDesc, getSonFormData, syncFeedBack }
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
type="success"
|
type="success"
|
||||||
icon="el-icon-s-operation"
|
icon="el-icon-s-operation"
|
||||||
:disabled="!currentRow"
|
:disabled="!currentRow"
|
||||||
@click="syncFeekBack"
|
@click="syncFeedBack"
|
||||||
>
|
>
|
||||||
手动回传
|
手动回传
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -201,7 +201,7 @@ import rrOperation from '@crud/RR.operation'
|
|||||||
import pagination from '@crud/Pagination'
|
import pagination from '@crud/Pagination'
|
||||||
import formstruc from '@/views/wms/config_manage/formStruc/formstruc'
|
import formstruc from '@/views/wms/config_manage/formStruc/formstruc'
|
||||||
import ViewDialog from './ViewDialog'
|
import ViewDialog from './ViewDialog'
|
||||||
|
import crudClassstandard from '@/views/wms/base_manage/class_standard/classstandard'
|
||||||
// import UploadDialog from './UploadDialog'
|
// import UploadDialog from './UploadDialog'
|
||||||
|
|
||||||
const defaultForm = {
|
const defaultForm = {
|
||||||
@@ -331,8 +331,15 @@ export default {
|
|||||||
this.$refs.viewDialog.setForm(row)
|
this.$refs.viewDialog.setForm(row)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
syncFeekBack(row) {
|
syncFeedBack(row) {
|
||||||
console.log(this.currentRow)
|
crudFormData.syncFeedBack(JSON.stringify(this.currentRow))
|
||||||
|
.then(res => {
|
||||||
|
debugger
|
||||||
|
this.crud.notify(res) // 使用后端返回的消息
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
this.crud.notify('回传失败', error.message || '网络请求错误', 'error')
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleDtlCurrentChange(val) {
|
handleDtlCurrentChange(val) {
|
||||||
console.log(val)
|
console.log(val)
|
||||||
|
|||||||
Reference in New Issue
Block a user