|
@@ -2269,29 +2269,33 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- var send_data1 = {
|
|
|
- "name": "checkOutsourcingAmount",
|
|
|
- "parammaps": { "outsourcingCode":row.outsourcingCode }
|
|
|
- }
|
|
|
- var send_data2 = {
|
|
|
- "common": { "returnmap": "0" },
|
|
|
- "data": [
|
|
|
- {
|
|
|
- "name": "editBigacceptanceIsAcceptance", "type": "e",
|
|
|
- "parammaps": { "id":row.id }
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- GetDataByName(send_data1).then(response => {
|
|
|
- if(parseFloat(response.data.list[0].amount) !== 0){
|
|
|
- this.save_submit(send_data2)
|
|
|
- }else{
|
|
|
- this.$message({
|
|
|
- type: 'error',
|
|
|
- message: '数据未填写,请完善相关信息'
|
|
|
- })
|
|
|
+ if(row.isPartapply == 1){
|
|
|
+ var send_data1 = {
|
|
|
+ "name": "checkOutsourcingAmount",
|
|
|
+ "parammaps": { "outsourcingCode":row.outsourcingCode }
|
|
|
}
|
|
|
- })
|
|
|
+ var send_data2 = {
|
|
|
+ "common": { "returnmap": "0" },
|
|
|
+ "data": [
|
|
|
+ {
|
|
|
+ "name": "editBigacceptanceIsAcceptance", "type": "e",
|
|
|
+ "parammaps": { "id":row.id }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ GetDataByName(send_data1).then(response => {
|
|
|
+ if(parseFloat(response.data.list[0].amount) !== 0){
|
|
|
+ this.save_submit(send_data2)
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: '数据未填写,请完善相关信息'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.$message({ type: 'warning', message: '备件未领用,暂时不能提交。', duration: 2000 })
|
|
|
+ }
|
|
|
}).catch(() => {
|
|
|
this.$message({
|
|
|
type: 'info',
|