Commit 9b618a17 by 王志慧

commit

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