Commit 9b618a17 by 王志慧

commit

1 parent 86f3940c
......@@ -89,6 +89,10 @@ export default {
set(val) {
this.$emit('update:visible', val)
}
},
id: {
type: String,
default: ''
}
},
data() {
......@@ -181,9 +185,10 @@ export default {
}
]
}
// this.$apis.purchaseShopping.purchaseOrderDetail({ orderCode: this.paramsObj.orderCode }).then(res => {
// this.detailInfo = res
// })
this.$apis.delivery.getDeliveryDetail({ id: this.id }).then(res => {
console.log(res)
// this.detailInfo = res
})
},
handleDelete(index, line) {
this.detailInfo.deliveryDetailList[index].goodsWareHousingList.splice(line, 1)
......@@ -201,27 +206,27 @@ export default {
this.$refs['addForm'].validate(valid => {
if (valid) {
let purchaseOrderGoodsList = []
// this.formdata.tableData.forEach(item => {
// purchaseOrderGoodsList.push({
// upgradeGoodsId: item.upgradeGoodsId,
// goodsName: item.goodsName,
// goodsNumber: item.goodsNumber,
// upgradePurchasePrice: item.upgradePurchasePrice,
// goodsTotalPrice: item.goodsTotalPrice
// })
// })
// let params = {
// saveOrWarehousing,
// purchaseOrderGoodsList
// }
// if (this.id) params.id = this.id
// this.$apis.product.addSelfOrder(params).then(res => {
// this.$notify({
// type: 'success',
// title: '操作成功'
// })
// this.goBack()
// })
// this.formdata.tableData.forEach(item => {
// purchaseOrderGoodsList.push({
// upgradeGoodsId: item.upgradeGoodsId,
// goodsName: item.goodsName,
// goodsNumber: item.goodsNumber,
// upgradePurchasePrice: item.upgradePurchasePrice,
// goodsTotalPrice: item.goodsTotalPrice
// })
// })
// let params = {
// saveOrWarehousing,
// purchaseOrderGoodsList
// }
// if (this.id) params.id = this.id
// this.$apis.product.addSelfOrder(params).then(res => {
// this.$notify({
// type: 'success',
// title: '操作成功'
// })
// this.goBack()
// })
}
})
}
......
......@@ -120,7 +120,7 @@ export default {
}
],
// 表格
getListApi: this.$apis.purchaseShopping.getPurchaseOrderList,
getListApi: this.$apis.delivery.getDeliveryList,
tableParams: {
listName: 'list',
tableOption: false,
......@@ -193,8 +193,8 @@ export default {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.placeOrderTimeStr.length) {
params.createdDateStart[0] = new Date(this.searchForm.placeOrderTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.createdDateEnd[1] = new Date(this.searchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
params.deliveryDateStart = new Date(this.searchForm.placeOrderTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.deliveryDateEnd = new Date(this.searchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
delete params.placeOrderTimeStr
......@@ -281,17 +281,12 @@ export default {
handleReset() {
this.searchForm = {
status: '',
deliveryStatus: '',
deliveryNumber: '',
deliveryCompany: '',
putStatus: '',
merchantId: '',
putMerchantId: '',
purchaseType: '',
sortType: 1,
orderTimeStr: [],
putTimeStr: [],
placeOrderTimeStr: [],
warehousingTimeStr: []
orderCode:'',
merchantName:'',
placeOrderTimeStr: []
}
this.handleSearch()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!