add:单据同步
This commit is contained in:
@@ -61,6 +61,13 @@ export function syncData(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
export function syncAnalyse(data) {
|
||||
return request({
|
||||
url: 'api/syncFormMapping/syncAnalyse',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default {
|
||||
add,
|
||||
@@ -70,5 +77,6 @@ export default {
|
||||
updateRows,
|
||||
getAllTableName,
|
||||
tableColumns,
|
||||
syncData
|
||||
syncData,
|
||||
syncAnalyse
|
||||
}
|
||||
|
||||
@@ -133,18 +133,18 @@
|
||||
title="表单同步测试"
|
||||
:visible.sync=syncShow
|
||||
width="600px"
|
||||
@close="syncTestCannel"
|
||||
@close="syncAnalyseCannel"
|
||||
>
|
||||
<el-form ref="form" :model="syncForm" :rules="rules" size="mini" label-width="50px">
|
||||
<el-form-item label="表单:" prop="occupystruct_qty">
|
||||
<el-input disabled v-model="syncForm.form_name" :precision="0" style="width: 150px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="测试数据" prop="testData">
|
||||
<el-input type="textarea" v-model="syncForm.testData" :precision="0" style="width: 450px;" />
|
||||
<el-form-item label="测试数据" prop="analyseData">
|
||||
<el-input type="textarea" v-model="syncForm.analyseData" :precision="0" style="width: 450px;" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button :loading="crud.cu === 2" type="primary" @click="syncTestSubmit">同步</el-button>
|
||||
<el-button :loading="crud.cu === 2" type="primary" @click="syncAnalyseSubmit">同步解析</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!--表格渲染-->
|
||||
@@ -295,10 +295,12 @@ export default {
|
||||
this.syncShow = true
|
||||
this.syncForm = row
|
||||
},
|
||||
syncTestSubmit(){
|
||||
this.crud.notify('操作成功'+row.form_type, CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
syncAnalyseSubmit(){
|
||||
crudFormMapping.syncAnalyse(this.syncForm).then(res => {
|
||||
this.crud.notify('解析成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
})
|
||||
},
|
||||
syncTestCannel(){
|
||||
syncAnalyseCannel(){
|
||||
this.syncForm = {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user