|
@@ -130,8 +130,8 @@
|
|
|
<div class="table-operator">
|
|
|
<!-- <a-button type="primary" @click.stop="addShipDet" icon="plus">新增</a-button> -->
|
|
|
<a-button type="primary" @click.stop="referOrderDataOpen" icon="plus" >参照订单数据</a-button>
|
|
|
- <a-button type="primary" icon="download" @click="handleExportXls('出运成衣')">成衣导出-预装箱单</a-button>
|
|
|
- <a-button type="primary" icon="download" @click="handleExportXls('出运面辅料')">面辅料导出-装箱单</a-button>
|
|
|
+ <a-button type="primary" icon="download" @click="handleExportXls('出运成衣')" :disabled="exportButton == '1'">成衣导出-预装箱单</a-button>
|
|
|
+ <a-button type="primary" icon="download" @click="handleExportXls('出运面辅料')" :disabled="exportButton1 == '1'">面辅料导出-装箱单</a-button>
|
|
|
<a-button type="primary" icon="download" @click="exportXlsShipment('明细')">出运明细导出</a-button>
|
|
|
<a-button type="primary" icon="check" @click="submit">批量提交</a-button>
|
|
|
<a-button type="primary" icon="close" @click="cancelSubmit">批量取消提交</a-button>
|
|
@@ -325,6 +325,8 @@ export default {
|
|
|
let ellipsis = (v,l) => <j-ellipsis value={v} length={l} />
|
|
|
return {
|
|
|
loading: false, // 表格加载
|
|
|
+ exportButton: '1',
|
|
|
+ exportButton1:'1',
|
|
|
id: '',
|
|
|
monthStartDate:'',//本月1号
|
|
|
nextMonthStartDate:'',//下月1号
|
|
@@ -601,7 +603,6 @@ export default {
|
|
|
created() {
|
|
|
// this.getShipmentList() // 渲染 发运明细列表
|
|
|
this.defalutDate()
|
|
|
-
|
|
|
},
|
|
|
methods: {
|
|
|
moment,
|
|
@@ -628,6 +629,13 @@ export default {
|
|
|
await shipmentList(this.queryParam).then(res => {
|
|
|
if (res.success) {
|
|
|
this.loading = false
|
|
|
+ if(this.queryParam.flourOrGarment == '1'){
|
|
|
+ this.exportButton ='0'
|
|
|
+ this.exportButton1 = '1'
|
|
|
+ }else {
|
|
|
+ this.exportButton ='1'
|
|
|
+ this.exportButton1 = '0'
|
|
|
+ }
|
|
|
this.shipmentListData = res.result.records
|
|
|
for (var i=0; i<this.shipmentListData.length; i++){
|
|
|
this.shipmentListData.randomId = randomUUID();
|
|
@@ -936,6 +944,7 @@ export default {
|
|
|
this.$message.error('预发货时间区间超过31天,请重新选择!');
|
|
|
}else {
|
|
|
this.getShipmentList()
|
|
|
+
|
|
|
}
|
|
|
}else{
|
|
|
this.getShipmentList()
|