理化报告同步
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
type="success"
|
||||
icon="el-icon-refresh"
|
||||
size="mini"
|
||||
@click="phySyncShow = true"
|
||||
@click="phySync"
|
||||
>
|
||||
理化同步
|
||||
</el-button>
|
||||
@@ -252,7 +252,7 @@
|
||||
<MaterDtl :dialog-show.sync="materShow" :mater-opt-code.sync="materType" @tableChanged2="tableChanged2" />
|
||||
<Dialog1 :visiable1.sync="visiable1" :inspection-id="inspection_id" />
|
||||
<RelevancyDialog :dialog-show.sync="RelevancyShow" @RelevancyChanged="RelevancyChanged" />
|
||||
<PhySyncDialog :dialog-show.sync="phySyncShow" />
|
||||
<!-- <PhySyncDialog :dialog-show.sync="phySyncShow" />-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -432,6 +432,19 @@ export default {
|
||||
this.crud.notify('设置成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
},
|
||||
phySync() {
|
||||
const _selectData = this.$refs.table.selection
|
||||
if (_selectData.length === 0) {
|
||||
return this.crud.notify('请至少选择一条记录', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
}
|
||||
const data = {
|
||||
'data': _selectData
|
||||
}
|
||||
crudPhysicalMst.hpySync(data).then(res => {
|
||||
this.crud.toQuery()
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user