|
|
@@ -403,11 +403,20 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
inputChange (row,index) {
|
|
|
- if (row.defaultprice < row.contractprice) {
|
|
|
+ console.log(row.defaultprice,Number(row.contractprice))
|
|
|
+ if (row.defaultprice < Number(row.contractprice)) {
|
|
|
this.$message({
|
|
|
message:'价格不能低于原价!',
|
|
|
type:'error'
|
|
|
})
|
|
|
+ row.defaultprice = row.contractprice
|
|
|
+ this.updateOrder({
|
|
|
+ "sa_orderid": this.data.sa_orderid, //订单ID
|
|
|
+ "sys_enterpriseid": this.data.sys_enterpriseid, //企业ID
|
|
|
+ "sa_contractid": this.data.contacts.contactsid, //合同ID
|
|
|
+ "type": this.data.type, //订单类型
|
|
|
+ "items": this.tableData
|
|
|
+ })
|
|
|
} else {
|
|
|
// row.defaultprice = row.contractprice
|
|
|
this.$set(this.tableData,index,row)
|