推荐采购计划bug解决,状态变化
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
icon="el-icon-s-operation"
|
||||
@click="showClac(scope.row)"
|
||||
v-if="scope.row.orderStatus === EOrderStatus.NEW"
|
||||
>智能采购单</el-button>
|
||||
>初次采购推荐</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
<div style="font-size: 13px; color: #888;">产品ID: {{ item.productName }} ({{ item.productCode }})</div>
|
||||
<div style="font-size: 13px; color: #888;">备注: {{ item.remark }}</div>
|
||||
<div style="margin-top: 12px; text-align: right;">
|
||||
<el-button size="mini" type="primary" icon="el-icon-edit" @click.stop="goToDetail(item.scriptId)">详情</el-button>
|
||||
<el-button size="mini" type="primary" icon="el-icon-edit" @click.stop="handleUpdate(item)">修改</el-button>
|
||||
<el-button size="mini" type="danger" icon="el-icon-delete" @click.stop="handleDelete(item)">删除</el-button>
|
||||
</div>
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
<script>
|
||||
import RecommendPurchasePanel from './RecommendPurchasePanel.vue'
|
||||
import CreatePurchasePanel from './CreatePurchasePanel.vue'
|
||||
import { updatePurchasePlan } from '@/api/wms/purchasePlan'
|
||||
import { EOrderStatus } from '@/api/wms/order'
|
||||
|
||||
export default {
|
||||
name: 'PurchasePlanClac',
|
||||
@@ -38,7 +40,13 @@ export default {
|
||||
this.recommendData = data
|
||||
},
|
||||
onConfirm(submitData) {
|
||||
this.$emit('confirm', submitData)
|
||||
updatePurchasePlan({
|
||||
orderId: this.orderId,
|
||||
orderStatus: EOrderStatus.PRODUCTIONING,
|
||||
}).then(response => {
|
||||
this.$emit('confirm', submitData)
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user