法律法规、集团端
This commit is contained in:
parent
4df053163e
commit
3e7002c37f
|
@ -44,6 +44,15 @@ def makeqr4(data):
|
||||||
img.save(filepath)
|
img.save(filepath)
|
||||||
return filepath
|
return filepath
|
||||||
|
|
||||||
|
def makeqr_area(data):
|
||||||
|
upload_folder = 'media/qr_area'
|
||||||
|
if not os.path.exists(upload_folder):
|
||||||
|
os.mkdir(upload_folder)
|
||||||
|
img = qrcode.make(data=data)
|
||||||
|
filepath = os.path.join(upload_folder, data.split('=')[1]+'.png').replace('\\','/')
|
||||||
|
img.save(filepath)
|
||||||
|
return filepath
|
||||||
|
|
||||||
def drequipments(companyid,path):
|
def drequipments(companyid,path):
|
||||||
wb = load_workbook(path)
|
wb = load_workbook(path)
|
||||||
sheet = wb.worksheets[0]
|
sheet = wb.worksheets[0]
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
</input>
|
</input>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
<div class="labeldiv">区域二维码</div>
|
||||||
|
<img id="qrcode" height=240px width=240px>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
var id = {{id}}
|
var id = {{id}}
|
||||||
|
|
Loading…
Reference in New Issue