Commit ad11d9dd by 王志慧

commit

1 parent f908af30
......@@ -166,7 +166,17 @@ export function exportExcel(params) {
})
}
// 采购订单入库
export function purchaseOrderPutIn(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseOrder.putIn`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取下单/入库门店
// export function getMerchantList(data) {
// params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
......@@ -183,4 +193,4 @@ export function exportExcel(params) {
// return http(data)
// }
export default {exportExcel, shoppingCarUpdateNumber, purchaseOrderAdd, shoppingCarAdd, shoppingCarRemove, updateSelectedFlag, listGroupByGoodsType, getPurchaseOrderList, purchaseOrderCancelOrCheck, purchaseOrderDetail, listWithPagePurchaseInfo, addressGet, addressSave }
\ No newline at end of file
export default { purchaseOrderPutIn,exportExcel, shoppingCarUpdateNumber, purchaseOrderAdd, shoppingCarAdd, shoppingCarRemove, updateSelectedFlag, listGroupByGoodsType, getPurchaseOrderList, purchaseOrderCancelOrCheck, purchaseOrderDetail, listWithPagePurchaseInfo, addressGet, addressSave }
\ No newline at end of file
......@@ -4,7 +4,7 @@
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<GLButton type="primary" size="small" @click="handleCreatePurchase" fn="创建采购">创建采购</GLButton>
<GLButton type="primary" size="small" @click="handleCreatePurchase" fn="创建采购">创建采购</GLButton>
<!-- <el-button type="primary" size="small" @click="handleCreatePurchase">创建采购</el-button> -->
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
</div>
......@@ -31,7 +31,8 @@
</template>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<GLButton type="text" size="small" v-show="scope.scope.status == 1" @click="handleCancel" fn="取消">取消</GLButton>
<GLButton type="text" size="small" v-show="scope.scope.status == 1" @click="handleCancel(scope.scope)" fn="取消">取消</GLButton>
<GLButton type="text" size="small" v-show="scope.scope.putStatus == 1" @click="handleWarehousing(scope.scope)" fn="入库">入库</GLButton>
<!-- <el-button type="text" v-show="scope.scope.status == 1" @click="handleCancel(scope.scope)">取消</el-button> -->
</div>
</GLTable>
......@@ -143,7 +144,7 @@ export default {
getListApi: this.$apis.purchaseShopping.getPurchaseOrderList,
tableParams: {
listName: 'list',
tableOption: true,
tableOption: false,
tableColumns: [
{
label: '订单编号',
......@@ -212,6 +213,11 @@ export default {
label: '订单状态',
prop: 'status',
addHtml: 'status'
},
{
label: '操作',
width: '220px',
addHtml: 'auth-button'
}
]
},
......@@ -253,7 +259,27 @@ export default {
resolve()
})
},
// 入库
handleWarehousing(row) {
this.$confirm('订单入库后自动更新对应的库存,可在入库管理中查看记录。是否确定入库?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$apis.purchaseShopping
.purchaseOrderPutIn({
orderCode: row.orderCode
})
.then(res => {
this.$notify({
type: 'success',
title: '操作成功'
})
this.$refs.orderRef.refreshTable()
})
.catch(() => {})
})
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, {
confirmButtonText: '确定',
......@@ -369,6 +395,5 @@ export default {
@include dot;
background: $color-gray;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!