|
@@ -201,39 +201,57 @@ export default {
|
|
|
"id": "202212004124804",
|
|
|
"content": this.form
|
|
|
})
|
|
|
- if (res.code == 0){
|
|
|
- this.tool.showMessage(res,()=>{})
|
|
|
- }else {
|
|
|
- let delId = []
|
|
|
- console.log(this.delList,'99999999%%%')
|
|
|
- delId = this.delList.map(item=>item.sa_logistics_itemsid)
|
|
|
- const res1 = await this.$api.requested({
|
|
|
- "id": "20221122133404",
|
|
|
- "content": {
|
|
|
- "sa_logisticsid":this.$route.query.id,
|
|
|
- "sa_logistics_itemsids":delId
|
|
|
- }
|
|
|
- })
|
|
|
- this.tool.showMessage(res1,()=>{
|
|
|
- this.drawer = false
|
|
|
- this.$emit('onSuccess')
|
|
|
- this.form = {
|
|
|
- "freightamount": "",
|
|
|
- "logisticno": "",
|
|
|
- "paytype": "",
|
|
|
- "remarks": "",
|
|
|
- "sa_dispatchids": [],
|
|
|
- "sa_logiscompid": 0,
|
|
|
- "sa_logisticsid": 0,
|
|
|
- "sys_enterpriseid": '',
|
|
|
- "carnum":"",
|
|
|
- "logisphone":"",
|
|
|
- "logiscontact":"",
|
|
|
- "rec_contactsid":'',
|
|
|
- "billdate":''
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
+ this.drawer = false
|
|
|
+ this.$emit('onSuccess')
|
|
|
+ this.form = {
|
|
|
+ "freightamount": "",
|
|
|
+ "logisticno": "",
|
|
|
+ "paytype": "",
|
|
|
+ "remarks": "",
|
|
|
+ "sa_dispatchids": [],
|
|
|
+ "sa_logiscompid": 0,
|
|
|
+ "sa_logisticsid": 0,
|
|
|
+ "sys_enterpriseid": '',
|
|
|
+ "carnum":"",
|
|
|
+ "logisphone":"",
|
|
|
+ "logiscontact":"",
|
|
|
+ "rec_contactsid":'',
|
|
|
+ "billdate":''
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // if (res.code == 0){
|
|
|
+ // this.tool.showMessage(res,()=>{})
|
|
|
+ // }else {
|
|
|
+ // let delId = []
|
|
|
+ // delId = this.delList.map(item=>item.sa_logistics_itemsid)
|
|
|
+ // const res1 = await this.$api.requested({
|
|
|
+ // "id": "20221122133404",
|
|
|
+ // "content": {
|
|
|
+ // "sa_logisticsid":this.$route.query.id,
|
|
|
+ // "sa_logistics_itemsids":delId
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // this.tool.showMessage(res1,()=>{
|
|
|
+ // this.drawer = false
|
|
|
+ // this.$emit('onSuccess')
|
|
|
+ // this.form = {
|
|
|
+ // "freightamount": "",
|
|
|
+ // "logisticno": "",
|
|
|
+ // "paytype": "",
|
|
|
+ // "remarks": "",
|
|
|
+ // "sa_dispatchids": [],
|
|
|
+ // "sa_logiscompid": 0,
|
|
|
+ // "sa_logisticsid": 0,
|
|
|
+ // "sys_enterpriseid": '',
|
|
|
+ // "carnum":"",
|
|
|
+ // "logisphone":"",
|
|
|
+ // "logiscontact":"",
|
|
|
+ // "rec_contactsid":'',
|
|
|
+ // "billdate":''
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
},
|
|
|
onClose () {
|
|
|
this.$refs['ent'].form = this.$refs['logis'].form = {}
|