| | |
| | | const name2=ref("admin") |
| | | |
| | | const printStyle = ref(null); |
| | | const title = ref({}) |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | data.value.printList = JSON.parse(props.printList) |
| | | console.log(data.value.printList) |
| | | |
| | | onMounted(() => { |
| | | clearPrintStyles() |
| | |
| | | const orderDetailList = ref([]) |
| | | const customer = ref({}) |
| | | const selectPrint =async () => { |
| | | const page = props.printPage==='storageRecordPint'?`/finishedGoodsInventory/getSelectPrints`:'/finishedGoodsInventory/getInventoryPrints' |
| | | const page1 = props.printPage==='storageRecordPint'?`/finishedGoodsInventory/getSelectPrints`:'/finishedGoodsInventory/getInventoryPrints' |
| | | const value = props.printPage==='storageRecordPint'?data.value:data.value.printList |
| | | request.post(page, value).then((res) => { |
| | | request.post(page1, value).then((res) => { |
| | | if (res.code == 200) { |
| | | produceList.value = deepClone(res.data.data) |
| | | customer.value = produceList.value[0].detail[0] |
| | |
| | | type:'sum', |
| | | sum:sum |
| | | }) |
| | | |
| | | }) |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | |
| | | </div> |
| | | </div> |
| | | <div style="display:flex;"> |
| | | <div style="width: 100%;font-size: 10px"><span style="font-weight: bold">工程名称</span>:{{page[0].customer.project}}({{page[0].customer.batch}})</div> |
| | | <div style="width: 100%;font-size: 10px;display:flex;"> |
| | | <span style="font-weight: bold">工程名称</span>:<div style="width: 75%;">{{page[0].customer.project}}({{page[0].customer.batch}})</div> |
| | | </div> |
| | | </div> |
| | | <div style="display:flex;"> |
| | | <div style="width: 50%;font-size: 10px"><span style="font-weight: bold">订单号</span>:{{page[0].customer.order_id}}</div> |