|
@@ -97,7 +97,8 @@
|
|
|
<!-- 操作按钮区域 推送 导入 新增-->
|
|
|
<a-card :bordered="false" style="marginTop:10px;">
|
|
|
<div class="table-operator">
|
|
|
- <a-button type="primary" @click="openClothesAdd" icon="plus">新增</a-button>
|
|
|
+ <!-- <a-button type="primary" @click="openClothesAdd" icon="plus">新增</a-button> -->
|
|
|
+ <a-button type="primary" @click="referadvancePackingList" icon="ordered-list">参照预装箱单</a-button>
|
|
|
<a-button type="primary" @click="push" icon="export">推送</a-button>
|
|
|
<a-button type="primary" @click="bitchSubmit" icon="check">批量提交</a-button>
|
|
|
<a-button type="primary" @click="bitchCanelSubmit" icon="close">批量取消提交</a-button>
|
|
@@ -219,6 +220,7 @@
|
|
|
<div>
|
|
|
<clothesAdd-drawer ref="clothesAddDrawer" :fatherList="getSpltList" @ok="modalFormOk"></clothesAdd-drawer>
|
|
|
<detailsClothes-drawer ref="detailsClothesDrawer" :father="bb" @ok="modalFormOk"></detailsClothes-drawer>
|
|
|
+ <reference-pre-packlist ref="ReferencePrePacklist" @callback='referCallback' @ok="modalFormOk"></reference-pre-packlist>
|
|
|
<!-- <editClothes-drawer ref="editClothesDrawer" :father="cc" @ok="modalFormOk"></editClothes-drawer> -->
|
|
|
</div>
|
|
|
<!-- 导入确认框 -->
|
|
@@ -236,6 +238,7 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import { downFile } from '@/api/manage'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
+import ReferencePrePacklist from '@views/packing-list/packinglist-clothes/referencePrePacklist'
|
|
|
import clothesAddDrawer from '@views/packing-list/packinglist-clothes/clothesAddDrawer.vue'
|
|
|
import detailsClothesDrawer from '@views/packing-list/packinglist-clothes/detailsClothesDrawer.vue'
|
|
|
import editClothesDrawer from '@views/packing-list/packinglist-clothes/editClothesDrawer.vue'
|
|
@@ -245,7 +248,7 @@ import { spltList,deleteSpltList,spltListId,SubmitList,cancelSubmitList,bitchSub
|
|
|
export default {
|
|
|
name: 'ClothesList', // 装箱单-成衣
|
|
|
mixins: [JeecgListMixin],
|
|
|
- components: { JEllipsis, clothesAddDrawer, detailsClothesDrawer, editClothesDrawer },
|
|
|
+ components: { JEllipsis, clothesAddDrawer, detailsClothesDrawer, editClothesDrawer,ReferencePrePacklist },
|
|
|
data() {
|
|
|
// let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} /> // 省略
|
|
|
|
|
@@ -518,7 +521,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
//分页查询
|
|
|
- getSpltList() {
|
|
|
+ getSpltList() {
|
|
|
var that = this;
|
|
|
this.$nextTick(() => {
|
|
|
this.queryParam.pageSize=20
|
|
@@ -821,6 +824,17 @@ export default {
|
|
|
onDateChange(value, dateString) {
|
|
|
this.queryParam.stratDate = dateString[0]
|
|
|
this.queryParam.endDate = dateString[1]
|
|
|
+ },
|
|
|
+ // 参照预装箱单
|
|
|
+ referadvancePackingList() {
|
|
|
+ console.log('打开参照订单数据')
|
|
|
+ // 打开订单数据弹框
|
|
|
+ this.$refs.ReferencePrePacklist.referencePrePacklist = true
|
|
|
+ this.$refs.ReferencePrePacklist.queryParam = {}
|
|
|
+ this.$refs.ReferencePrePacklist.searchQuery()
|
|
|
+ },
|
|
|
+ referCallback(){
|
|
|
+ this.getSpltList()
|
|
|
},
|
|
|
// --------------------------------------
|
|
|
// ??
|