|
|
|
|
@ -12,7 +12,7 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-button type="primary" @click="settlementFnNum" v-if="permission.settlementAnomaly_settlement">结算</el-button> |
|
|
|
|
<!-- <el-button type="danger" @click="">无需结算</el-button> --> |
|
|
|
|
<el-button type="danger" @click="onSubmit">无需结算</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
</template> |
|
|
|
|
@ -49,7 +49,7 @@ |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import settlementDailog from './SettlementDailog.vue' |
|
|
|
|
import {getStatement,calculate,matchStandard,updateData} from "@/api/outsourcingManagement/oemOrderSettlement" |
|
|
|
|
import {getStatement,calculate,matchStandard,updateData,noSettlementItem} from "@/api/outsourcingManagement/oemOrderSettlement" |
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
@ -581,6 +581,39 @@ export default { |
|
|
|
|
// 用户点击取消 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
onSubmit() { |
|
|
|
|
// if (this.selectionList.length === 0) { |
|
|
|
|
// this.$message.warning('请选择至少一条数据'); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
if(this.data.length == 0){ |
|
|
|
|
this.$message.error('请先查询数据!') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
this.$confirm('确认页面所有数据无需结算?', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}).then(() => { |
|
|
|
|
let params = { |
|
|
|
|
...this.query, |
|
|
|
|
postPlatingStorageTimeStart:this.query && this.query.putStoreTime && this.query.putStoreTime[0], |
|
|
|
|
postPlatingStorageTimeEnd:this.query && this.query.putStoreTime && this.query.putStoreTime[1], |
|
|
|
|
memo:this.query && this.query.memo && typeof(this.query.memo) == 'object' && this.query.memo.length != 0 ? |
|
|
|
|
this.query.memo.join(';') : this.query.memo && this.query.memo.indexOf(',') != -1 ? this.query.memo.split(',').join(';') : this.query.memo, |
|
|
|
|
} |
|
|
|
|
if(params.putStoreTime) delete params.putStoreTime; |
|
|
|
|
console.log('params----------',params) |
|
|
|
|
noSettlementItem(params).then(() => { |
|
|
|
|
this.$message.success('无需结算成功'); |
|
|
|
|
this.onLoad(); |
|
|
|
|
}).catch(() => { |
|
|
|
|
// this.$message.error('无需结算失败'); |
|
|
|
|
}); |
|
|
|
|
}).catch(() => { |
|
|
|
|
// 用户点击取消 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 匹配标准工序代码 |
|
|
|
|
handleMatch(){ |
|
|
|
|
matchStandard().then(res =>{ |
|
|
|
|
|