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

去除委外加工商必选

parent b6407ce9
...@@ -137,3 +137,11 @@ export function outsourceConfirm(query) { ...@@ -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 { ...@@ -444,8 +444,6 @@ export default {
this.getList(); this.getList();
}, },
handleOutsource(){ handleOutsource(){
const arr = this.selections.filter(v => !v.vendorId)
if (arr && arr.length > 0) return this.$modal.msgWarning(this.$t('委外加工商必选'))
this.$modal this.$modal
.confirm(this.$t('是否确认委外?')) .confirm(this.$t('是否确认委外?'))
.then( ()=> { .then( ()=> {
......
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
size="mini" size="mini"
:disabled='multiple' :disabled='multiple'
@click="handlePrint" @click="handlePrint"
>打印</el-button> >{{$t('打印')}}</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
...@@ -518,7 +518,8 @@ import { ...@@ -518,7 +518,8 @@ import {
getworkshopList, getworkshopList,
getworkstationList, getworkstationList,
gettaskWorkunitList, gettaskWorkunitList,
getdefaultWorkCenterList} from '@/api/mes/pro/scheduleList' getdefaultWorkCenterList,
printData} from '@/api/mes/pro/scheduleList'
import {putProtaskSplit} from '@/api/mes/pro/protask' import {putProtaskSplit} from '@/api/mes/pro/protask'
import taskList from './taskList.vue' import taskList from './taskList.vue'
import BrandSelect from "@/components/TmTool/index.vue"; import BrandSelect from "@/components/TmTool/index.vue";
...@@ -741,12 +742,18 @@ export default { ...@@ -741,12 +742,18 @@ export default {
this.reset(); this.reset();
}, },
handlePrint(){ handlePrint(){
postBatchPrintPdf( const ids = this.selections.map(v => v.taskId)
'', printData(ids).then(res => {
this.selections if (res.data) {
).then(()=> { postBatchPrintPdf(
res.data.reportName,
res.data.valueList
).then(()=> {
})
}
}) })
}, },
// 表单重置 // 表单重置
reset() { 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