Commit 7092f429 authored by 沈翠玲's avatar 沈翠玲

去除委外加工商必选

parent b6407ce9
......@@ -137,3 +137,11 @@ export function outsourceConfirm(query) {
});
}
// 打印
export function printData(query) {
return request({
url: "/mes/pro/taskWorkunit/printData",
method: "post",
data: query
});
}
......@@ -444,8 +444,6 @@ export default {
this.getList();
},
handleOutsource(){
const arr = this.selections.filter(v => !v.vendorId)
if (arr && arr.length > 0) return this.$modal.msgWarning(this.$t('委外加工商必选'))
this.$modal
.confirm(this.$t('是否确认委外?'))
.then( ()=> {
......
......@@ -160,7 +160,7 @@
size="mini"
:disabled='multiple'
@click="handlePrint"
>打印</el-button>
>{{$t('打印')}}</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
......@@ -518,7 +518,8 @@ import {
getworkshopList,
getworkstationList,
gettaskWorkunitList,
getdefaultWorkCenterList} from '@/api/mes/pro/scheduleList'
getdefaultWorkCenterList,
printData} from '@/api/mes/pro/scheduleList'
import {putProtaskSplit} from '@/api/mes/pro/protask'
import taskList from './taskList.vue'
import BrandSelect from "@/components/TmTool/index.vue";
......@@ -741,12 +742,18 @@ export default {
this.reset();
},
handlePrint(){
postBatchPrintPdf(
'',
this.selections
).then(()=> {
const ids = this.selections.map(v => v.taskId)
printData(ids).then(res => {
if (res.data) {
postBatchPrintPdf(
res.data.reportName,
res.data.valueList
).then(()=> {
})
}
})
},
// 表单重置
reset() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment