|
@@ -111,9 +111,10 @@
|
|
|
<el-table-column
|
|
|
prop="price"
|
|
|
label="价格"
|
|
|
- width="90">
|
|
|
+ width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.price,2)}}</p>
|
|
|
+ <el-input v-if="type === 'edit' && data.type === '特殊订单'" v-model.number="scope.row.price" @input="if(scope.row.price > scope.row.oldprice) scope.row.price = scope.row.oldprice; if(scope.row.price < 0) scope.row.price = 0;" placeholder="输入订单备注" size="mini" @change="rowChange(scope.row,scope.$index)"></el-input>
|
|
|
+ <p v-else style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.price,2)}}</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -122,6 +123,14 @@
|
|
|
<p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.price * scope.row.qty,2)}}</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="备注"
|
|
|
+ width="300">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-if="type === 'edit'" v-model="scope.row.remarks" placeholder="输入订单备注" size="mini" @change="rowChange(scope.row,scope.$index)"></el-input>
|
|
|
+ <p v-else>{{scope.row.remarks}}</p>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column v-if="type === 'edit'" width="90" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="mini" @click="deleteOrderProduct(scope.row)">删 除</el-button>
|
|
@@ -203,12 +212,6 @@ export default {
|
|
|
this.$emit('onSuccess')
|
|
|
})
|
|
|
},
|
|
|
- // async updateOrderProduct (val) {
|
|
|
- // const res = await this.$api.requested({
|
|
|
- // "id": 20221110145302,
|
|
|
- // "content": val
|
|
|
- // })
|
|
|
- // },
|
|
|
rowChange (val,index) {
|
|
|
let that = this
|
|
|
this.$set(this.tableData,index,val)
|
|
@@ -226,14 +229,15 @@ export default {
|
|
|
"sa_orderitemsid": val.sa_orderitemsid,//0表示新增
|
|
|
"itemid": val.itemid, //商品ID
|
|
|
"qty": val.qty, //数量
|
|
|
- "needdate": val.needdate//可以不传,修改交期
|
|
|
+ "needdate": val.needdate,//可以不传,修改交期
|
|
|
+ "price":val.price,
|
|
|
+ "remarks":val.remarks
|
|
|
}]
|
|
|
})
|
|
|
},500)
|
|
|
},
|
|
|
onDateChange (val){
|
|
|
let that = this
|
|
|
-
|
|
|
that.updateOrder({
|
|
|
"sa_orderid": this.data.sa_orderid, //订单ID
|
|
|
"sys_enterpriseid": this.data.sys_enterpriseid, //企业ID
|