|
@@ -16,6 +16,8 @@
|
|
</div> -->
|
|
</div> -->
|
|
</PrintPanel>
|
|
</PrintPanel>
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
|
|
+ <a-button id="salesNewOrderEdit-del-btn" class="button-default" type="link" @click="handleOk([])"><a-icon type="close" />清空单据</a-button>
|
|
|
|
+ <a-divider type="vertical" />
|
|
<a-button id="salesNewOrderEdit-add-btn" type="link" @click="openModal=true"><a-icon type="plus" />选择单据</a-button>
|
|
<a-button id="salesNewOrderEdit-add-btn" type="link" @click="openModal=true"><a-icon type="plus" />选择单据</a-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -410,11 +412,16 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleOk (selectedRows) {
|
|
handleOk (selectedRows) {
|
|
- this.chooseLoadData = this.chooseLoadData.concat(selectedRows).sort((a, b) => {
|
|
|
|
- const at = new Date(a.auditTime).getTime()
|
|
|
|
- const bt = new Date(b.auditTime).getTime()
|
|
|
|
- return at - bt
|
|
|
|
- })
|
|
|
|
|
|
+ if(selectedRows.length){
|
|
|
|
+ this.chooseLoadData = this.chooseLoadData.concat(selectedRows).sort((a, b) => {
|
|
|
|
+ const at = new Date(a.auditTime).getTime()
|
|
|
|
+ const bt = new Date(b.auditTime).getTime()
|
|
|
|
+ return at - bt
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.chooseLoadData = selectedRows
|
|
|
|
+ }
|
|
|
|
+
|
|
this.amountSettledChange()
|
|
this.amountSettledChange()
|
|
},
|
|
},
|
|
// 返回列表
|
|
// 返回列表
|