git fetch
git checkout feature/DAS2-80-support-to-import-stock-transfer
Branch feature/DAS2-80-support-to-import-stock-transfer
set up to track remote branch
feature/DAS2-80-support-to-import-stock-transfer from origin.
Switched to a new branch
'feature/DAS2-80-support-to-import-stock-transfer'
屏幕快照 2017-12-27 17.13.03.png
模态框的文件名src/app/modules/stock_transfers/import.html
参考 src/app/modules/purchase_orders/import_purchase_order.html
原本的逻辑代码:
<form style="padding:15px" ng-submit="uploadFiles()">
sample: <a ng-if="sample" href="{{sample}}" target="_blank">{{'Sample CSV (Simple)' |translate}}</a><br>
<div>{{chainMember[0]}}</div>
<input id="csvFileInput" type="file" ng-model="data" app-filereader filedata="filedata"/>
<div style="clear:both">
<div ng-show="!submitting" class="" style="padding-top:10px;padding-left:15px;padding-bottom: 10px">
<button class="_primary" type="submit">{{'Submit' |translate}}</button>
</div>
</div>
</form>
表格完成,做导入成功判断
屏幕快照 2017-12-27 19.02.51.png 屏幕快照 2017-12-27 19.02.43.png 屏幕快照 2017-12-27 19.02.36.png 屏幕快照 2017-12-27 19.02.27.png
网友评论