组批次导入模块格式调整、取消确认批次
This commit is contained in:
parent
b9108be931
commit
e64747594e
Binary file not shown.
@ -51,3 +51,11 @@ export function confirmBatch(data) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 取消确认批次
|
||||
export function cancelConfirmBatch(data) {
|
||||
return request({
|
||||
url: '/emis/emisTmsSiteBatchMiss/cancelConfirmBatch',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
@ -134,8 +134,18 @@
|
||||
size="mini"
|
||||
@click="handleConfirm"
|
||||
:disabled="confirmDisabled"
|
||||
v-hasPermi="['emis:emisTmsSiteBatchMiss:confirm']"
|
||||
>确认组批次完成</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
plain
|
||||
size="mini"
|
||||
@click="handleCancelBatchConfirm"
|
||||
:disabled="confirmDisabled"
|
||||
v-hasPermi="['emis:emisTmsSiteBatchMiss:cancelConfirm']"
|
||||
>取消确认批次</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
|
||||
@ -212,7 +222,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listEmisTmsSiteBatchMiss, getEmisTmsSiteBatchMiss, delEmisTmsSiteBatchMiss, addEmisTmsSiteBatchMiss, updateEmisTmsSiteBatchMiss } from "@/api/emis/emisTmsSiteBatchMiss";
|
||||
import { listEmisTmsSiteBatchMiss, getEmisTmsSiteBatchMiss, delEmisTmsSiteBatchMiss, addEmisTmsSiteBatchMiss, updateEmisTmsSiteBatchMiss, cancelConfirmBatch } from "@/api/emis/emisTmsSiteBatchMiss";
|
||||
|
||||
import emisTmsSiteBatchMissForm from '@/views/emis/emisTmsSiteBatchMiss/emisTmsSiteBatchMissForm';
|
||||
import elDateAdvPicker from '@/components/DatePickerAdv/elDateAdvPicker';
|
||||
|
||||
@ -550,6 +561,29 @@ export default {
|
||||
},
|
||||
handleCancel(){
|
||||
this.openConfirmForm= false;
|
||||
},
|
||||
handleCancelBatchConfirm() {
|
||||
const that = this;
|
||||
// 确认弹窗
|
||||
this.$modal.confirm('是否取消批次确认完成?').then(function () {
|
||||
// 取消确认批次
|
||||
let billCodeList = [];
|
||||
that.selectList.forEach(item => {
|
||||
billCodeList.push(item.billCode);
|
||||
})
|
||||
// 取消确认批次
|
||||
return cancelConfirmBatch({
|
||||
params: {
|
||||
billCodeList: billCodeList
|
||||
}
|
||||
});
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$message({
|
||||
message: "操作成功",
|
||||
type: "success"
|
||||
});
|
||||
}).catch(() => { });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user