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