|
@@ -583,14 +583,40 @@ export default {
|
|
|
this.countMoney = false
|
|
|
this.invoiceSwitch = false
|
|
|
},
|
|
|
- selectstatuschange(e, row) {
|
|
|
+ async selectstatuschange(e, row) {
|
|
|
var data = {}
|
|
|
var text = `是否将状态改为${e}`
|
|
|
- getsettlementprice({ contractNo: row.contractNo }).toPromise()
|
|
|
- .then((response) => {
|
|
|
+ // if(e!='已完成'){
|
|
|
+ // this.$confirm(text, {
|
|
|
+ // confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // .then(() => {
|
|
|
+ // editstatus(data)
|
|
|
+ // .toPromise()
|
|
|
+ // .then((response) => {
|
|
|
+ // this.$notify.success({
|
|
|
+ // title: '成功',
|
|
|
+ // message: '状态修改成功',
|
|
|
+ // })
|
|
|
+ // this.getList()
|
|
|
+ // })
|
|
|
+ // .catch((response) => {
|
|
|
+ // row.status = row.currectstatus
|
|
|
+ // // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // .catch(() => {
|
|
|
+ // row.status = row.currectstatus
|
|
|
+ // return false
|
|
|
+ // })
|
|
|
+ // }else{
|
|
|
+
|
|
|
if (e == '发运结束') {
|
|
|
data = { id: row.id, endFlag: 1 }
|
|
|
} else if (e == '已完成') {
|
|
|
+ var response=await getsettlementprice({ contractNo: row.contractNo }).toPromise()
|
|
|
data = { id: row.id, settlementPrice: response }
|
|
|
text = `合同单价${response}元/吨,确定合同已完成?`
|
|
|
} else {
|
|
@@ -621,12 +647,8 @@ export default {
|
|
|
row.status = row.currectstatus
|
|
|
return false
|
|
|
})
|
|
|
- })
|
|
|
- .catch((response) => {
|
|
|
- row.status = row.currectstatus
|
|
|
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
- })
|
|
|
|
|
|
+ // }
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
console.log(`每页 ${val} 条`)
|