|
@@ -3,9 +3,10 @@
|
|
|
<el-col :span="setcol">
|
|
<el-col :span="setcol">
|
|
|
<div class="flex-align-center normal-margin">
|
|
<div class="flex-align-center normal-margin">
|
|
|
<slot name="operation"></slot>
|
|
<slot name="operation"></slot>
|
|
|
- <el-button class="inline-16" size="small" type="primary" @click="drawer = true">{{setcol === 24?'添 加':'取 消'}}</el-button>
|
|
|
|
|
|
|
+ <el-button :disabled="data.type === '特殊订单'" v-if="data.status === '新建'" class="inline-16" size="small" type="primary" @click="drawer = true">{{setcol === 24?'添 加':'取 消'}}</el-button>
|
|
|
<excel class="inline-16" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
|
|
<excel class="inline-16" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <p class="normal-margin" style="font-size: 13px !important;color:red;font-weight: normal">{{data.amount >= freefreightamount?'当前订单免运费':`订单满${tool.formatAmount(freefreightamount,2)}元免运费,当前还差${tool.formatAmount(freefreightamount - data.amount,2)}元`}}</p>
|
|
|
<el-table
|
|
<el-table
|
|
|
ref="multipleTable"
|
|
ref="multipleTable"
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
@@ -256,6 +257,7 @@ export default {
|
|
|
props:['data','type'],
|
|
props:['data','type'],
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ freefreightamount:null,
|
|
|
drawer:false,
|
|
drawer:false,
|
|
|
setcol:24,
|
|
setcol:24,
|
|
|
dataRefresh:true,
|
|
dataRefresh:true,
|
|
@@ -286,8 +288,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
computed:{
|
|
computed:{
|
|
|
canUseInput () {
|
|
canUseInput () {
|
|
|
- if (this.data.saler.length === 0) return false
|
|
|
|
|
- let salerIsEditPrice = this.data.saler[0].iseditprice
|
|
|
|
|
|
|
+ if (this.data.saler && this.data.saler.length === 0) return false
|
|
|
|
|
+ let salerIsEditPrice = this.data.saler?this.data.saler[0].iseditprice:0
|
|
|
if (this.data.type === '标准订单' && salerIsEditPrice && this.data.status === '新建') {
|
|
if (this.data.type === '标准订单' && salerIsEditPrice && this.data.status === '新建') {
|
|
|
return true
|
|
return true
|
|
|
} else {
|
|
} else {
|
|
@@ -306,6 +308,7 @@ export default {
|
|
|
this.tableData = res.data
|
|
this.tableData = res.data
|
|
|
this.total = res.total
|
|
this.total = res.total
|
|
|
this.currentPage = res.pageNumber
|
|
this.currentPage = res.pageNumber
|
|
|
|
|
+ this.queryBasicInfo()
|
|
|
},
|
|
},
|
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
// console.log(`每页 ${val} 条`);
|
|
@@ -394,6 +397,7 @@ export default {
|
|
|
type:'error',
|
|
type:'error',
|
|
|
message:res.data + ':' + res.msg
|
|
message:res.data + ':' + res.msg
|
|
|
})
|
|
})
|
|
|
|
|
+ this.listData()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
setPickerOptions (val) {
|
|
setPickerOptions (val) {
|
|
@@ -441,6 +445,14 @@ export default {
|
|
|
},()=>{
|
|
},()=>{
|
|
|
this.$set(this.tableData,index,row)
|
|
this.$set(this.tableData,index,row)
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ async queryBasicInfo () {
|
|
|
|
|
+ const res = await this.$api.requested({
|
|
|
|
|
+ "id":20220920084001,"content":{
|
|
|
|
|
+ sys_enterpriseid:this.data.sys_enterpriseid
|
|
|
|
|
+ },
|
|
|
|
|
+ })
|
|
|
|
|
+ this.freefreightamount = res.data.freefreightamount?res.data.freefreightamount:0
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted () {
|
|
mounted () {
|