|
@@ -29,48 +29,75 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
submit () {
|
|
|
- if (this.data.status == '新建') {
|
|
|
- this.$confirm('确定进行提交操作吗?','提示',{
|
|
|
- confirmButtonText:'确定',
|
|
|
- cancelButtonText:'取消'
|
|
|
- }).then(async () => {
|
|
|
- let res = await this.$api.requested({
|
|
|
- "id": 20221121202802,
|
|
|
- "content": {
|
|
|
- "sa_contractids": [this.data.sa_contractid]
|
|
|
- },
|
|
|
- })
|
|
|
- this.tool.showMessage(res,() => {
|
|
|
- this.$emit('onSuccess')
|
|
|
- })
|
|
|
- })
|
|
|
- } else {
|
|
|
- if (new Date() > new Date(this.data.enddate)){
|
|
|
- this.$confirm('当前合同有效期已过期,是否确定继续审核?','提示',{
|
|
|
- confirmButtonText:'确定',
|
|
|
- cancelButtonText:'取消'
|
|
|
- }).then( () => {
|
|
|
- if (this.siteid == 'HY' && this.$route.query.type == '居间'){
|
|
|
- this.$refs.adjustRef.$refs.priceDiff.dialogTableVisible = true
|
|
|
- this.$refs.adjustRef.$refs.priceDiff.onAdjust(this.data)
|
|
|
+ this.$api.requested({
|
|
|
+ "id": "2024091910001802",
|
|
|
+ "content": {
|
|
|
+ "ownertable": "sa_contract", //sa_project,sa_contract,sa_quotedprice
|
|
|
+ "ownerid": this.$route.query.id
|
|
|
+ },
|
|
|
+ }).then(result => {
|
|
|
+ if (result.code) {
|
|
|
+ if (this.data.status == '新建') {
|
|
|
+ this.$confirm('确定进行提交操作吗?','提示',{
|
|
|
+ confirmButtonText:'确定',
|
|
|
+ cancelButtonText:'取消'
|
|
|
+ }).then(async () => {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "id": 20221121202802,
|
|
|
+ "content": {
|
|
|
+ "sa_contractids": [this.data.sa_contractid]
|
|
|
+ },
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,() => {
|
|
|
+ this.$emit('onSuccess')
|
|
|
+ })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ if (new Date() > new Date(this.data.enddate)){
|
|
|
+ this.$confirm('当前合同有效期已过期,是否确定继续审核?','提示',{
|
|
|
+ confirmButtonText:'确定',
|
|
|
+ cancelButtonText:'取消'
|
|
|
+ }).then( () => {
|
|
|
+ if (this.siteid == 'HY' && this.$route.query.type == '居间'){
|
|
|
+ this.$refs.adjustRef.$refs.priceDiff.dialogTableVisible = true
|
|
|
+ this.$refs.adjustRef.$refs.priceDiff.onAdjust(this.data)
|
|
|
+ }else {
|
|
|
+ this.onCheck()
|
|
|
+ }
|
|
|
+ })
|
|
|
}else {
|
|
|
- this.onCheck()
|
|
|
+ this.$confirm('确定进行审核操作吗?','提示',{
|
|
|
+ confirmButtonText:'确定',
|
|
|
+ cancelButtonText:'取消'
|
|
|
+ }).then( () => {
|
|
|
+ if (this.siteid == 'HY' && this.$route.query.type == '居间'){
|
|
|
+ this.$refs.adjustRef.$refs.priceDiff.dialogTableVisible = true
|
|
|
+ this.$refs.adjustRef.$refs.priceDiff.onAdjust(this.data)
|
|
|
+ }else {
|
|
|
+ this.onCheck()
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
- })
|
|
|
- }else {
|
|
|
- this.$confirm('确定进行审核操作吗?','提示',{
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$confirm('产品中存在未通过的成品配置,是否立即提醒产品经理评审?','提示',{
|
|
|
confirmButtonText:'确定',
|
|
|
- cancelButtonText:'取消'
|
|
|
- }).then( () => {
|
|
|
- if (this.siteid == 'HY' && this.$route.query.type == '居间'){
|
|
|
- this.$refs.adjustRef.$refs.priceDiff.dialogTableVisible = true
|
|
|
- this.$refs.adjustRef.$refs.priceDiff.onAdjust(this.data)
|
|
|
- }else {
|
|
|
- this.onCheck()
|
|
|
- }
|
|
|
+ cancelButtonText:'取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "id": 2024091910214302,
|
|
|
+ "content": {
|
|
|
+ "ownertable": 'sa_contract',
|
|
|
+ "ownerid": this.$route.query.id
|
|
|
+ },
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,() => {
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
- }
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
async onCheck(){
|
|
|
let res = await this.$api.requested({
|