| | |
| | | data.datetime = null |
| | | data.create_time = tableSearchParam.value.datetime[0] + " - " + tableSearchParam.value.datetime[1] |
| | | } |
| | | const loading = ElementPlus.ElLoading.service({ |
| | | lock: true, |
| | | text: 'Loading', |
| | | background: 'rgba(0, 0, 0, 0.7)', |
| | | }) |
| | | $.ajax({ |
| | | url: "http://127.0.0.1:9090/mo/materialreceive/getList", |
| | | headers: { |
| | |
| | | contentType: 'application/json;charset=UTF-8', |
| | | method: 'GET', |
| | | success: function(res) { |
| | | loading.close() |
| | | if (res.code == 200) { |
| | | tableData.value = res.data |
| | | |
| | | ElementPlus.ElMessage({ |
| | | message: "拉取数据完成", |
| | | type: 'success' |
| | | }); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | | } else { |
| | |
| | | } |
| | | |
| | | function fnCanelPrint(){ |
| | | if (selectList.value.length === 0){ |
| | | ElementPlus.ElMessage({ |
| | | message: "请先选择", |
| | | type: 'error' |
| | | }); |
| | | return ; |
| | | } |
| | | const loading = ElementPlus.ElLoading.service({ |
| | | lock: true, |
| | | text: 'Loading', |
| | |
| | | } |
| | | |
| | | function fnCanelPrintRed(){ |
| | | if (selectList.value.length === 0){ |
| | | ElementPlus.ElMessage({ |
| | | message: "请先选择", |
| | | type: 'error' |
| | | }); |
| | | return ; |
| | | } |
| | | const loading = ElementPlus.ElLoading.service({ |
| | | lock: true, |
| | | text: 'Loading', |
| | |
| | | }); |
| | | } |
| | | function fnPrint(izPrint) { |
| | | if (selectList.value.length === 0){ |
| | | ElementPlus.ElMessage({ |
| | | message: "请先选择", |
| | | type: 'error' |
| | | }); |
| | | return ; |
| | | } |
| | | ElementPlus.ElMessageBox.confirm('确定打印吗?') |
| | | .then(() => { |
| | | print(izPrint,0) |
| | |
| | | } |
| | | |
| | | function fnPrintView(izPrint){ |
| | | if (selectList.value.length === 0){ |
| | | ElementPlus.ElMessage({ |
| | | message: "请先选择", |
| | | type: 'error' |
| | | }); |
| | | return ; |
| | | } |
| | | print(izPrint,0) |
| | | } |
| | | |
| | | function fnPrintRedView(izPrint) { |
| | | if (selectList.value.length === 0){ |
| | | ElementPlus.ElMessage({ |
| | | message: "请先选择", |
| | | type: 'error' |
| | | }); |
| | | return ; |
| | | } |
| | | print(izPrint,1); |
| | | } |
| | | |
| | | function fnPrintRed(izPrint) { |
| | | if (selectList.value.length === 0){ |
| | | ElementPlus.ElMessage({ |
| | | message: "请先选择", |
| | | type: 'error' |
| | | }); |
| | | return ; |
| | | } |
| | | ElementPlus.ElMessageBox.confirm('确定红字打印吗?') |
| | | .then(() => { |
| | | print(izPrint,1); |