|
@@ -318,7 +318,7 @@
|
|
|
<declareElements-modal ref="declareElementsModal" @table="getShipmentList" @close-declare="closeDeclare"></declareElements-modal>
|
|
|
|
|
|
<!-- 维护款号成分 -->
|
|
|
- <itemNumEle-modal ref="itemNumEleModal" @close="judageAdd"></itemNumEle-modal>
|
|
|
+ <itemNumEle-modal ref="itemNumEleModal" @close="closeItemNumEle"></itemNumEle-modal>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -725,7 +725,7 @@ export default {
|
|
|
//关闭申报要素弹窗
|
|
|
async closeDeclare(){
|
|
|
//判断是否是新增的数据
|
|
|
- await this.judageAdd()
|
|
|
+ // await this.judageAdd()
|
|
|
var cc = []
|
|
|
this.shipmentListData.map(item =>{
|
|
|
this.selectedRows.map(item1 =>{
|
|
@@ -738,6 +738,10 @@ export default {
|
|
|
cc.map(item => this.selectedRowKeys.push(item.itemIds))
|
|
|
},
|
|
|
|
|
|
+ //关闭维护款号成分弹窗
|
|
|
+ closeItemNumEle(){
|
|
|
+
|
|
|
+ },
|
|
|
// // 新增
|
|
|
// addShipDet() {
|
|
|
// this.$refs.addShipDetDrawer.syShippingDetailsItemList = [];
|
|
@@ -1006,10 +1010,16 @@ export default {
|
|
|
submitShipment({ submitListId: this.selectedRowKeys, type: '1' ,grouyIdList:grouyIdList}).then(res => {
|
|
|
this.loading = false
|
|
|
if (res.success) {
|
|
|
- console.log('提交成功,单据状态改为【已提交】')
|
|
|
- this.shipmentListData.submitStatus = '1'
|
|
|
+ // this.shipmentListData.submitStatus = '1'
|
|
|
+ this.shipmentListData.map(item =>{
|
|
|
+ this.selectedRowKeys.map(e=>{
|
|
|
+ if(item.itemIds == e){
|
|
|
+ item.submitStatus = '1'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
this.selectedRowKeys =[]
|
|
|
- this.judageAdd()
|
|
|
+ // this.judageAdd()
|
|
|
// 渲染 发运明细列表
|
|
|
this.$message.success('提交成功')
|
|
|
}else {
|
|
@@ -1027,10 +1037,16 @@ export default {
|
|
|
cancelSubmitShipment({ submitListId: this.selectedRowKeys, type: '2' }).then(res => {
|
|
|
this.loading = false
|
|
|
if (res.success) {
|
|
|
- console.log('取消提交成功,单据状态改为【仅保存】')
|
|
|
- this.shipmentListData.submitStatus = '0'
|
|
|
+ // this.shipmentListData.submitStatus = '0'
|
|
|
+ this.shipmentListData.map(item =>{
|
|
|
+ this.selectedRowKeys.map(e=>{
|
|
|
+ if(item.itemIds == e){
|
|
|
+ item.submitStatus = '0'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
this.selectedRowKeys = []
|
|
|
- this.judageAdd()
|
|
|
+ // this.judageAdd()
|
|
|
this.$message.success('取消提交成功')
|
|
|
}else {
|
|
|
this.$message.error(res.message)
|