Commit a252a812 authored by 张海景's avatar 张海景

update:修改包装标签逻辑

parent 85c7afad
...@@ -43,10 +43,7 @@ export function packagePrintRecordInfo(data) { ...@@ -43,10 +43,7 @@ export function packagePrintRecordInfo(data) {
return request({ return request({
url: "/pro/packagePrintRecord/recordPackagePrintInfo", url: "/pro/packagePrintRecord/recordPackagePrintInfo",
method: "post", method: "post",
data, data
headersheaders: {
"Content-Type": "application/x-www-form-urlencoded",
},
}); });
} }
...@@ -284,7 +284,7 @@ function printPdf(res) { ...@@ -284,7 +284,7 @@ function printPdf(res) {
* 接口请求加上responseType * 接口请求加上responseType
*/ */
export function postPrintPdf(name, value) { export function postPrintPdf(name, value) {
request({ return request({
url: "/common/print", url: "/common/print",
method: "post", method: "post",
responseType: "blob", responseType: "blob",
...@@ -303,7 +303,7 @@ export function postPrintPdf(name, value) { ...@@ -303,7 +303,7 @@ export function postPrintPdf(name, value) {
* 接口请求加上responseType * 接口请求加上responseType
*/ */
export function postBatchPrintPdf(name, values) { export function postBatchPrintPdf(name, values) {
request({ return request({
url: "/common/printBatch", url: "/common/printBatch",
method: "post", method: "post",
responseType: "blob", responseType: "blob",
......
...@@ -275,6 +275,10 @@ export default { ...@@ -275,6 +275,10 @@ export default {
methods: { methods: {
/** 查询工单列表 */ /** 查询工单列表 */
getList() { getList() {
if (!this.queryParams.arrangeCode&&!this.queryParams.workorderCode) {
this.$message.error('请输入查询条件')
return
}
this.loading = true; this.loading = true;
workorderList(this.queryParams).then((response) => { workorderList(this.queryParams).then((response) => {
console.log(response, 'response') console.log(response, 'response')
...@@ -343,10 +347,6 @@ export default { ...@@ -343,10 +347,6 @@ export default {
this.$message.warning('请选择打印模版') this.$message.warning('请选择打印模版')
return return
} }
const params = {
workorderId : this.produceForm.workorderId,
recordIds: this.selectPackageTable
}
const forms = new FormData() const forms = new FormData()
forms.append('workorderId', this.produceForm.workorderId) forms.append('workorderId', this.produceForm.workorderId)
this.selectPackageTable.forEach(item => { this.selectPackageTable.forEach(item => {
......
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