|
@@ -82,7 +82,7 @@
|
|
|
<a-button type="primary" @click="handleAddColumn" icon="plus" style="margin:10px 10px;">
|
|
|
増行
|
|
|
</a-button>
|
|
|
- <a-button type="primary" @click="handleAddColumn" icon="plus" style="margin:10px 0;">
|
|
|
+ <a-button type="primary" @click="queryLatelyDeclarationElements" :disabled="query=='1'" icon="plus" style="margin:10px 0;">
|
|
|
查询
|
|
|
</a-button>
|
|
|
<!-- 子表 -->
|
|
@@ -170,7 +170,7 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import moment from 'moment'
|
|
|
-import { syDeclarationElementsAdd } from '@api/document/shipmentList'
|
|
|
+import { syDeclarationElementsAdd,queryLatelyDeclarationElements } from '@api/document/shipmentList'
|
|
|
import {Dictionaries} from '@api/document/book.js'
|
|
|
|
|
|
export default {
|
|
@@ -184,6 +184,7 @@ export default {
|
|
|
return {
|
|
|
loading: false, // 表格加载
|
|
|
pushState: false, //是否推送
|
|
|
+ query:'1',//是否查询
|
|
|
// 子表表头
|
|
|
declareElementsColumns: [
|
|
|
{
|
|
@@ -253,6 +254,24 @@ export default {
|
|
|
}
|
|
|
this.declareElementsData.push(addrow)
|
|
|
},
|
|
|
+
|
|
|
+ //查询最近报关信息
|
|
|
+ queryLatelyDeclarationElements(){
|
|
|
+
|
|
|
+ var hscode = this.declareElements.hsCode;
|
|
|
+
|
|
|
+ queryLatelyDeclarationElements({hscode:hscode}).then(res=>{
|
|
|
+
|
|
|
+ if(res.success){
|
|
|
+ res.result['itemIds'] = this.declareElements.itemIds;
|
|
|
+ this.declareElements=res.result;
|
|
|
+ this.declareElementsData=res.result.syDeclarationElementsItemList;
|
|
|
+ //console.info("赋值数据:"+JSON.stringify(this.declareElements))
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 报关要素 保存
|
|
|
addSave() {
|
|
|
//表单验证
|