Commit 30c6aa39 authored by hiyonx's avatar hiyonx

更新销售订单sap

parent ca67f1ab
......@@ -10,10 +10,11 @@ export function listFactoryQuote(query) {
}
// 查询工厂报价详细
export function getFactoryQuote(id) {
export function getFactoryQuote(query) {
return request({
url: '/qt/factoryQuote/' + id,
method: 'get'
url: '/qt/factoryQuote/',
method: 'get',
params: query
})
}
......
......@@ -94,6 +94,7 @@
<el-dialog :visible.sync="showDetail" title="采订单详情" width="1200px">
<el-table :data="detailList" max-height="600" size="mini">
<el-table-column label="产品名称" prop="itemName" show-overflow-tooltip width="120"/>
<el-table-column label="客户单号" prop="poOrderNo" show-overflow-tooltip/>
<el-table-column label="客户产品代码" prop="poProductName" show-overflow-tooltip/>
<el-table-column label="客户产品名称" prop="poProductNo" show-overflow-tooltip/>
......@@ -128,7 +129,7 @@
<el-table-column label="条码" prop="barCode" show-overflow-tooltip/>
<el-table-column label="印刷方向" prop="printingDirection" show-overflow-tooltip/>
<el-table-column label="产品规格" prop="productSize" show-overflow-tooltip/>
<el-table-column label="操作">
<el-table-column label="操作" fixed="right">
<template slot-scope="{row}">
<el-button type="text" @click="onShowSpec(row)">特性值</el-button>
</template>
......
......@@ -550,8 +550,8 @@ export default {
dicts: ['sales_order_state'],
computed: {
totalAmount() {
return this.form.detailList.reduce((amount, item) => {
amount = +item.amount
return this.form.detailList.reduce((amount = 0, item) => {
amount += +item.price
return amount
}, 0) || 0
}
......
......@@ -345,7 +345,7 @@ export default {
handleUpdate(row) {
this.reset()
const id = row.id || this.ids
getFactoryQuote(id).then(response => {
getFactoryQuote({id}).then(response => {
this.form = response.data
this.open = true
this.title = '修改工厂报价'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment