漏组批次订单新,一键重算功能
This commit is contained in:
parent
006e6e733e
commit
db40eae2f9
@ -81,8 +81,10 @@ export function autoScanSiteBatch(lineCode) {
|
||||
// 按线路重算批次V2
|
||||
export function autoScanSiteBatchV2(lineCode) {
|
||||
return request({
|
||||
url: '/emis/common/autoScanSiteBatchV2?lineCode='+lineCode,
|
||||
// url: '/emis/common/autoScanSiteBatchV2?lineCode='+lineCode,
|
||||
url: '/emis/common/autoScanSiteBatchV2',
|
||||
method: 'get',
|
||||
params: {lineCode:lineCode},
|
||||
timeout: 20000
|
||||
})
|
||||
}
|
||||
|
||||
@ -139,7 +139,16 @@
|
||||
size="mini"
|
||||
@click="handleBatchReCalc"
|
||||
v-hasPermi="['emis:emisTmsSiteBatchMiss:reCalcV2']"
|
||||
>重算</el-button>
|
||||
>按线路重算</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
size="mini"
|
||||
@click="handleBatchReCalcAll"
|
||||
v-hasPermi="['emis:emisTmsSiteBatchMiss:reCalcAllV2']"
|
||||
>一键重算</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
@ -385,7 +394,7 @@ export default {
|
||||
handleBatchReCalc(){
|
||||
if(this.selectList&&this.selectList.length>0){
|
||||
let lineCode=this.selectList[0].lineCode;
|
||||
this.$modal.confirm('确认是否重算').then(function() {
|
||||
this.$modal.confirm('确认是否按线路重算').then(function() {
|
||||
return autoScanSiteBatchV2(lineCode);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
@ -393,6 +402,14 @@ export default {
|
||||
}).catch(() => {});
|
||||
}
|
||||
},
|
||||
handleBatchReCalcAll(){
|
||||
this.$modal.confirm('确认是否一键重算').then(function() {
|
||||
return autoScanSiteBatchV2();
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("重算成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 查询TMS漏组批次信息表列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user