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

update:修改包装标签逻辑

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