|
@@ -54,6 +54,7 @@
|
|
|
<a-button type="primary" @click="bitchCancelSubmitList" icon="close">批量取消提交</a-button>
|
|
|
<a-button type="primary" @click="push" icon="export">推送</a-button>
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('装箱单-面辅料')">装箱单面辅料导出</a-button>
|
|
|
+ <a-button type="primary" @click="synchronization" icon="reload">同步</a-button>
|
|
|
</div>
|
|
|
|
|
|
<!-- 子表 :scroll="{ x: 1500 }" 内容少 无需滚动-->
|
|
@@ -132,7 +133,7 @@ import moment from 'moment'
|
|
|
import addFabricDrawer from '@views/packing-list/packinglist-fabrics/addFabricDrawer.vue'
|
|
|
import detailsFabricDrawer from '@views/packing-list/packinglist-fabrics/detailsFabricDrawer.vue'
|
|
|
import editFabricDrawer from '@views/packing-list/packinglist-fabrics/editFabricDrawer.vue'
|
|
|
-import { fabricList,fabricListId,deleteFabricList,submitList,cancelSubmit,bitchSubmit,bitchCancelSubmit} from '@api/document/packing-list/packinglist-fabrics'
|
|
|
+import { fabricList,fabricListId,deleteFabricList,submitList,cancelSubmit,bitchSubmit,bitchCancelSubmit,synchronizationData} from '@api/document/packing-list/packinglist-fabrics'
|
|
|
|
|
|
export default {
|
|
|
name: 'FabricList', // 装箱单-面料
|
|
@@ -351,6 +352,20 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ // 同步
|
|
|
+ synchronization(){
|
|
|
+ this.$nextTick(() => {
|
|
|
+ synchronizationData().then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ this.$message.success('同步成功')
|
|
|
+ this.getFabricList();
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
// 操作 详情
|
|
|
details(record) {
|
|
|
console.log('详情', record.id)
|